本文整理汇总了PHP中TikiLib::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP TikiLib::__construct方法的具体用法?PHP TikiLib::__construct怎么用?PHP TikiLib::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TikiLib
的用法示例。
在下文中一共展示了TikiLib::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CalRecurrence
/**
* @param $param
*/
public function CalRecurrence($param = -1)
{
parent::__construct();
if ($param > 0) {
$this->setId($param);
}
$this->load();
}
示例2:
function __construct()
{
parent::__construct();
$this->surveysTable = $this->table('tiki_surveys');
$this->questionsTable = $this->table('tiki_survey_questions');
$this->optionsTable = $this->table('tiki_survey_question_options');
$this->votesTable = $this->table('tiki_user_votings');
}
示例3: array
function __construct()
{
parent::__construct();
// Initialize caches
$this->usergroups_cache = array();
$this->groupperm_cache = array(array());
$this->groupinclude_cache = array();
$this->get_object_permissions_for_user_cache = array();
}
示例4: phpinfo
/**
*
*/
function __construct()
{
parent::__construct();
global $prefs;
$exts = get_loaded_extensions();
// Which GD Version do we have?
if (in_array('gd', $exts)) {
$this->havegd = true;
if (function_exists("gd_info")) {
$this->gdinfo = gd_info();
preg_match("/[0-9]+\\.[0-9]+/", $this->gdinfo["GD Version"], $gdversiontmp);
$this->gdversion = $gdversiontmp[0];
} else {
//next try
ob_start();
phpinfo(INFO_MODULES);
if (preg_match('/GD Version.*2.0/', ob_get_contents())) {
$this->gdversion = "2.0";
} else {
// I have no experience ... maybe someone knows better
$this->gdversion = "1.0";
}
$this->gdinfo["JPG Support"] = preg_match('/JPE?G Support.*enabled/', ob_get_contents());
$this->gdinfo["PNG Support"] = preg_match('/PNG Support.*enabled/', ob_get_contents());
$this->gdinfo["GIF Create Support"] = preg_match('/GIF Create Support.*enabled/', ob_get_contents());
$this->gdinfo["WBMP Support"] = preg_match('/WBMP Support.*enabled/', ob_get_contents());
$this->gdinfo["XBM Support"] = preg_match('/XBM Support.*enabled/', ob_get_contents());
ob_end_clean();
}
} else {
$this->havegd = false;
}
// Do we have the imagick PECL module?
// Module can be downloaded at http://pecl.php.net/package/imagick
// Also check on 'imagick_rotate' function because the first check may detect imagick 2.x which has a completely different API
if (in_array('imagick', $exts) && function_exists('imagick_rotate')) {
$this->haveimagick = true;
} else {
$this->haveimagick = false;
}
//what shall we use?
//$this->uselib = "gd";
$this->uselib = $prefs['gal_use_lib'];
//Fallback to GD
if ($this->uselib == "imagick" && $this->haveimagick == false) {
$this->uselib = "gd";
$this->set_preference('gal_use_lib', 'gd');
}
if ($this->uselib == "imagick") {
$this->canrotate = true;
} else {
$this->canrotate = false;
}
// get variables to determine if we can upload and how many data
// we can upload
$this->file_uploads = ini_get('file_uploads');
$this->upload_max_filesize = ini_get('upload_max_filesize');
$this->post_max_size = ini_get('post_max_size');
if ($this->file_uploads == 0) {
$this->max_img_upload_size = 0;
}
}
示例5: array
function __construct()
{
global $prefs;
parent::__construct();
$this->displayLanguageOrder = array();
}
示例6:
function __construct()
{
parent::__construct();
}