Ejemplo n.º 1
0
 /**
  * Set Cell_DataValidation Error
  * @param PHPExcel_Cell_DataValidation $Validator [description]
  * @param string                        $title     [description]
  * @param string                        $body      [description]
  * @return PHPExcel_Cell_DataValidation
  */
 public function setError(\PHPExcel_Cell_DataValidation $Validator, $title, $body = ' ')
 {
     $Validator->setShowErrorMessage(true);
     if ($title && $body) {
         $Validator->setErrorTitle($title);
         $Validator->setError($body);
     } else {
         $Validator->setError($title);
     }
     return $Validator;
 }