Skip to content

Commit

Permalink
adding a way to change message file for validation errors (refs #43)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeelot committed Aug 21, 2011
1 parent d5d97d3 commit a65fa03
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions classes/minion/task.php
Expand Up @@ -38,6 +38,12 @@ public static function factory($task)
*/
protected $_config = array();

/**
* The file that get's passes to Validation::errors() when validation fails
* @var string|NULL
*/
protected $_errors_file = 'validation';

/**
* Gets the task name for the task
*
Expand Down Expand Up @@ -82,6 +88,16 @@ public function build_validation(Validation $validation)
return $validation;
}

/**
* Returns $_errors_file
*
* @return string|NULL
*/
public function get_errors_file()
{
return $this->_errors_file;
}

/**
* Execute the task with the specified set of config
*
Expand Down

0 comments on commit a65fa03

Please sign in to comment.