* Return the list of pending registrations
*
* @return array
+ * @throws \Exception
*/
public static function getPending()
{
$stmt = DBA::p(
- "SELECT `register`.*, `contact`.`name`, `user`.`email`
+ "SELECT `register`.*, `contact`.`name`, `contact`.`url`, `contact`.`micro`, `user`.`email`
FROM `register`
INNER JOIN `contact` ON `register`.`uid` = `contact`.`uid`
INNER JOIN `user` ON `register`.`uid` = `user`.`uid`"
* Returns the pending registration count
*
* @return int
+ * @throws \Exception
*/
public static function getPendingCount()
{
*
* @param string $hash
* @return array
+ * @throws \Exception
*/
public static function getByHash($hash)
{
/**
* Returns true if a register record exists with the provided hash
*
- * @param string $hash
+ * @param string $hash
* @return boolean
+ * @throws \Exception
*/
public static function existsByHash($hash)
{
* Creates a register record for an invitation and returns the auto-generated code for it
*
* @return string
+ * @throws \Exception
*/
public static function createForInvitation()
{
* @param string $language The registration language
* @param string $note An additional message from the user
* @return boolean
+ * @throws \Exception
*/
public static function createForApproval($uid, $language, $note = '')
{
/**
* Deletes a register record by the provided hash and returns the success of the database deletion
*
- * @param string $hash
+ * @param string $hash
* @return boolean
+ * @throws \Exception
*/
public static function deleteByHash($hash)
{