本文整理汇总了PHP中Loader::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Loader::__construct方法的具体用法?PHP Loader::__construct怎么用?PHP Loader::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Loader
的用法示例。
在下文中一共展示了Loader::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($db, $strFilePath)
{
parent::__construct($db, $strFilePath);
$this->arCodeMap = array(2, 3, 6);
$this->arCodeConformity = array(Loader::CodeRegionField => 0, Loader::CodeDistrictField => 1, Loader::CodeLocalityField => 2, Loader::CodeStreetField => -1, Loader::CodeBuildingField => -1);
$this->arFieldConformity = array(Loader::IdField => 2, Loader::NameField => 0, Loader::ZipCodeField => 3, Loader::TypeShortField => 1, Loader::OkatoCodeField => 6);
}
示例2:
function __construct($root)
{
parent::__construct($root);
$this->setFileExtension("js");
$this->setCoresPath("javascripts/cores/");
$this->setPluginsPath("javascripts/plugins/");
}
示例3: __construct
public function __construct($_variables)
{
$this->loadClassVariables($_variables);
parent::__construct();
$this->getMagentoCategegories();
}
示例4: __construct
public function __construct()
{
parent::__construct('model/');
}
示例5:
function __construct($path, $recursive = true)
{
$this->_recursive = $recursive;
parent::__construct($path);
}
示例6: __construct
/**
* Class constructor
*
* @param string $query Query string
*/
public function __construct($query)
{
$options = is_string($query) ? compact('query') : $query;
parent::__construct($options);
}
示例7:
function __construct($root)
{
parent::__construct($root);
$this->setFileExtension("css");
$this->setCoresPath("stylesheets/");
}
示例8: Controller
/** PHP4 compatibility **/
public function Controller()
{
parent::__construct();
/* set the loader */
$this->load = $this;
/* the module name */
$this->_module = Router::$path;
$class = strtolower(get_class($this));
log_message('debug', ucfirst($class) . " Controller Initialized");
/* register this controller */
Modules::$registry[$class] = $this;
/* autoload module items */
$autoload = isset($this->autoload) ? $this->autoload : array();
$this->_ci_autoloader($autoload);
}