NAMESPACE: Bootstrap/Components/ClientComponents

Components/ClientComponents/Onclick.php

public function getOnclickTab($number,$parameters,$saveids)

When the component is clicked a certain tab should be opened

parameters

$number int
$parameters
      $array = array(
      'sync_open' => '1',
      'sync_close'   => '1',
      'context' => 'someid', // anything with context will get pre-cached by the client
      'back_button' => '1',
      'id' => 'someid',
      );
      
$saveids array

variable

$number
$parameters
$saveids
public function getOnclickShowDiv($divid,$parameters,$layout,$saveids)

When the component is clicked a div with the corresponding divid should be shown

parameters

$parameters param array $parameters tap_to_close, transition, layout, background

variable

$divid
$parameters
$layout
$saveids
public function getOnclickHideDiv($divid,$parameters,$saveids)

When the component is clicked a div with the corresponding divid should be hidden

variable

$divid
$parameters
$saveids
public function getOnclickHideElement($element_id,$parameters,$saveids)

When the component is clicked an element with the given id should be hidden

variable

$element_id
$parameters
$saveids
public function getOnclickShowElement($element_id,$parameters,$saveids)

When the component is clicked an element with the given id should be shown

variable

$element_id
$parameters
$saveids
public function getOnclickSubmit($menuid,$clickparameters)

Clicking the component to which this is attached will trigger a submit action

variable

$menuid
$clickparameters
public function getOnclickCompleteAction()

Clicking the component to which this is attached will complete the current action

public function getOnclickRoute($route,$persist_route,$saveparameters,$async,$clickparameters)

Clicking the component to which this is attached will execute the given route. Routes must be in the format Controller/Method/MenuId. If the format is incorrect an error will be thrown. The controller’s given method will be called and the menuid will be passed in. MenuId is not required.

variable

$route
$persist_route
$saveparameters
$async
$clickparameters
public function getOnclickOpenAction($permaname,$actionid,$parameters,$route,$persist_route,$saveparams)

Clicking the component to which the returned value is attached will open a particular action. This is used to have one screen “on top” of the other.

variable

$permaname
$actionid
$parameters
$route
$persist_route
$saveparams
public function getOnclickOpenBranch($branchid,$parameters,$route,$persist_route,$saveparams)

Clicking on the component that the returned value is attached to will open the given branch.

variable

$branchid
$parameters
$route
$persist_route
$saveparams
private function encryptParams($persist_route,$route,$saveparameters,$actionid)

variable

$persist_route
$route
$saveparameters
$actionid
public function getOnclickImageUpload($variablename,$parameters)

Clicking the component to which the returned object is attached will trigger the upload image dialog. The image path will be saved in the variable passed to this method.

variable

$variablename
$parameters
public function getOnclickPushPermissions($parameters)

Clicking the component to which the returned object is attached will ask for push notification permissions.

variable

$parameters
public function getOnclickGoogleLogin($parameters)

Clicking the component to which the returned object is attached will trigger the google authentication dialog

variable

$parameters
public function getOnclickGoogleLogout($parameters)

Clicking the component to which the returned object is attached will logout the current user

variable

$parameters
public function getOnclickFacebookInvite($parameters)

parameters

$parameters
      array(
        'fb_title' => 'my title',
        'fb_message' => 'my share msg'
      

variable

$parameters
public function getOnclickFacebookAppInvite($parameters)

variable

$parameters
public function getOnclickFacebookLogin($parameters)

variable

$parameters
public function getOnclickFacebookLogout($parameters)

variable

$parameters
public function getOnclickTwitterLogin($parameters)

variable

$parameters
public function getOnclickClosePopup($parameters)

Clicking the component to which the returned object is attached will close the popup defined in the parameters

variable

$parameters
public function getOnclickListBranches($parameters)

Clicking the component to which the returned object is attached will make a list branches call. This call will reload the list of branches and actions. It’s useful when you want to update the state of your app.

variable

$parameters
public function getOnclickLocation($parameters)

parameters

$parameters
      $array = array(
      'sync_open' => '1',
      'id' => 'someid',
      );
      

variable

$parameters
public function getOnclickOpenUrl($url,$parameters)

Clicking the component to which the returned object is attached will open the given url in the browser

parameters

$url // valid url (can be also tel://3391282822 for example)
$parameters
      $array = array(
      );

variable

$url
$parameters
public function getOnclickShowMessage($title,$message,$parameters)

TODO

variable

$title
$message
$parameters
public function getOnclickGoHome($parameters)

TODO

variable

$parameters
public function getOnclickPurchase($ios_product_id,$android_product_id,$parameters)

TODO

variable

$ios_product_id
$android_product_id
$parameters
public function getOnclickPurchaseRestore($parameters)

TODO

variable

$parameters
public function getOnclickBraintreePurchase($productid,$parameters)

TODO

variable

$productid
$parameters
public function getOnclickOpenSidemenu($parameters)

Clicking the component to which the returned object is attached will open the app sidemenu. This is often used when you are using a custom header and want to open the side menu when clicking on an icon.

variable

$parameters
public function getOnclickMonitorRegion($beaconid,$parameters)

TODO

variable

$beaconid
$parameters
public function getOnclickStopRegion($region_id,$parameters)

TODO

variable

$region_id
$parameters
public function getOnclickStopAllRegions($parameters)

TODO

variable

$parameters
public function getOnclickFindBeacons($region_id,$parameters)

TODO

variable

$region_id
$parameters
public function getOnclickOpenInterstitialAd($adcolony_zone,$parameters)

TODO

parameters

$adcolony_zone. param string $adcolony_zone. If this is not defined, will use Google interstitial.

variable

$adcolony_zone
$parameters
public function getOnclickSwipeStackControl($container_id,$direction,$parameters)

TODO

variable

$container_id
$direction
$parameters
public function getOnclickCheckSchme($scheme_url,$parameters)

TODO

variable

$scheme_url
$parameters