Esempio n. 1
0
 /**
  * @return string[]
  */
 public function getFieldsEditable()
 {
     return array_merge(parent::getFieldsEditable(), ['seasonNumber' => 'Season', 'episodeNumberStart' => 'Episode Number', 'title' => 'Episode Title']);
 }
Esempio n. 2
0
 /**
  * @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];
 }
Esempio n. 3
0
 /**
  * @return string[]
  */
 public function getFieldsEditable()
 {
     return parent::getFieldsEditable();
 }