Exemplo n.º 1
0
 /**
  * Implements lazy loading of the pages config property.
  *
  * @param string 
  * @return mixed
  */
 public function get($name, $default = null)
 {
     if ($name == 'pages' && !isset($this->pages)) {
         $this->pages = $this->_pages();
     }
     return parent::get($name);
 }
 /**
  * Returns the job state
  *
  * @return KObjectConfigInterface
  */
 public function getState()
 {
     $result = KObjectConfig::get('state');
     if (!$result instanceof KObjectConfig) {
         $this->setState(array());
         $result = KObjectConfig::get('state');
     }
     return $result;
 }
Exemplo n.º 3
0
 /**
  * Get the identity key
  *
  * @return mixed
  */
 public function getIdentityKey()
 {
     return KObjectConfig::get('identity_key');
 }
Exemplo n.º 4
0
 /**
  * Get the view data
  *
  * @return array
  */
 public function getData()
 {
     return KObjectConfig::get('data');
 }
Exemplo n.º 5
0
 /**
  * Get the controller action
  *
  * @return string
  */
 public function getAction()
 {
     return KObjectConfig::get('action');
 }
Exemplo n.º 6
0
 /**
  * Get the view layout
  *
  * @return array
  */
 public function getLayout()
 {
     return KObjectConfig::get('layout');
 }
Exemplo n.º 7
0
 /**
  * Get an command property or attribute
  *
  * If an event property exists the property will be returned, otherwise the attribute will be returned. If no
  * property or attribute can be found the method will return NULL.
  *
  * @param  string $name    The property name
  * @param  mixed  $default The default value
  * @return mixed|null  The property value
  */
 public final function get($name, $default = null)
 {
     $method = 'get' . ucfirst($name);
     if (!method_exists($this, $method)) {
         $value = parent::get($name);
     } else {
         $value = $this->{$method}();
     }
     return $value;
 }
Exemplo n.º 8
0
 /**
  * Get the exception
  *
  * @return Exception
  */
 public function getException()
 {
     return KObjectConfig::get('exception');
 }
Exemplo n.º 9
0
 /**
  * Get the number of affected rows
  *
  * @return integer
  */
 public function getAffected()
 {
     return KObjectConfig::get('affected');
 }