コード例 #1
0
ファイル: loaders.php プロジェクト: gabrielrosset/moodle
 /**
  * Alters the identifiers that have been provided to the definition.
  *
  * This is an advanced method and should not be used unless really needed.
  * It allows the developer to slightly alter the definition without having to re-establish the cache.
  * It will cause more processing as the definition will need to clear and reprepare some of its properties.
  *
  * @param array $identifiers
  */
 public function set_identifiers(array $identifiers)
 {
     if ($this->definition->set_identifiers($identifiers)) {
         // As static acceleration uses input keys and not parsed keys
         // it much be cleared when the identifier set is changed.
         $this->staticaccelerationarray = array();
         if ($this->staticaccelerationsize !== false) {
             $this->staticaccelerationkeys = array();
             $this->staticaccelerationcount = 0;
         }
     }
 }
コード例 #2
0
 /**
  * Alters the identifiers that have been provided to the definition.
  *
  * This is an advanced method and should not be used unless really needed.
  * It allows the developer to slightly alter the definition without having to re-establish the cache.
  * It will cause more processing as the definition will need to clear and reprepare some of its properties.
  *
  * @param array $identifiers
  */
 public function set_identifiers(array $identifiers)
 {
     $this->definition->set_identifiers($identifiers);
 }