Esempio n. 1
0
 public function getPageEditingRoles()
 {
     $roots = new Roots();
     $arr = $roots->getPageEditingRoles();
     $result = array();
     $i = 0;
     foreach ($arr as $type) {
         $item = new \stdClass();
         $item->id = $i;
         $item->value = $type;
         $result[] = $item;
         $i++;
     }
     return json_encode($result);
 }