/** * @param ENTRY $entry Will be attached to this object. */ public function __construct($entry) { $folder = $entry->parent_folder(); parent::__construct($folder); $this->_entry = $entry; $field = new TEXT_FIELD(); $field->id = 'type'; $field->caption = 'Type'; $field->required = true; $field->visible = false; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'create_thumbnail'; $field->caption = 'Generate thumbnail'; $field->sticky = true; $this->add_field($field); $field = new INTEGER_FIELD(); $field->id = 'thumbnail_size'; $field->caption = 'Thumbnail'; $field->min_value = 32; $field->max_value = 400; $field->sticky = true; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'overwrite'; $field->caption = 'Overwrite existing file'; $field->sticky = true; $this->add_field($field); $field = new UPLOAD_FILE_FIELD(); $field->id = 'file_name'; $field->caption = 'File'; $field->required = true; $this->add_field($field); }
/** * @param PROJECT $folder Project in which to add or edit the release. */ public function __construct($folder) { parent::__construct($folder); $field = new INTEGER_FIELD(); $field->id = 'state'; $field->caption = ''; $this->add_field($field); $field = new DATE_FIELD(); $field->id = 'time_scheduled'; $field->caption = 'Ship date'; $this->add_field($field); $field = new DATE_FIELD(); $field->id = 'time_testing_scheduled'; $field->caption = 'Test date'; $this->add_field($field); $field = new MUNGER_TEXT_FIELD(); $field->id = 'summary'; $field->caption = 'Summary'; $field->max_length = 65535; $this->add_field($field); $field = new INTEGER_FIELD(); $field->id = 'branch_id'; $field->caption = 'Branch'; $this->add_field($field); $branch_query = $folder->branch_query(); $this->_branches = $branch_query->objects(); }
/** * @param APPLICATION $folder */ public function __construct($folder) { parent::__construct($folder); $field = new URI_FIELD(); $field->id = 'icon_url'; $field->caption = 'Icon URL'; $this->add_field($field); }
/** * @param PROJECT $folder Project in which to add or edit the job. */ public function __construct($folder) { parent::__construct($folder); $field = new INTEGER_FIELD(); $field->id = 'parent_release_id'; $field->caption = 'Parent release'; $this->add_field($field); $field = new INTEGER_FIELD(); $field->id = 'state'; $field->caption = 'Status'; $this->add_field($field); }
/** * @param FOLDER $folder Edit this folder. */ public function __construct($folder) { parent::__construct($folder); $field = new URI_FIELD(); $field->id = 'icon_url'; $field->caption = 'Icon'; $this->add_field($field); $field = new MUNGER_TEXT_FIELD(); $field->id = 'summary'; $field->caption = 'Summary'; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'is_organizational'; $field->caption = 'Organizer'; $field->description = 'Used for structure; cannot add new content'; $this->add_field($field); }
/** * @param FOLDER $folder Object is created/edited in this folder. */ public function __construct($folder) { parent::__construct($folder); $field = new TEXT_FIELD(); $field->id = 'attachments'; $field->caption = 'Attachments'; $this->add_field($field); $field = new TEXT_FIELD(); $field->id = 'alignments'; $field->caption = 'Alignments'; $this->add_field($field); $field = new TEXT_FIELD(); $field->id = 'sizes'; $field->caption = 'Sizes'; $this->add_field($field); $field = new TEXT_FIELD(); $field->id = 'caption_modes'; $field->caption = 'Caption Modes'; $this->add_field($field); }