コード例 #1
0
 /**
  * Returns true if user exists for the email id or user id,
  * else it return false.
  *
  * @access private
  * @param string $email [Email address]
  * @param null   $id    [User Id]
  * @return bool
  */
 private function _isExists($email, $id = null)
 {
     //Log info
     Noobh_Log::info(__CLASS__ . '::' . __FUNCTION__ . 'Checks user exists for email : ' . $email);
     return $this->getUserBy($email, $id);
 }
コード例 #2
0
 /**
  * Checks if address exists for the user id,
  * else it returns false.
  *
  * @access private
  * @param null $userId [Models_User id]
  * @param null $id     [Models_Address id]
  * @return bool
  */
 private function _isExists($userId = null, $id = null)
 {
     //Log info
     Noobh_Log::info(__CLASS__ . '::' . __FUNCTION__ . 'Checks user exists for userid : ' . $userId);
     return $this->getAddressBy($userId, $id);
 }