/** * @return string[] */ public function getFieldsEditable() { return array_merge(parent::getFieldsEditable(), ['seasonNumber' => 'Season', 'episodeNumberStart' => 'Episode Number', 'title' => 'Episode Title']); }
/** * @param FixtureData $f * * @return array */ private function getEditFixtureTable(FixtureData $f) { $tableRows = []; $control = []; $i = 0; foreach ($f->getFieldsEditable() as $property => $name) { $control[] = [$property, $name]; $tableRows[] = $this->getEditFixtureTableRow($f, $property, $name, $i, true); } foreach ($f->getFieldsStatic() as $property => $name) { $tableRows[] = $this->getEditFixtureTableRow($f, $property, $name, $i, false); } return [['[#] Field', 'Value'], $tableRows, $control]; }
/** * @return string[] */ public function getFieldsEditable() { return parent::getFieldsEditable(); }