本文整理汇总了PHP中ModuleModel::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleModel::__construct方法的具体用法?PHP ModuleModel::__construct怎么用?PHP ModuleModel::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleModel
的用法示例。
在下文中一共展示了ModuleModel::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function __construct($path = null)
{
parent::__construct('pathmap', array('path', 'modpage', 'controller', 'action', 'extra', 'wildcard'), 'paths');
if ($path != null) {
$this->get_by_path($path);
}
}
示例2: __construct
/**
* Constructor.
*/
public function __construct(&$request)
{
// Construct the parent class
parent::__construct($request);
// Set the Visualization database variable
$this->vizDb = SqlServerDatabase::getInstance();
// Connect to the Visualization database as a read-only user and as a write user
$this->vizDb->connect(self::DB_CONNECTION_VIZ_READ, self::DB_CONNECTION_VIZ_HOST, self::DB_CONNECTION_VIZ_READ_USER, self::DB_CONNECTION_VIZ_READ_PASS, self::DB_CONNECTION_VIZ_DB);
$this->vizDb->connect(self::DB_CONNECTION_VIZ_WRITE, self::DB_CONNECTION_VIZ_HOST, self::DB_CONNECTION_VIZ_WRITE_USER, self::DB_CONNECTION_VIZ_WRITE_PASS, self::DB_CONNECTION_VIZ_DB);
}
示例3: __construct
/**
* Constructor.
*
* @param RequestModel $request Request model
*/
public function __construct(&$request)
{
// Construct the parent class
parent::__construct($request);
$this->prepareVisualization();
}
示例4: array
function __construct()
{
parent::__construct('sitemenus', array('menuName', 'description'), 'menus');
}
示例5: array
function __construct()
{
parent::__construct('sitemenus', array('itemName', 'path', 'menu', 'parentItem', 'weight', 'newWindow'), 'menuitems');
}
示例6: array
function __construct()
{
parent::__construct('blog', array('title', 'body', 'locked', 'user'), 'blogs');
}