コード例 #1
0
ファイル: Log.php プロジェクト: fiesta-framework/Kernel
 protected static function TraceTabulation()
 {
     $tab = self::getTime(DateTime::now()) . " Trace : ";
     $txt = "";
     for ($i = 0; $i < Strings::lenght($tab); $i++) {
         $txt .= " ";
     }
     return $txt . " ";
 }
コード例 #2
0
ファイル: Core.php プロジェクト: fiesta-framework/Panel
 public static function getPath()
 {
     $rPath = "";
     $paths = Strings::splite(self::$path, "/");
     for ($i = 0; $i < count($paths) - 1; $i++) {
         $rPath .= $paths[$i] . "/";
     }
     //
     return $rPath;
 }
コード例 #3
0
ファイル: BelongsTo.php プロジェクト: fiesta-framework/Kernel
 /**
  * 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";
 }
コード例 #4
0
ファイル: Routes.php プロジェクト: fiesta-framework/Kernel
 /**
  * splite commande string with '@'
  */
 protected static function spliteStringCallback($string)
 {
     $data = Strings::splite($string, "@");
     return array('controller' => $data[0], 'methode' => $data[1]);
 }