Esempio n. 1
0
File: form.php Progetto: pr1001/CAP
 /**
  * setCallbacks function.
  * 
  * Loop through all the elements and register all provided closures with the underlying CAP system.
  *
  * @access protected
  * @return void
  */
 protected function setCallbacks()
 {
     foreach ($this->elements as $element) {
         if (array_key_exists('closure', $element->toArray()) && !is_null($element['closure'])) {
             CAP::register($element['closure'], $element['name']);
         }
     }
 }