コード例 #1
0
ファイル: core.php プロジェクト: vitch/kohana-kadmium
 private function _get_item_name(Jelly_Model $model)
 {
     $name = $model->name();
     if ($name instanceof Jelly_Builder) {
         $name = $name->execute()->name();
     }
     return $name;
 }
コード例 #2
0
ファイル: route.php プロジェクト: netbiel/core
 /**
  * Return model id for routing/URLs
  *
  * @static
  * @param   Jelly_Model  $model
  * @return  string
  */
 public static function model_id(Jelly_Model $model)
 {
     return URL::title($model->id() . ' ' . $model->name());
 }