Yioop_V9.5_Source_Code_Documentation

ManagecreditsElement extends Element
in package

Element responsible for displaying Ad credits purchase form and recent transaction table

Table of Contents

$view  : object
The View on which this Element is drawn
__construct()  : mixed
constructor stores a reference to the view this element will reside on
formatHref()  : string
Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)
render()  : mixed
Draws create advertisement form and existing campaigns
renderCreditsForm()  : mixed
Draws the form used to create or edit a keyword advertisement
renderManageDetailsTab()  : mixed
Draws the form fields showing the payment agency service account requirements status
renderPurchaseCreditsTab()  : mixed
Draws the form fields required to purchase credits
renderRedeemCreditsTab()  : mixed
Draws the form fields required to redeem credits
renderSearchForm()  : mixed
Draws the search for credit transactions forms

Properties

$view

The View on which this Element is drawn

public object $view

Methods

__construct()

constructor stores a reference to the view this element will reside on

public __construct([object $view = null ]) : mixed
Parameters
$view : object = null

object this element will reside on

Return values
mixed —

formatHref()

Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)

public formatHref(string $url) : string
Parameters
$url : string

to clean up

Return values
string —

cleaned url

render()

Draws create advertisement form and existing campaigns

public render(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

containing field values that have already been been filled in, data about existing campaigns and the anti-CSRF attack token

Return values
mixed —

renderCreditsForm()

Draws the form used to create or edit a keyword advertisement

public renderCreditsForm(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

containing field values that have already been been filled in and the anti-CSRF attack token

Return values
mixed —

renderManageDetailsTab()

Draws the form fields showing the payment agency service account requirements status

public renderManageDetailsTab(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

containing field values that have already been been filled in and the anti-CSRF attack token

Return values
mixed —

renderPurchaseCreditsTab()

Draws the form fields required to purchase credits

public renderPurchaseCreditsTab(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

containing field values that have already been been filled in and the anti-CSRF attack token

Return values
mixed —

renderRedeemCreditsTab()

Draws the form fields required to redeem credits

public renderRedeemCreditsTab(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

containing field values that have already been been filled in and the anti-CSRF attack token

Return values
mixed —

renderSearchForm()

Draws the search for credit transactions forms

public renderSearchForm(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

consists of values of locale fields set so far as well as values of the drops downs on the form

Return values
mixed —

        

Search results