models/User.php
public function register($isSuperAdmin = FALSE, $status = 1)
	{
		if ($this->getIsNewRecord() == FALSE) {
			throw new RuntimeException('Calling "' . __CLASS__ . '::' . __METHOD__ . '" on existing user');
		}

		// Set to 1 if isSuperAdmin is true else set to 0
		$this->super_admin = $isSuperAdmin ? 1 : 0;

		// Set status
		$this->status = $status;

		// Save user data to the database
		if ($this->save()) {
			return TRUE;
		}

		return FALSE;
	}
public function register($isSuperAdmin = FALSE, $status = 1)
	{
		if ($this->getIsNewRecord() == FALSE) {
			throw new RuntimeException('Calling "' . __CLASS__ . '::' . __METHOD__ . '" on existing user');
		}

		// Set to 1 if isSuperAdmin is true else set to 0
		$this->super_admin = $isSuperAdmin ? 1 : 0;

		// Set status
		$this->status = $status;

		// Save user data to the database
		if ($this->save()) {
			return TRUE;
		}

		return FALSE;
	}
public function register ( $ isSuperAdmin = FALSE , $ status = 1 ) { if ( $ this -> getIsNewRecord ( ) == FALSE ) { throw new RuntimeException ( 'Calling "' . __CLASS__ . '::' . __METHOD__ . '" on existing user' ) ; } // Set to 1 if isSuperAdmin is true else set to 0 $ this -> super_admin = $ isSuperAdmin ? 1 : 0 ; // Set status $ this -> status = $ status ; // Save user data to the database if ( $ this -> save ( ) ) { return TRUE ; } return FALSE ; }
This method is used to register new user account.

@param bool $isSuperAdmin
@param int  $status

@return bool
This method is used to register new user account .