本文整理匯總了PHP中yii\base\Behavior::__isset方法的典型用法代碼示例。如果您正苦於以下問題:PHP Behavior::__isset方法的具體用法?PHP Behavior::__isset怎麽用?PHP Behavior::__isset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類yii\base\Behavior
的用法示例。
在下文中一共展示了Behavior::__isset方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __isset
public function __isset($name)
{
if ($this->fileInputName == $name) {
return true;
}
return parent::__isset($name);
}
示例2: __isset
public function __isset($name)
{
$rels = array_flip($this->directoryAttributes);
if (isset($rels[$name])) {
return $this->getDirectory($rels[$name]) !== null;
}
return parent::__isset($name);
}
示例3: __isset
/**
* Checks if a property is set, i.e. defined and not null.
*
* Do not call this method directly as it is a PHP magic method that
* will be implicitly called when executing `isset($object->property)`.
*
* Note that if the property is not defined, false will be returned.
*
* @param string $name the property name or the event name
*
* @return boolean whether the named property is set (not null).
* @see http://php.net/manual/en/function.isset.php
*/
public function __isset($name)
{
if (!parent::__isset($name)) {
return $this->hasTranslateAttribute($name);
} else {
return true;
}
}
示例4: __isset
public function __isset($name)
{
return $this->hasAttribute($name) || parent::__isset($name);
}
示例5: __isset
/**
* @inheritdoc
*/
public function __isset($name)
{
if ($this->transformedPropertyExists($name)) {
return $this->getTransformedProperty($name) !== null;
}
return parent::__isset($name);
}
示例6: __isset
/**
* @inheritdoc
*/
public function __isset($name)
{
if (!parent::__isset($name)) {
return $this->isUploadAttribute($name);
} else {
return true;
}
}
示例7: __isset
/**
* @inheritdoc
*/
public function __isset($name)
{
if (stripos($name, 'client') === 0) {
return strcasecmp($name, 'clientId') == 0 || $this->getClientProperty(strtolower($name)) !== null;
} else {
return parent::__isset($name);
}
}
示例8: __isset
/**
* @inheritdoc
* Magic PHP method. Besides parent logic the method adds magic properties `as{Format}`.
*/
public function __isset($name)
{
if (!parent::canGetProperty($name, false) && $this->hasFileAttribute($name)) {
return true;
}
return parent::__isset($name);
}