/** * Return manager instance * * @access protected * @param void * @return UserPasswords */ function manager() { if (!$this->manager instanceof UserPasswords) { $this->manager = UserPasswords::instance(); } return $this->manager; }
/** * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted * * @access public * @param string $conditions Query conditions * @return boolean */ function delete($condition = null) { if (isset($this) && instance_of($this, 'UserPasswords')) { return parent::delete($condition); } else { return UserPasswords::instance()->delete($condition); } // if }