本文整理匯總了PHP中KObjectConfig::get方法的典型用法代碼示例。如果您正苦於以下問題:PHP KObjectConfig::get方法的具體用法?PHP KObjectConfig::get怎麽用?PHP KObjectConfig::get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類KObjectConfig
的用法示例。
在下文中一共展示了KObjectConfig::get方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get
/**
* 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);
}
示例2: getState
/**
* 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;
}
示例3: getIdentityKey
/**
* Get the identity key
*
* @return mixed
*/
public function getIdentityKey()
{
return KObjectConfig::get('identity_key');
}
示例4: getData
/**
* Get the view data
*
* @return array
*/
public function getData()
{
return KObjectConfig::get('data');
}
示例5: getAction
/**
* Get the controller action
*
* @return string
*/
public function getAction()
{
return KObjectConfig::get('action');
}
示例6: getLayout
/**
* Get the view layout
*
* @return array
*/
public function getLayout()
{
return KObjectConfig::get('layout');
}
示例7: get
/**
* 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;
}
示例8: getException
/**
* Get the exception
*
* @return Exception
*/
public function getException()
{
return KObjectConfig::get('exception');
}
示例9: getAffected
/**
* Get the number of affected rows
*
* @return integer
*/
public function getAffected()
{
return KObjectConfig::get('affected');
}