本文整理汇总了PHP中AbstractObject::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractObject::__construct方法的具体用法?PHP AbstractObject::__construct怎么用?PHP AbstractObject::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractObject
的用法示例。
在下文中一共展示了AbstractObject::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($array = null, $success = true)
{
parent::__construct($array, $success);
$this->authenticated = false;
$this->verified = false;
$this->ibssoToken = '';
}
示例2: __construct
/**
* Constructor.
*
* @param array $attributes
*/
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->setAttribute('value', 0);
$this->setValueIfAttributeExists('SCRIPT', 1);
$this->setValueIfAttributeExists('ACCOUNTDISABLE', 2);
$this->setValueIfAttributeExists('HOMEDIR_REQUIRED', 8);
$this->setValueIfAttributeExists('LOCKOUT', 16);
$this->setValueIfAttributeExists('PASSWD_NOTREQD', 32);
$this->setValueIfAttributeExists('ENCRYPTED_TEXT_PWD_ALLOWED', 128);
$this->setValueIfAttributeExists('TEMP_DUPLICATE_ACCOUNT', 256);
$this->setValueIfAttributeExists('NORMAL_ACCOUNT', 512);
$this->setValueIfAttributeExists('INTERDOMAIN_TRUST_ACCOUNT', 2048);
$this->setValueIfAttributeExists('WORKSTATION_TRUST_ACCOUNT', 4096);
$this->setValueIfAttributeExists('SERVER_TRUST_ACCOUNT', 8192);
$this->setValueIfAttributeExists('DONT_EXPIRE_PASSWORD', 65536);
$this->setValueIfAttributeExists('MNS_LOGON_ACCOUNT', 131072);
$this->setValueIfAttributeExists('SMARTCARD_REQUIRED', 262144);
$this->setValueIfAttributeExists('TRUSTED_FOR_DELEGATION', 524288);
$this->setValueIfAttributeExists('NOT_DELEGATED', 1048576);
$this->setValueIfAttributeExists('USE_DES_KEY_ONLY', 2097152);
$this->setValueIfAttributeExists('DONT_REQ_PREAUTH', 4194304);
$this->setValueIfAttributeExists('PASSWORD_EXPIRED', 8388608);
$this->setValueIfAttributeExists('TRUSTED_TO_AUTH_FOR_DELEGATION', 16777216);
}
示例3: __construct
public function __construct() {
parent::__construct();
$parameters = $this->initiateParameters();
$this->checkParameters($parameters);
$this->parameters = $parameters;
}
示例4: __construct
public function __construct($name, $publicName = NULL, $required = TRUE, $defaultValue = NULL) {
parent::__construct();
$this->name = $name;
$this->publicName = t(isset($publicName) ? $publicName : $name);
$this->required = $required;
$this->defaultValue = $defaultValue;
}
示例5: __construct
public function __construct($propertyName, $isSortAscending = TRUE)
{
parent::__construct();
$this->propertyName = $propertyName;
$this->isSortAscending = $isSortAscending;
$this->checkPropertyName();
}
示例6: __construct
public function __construct($nType, $sSource, $nPostion = 0, $nLine = 0)
{
parent::__construct($sSource, $nPostion, $nLine);
$this->nType = $nType;
$this->setTokenType($nType);
$this->sType = $this->tokenTypeName();
}
示例7: __construct
public function __construct(AbstractObject $parent, $name = null, $url = null, $email = null)
{
parent::__construct($parent);
$this->name = empty($name) ? null : $name;
$this->url = empty($url) ? null : $url;
$this->email = empty($email) ? null : $email;
}
示例8: __construct
public function __construct(DataSourceHandler $datasourceHandler, AbstractQueryRequest $request, $columnName)
{
parent::__construct();
$this->datasourceHandler = $datasourceHandler;
$this->request = $request;
$this->columnName = $columnName;
}
示例9: __construct
public function __construct($select, $from, $where, $groupBy, $having) {
parent::__construct();
$this->select = $select;
$this->from = $from;
$this->where = $where;
$this->groupBy = $groupBy;
$this->having = $having;
}
示例10: __construct
public function __construct(array $data = NULL, $keyColumnNames = NULL, $columnPrefix = NULL, $columnSuffix = NULL)
{
parent::__construct();
$this->keyColumnNames = ArrayHelper::toArray($keyColumnNames);
$this->columnPrefix = $columnPrefix;
$this->columnSuffix = $columnSuffix;
$this->data = $data;
}
示例11: __construct
public function __construct(DateTime $datetime)
{
parent::__construct();
if ($datetime === FALSE) {
throw new IllegalArgumentException(t('Invalid date and/or time value'));
}
$this->datetime = $datetime;
}
示例12: __construct
public function __construct($prefix, CacheHandler $handler, $allowCopyInLocalCache)
{
parent::__construct();
$this->prefix = $prefix;
$this->handler = $handler;
if ($allowCopyInLocalCache) {
$this->localCacheHandler = new InMemoryCacheHandler($prefix);
}
}
示例13: __construct
public function __construct(AbstractObject $parent, $data, $required = false)
{
parent::__construct($parent);
$type = self::words_shift($data);
$this->name = self::words_shift($data);
$this->description = $data;
$this->required = (bool) $required;
$this->schema = new Schema($this, $type);
}
示例14: __construct
public function __construct($attributes_)
{
parent::__construct($attributes_);
if (!$this->is_valid()) {
return;
}
$this->id = $attributes_['id'];
$this->status = $attributes_['status'];
}
示例15: __construct
public function __construct(AbstractObject $parent, $type, $description = null)
{
parent::__construct($parent);
$this->type = strtolower($type);
if (!in_array($this->type, array('string', 'number', 'integer', 'boolean', 'array'))) {
throw new \SwaggerGen\Exception('Header type not valid: ' . $type);
}
$this->description = $description;
}