本文整理汇总了PHP中AbstractObject类的典型用法代码示例。如果您正苦于以下问题:PHP AbstractObject类的具体用法?PHP AbstractObject怎么用?PHP AbstractObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AbstractObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: remove
public function remove(AbstractObject $object)
{
$flag = false;
foreach ($this->objects as $k => $v) {
if ($v->getId() == $object->getId()) {
unset($this->objects[$k]);
$flag = !$flag;
$k != $this->getCount() && $this->pushBackObjects($k);
$this->index--;
break;
}
}
return $flag;
}
示例2: __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;
}
示例3: __destruct
/**
* Destructor.
*/
public function __destruct()
{
$this->dimesions = NULL;
$this->factors = NULL;
$this->data = NULL;
parent::__destruct();
}
示例4: __construct
public function __construct(DataSourceHandler $datasourceHandler, AbstractQueryRequest $request, $columnName)
{
parent::__construct();
$this->datasourceHandler = $datasourceHandler;
$this->request = $request;
$this->columnName = $columnName;
}
示例5: __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();
}
示例6: __construct
public function __construct($propertyName, $isSortAscending = TRUE)
{
parent::__construct();
$this->propertyName = $propertyName;
$this->isSortAscending = $isSortAscending;
$this->checkPropertyName();
}
示例7: __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);
}
示例8: __construct
public function __construct($array = null, $success = true)
{
parent::__construct($array, $success);
$this->authenticated = false;
$this->verified = false;
$this->ibssoToken = '';
}
示例9: toArray
public function toArray()
{
uksort($this->operations, function ($a, $b) {
return array_search($a, self::$methods) - array_search($b, self::$methods);
});
return self::array_filter_null(array_merge(self::array_toArray($this->operations), parent::toArray()));
}
示例10: setModel
/** Associate view with a model. Different models may behave differently. */
function setModel($model, $actual_fields = undefined)
{
parent::setModel($model);
// Some models will want default controller to be associated
if ($this->model->default_controller) {
$this->controller = $this->model->setController($this->model->default_controller);
}
// Use our default controller if present
if ($this->default_controller) {
$this->controller = $this->setController($this->default_controller);
}
if ($this->controller) {
if ($this->controller->hasMethod('setActualFields')) {
$this->controller->setActualFields($actual_fields);
}
if ($this->controller->hasMethod('_bindView')) {
$this->controller->_bindView();
}
}
if ($this->model instanceof Model_Table) {
$this->dq = $this->model->_dsql();
}
// compatibility
return $this->model;
}
示例11: __construct
public function __construct() {
parent::__construct();
$parameters = $this->initiateParameters();
$this->checkParameters($parameters);
$this->parameters = $parameters;
}
示例12:
function __clone()
{
parent::__clone();
if ($this->model) {
$this->model = clone $this->model;
}
}
示例13: __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;
}
示例14: __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;
}
示例15: __construct
public function __construct(DateTime $datetime)
{
parent::__construct();
if ($datetime === FALSE) {
throw new IllegalArgumentException(t('Invalid date and/or time value'));
}
$this->datetime = $datetime;
}