示例#1
0
 function verifyVariables($variables)
 {
     //POSSIBLY CHANGE>>>> NOT FINISHIED >>>>
     //Check tabledefs
     if (isset($variables["tabledefid"])) {
         if ($this->_availableTabledefUUIDs === NULL || $this->_availableTabledefNames === NULL) {
             $this->populateTabledefArrays();
         }
         if (in_array((string) $variables["tabledefid"], $this->_availableTabledefUUIDs)) {
             //check recordid
             if (isset($variables["recordid"])) {
                 if ($this->_availableTabledefUUIDs === NULL || $this->_availableTabledefNames === NULL) {
                     $this->populateTabledefArrays();
                 }
                 if (!$this->checkRecordID((string) $variables["recordid"], $this->_availableTabledefNames[$variables["tabledefid"]])) {
                     $this->verifyErrors[] = "The `recordid` field does match an uuid  in " . $this->_availableTabledefNames[$variables["tabledefid"]] . ".";
                 }
             } else {
                 $this->verifyErrors[] = "The `recordid` field must be set.";
             }
         } else {
             $this->verifyErrors[] = "The `tabledefid` field does not give an existing/acceptable table definition uuids.";
         }
     } else {
         $this->verifyErrors[] = "The `tabledefid` field must be set.";
     }
     return parent::verifyVariables($variables);
 }