public function __construct() { $this->tesc_code = new \PSU\Model\FormSelect(array('label' => 'Subject:', 'options' => self::tests(), 'required' => true)); $this->test_score = new \PSU\Model\FormNumber('required=1'); $this->test_date = new \PSU\Model\FormDate('required=1'); parent::__construct(); }
public function __construct() { $this->id = new \PSU\Model\FormNumber('hidden=1&required=1'); $this->student_gate_system_id = new \PSU\Model\FormNumber('hidden=1&required=1'); $this->constituent_school_id = new \PSU\Model\FormSelect('label=Cooperating Teacher:&required=1'); $this->association_attribute = new \PSU\Model\FormSelect(array('options' => $this->association_attributes())); parent::__construct(); }
/** * */ public function __construct() { $this->faculty_pidm = new FormNumber(); $this->association_attribute = new FormText(); $this->start_date = new FormDate(); $this->end_date = new FormDate(); parent::__construct(); }
public function __construct() { $this->id = new \PSU\Model\FormNumber('hidden=1'); $this->school_id = new \PSU\Model\FormSelect(array('label' => 'School:', 'options' => self::collection('\\PSU\\TeacherCert\\Schools'), 'required' => true)); $this->grade = new \PSU\Model\FormText('required=1'); $this->interview_ind = new \PSU\Model\FormSelect(array('label' => 'Had interview?', 'options' => \PSU\Model\FormSelect::yesno())); $this->placement = new \PSU\Model\FormText('required=1'); $this->notes = new \PSU\Model\FormTextarea(); parent::__construct(); }
public function __construct() { $this->name = new \PSU\Model\FormText('maxlength=60&required=true'); $this->street_line1 = new \PSU\Model\FormText('label=Street Line 1&maxlength=75'); $this->street_line2 = new \PSU\Model\FormText('label=Street Line 2&maxlength=75'); $this->city = new \PSU\Model\FormText('required=true&maxlenth=50'); $this->state = new \PSU\Model\FormText('maxlength=3'); $this->zip = new \PSU\Model\FormText('maxlength=30'); $this->phone = new \PSU\Model\FormText('maxlength=20'); $this->fax = new \PSU\Model\FormText('maxlength=20'); parent::__construct(); }
public function __construct() { $this->name = new \PSU\Model\FormText('maxlength=60&required=true'); $this->sau_id = new \PSU\Model\FormSelect(array('label' => 'SAU:', 'options' => self::collection('\\PSU\\TeacherCert\\SAUs'))); $this->district_id = new \PSU\Model\FormSelect(array('label' => 'District:', 'options' => self::collection('\\PSU\\TeacherCert\\Districts'))); $this->school_type_id = new \PSU\Model\FormSelect(array('label' => 'School Type:', 'options' => self::collection('\\PSU\\TeacherCert\\SchoolTypes'))); $this->school_approval_level_id = new \PSU\Model\FormSelect(array('label' => 'Approval Level:', 'options' => self::collection('\\PSU\\TeacherCert\\SchoolApprovalLevels'))); $this->grade_span = new \PSU\Model\FormText('maxlength=20'); $this->enrollment = new \PSU\Model\FormText('maxlength=5'); $this->street_line1 = new \PSU\Model\FormText('maxlength=75'); $this->street_line2 = new \PSU\Model\FormText('maxlength=75'); $this->city = new \PSU\Model\FormText('maxlength=50'); $this->state = new \PSU\Model\FormText('maxlength=3'); $this->zip = new \PSU\Model\FormText('maxlength=30'); $this->phone = new \PSU\Model\FormText('maxlength=20'); $this->fax = new \PSU\Model\FormText('maxlength=20'); parent::__construct(); }
use PSU\TeacherCert; respond('/[i:sgs_id]/[*]', function ($request, $response, $app) { $sgs_id = $request->param('sgs_id'); $app->populate(TeacherCert\Student\GateSystem::get($sgs_id)); $app->populate('schools', new TeacherCert\Schools()); $app->populate('school_model', new TeacherCert\Model\Student\School()); $app->populate('teacher_model', new TeacherCert\Model\Student\CooperatingTeacher()); $app->populate('cancel_url', $app->resolver($app->student_gate_system)); $app->breadcrumbs->push(new PSU\Template\Breadcrumb($app->student_gate_system->gate_system()->name, $app->resolver($app->gate_system))); $app->breadcrumbs->push(new PSU\Template\Breadcrumb(sprintf('%s (%s)', $app->student_gate_system->student()->person()->formatName('f l'), $app->student_gate_system->student()->person()->id), $app->resolver($app->student_gate_system))); $app->populate_constituents = function () use($app) { $rc = TeacherCert\ActiveRecord::$rowcache = new TeacherCert\RowCache(); $where = sprintf('id IN (SELECT constituent_id FROM psu_teacher_cert.constituent_schools WHERE school_id = %d)', $app->student_school->school_id); $rc->cache('PSU\\TeacherCert\\Constituent', 'id', $where); $constituent_schools = new TeacherCert\CooperatingTeachers($app->student_school->school_id); $schools_options = TeacherCert\Model::collection($constituent_schools, 'name=constituent_name'); usort($schools_options, function ($a, $b) { return strnatcasecmp($a[1], $b[1]); }); $app->teacher_model->constituent_school_id->options = $schools_options; }; }); respond('GET', '/[i:sgs_id]/[add|edit|delete:action]/[i:ss_id]?', function ($request, $response, $app) { $ss_id = $request->param('ss_id'); if ('edit' === $request->param('action')) { $app->populate('student_school', TeacherCert\Student\School::get($ss_id)); $app->populate_constituents(); // populate form with existing school data $f = get_object_vars($app->student_school); if (isset($_SESSION['tcert-student-school-save'])) { $sf = $_SESSION['tcert-student-school-save'];
public function __construct() { $this->teaching_term_code = new \PSU\Model\FormText(array('label' => 'Student Teaching Term:', 'maxlength' => 6)); parent::__construct(); }