當前位置: 首頁>>代碼示例>>PHP>>正文


PHP file_info::__construct方法代碼示例

本文整理匯總了PHP中file_info::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP file_info::__construct方法的具體用法?PHP file_info::__construct怎麽用?PHP file_info::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在file_info的用法示例。


在下文中一共展示了file_info::__construct方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($browser, $course, $cm, $context, $areas, $filearea) {
     parent::__construct($browser, $context);
     $this->course   = $course;
     $this->cm       = $cm;
     $this->areas    = $areas;
     $this->filearea = $filearea;
 }
開發者ID:JP-Git,項目名稱:moodle,代碼行數:7,代碼來源:fileinfolib.php

示例2: __construct

 public function __construct($browser, $course, $cm, $context, $areas)
 {
     global $DB;
     parent::__construct($browser, $context);
     $this->course = $course;
     $this->cm = $cm;
     $this->areas = $areas;
 }
開發者ID:ajv,項目名稱:Offline-Caching,代碼行數:8,代碼來源:file_info_module.php

示例3: __construct

 public function __construct($browser, $context, $storedfile, $urlbase, $topvisiblename, $itemidused, $readaccess, $writeaccess, $areaonly)
 {
     parent::__construct($browser, $context);
     $this->lf = $storedfile;
     $this->urlbase = $urlbase;
     $this->topvisiblename = $topvisiblename;
     $this->itemidused = $itemidused;
     $this->readaccess = $readaccess;
     $this->writeaccess = $writeaccess;
     $this->areaonly = $areaonly;
 }
開發者ID:ajv,項目名稱:Offline-Caching,代碼行數:11,代碼來源:file_info_stored.php

示例4: __construct

 public function __construct($browser, $context)
 {
     global $DB, $USER;
     parent::__construct($browser, $context);
     $userid = $context->instanceid;
     if ($userid == $USER->id) {
         $this->user = $USER;
     } else {
         // if context exists user record should exist too ;-)
         $this->user = $DB->get_record('user', array('id' => $userid));
     }
 }
開發者ID:ajv,項目名稱:Offline-Caching,代碼行數:12,代碼來源:file_info_user.php

示例5: __construct

 public function __construct($browser, $context, $course, $cm, $modname)
 {
     global $CFG;
     parent::__construct($browser, $context);
     $this->course = $course;
     $this->cm = $cm;
     $this->modname = $modname;
     include_once "{$CFG->dirroot}/mod/{$modname}/lib.php";
     //find out all supported areas
     $functionname = 'mod_' . $modname . '_get_file_areas';
     $functionname_old = $modname . '_get_file_areas';
     if (function_exists($functionname)) {
         $this->areas = $functionname($course, $cm, $context);
     } else {
         if (function_exists($functionname_old)) {
             $this->areas = $functionname_old($course, $cm, $context);
         } else {
             $this->areas = array();
         }
     }
     unset($this->areas['intro']);
     // hardcoded, ignore attempts to override it
 }
開發者ID:vuchannguyen,項目名稱:web,代碼行數:23,代碼來源:file_info_context_module.php

示例6: __construct

 /**
  * Constructor
  *
  * @param file_browser $browser file browser instance
  * @param stdClass $context context object
  * @param stdClass $course course object
  * @param file_info_context_course $courseinfo file info instance
  */
 public function __construct($browser, $context, $course, file_info_context_course $courseinfo)
 {
     parent::__construct($browser, $context);
     $this->course = $course;
     $this->courseinfo = $courseinfo;
 }
開發者ID:nmicha,項目名稱:moodle,代碼行數:14,代碼來源:file_info_context_course.php

示例7: __construct

 public function __construct($browser, $context, $course)
 {
     global $DB;
     parent::__construct($browser, $context);
     $this->course = $course;
 }
開發者ID:nicolasconnault,項目名稱:moodle2.0,代碼行數:6,代碼來源:file_info_course.php

示例8: __construct

 /**
  * Constructor (in case you did not realize it ;-)
  *
  * @param file_browser $browser
  * @param stdClass $course
  * @param stdClass $cm
  * @param stdClass $context
  * @param array $areas
  * @param string $filearea
  */
 public function __construct($browser, $course, $cm, $context, $areas, $filearea)
 {
     parent::__construct($browser, $context);
     $this->browser = $browser;
     $this->course = $course;
     $this->cm = $cm;
     $this->component = 'mod_data';
     $this->context = $context;
     $this->areas = $areas;
     $this->filearea = $filearea;
 }
開發者ID:tyleung,項目名稱:CMPUT401MoodleExams,代碼行數:21,代碼來源:locallib.php

示例9: __construct

 /**
  * Constructor
  *
  * @param file_browser $browser file browser instance
  * @param stdClass $context context object
  * @param stdClass $category category object
  */
 public function __construct($browser, $context, $category)
 {
     parent::__construct($browser, $context);
     $this->category = $category;
 }
開發者ID:masaterutakeno,項目名稱:MoodleMobile,代碼行數:12,代碼來源:file_info_context_coursecat.php

示例10: __construct

 /**
  * Constructor
  *
  * @param file_browser $browser
  * @param stdClass $context
  * @param stdClass $user
  */
 public function __construct($browser, $context, $user)
 {
     parent::__construct($browser, $context);
     $this->user = $user;
 }
開發者ID:numbas,項目名稱:moodle,代碼行數:12,代碼來源:file_info_context_user.php

示例11: __construct

 /**
  * Constructor
  *
  * @param file_browser $browser file_browser instance
  * @param stdClass $context context object
  */
 public function __construct($browser, $context)
 {
     parent::__construct($browser, $context);
 }
開發者ID:pzhu2004,項目名稱:moodle,代碼行數:10,代碼來源:file_info_context_system.php

示例12: __construct

 public function __construct($browser)
 {
     parent::__construct($browser, get_context_instance(CONTEXT_SYSTEM));
 }
開發者ID:ajv,項目名稱:Offline-Caching,代碼行數:4,代碼來源:file_info_system.php


注:本文中的file_info::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。