/** * Class Constructor * * @access public * @return null */ public function __construct() { /** * get an instance of the registry * and set the network view object */ $this->_registry = System_Registry_Root::getInstance(); }
/** * Checks the values of the required fields to make sure they are set and not empty * @access private * @return boolean */ private function requiredFieldValueCheck($type, $fields = false) { $fields = $fields !== false ? $fields : $this->_fields; $required = $this->_required_fields[$type]; $error = System_Registry_Root::getInstance()->getSystemError(); $passed = true; /** * Checks to see what fields have passed the required state, and then checks to see if their values are set * If they are not set, then they will be added to the error stack. */ if (count($required)) { foreach ($required as $column) { if (isset($fields[$column]) && trim($fields[$column]) === '') { $proper = str_replace('_', ' ', $column); $passed = false; $this->_errors = true; $error->addEntry($column, $proper . ' value is required.'); } } } return $passed; }
/** * Gets the instance of the registry. * * @static * @access public * @return System_Registry A System_Registry object. */ public static function getInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
/** * Class Constructor * * @access public * @return null */ public function __construct() { $this->_registry = System_Registry_Root::getInstance(); }
/** * Class Constructor * * @access public * @return System_Request_Controller */ public function __construct(array $data = array()) { $this->setData($data); $this->_registry = System_Registry_Root::getInstance(); $this->_error_object = System_Error_Base::getInstance(); $this->_event_object = System_Request_Event::getInstance(); return $this; }