• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AbstractObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中AbstractObject的典型用法代码示例。如果您正苦于以下问题:PHP AbstractObject类的具体用法?PHP AbstractObject怎么用?PHP AbstractObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了AbstractObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: setModel

 /**
  * Set model
  *
  * @param Model|string $model
  * @param string|bool $display_field
  *
  * @return Model|$this
  */
 public function setModel($model, $display_field = null)
 {
     if ($model instanceof Model) {
         return AbstractObject::setModel($model);
     }
     $this->model_name = is_string($model) ? $model : get_class($model);
     $this->model_name = (string) $this->app->normalizeClassName($this->model_name, 'Model');
     if ($display_field) {
         $this->display_field = (string) $display_field;
     }
     if ($display_field !== false) {
         $this->owner->addExpression($this->getDereferenced())->set(array($this, 'calculateSubQuery'))->caption((string) $this->caption());
     }
     $this->system(true);
     $this->editable(true);
     $this->visible(false);
     return $this;
 }
开发者ID:atk4,项目名称:atk4,代码行数:26,代码来源:Reference.php


示例3: __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


示例4: __destruct

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


示例5: __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


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


示例7: __construct

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


示例8: __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


示例9: __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


示例10: 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


示例11: 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


示例12: __construct

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

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


示例13:

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


示例14: __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


示例15: __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


示例16: __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


示例17: __clone

 public function __clone()
 {
     parent::__clone();
     $this->cachedPropertyNameMappings = ArrayHelper::cloneArray($this->cachedPropertyNameMappings);
     if (isset($this->parent)) {
         $this->parent = clone $this->parent;
     }
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:8,代码来源:AbstractResultFormatter.php


示例18: __get

 public function __get($name)
 {
     switch ($name) {
         case 'name':
             return $this->description;
     }
     return parent::__get($name);
 }
开发者ID:yamdrok,项目名称:virtualbox-php,代码行数:8,代码来源:os.inc.php


示例19: getTextToDisplay

 /**
  * Retrieve text to display
  * @return string
  */
 public function getTextToDisplay()
 {
     $text = parent::getTextToDisplay();
     if (substr($text, 0, 1) != '*' && substr($text, -1) != '*') {
         return '*' . $text . '*';
     }
     return $text;
 }
开发者ID:liuxuezhan,项目名称:my_tool,代码行数:12,代码来源:Code39.php


示例20: __construct

 public function __construct($attributes_)
 {
     parent::__construct($attributes_);
     if (!$this->is_valid()) {
         return;
     }
     $this->id = $attributes_['id'];
     $this->status = $attributes_['status'];
 }
开发者ID:bloveing,项目名称:openulteo,代码行数:9,代码来源:Session.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP AbstractPage类代码示例发布时间:2022-05-23
下一篇:
PHP AbstractModel类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap