public getRuleByUid ( string $uid ) : Ingo_Rule | ||
$uid | string | Rule UID. |
리턴 | Ingo_Rule | The rule object (null if not found). |
public function getRuleByUid($uid)
{
$this->_load();
foreach ($this->_rules as $val) {
if ($val->uid == $uid) {
return $val;
}
}
return null;
}