public static function select_user_roles() { $roles = array(0 => LL('cms::form.select', CMSLANG)); $data = self::where('level', '<=', ROLE)->get(); foreach ($data as $role) { $roles[$role->id] = ucfirst(LABEL('cms::role.', $role->name)); } return $roles; }
public static function select_extra_id() { $extras = Config::get('cms::settings.extra_id'); $ext = array(); foreach ($extras as $key => $value) { $ext[$key] = ucfirst(LABEL('cms::label.', $value)); } return $ext; }