protected static function TraceTabulation() { $tab = self::getTime(DateTime::now()) . " Trace : "; $txt = ""; for ($i = 0; $i < Strings::lenght($tab); $i++) { $txt .= " "; } return $txt . " "; }
public static function getPath() { $rPath = ""; $paths = Strings::splite(self::$path, "/"); for ($i = 0; $i < count($paths) - 1; $i++) { $rPath .= $paths[$i] . "/"; } // return $rPath; }
/** * get the id key of the model from his name * * @param $table : string name of the model */ protected function idKey($table) { return Strings::toLower($table) . "_id"; }
/** * splite commande string with '@' */ protected static function spliteStringCallback($string) { $data = Strings::splite($string, "@"); return array('controller' => $data[0], 'methode' => $data[1]); }