当前位置: 首页>>代码示例>>PHP>>正文


PHP RequestHandler::__construct方法代码示例

本文整理汇总了PHP中RequestHandler::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestHandler::__construct方法的具体用法?PHP RequestHandler::__construct怎么用?PHP RequestHandler::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RequestHandler的用法示例。


在下文中一共展示了RequestHandler::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 /**
  * Create a new page comment interface
  * @param controller The controller that the interface is used on
  * @param methodName The method to return this PageCommentInterface object
  * @param page The page that we're commenting on
  */
 function __construct($controller, $methodName, $page)
 {
     $this->controller = $controller;
     $this->methodName = $methodName;
     $this->page = $page;
     parent::__construct();
 }
开发者ID:racontemoi,项目名称:shibuichi,代码行数:13,代码来源:PageCommentInterface.php

示例2: __construct

 public function __construct(GridField $grid, GridFieldComponent $component, $name)
 {
     $this->grid = $grid;
     $this->component = $component;
     $this->name = $name;
     parent::__construct();
 }
开发者ID:helpfulrobot,项目名称:ajshort-silverstripe-gridfieldextensions,代码行数:7,代码来源:GridFieldRequestHandler.php

示例3: __construct

 public function __construct($grid, $button)
 {
     $this->grid = $grid;
     $this->button = $button;
     $this->context = singleton($grid->getModelClass())->getDefaultSearchContext();
     parent::__construct();
 }
开发者ID:helpfulrobot,项目名称:ajshort-silverstripe-gridfieldextensions,代码行数:7,代码来源:GridFieldAddExistingSearchHandler.php

示例4: __construct

 /**
  * Handler's constructor
  *
  * @param GridField $gridField
  * @param GridField_URLHandler $component
  * @param RequestHandler $handler
  */
 public function __construct($gridField, $component, $handler)
 {
     $this->gridField = $gridField;
     $this->component = $component;
     $this->requestHandler = $handler;
     parent::__construct();
 }
开发者ID:burnbright,项目名称:silverstripe-importexport,代码行数:14,代码来源:GridFieldImporter_Request.php

示例5: __construct

 /**
  * Handler's constructor
  * 
  * @param GridFIeld $gridField
  * @param GridField_URLHandler $component
  * @param Controller $controller
  */
 public function __construct($gridField, $component, $controller)
 {
     $this->gridField = $gridField;
     $this->component = $component;
     $this->controller = $controller;
     parent::__construct();
 }
开发者ID:helpfulrobot,项目名称:colymba-gridfield-bulk-editing-tools,代码行数:14,代码来源:GridFieldBulkUpload_Request.php

示例6: __construct

 /**
  * @param string $fragment the fragment to render the button in
  * @param string $title the text to display on the button
  * @param \FieldList|Callable|array $fields the fields to display in inline form
  */
 public function __construct($fragment = 'buttons-before-left', $title = '', $fields = null)
 {
     parent::__construct();
     $this->fragment = $fragment;
     $this->title = $title ?: _t('GridFieldExtensions.ADD', 'Add');
     $this->fields = $fields;
     $this->cache = \SS_Cache::factory($this->getCacheKey(['holder' => __CLASS__]), 'Output', ['lifetime' => 6 * 60 * 60]);
 }
开发者ID:milkyway-multimedia,项目名称:ss-gridfield-utils,代码行数:13,代码来源:AddNewInlineExtended.php

示例7: __construct

 /**
  * @param string $groupField
  * @param string $groupFieldLabel
  * @param string $groupUnassignedName
  * @param array $groupsAvailable
  */
 public function __construct($groupField = 'Group', $groupFieldLabel = 'Group', $groupUnassignedName = '[none/inactive]', $groupsAvailable = array())
 {
     parent::__construct();
     $this->groupField = $groupField;
     $this->groupFieldLabel = $groupFieldLabel;
     $this->groupUnassignedName = $groupUnassignedName;
     $this->groupsAvailable = $groupsAvailable;
 }
开发者ID:micschk,项目名称:silverstripe-groupable-gridfield,代码行数:14,代码来源:GridFieldGroupable.php

示例8: __construct

 /**
  * @param string $parentController
  * @param string $urlSegment
  * @param string $recordClass
  */
 public function __construct($parentController, $urlSegment, $recordClass = null)
 {
     $this->parentController = $parentController;
     $this->urlSegment = $urlSegment;
     if ($recordClass) {
         $this->recordClass = $recordClass;
     }
     parent::__construct();
 }
开发者ID:XDdesigners,项目名称:silverstripe-framework,代码行数:14,代码来源:CMSBatchActionHandler.php

示例9:

	/**
	 * Create a new field.
	 * @param name The internal field name, passed to forms.
	 * @param title The field label.
	 * @param value The value of the field.
	 * @param form Reference to the container form
	 * @param maxLength The Maximum length of the attribute
	 */
	function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null) {
		$this->name = $name;
		$this->title = ($title === null) ? $name : $title;

		if(isset($value)) $this->value = $value;
		if($form) $this->setForm($form);

		parent::__construct();
	}
开发者ID:neopba,项目名称:silverstripe-book,代码行数:17,代码来源:FormField.php

示例10: __construct

 public function __construct($gridfield, $component, $record, $controller, $name, $formorfields)
 {
     $this->gridfield = $gridfield;
     $this->component = $component;
     $this->record = $record;
     $this->controller = $controller;
     $this->name = $name;
     $this->formorfields = $formorfields;
     parent::__construct();
 }
开发者ID:helpfulrobot,项目名称:silverstripe-gridfield-addons,代码行数:10,代码来源:GridFieldExpandableForm.php

示例11:

 /**
  * Create a new field.
  * @param name The internal field name, passed to forms.
  * @param title The field label.
  * @param value The value of the field.
  * @param form Reference to the container form
  * @param maxLength The Maximum length of the attribute
  */
 function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null)
 {
     $this->name = $name;
     $this->title = $title === null ? $name : $title;
     if ($value !== NULL) {
         $this->setValue($value);
     }
     if ($form) {
         $this->setForm($form);
     }
     parent::__construct();
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:20,代码来源:FormField.php

示例12: __construct

 /**
  *
  * @param GridFIeld $gridField
  * @param GridField_URLHandler $component
  * @param DataObject $record
  * @param RequestHandler $requestHandler
  * @param string $popupFormName
  */
 public function __construct($gridField, $component, $record, $requestHandler, $popupFormName)
 {
     $this->gridField = $gridField;
     $this->component = $component;
     $this->record = $record;
     $this->popupController = $requestHandler;
     $this->popupFormName = $popupFormName;
     parent::__construct();
 }
开发者ID:8secs,项目名称:cocina,代码行数:17,代码来源:GridFieldDetailForm.php

示例13: __construct

 /**
  * Creates a new field.
  *
  * @param string $name The internal field name, passed to forms.
  * @param string $title The human-readable field label.
  * @param mixed $value The value of the field.
  */
 public function __construct($name, $title = null, $value = null)
 {
     $this->name = $name;
     $this->title = $title === null ? self::name_to_label($name) : $title;
     if ($value !== NULL) {
         $this->setValue($value);
     }
     parent::__construct();
 }
开发者ID:8secs,项目名称:cocina,代码行数:16,代码来源:FormField.php

示例14: __construct

 public function __construct($parent, $folderName = null)
 {
     $this->parent = $parent;
     $this->folderName = $folderName;
     parent::__construct();
 }
开发者ID:hemant-chakka,项目名称:awss,代码行数:6,代码来源:UploadField.php

示例15:

 function __construct($controller, $name)
 {
     parent::__construct();
     Requirements::javascript(SAPPHIRE_DIR . "/thirdparty/behaviour/behaviour.js");
     Requirements::javascript(SAPPHIRE_DIR . "/javascript/tiny_mce_improvements.js");
     Requirements::javascript(SAPPHIRE_DIR . "/thirdparty/jquery-form/jquery.form.js");
     Requirements::javascript(SAPPHIRE_DIR . "/javascript/HtmlEditorField.js");
     $this->controller = $controller;
     $this->name = $name;
 }
开发者ID:hamishcampbell,项目名称:silverstripe-sapphire,代码行数:10,代码来源:HtmlEditorField.php


注:本文中的RequestHandler::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。