Skip to content

Commit

Permalink
Removed addRule
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirupsen committed Dec 6, 2009
1 parent 592ede7 commit 1595c26
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions system/libraries/validation.php
Expand Up @@ -20,19 +20,6 @@ public function __construct($input) {
$this->input = $input;
}

public function addRule($field, $rules) {
// Get all rules
$rules = func_get_args();
// Slice them up
$rules = array_slice($rules, 1);

// For each of our rules, add it to our rule variable
foreach ($rules as $rule) {
// Add the rule with it's arguments
$this->rules[$field][] = $rule;
}
}

public function addRules($field) {
$this->rules = $field;
}
Expand Down

0 comments on commit 1595c26

Please sign in to comment.