Exemplo n.º 1
0
 /**
  * Gets the model types based on an array, string, or null type value.
  *
  * @param   string|array|null
  * @return  array
  */
 private function getTypes($type = null)
 {
     if (null === $type) {
         return $this->mf->getAllTypeNames();
     }
     return (array) $type;
 }
Exemplo n.º 2
0
 /**
  * Returns the available type keys from the MetadataFactory
  *
  * @return  array
  */
 public function getModelTypes()
 {
     return $this->mf->getAllTypeNames();
 }