예제 #1
0
 public function __construct($id = null, $name = null, array $language = null, array $format = null, array $source = null, $category = -1)
 {
     if ($id != null) {
         $this->id = $id;
     } else {
         $this->id = PicnicUtils::random();
     }
     $this->name = $name;
     $this->language = $language;
     $this->format = $format;
     $this->source = $source;
     $this->category = $category;
     $this->created = strtotime(date("Y-m-d"));
 }
예제 #2
0
 public static function stylesheet($src, $media = "all")
 {
     $src = self::assetLink("stylesheets/{$src}");
     $src .= "?v=" . PicnicUtils::random();
     return "<link rel=\"stylesheet\" href=\"{$src}\" media=\"{$media}\" type=\"text/css\" />\n";
 }