当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractObject类代码示例

本文整理汇总了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;
 }
开发者ID:nekrasovdmytro,项目名称:AbstractIterator,代码行数:14,代码来源:ObjectList.php

示例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;
 }
开发者ID:reisystems-india,项目名称:GovDashboard-Community,代码行数:7,代码来源:OperatorHandler.php

示例3: __destruct

 /**
  * Destructor.
  */
 public function __destruct()
 {
     $this->dimesions = NULL;
     $this->factors = NULL;
     $this->data = NULL;
     parent::__destruct();
 }
开发者ID:EdenChan,项目名称:Instances,代码行数:10,代码来源:MultiDimensionalArray.php

示例4: __construct

 public function __construct(DataSourceHandler $datasourceHandler, AbstractQueryRequest $request, $columnName)
 {
     parent::__construct();
     $this->datasourceHandler = $datasourceHandler;
     $this->request = $request;
     $this->columnName = $columnName;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:7,代码来源:SQL_AbstractPreviousOperatorHandler.php

示例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();
 }
开发者ID:JeCat,项目名称:framework,代码行数:7,代码来源:Token.php

示例6: __construct

 public function __construct($propertyName, $isSortAscending = TRUE)
 {
     parent::__construct();
     $this->propertyName = $propertyName;
     $this->isSortAscending = $isSortAscending;
     $this->checkPropertyName();
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:7,代码来源:PropertyBasedComparator.php

示例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);
 }
开发者ID:HarkiratGhotra,项目名称:application,代码行数:30,代码来源:AccountControl.php

示例8: __construct

 public function __construct($array = null, $success = true)
 {
     parent::__construct($array, $success);
     $this->authenticated = false;
     $this->verified = false;
     $this->ibssoToken = '';
 }
开发者ID:kelvinmbwilo,项目名称:cervical,代码行数:7,代码来源:OneApiAuthentication.class.php

示例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()));
 }
开发者ID:skystebnicki,项目名称:PHPSwaggerGen,代码行数:7,代码来源:Path.php

示例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;
 }
开发者ID:xavocvijay,项目名称:atkschool,代码行数:26,代码来源:AbstractView.php

示例11: __construct

    public function __construct() {
        parent::__construct();
        $parameters = $this->initiateParameters();
        $this->checkParameters($parameters);

        $this->parameters = $parameters;
    }
开发者ID:reisystems-india,项目名称:GovDashboard-Community,代码行数:7,代码来源:AbstractOperatorHandler.php

示例12:

 function __clone()
 {
     parent::__clone();
     if ($this->model) {
         $this->model = clone $this->model;
     }
 }
开发者ID:respond,项目名称:atk4,代码行数:7,代码来源:AbstractController.php

示例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;
 }
开发者ID:reisystems-india,项目名称:GovDashboard-Community,代码行数:8,代码来源:Statement.php

示例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;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:8,代码来源:JoinController.php

示例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;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:8,代码来源:DateDataTypeHandler.php


注:本文中的AbstractObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。