本文整理汇总了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();
}
示例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();
}
示例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]);
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例14: __construct
public function __construct($parent, $folderName = null)
{
$this->parent = $parent;
$this->folderName = $folderName;
parent::__construct();
}
示例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;
}