Example #1
0
 /**
  * Overriding this method to inject the active section schema
  *
  * @param mixed $field Set to true to reload schema, or a string to return a specific field
  * @return array Array of table metadata
  */
 public function schema($field = false)
 {
     if (isset($this->activeSectionSchema) && !empty($this->sectionSchema[$this->activeSectionSchema])) {
         return $this->sectionSchema[$this->activeSectionSchema];
     }
     return parent::schema($field);
 }