public function isValid($sValue, $mContext = null) { $sValue = (string) $sValue; if (is_array($mContext)) { if (isset($sValue)) { $oModelUserRole = new Admin_Model_UserRole(); $nRoleId = $oModelUserRole->check($sValue); if (!is_numeric($nRoleId)) { return true; } } } $this->_error(self::IS_EXIST); return false; }