コード例 #1
0
ファイル: Sluggable.php プロジェクト: Konro1/pms
 public function model_call_matches_slug_insist(Jam_Model $model, Jam_Event_Data $data, $slug)
 {
     if (!$model->matches_slug($slug)) {
         throw new Jam_Exception_Slugmismatch("Stale slug :slug for model :model ", $model, $slug);
     }
     $data->return = TRUE;
 }