本文整理汇总了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);
}
}
示例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();
}
示例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();
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->name = "";
$this->address = "";
$this->port = 0;
$this->capacity = 0;
$this->type = new ServerType();
}
示例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();
}
示例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();
}
示例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);
}
}
示例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);
}
}
示例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'];
}
示例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);
}
}
示例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();
}
示例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);
}
示例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');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->category = new ForumCategory();
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->name = "";
}