当前位置: 首页>>代码示例>>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;未经允许,请勿转载。