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',
      'viewport' => 'top' | 'bottom' | 'current'
      );
      
$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 getOnclickLogout()
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 getOnclickTouchId($text,$clickparameters)

variable

$text
$clickparameters
public function getOnclickDoorflowAuthenticate($parameters)

parameters

$parameters
      array(
      'phone' => $phone,
      'id' => 'verification/verificate/',
      'variable_error' => 'authenticate_error',
      'variable_status' => 'authenticate_status',
      'variable_description' => 'authenticate_description'
      )
      

variable

$parameters
public function getOnclickDoorflowVerify($parameters)

parameters

$parameters
      array(
      'phone' => $phone,
      'id' => 'verification/verificate/',
      'variable' => 'code'
      'variable_error' => 'authenticate_error',
      'variable_status' => 'authenticate_status',
      'variable_description' => 'authenticate_description'
      )
      

variable

$parameters
public function getOnclickDoorflowUnlock($doorid,$parameters)

variable

$doorid
$parameters
public function getOnclickDoorflowScan()

Scan doors close by (mostly for debugging)

public function getOnclickDoorflowLogout()
public function getOnclickSubmit($menuid,$clickparameters)

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

variable

$menuid
$clickparameters
public function getOnclickSetVariables($variables,$clickparameters)

variable

$variables
$clickparameters
public function getOnclickCompleteAction($parameters)

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

variable

$parameters
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 getOnclickOpenApp($server,$api_key)

This is a special command for previewing Appzio app. This works only on iOS.

parameters

$server - this is a server for appzio app
$api_key - api_key for the app to open

variable

$server
$api_key
public function getOnclickPlateScanner($parameter)

variable

$parameter
public function getOnclickGooglePlaces($variableid,$parameters)

variable

$variableid
$parameters
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 getOnclickGlobalLayoutSet($content,$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.

parameters

$content param array $content - array of layout elements
$parameters param array $parameters - must define: "container" (header,scroll,footer,overlay) & placement (replace,before,after)

variable

$content
$parameters
public function getOnclickGlobalLayoutUnset($container)

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.

parameters

$container param string $container - header,scroll,footer,overlay

variable

$container
public function getOnclickVideoUpload($variablename,$parameters)

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

parameters

$parameters param array $parameters - onsuccess & onfailure are onclicks

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 getOnclickPlaySound($asset_name)

Used for playing effect sound. If you need more control, use the mp4 player.

parameters

$asset_name param string $asset_name as defined in the assetlist OR url. Note: no sanity checking here.

variable

$asset_name
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)

Facebook login will set the following variables: – fb_image (profilepicture) – fb_token – fb_universal_login (user’s id) – gender (if allowed) – name – one of the additional requested permissions

Also, all refresh action calls will have $_REQUEST[‘fb_login’] set to true

parameters

$parameters
For example:
      
      array(
      'id' => 'do-fb-login', 'sync_open' => 1,'read_permissions' => array(
         "public_profile", "user_friends", "user_about_me", "user_birthday", "email"
      )
      );
      

variable

$parameters
public function getOnclickFacebookLogout($parameters)

variable

$parameters
public function getOnclickTwitterLogin($parameters)

variable

$parameters
public function getOnclickStartTimer($id,$parameters)

parameters

$parameters
      array(
        'timer_id' => 'id_of_timer',
      
     
      If no ID is defined, it will control the first timer in the view (and hopefully the only one)

variable

$id
$parameters
public function getOnclickPauseTimer($id,$parameters)

parameters

$parameters
      array(
        'timer_id' => 'id_of_timer',
      
     
      If no ID is defined, it will control the first timer in the view (and hopefully the only one)
     
      Difference between stop and pause is that stop timer will also reset it to starting state.

variable

$id
$parameters
public function getOnclickStopTimer($id,$parameters)

parameters

$parameters
      array(
        'timer_id' => 'id_of_timer',
      
     
      If no ID is defined, it will control the first timer in the view (and hopefully the only one).
     
      Difference between stop and pause is that stop timer will also reset it to starting state.

variable

$id
$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 getOnclickCalendarEvent($parameters)

Will create a button for adding a calendar event

parameters

$parameters
      $array = array(
      'starttime' => time()+700
      'endtime' => time()+1400,
      'organizer' => 'My Name',
      'organizer_email' => 'myemail

variable

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

TODO

variable

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

variable

$parameters
public function getOnclickStripePurchase($parameters)

variable

$parameters
public function getOnclickMyposChooseCard($parameters)

variable

$parameters
public function getOnclickMyposPurchase($parameters)

variable

$parameters
public function getOnclickGoHome($parameters)

TODO

variable

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

TODO

variable

$ios_product_id
$android_product_id
$subscription
$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 getOnclickCloseSidemenu()

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

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 getOnclickSwipeDelete($container_id,$parameters)

variable

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

TODO

parameters

$parameters param array $parameters - share_title, share_description, share_url, share_image

variable

$scheme_url
$parameters
public function getOnclickShare($parameters)

variable

$parameters
public function getOnclickCancelUpload($parameters)

Cancels ongoing upload (if any). Will need a variable as a parameter.

variable

$parameters
public function getOnclickConfirmExit($parameters)

This is used in conjuction with layout onexit[] onclick. This will execute the original onclicks.

variable

$parameters