Пример #1
0
 public static function getFieldName($id)
 {
     self::initFields();
     if (isset(self::$infoFields[$id])) {
         return self::$infoFields[$id];
     } else {
         return CrayonUserResource::clean_name($id);
     }
 }
 function __construct($id, $name = NULL, $version = NULL)
 {
     parent::__construct($id, $name);
     $this->version($version);
 }
 public function resource_instance($id, $name = NULL)
 {
     $resource = new CrayonUserResource($id, $name);
     $resource->user($this->curr_dir == $this->user_directory());
     return $resource;
 }