Esempio n. 1
0
/** @api */
function keyword($name)
{
    return Keyword::get($name);
}
 /**
  * Display a listing of the resource. (as JSON)
  *
  * @return Response
  */
 public function index()
 {
     //return Response::json(Route::input());
     return Response::json(Keyword::get());
 }
Esempio n. 3
0
function convert_assoc_to_map($assoc)
{
    $map = new Map();
    foreach ($assoc as $key => $value) {
        $map[Keyword::get($key)] = $value;
    }
    return $map;
}