From ec424df850d6e5acc85d49ebd67703cf11f5a8d4 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 19:01:46 +0200 Subject: Remove getArguments method from Item class --- core/namespace/Item.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/core/namespace/Item.php b/core/namespace/Item.php index 92eb0e8..74b5688 100644 --- a/core/namespace/Item.php +++ b/core/namespace/Item.php @@ -50,26 +50,6 @@ abstract class Item implements ItemInterface { return $this->Attribute->get('id'); } - #=============================================================================== - # Return parsed arguments - #=============================================================================== - public function getArguments(): array { - if($argv = $this->Attribute->get('argv')) { - foreach(explode('|', $argv) as $delimeter) { - $part = explode('=', $delimeter); - - $argumentK = $part[0] ?? NULL; - $argumentV = $part[1] ?? TRUE; - - if(preg_match('#^[[:word:]]+$#', $argumentK)) { - $arguments[strtoupper($argumentK)] = $argumentV; - } - } - } - - return $arguments ?? []; - } - #=============================================================================== # Return previous item ID #=============================================================================== -- cgit v1.2.3