public function __construct($enrollmentInfoId = NULL, $studentId = NULL, $courseArray = NULL) { $this->enrollmentInfoId = $enrollmentInfoId; $this->studentId = $studentId; $this->courseArray = $courseArray; parent::__construct(); }
public function __construct($enrollments = NULL, $courses = NULL, $gradeChoices = NULL) { $this->gradeChoices = $gradeChoices; $this->enrollments = $enrollments; $this->courses = $courses; parent::__construct(); }
public function __construct($registrationId = NULL, $studentId = NULL, $courseArray = NULL) { $this->registrationId = $registrationId; $this->studentId = $studentId; $this->courseArray = $courseArray; parent::__construct(); }
public function __construct($programId = NULL, $courseIds = NULL, $courseNumbers = NULL) { $this->programId = $programId; $this->courseIds = $courseIds; $this->courseNumbers = $courseNumbers; parent::__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(); }
public function __construct($studentId = NULL, $fromSectionId = NULL, $toSectionIdNamePair = NULL) { $this->fromSectionId = $fromSectionId; $this->studentId = $studentId; $this->toSectionIdNamePair = $toSectionIdNamePair; parent::__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__; }
public function __construct($studentIdNamePairArray = NULL, $courseId = NULL, $gradeChoices = NULL) { $this->gradeChoices = $gradeChoices; $this->studentIdNamePairArray = $studentIdNamePairArray; $this->courseId = $courseId; parent::__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()); }
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(); }
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(); }
public function __construct($active = null) { if (is_null($active)) { $active = array('1'); } $this->active = array_flip($active); parent::__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]'); }
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); }
/** * 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'); }
public function __construct($page = null) { if (!$page) { $page = new aPage(); } $this->page = $page; parent::__construct(); }
function __construct($params = []) { $this->attendee = Attendee::find($params["id"]); $this->params["badge_name"] = $this->attendee->badge_name; $this->params["badge_number"] = $this->attendee->badge_number; $this->params["badge_type"] = $this->attendee->badge_type; $this->params["notes"] = $this->attendee->notes; parent::__construct($params); }
/** * DOCUMENT ME * @param mixed $id * @param mixed $soptions */ public function __construct($id, $soptions = null) { $this->id = $id; $this->soptions = $soptions; $this->allowedTags = $this->consumeSlotOption('allowed-tags'); $this->allowedAttributes = $this->consumeSlotOption('allowed-attributes'); $this->allowedStyles = $this->consumeSlotOption('allowed-styles'); parent::__construct(); }
public function __construct($id, $options = array(), $CSRFSecret = null) { $this->id = $id; $this->communityMember = Doctrine::getTable('CommunityMember')->retrieveByMemberIdAndCommunityId(sfContext::getInstance()->getUser()->getMemberId(), $id); if (!$this->communityMember) { throw new RuntimeException(); } parent::__construct(array(), $options, $CSRFSecret); }
public function __construct($profileMember = array(), $options = array(), $CSRFSecret = null) { parent::__construct(array(), $options, $CSRFSecret); foreach ($profileMember as $profile) { if (!$profile) { continue; } $this->setDefault($profile->getName(), array('value' => $profile->getValue(), 'public_flag' => $profile->getPublicFlag())); } }
public function __construct($id = 1, $options = array()) { $this->id = $id; $this->soptions = $options; $options['class'] = 'aInsetImageSlot'; $this->allowedTags = $this->consumeSlotOption('allowed-tags'); $this->allowedAttributes = $this->consumeSlotOption('allowed-attributes'); $this->allowedStyles = $this->consumeSlotOption('allowed-styles'); parent::__construct(); }
/** * Constructor * @param Nette\Application\UI\Control $parent * @param string $name */ public function __construct($parent, $name) { parent::__construct($parent, $name); $media = $this->lookup('Bubo\\Media'); $folderId = $this->parent->getId(); $this->addSubmit('send', 'OK'); $this->addHidden('folderId', $folderId); $this->addHidden('section', $media->getCurrentSection()); $this->onSuccess[] = array($this, 'formSubmited'); }
/** * Constructor * @param Nette\Application\UI\Control $parent * @param string $name */ public function __construct($parent, $name) { parent::__construct($parent, $name); $parentFolderId = $this->parent->getFolderId(); $currentSection = $this->parent->getCurrentSection(); $this->addText('folderName', 'Název galerie')->setRequired('Zadejte název galerie'); $this->addSubmit('send', 'OK'); $this->addHidden('parentFolderId', $parentFolderId); $this->addHidden('currentSection', $currentSection); $this->onSuccess[] = array($this, 'formSubmited'); }
function __construct($params = []) { if ($params["id"]) { $this->user = User::find($params["id"]); } else { $this->user = new User([]); } $this->params["username"] = $this->user->username; $this->params["password"] = null; $this->params["admin"] = $this->user->admin; parent::__construct($params); }
/** * 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()); if ($this->getOption('is_use_remember_me', true) && !sfConfig::get('app_is_mobile')) { $this->setWidget('is_remember_me', new sfWidgetFormInputCheckbox()); $this->setValidator('is_remember_me', new sfValidatorBoolean()); $this->widgetSchema->setLabel('is_remember_me', 'Remember me'); } $this->widgetSchema->setNameFormat('auth' . $this->adapter->getAuthModeName() . '[%s]'); }
public function __construct($parent, $name) { parent::__construct($parent, $name); $this->media = $this->lookup('Bubo\\Media'); $dimensions = $this->addContainer('dimensions'); // $fileDirPath = $this->presenter->mediaManagerService->getOriginalFileDirPath($this->parent->id); // $filePath = $this->presenter->mediaManagerService->getBaseDir() . '/' . $fileDirPath; // $im = Image::fromFile($filePath); $file = $this->presenter->mediaManagerService->loadFile($this->parent->id); $paths = $file->getPaths(); $im = Image::fromFile($paths['dirPaths'][0]); $dimensions->addText('width')->setDefaultValue($im->getWidth()); $dimensions->addText('height')->setDefaultValue($im->getHeight()); $insertionMethods = $this->getInsertionMethods(); $this->addSelect('insertionMethod', 'Vložit jako', $insertionMethods); $subForms = $this->getSubformsData(); foreach ($subForms as $key => $subForm) { if ($subForm !== NULL) { $_subForm[$key] = $this->addContainer('subform_' . $key); foreach ($subForm as $subFormComponentName => $subFormComponent) { switch ($subFormComponent['control']) { case 'text': $_subForm[$key]->addText($subFormComponentName, $subFormComponent['title']); break; case 'checkbox': $_subForm[$key]->addCheckbox($subFormComponentName, $subFormComponent['title']); if (isset($subFormComponent['default'])) { $_subForm[$key][$subFormComponentName]->setDefaultValue($subFormComponent['default']); } break; } } } } $this->addHidden('fileId', $this->parent->id); $dimensions['width']->getControlPrototype()->class = 'itemWidth'; $dimensions['height']->getControlPrototype()->class = 'itemHeight'; $this->addSubmit('send', 'Uložit'); // $this->addHidden('editor_id', $editorId); // $this->addHidden('parent', $fid); // $this->addHidden('id', false); $this->onSuccess[] = array($this, 'formSubmited'); $this->getElementPrototype()->class = 'ajax media-image-setting-form'; if ($this->media->getParam('formValues') !== NULL) { $defaults = json_decode($this->media->getParam('formValues'), TRUE); if ($defaults) { $this->setDefaults($defaults); } } //$this['send']->getControlPrototype()->class = "submit"; }
function __construct($params = []) { $class = static::MODEL; if ($params["id"]) { $this->model = $class::find($params["id"]); } else { $this->model = new $class([]); if (in_array("sort_order", $class::FIELDS) && !@$params["sort_order"]) { $params["sort_order"] = $class::max("sort_order") + 1; } } $this->params = $this->model->attributes(); parent::__construct($params); }
/** * Constructor. * * @param sfUser A sfUser instance * @param array An array of options * @param string A CSRF secret (false to disable CSRF protection, null to use the global CSRF secret) * * @see sfForm */ public function __construct(sfUser $user = null, $options = array(), $CSRFSecret = null) { if (is_null($user)) { $user = sfContext::getInstance()->getUser(); } $this->user = $user; if (!isset($options['languages'])) { $options['languages'] = sfConfig::get('app_a_i18n_languages', false); if ($options['languages'] === false) { throw new RuntimeException(sprintf('%s requires a "languages" option.', get_class($this))); } } parent::__construct(array('language' => $user->getCulture()), $options, $CSRFSecret); }
/** * Constructor. * * @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($defaults = array(), $options = array(), $CSRFSecret = null) { if (isset($options['member']) && $options['member'] instanceof Member) { $this->setMember($options['member']); } else { $this->setMember(Doctrine::getTable('Member')->createPre()); } $this->memberForm = new MemberForm($this->getMember()); $this->profileForm = new MemberProfileForm($this->getMember()->getProfiles()); $this->profileForm->setRegisterWidgets(); $this->configForm = new MemberConfigForm($this->getMember()); parent::__construct($defaults, $options, $CSRFSecret); $this->mergePostValidator(new sfValidatorCallback(array('callback' => array($this, 'validateMobileUID')))); $this->widgetSchema->setNameFormat('auth[%s]'); }
function __construct($params = []) { $clean_params = array_intersect_key($params, array_flip(static::VALID_FIELDS)); parent::__construct($clean_params); $this->params["override_price"] = $params["price"]; $this->params["original_admission_level"] = @$this->params["admission_level"]; $this->params["at_door"] = false; $this->params["paid"] = true; $this->params["checked_in"] = false; $this->params["canceled"] = false; $this->params["badge_reprints"] = 0; $d = new DateTime(); $this->params["created_at"] = $d->format("Y-m-d H:i:s"); if (!@$this->params["badge_type"]) { $this->select_badge_type(); } }