Example #1
0
 /**
  * Validation - Check if entry type is valid
  */
 public function validEntrytype($data)
 {
     $values = array_values($data);
     if (!isset($values)) {
         return false;
     }
     $value = $values[0];
     /* Load the Entrytype model */
     App::import("Webzash.Model", "Entrytype");
     $Entrytype = new Entrytype();
     if ($Entrytype->exists($value)) {
         return true;
     } else {
         return false;
     }
 }