sort = (int) $sort; $this->type = $type; $this->colref = (int) $colref; $this->enabled = (bool) $enabled; } /** * @return int */ public function getSort() { return $this->sort; } /** * @return int */ public function getTid() { return $this->type->getTid(); } /** * @return AbstractBaseType */ public function getType() { return $this->type; } /** * @return int */ public function getColref() { return $this->colref; } /** * @return boolean */ public function isEnabled() { return $this->enabled; } /** * Returns a list of all available types * * @return array */ static public function allTypes() { $types = array(); $files = glob(DOKU_PLUGIN . 'struct/types/*.php'); foreach($files as $file) { $file = basename($file, '.php'); if(substr($file, 0, 8) == 'Abstract') continue; $types[] = $file; } sort($types); return $types; } }