当前位置: 首页>>代码示例>>PHP>>正文


PHP TikiLib::__construct方法代码示例

本文整理汇总了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();
 }
开发者ID:linuxwhy,项目名称:tiki-1,代码行数:11,代码来源:calrecurrence.php

示例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');
 }
开发者ID:rjsmelo,项目名称:tiki,代码行数:8,代码来源:surveylib.php

示例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();
 }
开发者ID:hurcane,项目名称:tiki-azure,代码行数:9,代码来源:userslib.php

示例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;
     }
 }
开发者ID:rjsmelo,项目名称:tiki,代码行数:65,代码来源:imagegallib.php

示例5: array

 function __construct()
 {
     global $prefs;
     parent::__construct();
     $this->displayLanguageOrder = array();
 }
开发者ID:railfuture,项目名称:tiki-website,代码行数:6,代码来源:structlib.php

示例6:

 function __construct()
 {
     parent::__construct();
 }
开发者ID:rjsmelo,项目名称:tiki,代码行数:4,代码来源:cryptlib.php


注:本文中的TikiLib::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。