isMulti()) throw new StructException('PublishedColumns can not be multi value types!'); Column::__construct($sort, $type, 0, true, $table); } /** * @return string */ public function getLabel() { return '%published%'; } /** * @param bool $enforceSingleColumn ignored * @return string */ public function getColName($enforceSingleColumn = true) { return 'published'; } /** * @return string preconfigured label */ public function getTranslatedLabel() { /** @var \helper_plugin_struct_config $helper */ $helper = plugin_load('helper', 'struct_config'); return $helper->getLang('publishedlabel'); } }