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


PHP AbstractModel::init方法代码示例

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


在下文中一共展示了AbstractModel::init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 function init()
 {
     parent::init();
     if (method_exists($this, 'defineFields')) {
         throw $this->exception('model->defineField() is obsolete. Change to init()', 'Obsolete')->addMoreInfo('class', get_class($this));
     }
 }
开发者ID:romaninsh,项目名称:atkSchool,代码行数:7,代码来源:Model.php

示例2: init

 function init()
 {
     parent::init();
     $this->soap = new SoapClient($this->owner->url, array('trace' => true, 'exceptions' => true));
     $this->set('ApiKey', $this->owner->key);
     $this->set('ClientID', $this->owner->client);
 }
开发者ID:xavoctechnocratspvtltd,项目名称:svc,代码行数:7,代码来源:generic.php

示例3: init

 function init()
 {
     parent::init();
     $this->setPage(null);
     $this->addStickyArguments();
     $this->extension = $this->api->getConfig('url_postfix', $this->extension);
 }
开发者ID:xavocvijay,项目名称:atkschool,代码行数:7,代码来源:URL.php

示例4: init

 function init()
 {
     parent::init();
     $this->template = $this->add('SMlite');
     $this->template->loadTemplateFromString($this->getXML());
     $timestamp = strftime("%Y%m%d%H%M%S");
     $this->set('orderid', $timestamp . "-" . mt_rand(1, 999));
     $this->set('merchantid', $this->api->getConfig('billing/realex/merchantid'));
     $this->set('timestamp', $timestamp);
     $this->set('account', $this->api->getConfig('billing/realex/account'));
 }
开发者ID:xavoctechnocratspvtltd,项目名称:svc,代码行数:11,代码来源:generic.php

示例5: init

 function init()
 {
     parent::init();
     if (!isset($this->api->pm)) {
         throw $this->exception('You must initialize PageManager first');
     }
     if (!$this->api->pm->base_url) {
         throw $this->exception('PageManager is did not parse request URL. Use either parseRequestedURL or setURL (if you are in CLI application)');
     }
     $this->addStickyArguments();
     $this->extension = $this->api->getConfig('url_postfix', $this->extension);
 }
开发者ID:samratcis,项目名称:atk4,代码行数:12,代码来源:URL.php

示例6: init

 public function init()
 {
     parent::init();
     // Initialize template of this part
     $t = $this->defaultTemplate();
     $this->template = $this->add($this->owner->template_class);
     /** @type TMail_Template $this->template */
     $this->template->loadTemplate($t[0], '.mail');
     if ($t[1]) {
         $this->template = $this->template->cloneRegion($t[1]);
     }
 }
开发者ID:atk4,项目名称:atk4,代码行数:12,代码来源:Part.php

示例7: init

 public function init()
 {
     parent::init();
     /** @type TMail_Template $master_template */
     $master_template = $this->add($this->template_class);
     $master_template->loadTemplate('shared', '.mail');
     $this->template = $master_template->cloneRegion('body');
     $this->headers = $master_template->cloneRegion('headers');
     $this->boundary = str_replace('.', '', uniqid('atk4tmail', true));
     if ($t = $this->app->getConfig('tmail/transport', false)) {
         $this->addTransport($t);
     }
 }
开发者ID:atk4,项目名称:atk4,代码行数:13,代码来源:Basic.php

示例8: init

 /**
  * init
  *
  * @return void
  */
 function init()
 {
     parent::init();
     // first let's see if we authenticate
     if ($this->authenticate === true || $this->authenticate !== false && ($this->hasMethod('authenticate') || $this->app->hasMethod('authenticate'))) {
         $result = false;
         if ($this->hasMethod('authenticate')) {
             $result = $this->authenticate();
         }
         if (!$result && $this->app->hasMethod('authenticate')) {
             $result = $this->app->authenticate();
         }
         if (!$result) {
             throw $this->exception('Authentication Failed', null, 403);
         }
         if (is_object($result)) {
             $this->user = $result;
         }
     }
     $m = $this->_model();
     if ($m) {
         $this->setModel($m);
     }
 }
开发者ID:samratcis,项目名称:atk4,代码行数:29,代码来源:REST.php

示例9: init

 /**
  * Initialization of the object
  *
  * @return void
  */
 function init()
 {
     parent::init();
     $this->debug('ProcessIO initialised, setting descriptor options');
     $this->descriptorspec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w"));
 }
开发者ID:easyconn,项目名称:atk4,代码行数:11,代码来源:ProcessIO.php

示例10: init

 function init()
 {
     parent::init();
     $this->cache =& $this->api->smlite_cache;
     $this->settings = array_merge($this->getDefaultSettings(), $this->api->getConfig('template', array()));
 }
开发者ID:podinacristi,项目名称:lostandfound,代码行数:6,代码来源:GiTemplate.php

示例11: init

 function init()
 {
     parent::init();
     $this->relative_path = $this->short_name;
     if ($this->short_name[0] == '/' || strlen($this->short_name) > 1 && $this->short_name[1] == ':') {
         // Absolute path. Independent from base_location
     } else {
         $this->setParent($this->owner->base_location);
     }
 }
开发者ID:xepan,项目名称:xepan,代码行数:10,代码来源:PathFinder.php

示例12: init

 function init()
 {
     parent::init();
     $this->table_alias = $this->short_name;
 }
开发者ID:TigerBui,项目名称:atk4,代码行数:5,代码来源:Relation.php

示例13: init

 public function init()
 {
     parent::init();
 }
开发者ID:xavoctechnocratspvtltd,项目名称:svc,代码行数:4,代码来源:Model.php

示例14: init

 /**
  * Initialization of the object.
  */
 public function init()
 {
     parent::init();
     $this->debug('ProcessIO initialised, setting descriptor options');
     $this->descriptorspec = array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
 }
开发者ID:atk4,项目名称:atk4,代码行数:9,代码来源:ProcessIO.php

示例15: init

 function init()
 {
     parent::init();
     $path = array();
     $this->cache =& $this->app->smlite_cache;
     $this->settings = $this->getDefaultSettings();
     $this->settings['extension'] = $this->app->getConfig('smlite/extension', '.html');
 }
开发者ID:easyconn,项目名称:atk4,代码行数:8,代码来源:SMlite.php


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