本文整理匯總了PHP中CActiveRecordBehavior::canGetProperty方法的典型用法代碼示例。如果您正苦於以下問題:PHP CActiveRecordBehavior::canGetProperty方法的具體用法?PHP CActiveRecordBehavior::canGetProperty怎麽用?PHP CActiveRecordBehavior::canGetProperty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CActiveRecordBehavior
的用法示例。
在下文中一共展示了CActiveRecordBehavior::canGetProperty方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: canGetProperty
public function canGetProperty($name)
{
return parent::canGetProperty($name) or $this->hasLangAttribute($name);
}
示例2: canGetProperty
/**
* Expose translatable attributes as readable
*/
public function canGetProperty($name)
{
return in_array($name, $this->translationAttributes) || in_array($name, array_keys($this->multilingualRelations)) ? true : parent::canGetProperty($name);
}
示例3: canGetProperty
public function canGetProperty($name)
{
return $this->groupName($name) || parent::canGetProperty($name);
}
示例4: canGetProperty
/**
* Check if a property is available.
*
* Relies on __isset() because any attribute here is a property.
*
* (non-PHPdoc)
* @see CComponent::canGetProperty()
*/
public function canGetProperty($name)
{
return parent::canGetProperty($name) || $this->__isset($name);
}
示例5: canGetProperty
/**
* Expose translatable attribues as readable
*/
public function canGetProperty($name)
{
return in_array($name, $this->translationAttributes) ? true : parent::canGetProperty($name);
}