Exemplo n.º 1
0
 /**
  * getValidFields
  *
  * @param mixed   $str Description.
  *
  * @access private
  *
  * @return mixed Value.
  */
 private function getValidFields($str)
 {
     $str = ltrim($str);
     if (!isset(self::$post[$str]) || gettype(self::$post[$str]) != 'string') {
         $error = "Error: <b class='missing'> {strtoupper({$str})} </b> does not exist, here is the list of received <b>" . "{count(self::post)}</b> variables:<br />" . implode('<br />', array_keys(self::$post)) . "<br />While it should receive those <b>" . count($this->aFields) . "</b> variables:<br />" . implode('<br />', $this->aFields);
         Extras::wrap($error, "div", "error");
     }
     return self::$post[$str];
 }