當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FormAction::__construct方法代碼示例

本文整理匯總了PHP中FormAction::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormAction::__construct方法的具體用法?PHP FormAction::__construct怎麽用?PHP FormAction::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FormAction的用法示例。


在下文中一共展示了FormAction::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 /**
  * Create a new action button.
  * @param action The method to call when the button is clicked
  * @param title The label on the button
  * @param image The default image to display
  * @param hoverImage The image to display on hover
  * @param form The parent form, auto-set when the field is placed inside a form 
  */
 function __construct($action, $title = "", $image = "", $hoverImage = null, $className = null, $form = null)
 {
     $this->image = $image;
     $this->hoverImage = $hoverImage;
     $this->className = $className;
     parent::__construct($action, $title, $form);
 }
開發者ID:ramziammar,項目名稱:websites,代碼行數:15,代碼來源:ImageFormAction.php

示例2:

 function __construct($link = "", $title = "", $form = null, $extraData = null, $extraClass = 'roundedButton')
 {
     if (!$title) {
         $title = _t('CancelFormAction.CANCEL', 'Cancel');
     }
     $this->setLink($link);
     parent::__construct('CancelFormAction', $title, $form, $extraData, $extraClass);
 }
開發者ID:Thingee,項目名稱:openstack-org,代碼行數:8,代碼來源:CancelFormAction.php

示例3: __construct

 /**
  * Create a new action button.
  *
  * @param action The method to call when the button is clicked
  * @param title The label on the button
  * @param form The parent form, auto-set when the field is placed inside a form 
  */
 public function __construct($title = null)
 {
     $this->action = "action_modalToggle";
     parent::__construct($this->action, $title, null, null);
     if ($title != null) {
         $this->setButtonContent($title);
     }
 }
開發者ID:EduardMa,項目名稱:silverstripe-bootstrap_extra_fields,代碼行數:15,代碼來源:BootstrapModalFormAction.php

示例4: setAttribute

	/**
	 * Create a new action button.
	 * @param action The method to call when the button is clicked
	 * @param title The label on the button
	 * @param image The default image to display
	 * @param hoverImage The image to display on hover
	 * @param form The parent form, auto-set when the field is placed inside a form 
	 */
	function __construct($action, $title = "", $image = "", $hoverImage = null, $className = null, $form = null) {
		Deprecation::notice('3.0', "Use FormAction with setAttribute('src', 'myimage.png') and custom JavaScript to achieve hover effect");

		$this->image = $image;
		$this->hoverImage = $hoverImage;
		$this->className = $className;
		parent::__construct($action, $title, $form);
	}
開發者ID:redema,項目名稱:sapphire,代碼行數:16,代碼來源:ImageFormAction.php

示例5:

 /**
  * Create a new action button.
  * @param action The method to call when the button is clicked
  * @param title The label on the button
  * @param confirmation The message to display in the confirmation box
  * @param form The parent form, auto-set when the field is placed inside a form 
  */
 function __construct($action, $title = "", $confirmation = null, $form = null)
 {
     if ($confirmation) {
         $this->confirmation = $confirmation;
     } else {
         $this->confirmation = _t('ConfirmedFormAction.CONFIRMATION', "Are you sure?", PR_MEDIUM, 'Confirmation popup before executing the form action');
     }
     parent::__construct($action, $title, $form);
 }
開發者ID:racontemoi,項目名稱:shibuichi,代碼行數:16,代碼來源:ConfirmedFormAction.php

示例6: __construct

 /**
  * @param GridField $gridField
  * @param string $name
  * @param string $title
  * @param string $actionName
  * @param array $args
  */
 public function __construct(GridField $gridField, $name, $title, $actionName, $args)
 {
     $this->gridField = $gridField;
     $this->actionName = $actionName;
     $this->args = $args;
     parent::__construct($name, $title);
 }
開發者ID:miamollie,項目名稱:echoAerial,代碼行數:14,代碼來源:GridField.php

示例7:

 function __construct()
 {
     parent::__construct('addtocampaign', _t('CAMPAIGNS.ADDTOCAMPAIGN', 'Add to campaign'));
     $this->addExtraClass('add-to-campaign-action');
     $this->setValidationExempt(true);
 }
開發者ID:jacobbuck,項目名稱:silverstripe-framework,代碼行數:6,代碼來源:AddToCampaignHandler.php

示例8:

 /**
  * Create a new action button.
  * @param action The method to call when the button is clicked
  * @param title The label on the button
  * @param confirmation The message to display in the confirmation box?
  * @param form The parent form, auto-set when the field is placed inside a form 
  */
 function __construct($action, $title = "", $ajaxAction = null, $form = null)
 {
     $this->ajaxAction = $ajaxAction ? $ajaxAction : $action;
     parent::__construct($action, $title, $form);
 }
開發者ID:ramziammar,項目名稱:websites,代碼行數:12,代碼來源:AjaxFormAction.php

示例9: __construct

 /**
  * @param FormAction $action
  * @param string $title
  * @param Form $form
  */
 public function __construct($action, $title = "", $form = null)
 {
     parent::__construct($action, $title, $form);
 }
開發者ID:zarocknz,項目名稱:silverstripe-zenvalidator,代碼行數:9,代碼來源:FormActionNoValidation.php

示例10:

 function __construct()
 {
     parent::__construct();
     $this->params_type = $this->_defineParamsType();
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:5,代碼來源:UpdateParamCommonAction.class.php

示例11: __construct

 public function __construct($action, $title = "", $form = null)
 {
     $this->confirmText = _t('FormActionConfirm.AREYOUSURE', "Are you sure ?");
     parent::__construct($action, $title, $form);
 }
開發者ID:lekoala,項目名稱:silverstripe-form-extras,代碼行數:5,代碼來源:FormActionConfirm.php

示例12:

 /**
  * Create the form action with a useful description.
  * 
  * @param String $action
  * @param String $title
  * @param Form $form
  * @param String $extraData
  * @param String $extraClass
  */
 function __construct($action, $title = "", $form = null, $extraData = null, $extraClass = '')
 {
     $this->description = "Remove item #{$title}";
     parent::__construct($action, $title, $form, $extraData, $extraClass);
 }
開發者ID:helpfulrobot,項目名稱:swipestripe-swipestripe,代碼行數:14,代碼來源:RemoveItemAction.php

示例13: __construct

 /**
  * 
  * Create a new action button.
  *
  * @param action The method to call when the button is clicked
  * @param title The label on the button
  * @param form The parent form, auto-set when the field is placed inside a form 
  */
 public function __construct($action, $title = "", $form = null)
 {
     parent::__construct($action, $title, $form);
     $this->sendingMessage = _t('BootstrapLoadingFormAction.LOADING', 'BootstrapLoadingFormAction.LOADING');
 }
開發者ID:spekulatius,項目名稱:silverstripe-bootstrap_extra_fields,代碼行數:13,代碼來源:BootstrapLoadingFormAction.php

示例14: __construct

 public function __construct($name, $title = null, \Form $form, \GridFieldDetailForm_ItemRequest $request)
 {
     $this->request = $request;
     return parent::__construct($name, $title, $form);
 }
開發者ID:prostart,項目名稱:erics-homes,代碼行數:5,代碼來源:Button.php

示例15:

 /**
  * Create a new action button.
  * @param action The method to call when the button is clicked
  * @param title The label on the button
  * @param confirmation The message to display in the confirmation box?
  * @param form The parent form, auto-set when the field is placed inside a form 
  */
 function __construct($action, $title = "", $confirmation = "Are you sure?", $form = null)
 {
     $this->confirmation = $confirmation;
     parent::__construct($action, $title, $form);
 }
開發者ID:ramziammar,項目名稱:websites,代碼行數:12,代碼來源:ConfirmedFormAction.php


注:本文中的FormAction::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。