Skip to content

Commit

Permalink
refs #1753 - add - restrict method
Browse files Browse the repository at this point in the history
 - Works same as setQualiferXXX
 - Determines whether the call requires one qualifier / multiple qualifiers, and pass the arguments to proper method.
  • Loading branch information
inureyes committed May 5, 2015
1 parent 06395bc commit 8113d56
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions framework/data/DBModel.php
Expand Up @@ -681,6 +681,15 @@ public function getStructure() {
return $this->structure;
}

public function restrict() {
$args = func_get_args();
if (is_array($args[0])) {
return $this->setQualifierSet($args);
} else {
return $this->setQualifier($args);
}
}

/* Private methods */
private function _getTableName($table = null) {
if (is_null($table)) {
Expand Down

0 comments on commit 8113d56

Please sign in to comment.