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


PHP BaseObject::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($pa_value_array = null)
 {
     parent::__construct();
     if (is_array($pa_value_array)) {
         $this->loadValueFromRow($pa_value_array);
     }
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:7,代码来源:AttributeValue.php

示例2: __construct

 /**
  * Instantiate Domain Object with name
  *
  * @param string $name
  */
 public function __construct($name)
 {
     $this->name = $name;
     $this->dsRecords = array();
     $this->nameservers = array();
     parent::__construct();
 }
开发者ID:netkicorp,项目名称:php-partner-api-client,代码行数:12,代码来源:Domain.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->opo_config = Configuration::load();
     $this->opo_type_config = Configuration::load($this->opo_config->get('annotation_type_config'));
     $this->opa_type_info = $this->opo_type_config->getAssoc('types');
     $this->opa_property_values = array();
 }
开发者ID:guaykuru,项目名称:pawtucket,代码行数:8,代码来源:BaseRepresentationAnnotationCoder.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->name = "";
     $this->address = "";
     $this->port = 0;
     $this->capacity = 0;
     $this->type = new ServerType();
 }
开发者ID:jordsti,项目名称:ark-dedi-web,代码行数:9,代码来源:Server.php

示例5: __construct

 public function __construct()
 {
     $this->types = array_keys($this->hierarchy);
     $this->class = get_class($this);
     $this->childClass = @$this->types[1 + array_search($this->class, $this->types)];
     $this->debug = isset($this->debug) ? $this->debug : 'BId';
     $this->isQueryResult = false;
     parent::__construct();
 }
开发者ID:therealchiko,项目名称:getchabooks,代码行数:9,代码来源:Spiderable.php

示例6: __construct

 /**
  * Instantiate WalletName object
  *
  * @param string $domainName
  * @param string $name
  * @param string $externalId
  * @param string $id
  * @param array $wallets
  */
 public function __construct($domainName, $name, $externalId, $id = null, $wallets = array())
 {
     $this->domainName = $domainName;
     $this->name = $name;
     $this->externalId = $externalId;
     $this->id = $id;
     $this->wallets = $wallets;
     parent::__construct();
 }
开发者ID:netkicorp,项目名称:php-partner-api-client,代码行数:18,代码来源:WalletName.php

示例7: __construct

 public function __construct($po_request = null, $po_response = null)
 {
     parent::__construct();
     if ($po_request) {
         $this->setRequest($po_request);
     }
     if ($po_response) {
         $this->setResponse($po_response);
     }
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:10,代码来源:RequestDispatcher.php

示例8: __construct

 public function __construct($po_request, $pm_path = null, $ps_character_encoding = 'UTF8')
 {
     parent::__construct();
     $this->opo_request = $po_request;
     $this->opa_view_paths = array();
     $this->opa_view_vars = array();
     $this->opo_appconfig = Configuration::load();
     $this->ops_character_encoding = $ps_character_encoding;
     if ($pm_path) {
         $this->setViewPath($pm_path);
     }
 }
开发者ID:guaykuru,项目名称:pawtucket,代码行数:12,代码来源:View.php

示例9: Eventlog

 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->opo_config = Configuration::load();
     if ($vs_default_dir = trim($this->opo_config->get("taskqueue_handler_plugins"))) {
         $this->opa_handler_plugin_dirs[] = $vs_default_dir;
     }
     $this->opo_eventlog = new Eventlog();
     $this->opo_processes = new ProcessStatus();
     $this->opo_app_plugin_manager = new ApplicationPluginManager();
     // Let application plugins add their own task queue plugin directories
     $va_tmp = $this->opo_app_plugin_manager->hookRegisterTaskQueuePluginDirectories(array('handler_plugin_directories' => $this->opa_handler_plugin_dirs, 'instance' => $this));
     $this->opa_handler_plugin_dirs = $va_tmp['handler_plugin_directories'];
 }
开发者ID:ffarago,项目名称:pawtucket2,代码行数:17,代码来源:TaskQueue.php

示例10: __construct

 /**
  *
  */
 public function __construct($po_request, $pm_path = null, $ps_character_encoding = 'UTF8', $pa_options = null)
 {
     parent::__construct();
     $this->opo_request = $po_request;
     $this->opa_view_paths = array();
     $this->opa_view_vars = array();
     $this->opo_appconfig = Configuration::load();
     $this->ops_character_encoding = $ps_character_encoding;
     if (!$pm_path) {
         $pm_path = array();
     }
     $vs_suffix = null;
     if (!is_array($pm_path)) {
         $pm_path = array($pm_path);
     }
     foreach ($pm_path as $ps_path) {
         // Preserve any path suffix after "views"
         // Eg. if path is /web/myinstall/themes/mytheme/views/bundles then we want to retain "/bundles" on the default path
         $va_suffix_bits = array();
         $va_tmp = array_reverse(explode("/", $ps_path));
         foreach ($va_tmp as $vs_path_element) {
             if ($vs_path_element == 'views') {
                 break;
             }
             array_push($va_suffix_bits, $vs_path_element);
         }
         if ($vs_suffix = join("/", $va_suffix_bits)) {
             $vs_suffix = '/' . $vs_suffix;
             break;
         }
     }
     if (caGetOption('includeDefaultThemePath', $pa_options, true)) {
         $vs_default_theme_path = $po_request->getDefaultThemeDirectoryPath() . '/views' . $vs_suffix;
         if (!in_array($vs_default_theme_path, $pm_path) && !in_array($vs_default_theme_path . '/', $pm_path)) {
             array_unshift($pm_path, $vs_default_theme_path);
         }
     }
     if (sizeof($pm_path) > 0) {
         $this->setViewPath($pm_path);
     }
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:44,代码来源:View.php

示例11: __construct

 /**
  * Instantiate a Partner object
  *
  * @param string $id
  * @param string $name
  */
 public function __construct($id, $name)
 {
     $this->id = $id;
     $this->name = $name;
     parent::__construct();
 }
开发者ID:netkicorp,项目名称:php-partner-api-client,代码行数:12,代码来源:Partner.php

示例12: EventControler

 /**
  * Constructor, create a new instance of an event controler
  * @param object sqlConnect $dbc
  * @access public
  */
 function EventControler($dbc = 0)
 {
     parent::__construct();
     $this->dbc = $dbc;
     if (defined("RADRIA_LOG_RUN_EVENTCONTROLER")) {
         $this->setLogRun(RADRIA_LOG_RUN_EVENTCONTROLER);
     }
     $this->setLog("\n\n Instanciate Event Controler Object " . date("Y/m/d H:i:s"));
     if (!defined("RADRIA_EVENT_SECURE")) {
         define("RADRIA_EVENT_SECURE", true);
     }
     $this->setSecure(RADRIA_EVENT_SECURE);
 }
开发者ID:sQcrm,项目名称:sqcrm,代码行数:18,代码来源:EventControler.class.php

示例13: __construct

 /**
  * Create a new instance.
  *
  * @param Transport $transport The transport.
  */
 public function __construct(Transport $transport)
 {
     parent::__construct($transport);
     // We will use this almost ever?
     $this->setI18nType('XLIFF');
     $this->setSourceLanguageCode('en');
     $this->setMimetype('text/xml');
 }
开发者ID:cyberspectrum,项目名称:contao-toolbox,代码行数:13,代码来源:TranslationResource.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->category = new ForumCategory();
 }
开发者ID:jordsti,项目名称:ark-dedi-web,代码行数:5,代码来源:Forum.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->name = "";
 }
开发者ID:jordsti,项目名称:ark-dedi-web,代码行数:5,代码来源:ServerType.php


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