本文整理汇总了PHP中BaseForm::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseForm::__construct方法的具体用法?PHP BaseForm::__construct怎么用?PHP BaseForm::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseForm
的用法示例。
在下文中一共展示了BaseForm::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($enrollmentInfoId = NULL, $studentId = NULL, $courseArray = NULL)
{
$this->enrollmentInfoId = $enrollmentInfoId;
$this->studentId = $studentId;
$this->courseArray = $courseArray;
parent::__construct();
}
示例2: __construct
public function __construct($enrollments = NULL, $courses = NULL, $gradeChoices = NULL)
{
$this->gradeChoices = $gradeChoices;
$this->enrollments = $enrollments;
$this->courses = $courses;
parent::__construct();
}
示例3: __construct
public function __construct($registrationId = NULL, $studentId = NULL, $courseArray = NULL)
{
$this->registrationId = $registrationId;
$this->studentId = $studentId;
$this->courseArray = $courseArray;
parent::__construct();
}
示例4: __construct
public function __construct($programId = NULL, $courseIds = NULL, $courseNumbers = NULL)
{
$this->programId = $programId;
$this->courseIds = $courseIds;
$this->courseNumbers = $courseNumbers;
parent::__construct();
}
示例5: __construct
/**
* DOCUMENT ME
* @param mixed $id
* @param mixed $value
* @param mixed $soptions
*/
public function __construct($id, $value, $soptions)
{
$this->id = $id;
$this->value = $value;
$this->soptions = $soptions;
parent::__construct();
}
示例6: __construct
public function __construct($studentId = NULL, $fromSectionId = NULL, $toSectionIdNamePair = NULL)
{
$this->fromSectionId = $fromSectionId;
$this->studentId = $studentId;
$this->toSectionIdNamePair = $toSectionIdNamePair;
parent::__construct();
}
示例7: __construct
public function __construct($controller, $name, FieldList $fields = null, FieldList $actions = null, $validator = null)
{
//print __CLASS__.'<br>';
parent::__construct($controller, $name, $fields, $actions, $validator);
$this->addExtraClass('js-places-search-form');
//echo __CLASS__;
}
示例8: __construct
public function __construct($studentIdNamePairArray = NULL, $courseId = NULL, $gradeChoices = NULL)
{
$this->gradeChoices = $gradeChoices;
$this->studentIdNamePairArray = $studentIdNamePairArray;
$this->courseId = $courseId;
parent::__construct();
}
示例9: __construct
/**
* Constructor.
*
* @param opAuthAdapter $adapter An opAuthAdapter object
* @param array $defaults An array of field default values
* @param array $options An array of options
* @param string $CRFSSecret A CSRF secret (false to disable CSRF protection, null to use the global CSRF secret)
*
* @see sfForm
*/
public function __construct(opAuthAdapter $adapter, $defaults = array(), $options = array(), $CSRFSecret = null)
{
$this->adapter = $adapter;
parent::__construct($defaults, $options, false);
$this->setWidget('next_uri', new opWidgetFormInputHiddenNextUri());
$this->setValidator('next_uri', new opValidatorNextUri());
}
示例10: __construct
public function __construct($programId = NULL, $courseIds = NULL, $year = NULL, $semester = NULL)
{
$this->programId = $programId;
$this->courseIds = $courseIds;
$this->year = $year;
$this->semester = $semester;
parent::__construct();
}
示例11: __construct
public function __construct($studentId = NULL, $sectionIdNamePairArray = NULL, $courseIdNamePairArray = NULL, $enrollmentAction = NULL)
{
$this->courseIdNamePairArray = $courseIdNamePairArray;
$this->studentId = $studentId;
$this->sectionIdNamePairArray = $sectionIdNamePairArray;
$this->enrollmentAction = $enrollmentAction;
parent::__construct();
}
示例12: __construct
public function __construct($active = null)
{
if (is_null($active)) {
$active = array('1');
}
$this->active = array_flip($active);
parent::__construct();
}
示例13: __construct
/**
* Constructor.
*
* @param opAuthAdapter $adapter An opAuthAdapter object
* @param array $defaults An array of field default values
* @param array $options An array of options
*
* @see sfForm
*/
public function __construct(opAuthAdapter $adapter, $defaults = array(), $options = array())
{
$this->adapter = $adapter;
parent::__construct($defaults, $options, false);
$this->setWidget('next_uri', new opWidgetFormInputHiddenNextUri());
$this->setValidator('next_uri', new opValidatorNextUri());
$this->widgetSchema->setNameFormat('auth' . $this->adapter->getAuthModeName() . '[%s]');
}
示例14: __construct
public function __construct($entity = null, $options = null)
{
$this->add_field('\\Phalcon\\Forms\\Element\\Text', 'name');
$this->add_field('\\Phalcon\\Forms\\Element\\Email', 'email');
$this->add_field('\\Phalcon\\Forms\\Element\\Password', 'password');
$this->add_field('\\Phalcon\\Forms\\Element\\Password', 'confirm');
parent::__construct($entity, $options);
}
示例15: __construct
/**
* Constructor
* @param Nette\Application\UI\Control $parent
* @param string $name
*/
public function __construct($parent, $name)
{
parent::__construct($parent, $name);
$galleryId = $this->parent->getId();
$this->addSubmit('send', 'OK');
$this->addHidden('galleryId', $galleryId);
$this->onSuccess[] = array($this, 'formSubmited');
}