function __construct($path = null) { parent::__construct('pathmap', array('path', 'modpage', 'controller', 'action', 'extra', 'wildcard'), 'paths'); if ($path != null) { $this->get_by_path($path); } }
/** * 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); }
/** * Constructor. * * @param RequestModel $request Request model */ public function __construct(&$request) { // Construct the parent class parent::__construct($request); $this->prepareVisualization(); }
function __construct() { parent::__construct('sitemenus', array('menuName', 'description'), 'menus'); }
function __construct() { parent::__construct('roles', array('role', 'enabled'), 'roles'); }
function __construct() { parent::__construct('sitemenus', array('itemName', 'path', 'menu', 'parentItem', 'weight', 'newWindow'), 'menuitems'); }
function __construct() { parent::__construct('users', array('user', 'role'), 'roles'); }
function __construct() { parent::__construct('users', array('display', 'email', 'encpwd', 'status', 'banned', 'forcepwdreset'), 'users'); }
function __construct() { parent::__construct('roles', array('permission', 'role'), 'moduleperms'); }
function __construct() { parent::__construct('blog', array('title', 'body', 'locked', 'user'), 'blogs'); }