Ejemplo n.º 1
0
 /**
  * Remove all data from the associative array representation
  * of configurations.
  *
  * Pass each data to the function $f as it is removed if
  * $f is a valid callback.
  * @param callback|null
  */
 public static function Configtable_clear($f)
 {
     if (!count(self::$x4a)) {
         return;
     }
     if ($f) {
         for ($i = 0; $i < count(self::$x4a); $i++) {
             call_user_func($f, self::$x4a[$i]->data);
         }
     }
     self::$x4a = array();
 }