예제 #1
0
파일: Jam.php 프로젝트: Konro1/pms
 /**
  * Filter the $data array by removing everything that does not have a key in the permit array
  * @param  array  $permit array of permitted keys
  * @param  array  $data
  * @return array
  */
 public static function permit(array $permit = array(), array $data = array())
 {
     return Jam_Validator_Attributes::factory($permit)->data($data)->clean();
 }
예제 #2
0
파일: Attributes.php 프로젝트: Konro1/pms
 public function clean()
 {
     return Jam_Validator_Attributes::_clean($this->data(), $this->permit());
 }