*/
private $genericArray = array();
+ /**
+ * Command name
+ */
+ private $commandName = '';
+
+ /**
+ * Controller name
+ */
+ private $controllerName = '';
+
/***********************
* Exception codes.... *
***********************/
return $this->listenerInstance;
}
+ /**
+ * Setter for command name
+ *
+ * @param $commandName Last validated command name
+ * @return void
+ */
+ protected final function setCommandName ($commandName) {
+ $this->commandName = $commandName;
+ }
+
+ /**
+ * Getter for command name
+ *
+ * @return $commandName Last validated command name
+ */
+ protected final function getCommandName () {
+ return $this->commandName;
+ }
+
+ /**
+ * Setter for controller name
+ *
+ * @param $controllerName Last validated controller name
+ * @return void
+ */
+ protected final function setControllerName ($controllerName) {
+ $this->controllerName = $controllerName;
+ }
+
+ /**
+ * Getter for controller name
+ *
+ * @return $controllerName Last validated controller name
+ */
+ protected final function getControllerName () {
+ return $this->controllerName;
+ }
+
/**
* Checks whether an object equals this object. You should overwrite this
* method to implement own equality checks
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseCommand extends BaseFrameworkSystem {
- /**
- * The controller we need for this command
- */
- private $controllerName = '';
-
/**
* Protected constructor
*
// Call parent constructor
parent::__construct($className);
}
-
- /**
- * Setter for controller name
- *
- * @param $controllerName Name of the controller assigned with this command
- * @return void
- */
- public final function setControllerName ($controllerName) {
- $this->controllerName = (string) $controllerName;
- }
-
- /**
- * Getter for controller name
- *
- * @return $controllerName Name of the controller assigned with this command
- */
- public final function getControllerName () {
- return $this->controllerName;
- }
}
// [EOF]
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseCommandResolver extends BaseResolver {
- /**
- * Validated command name
- */
- private $commandName = '';
-
/**
* Protected constructor
*
parent::__construct($className);
}
- /**
- * Setter for command name
- *
- * @param $commandName Last validated command name
- * @return void
- */
- protected final function setCommandName ($commandName) {
- $this->commandName = $commandName;
- }
-
- /**
- * Getter for command name
- *
- * @return $commandName Last validated command name
- */
- protected final function getCommandName () {
- return $this->commandName;
- }
-
/**
* "Loads" a given command and instances it if not yet cached
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseControllerResolver extends BaseResolver {
- /**
- * Validated controller name
- */
- private $controllerName = '';
-
/**
* Protected constructor
*
parent::__construct($className);
}
- /**
- * Setter for controller name
- *
- * @param $controllerName Last validated controller name
- * @return void
- */
- protected final function setControllerName ($controllerName) {
- $this->controllerName = $controllerName;
- }
-
- /**
- * Getter for controller name
- *
- * @return $controllerName Last validated controller name
- */
- public final function getControllerName () {
- return $this->controllerName;
- }
-
/**
* "Loads" a given controller and instances it if not yet cached. If the
* controller was not found one of the default controllers will be used