コード例 #1
0
ファイル: TypeIndexPage.php プロジェクト: daspete/labcoat
 public function __construct(TypeInterface $type)
 {
     $this->partial = $type->getSlug() . '-all';
     $this->path = $type->getPath();
 }
コード例 #2
0
ファイル: Type.php プロジェクト: daspete/labcoat
 public function __construct(SourceTypeInterface $type)
 {
     $this->name = $type->getPath();
 }
コード例 #3
0
ファイル: Navigation.php プロジェクト: daspete/labcoat
 public function addType(SourceType $type)
 {
     $name = $this->getTypeFromPath($type->getPath());
     $this->types[$name] = new Type($type);
     ksort($this->types);
 }