PHP Class App\Ninja\Repositories\AccountRepository

Mostrar archivo Open project: hillelcoren/invoice-ninja Class Usage Examples

Public Methods

Method Description
associateAccounts ( $userId1, $userId2 )
create ( $firstName = '', $lastName = '', $email = '', $password = '' )
createNinjaCredit ( $client, $amount )
createNinjaInvoice ( $client, $clientAccount, $plan, $credit )
createTokens ( $user, $name )
enablePlan ( $plan, $credit )
findByKey ( $key )
findUserAccounts ( $userId1, $userId2 = false )
findUserByOauth ( $providerId, $oauthUserId )
findUsers ( $user, $with = null )
findWithReminders ( )
getNinjaAccount ( )
getNinjaClient ( $account )
getReferralCode ( )
getSearchData ( $user )
getUserAccountId ( $account )
getUserAccounts ( $record, $with = null )
loadAccounts ( $userId )
prepareUsersData ( $record )
registerNinjaUser ( $user )
save ( $data, $account )
unlinkAccount ( $account )
unlinkUser ( $userAccountId, $userId )
unlinkUserFromOauth ( $user )
updateUserFromOauth ( $user, $firstName, $lastName, $email, $providerId, $oauthUserId )

Private Methods

Method Description
getAccountSearchData ( $user )
getNavigationSearchData ( )

Method Details

associateAccounts() public method

public associateAccounts ( $userId1, $userId2 )

create() public method

public create ( $firstName = '', $lastName = '', $email = '', $password = '' )

createNinjaCredit() public method

public createNinjaCredit ( $client, $amount )

createNinjaInvoice() public method

public createNinjaInvoice ( $client, $clientAccount, $plan, $credit )

createTokens() public method

public createTokens ( $user, $name )

enablePlan() public method

public enablePlan ( $plan, $credit )

findByKey() public method

public findByKey ( $key )

findUserAccounts() public method

public findUserAccounts ( $userId1, $userId2 = false )

findUserByOauth() public method

public findUserByOauth ( $providerId, $oauthUserId )

findUsers() public method

public findUsers ( $user, $with = null )

findWithReminders() public method

public findWithReminders ( )

getNinjaAccount() public method

public getNinjaAccount ( )

getNinjaClient() public method

public getNinjaClient ( $account )

getReferralCode() public method

public getReferralCode ( )

getSearchData() public method

public getSearchData ( $user )

getUserAccountId() public method

public getUserAccountId ( $account )

getUserAccounts() public method

public getUserAccounts ( $record, $with = null )

loadAccounts() public method

public loadAccounts ( $userId )

prepareUsersData() public method

public prepareUsersData ( $record )

registerNinjaUser() public method

public registerNinjaUser ( $user )

save() public method

public save ( $data, $account )

unlinkAccount() public method

public unlinkAccount ( $account )

unlinkUser() public method

public unlinkUser ( $userAccountId, $userId )

unlinkUserFromOauth() public method

public unlinkUserFromOauth ( $user )

updateUserFromOauth() public method

public updateUserFromOauth ( $user, $firstName, $lastName, $email, $providerId, $oauthUserId )