0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
core
/
Tracker
/
Field
/
[
Home
]
File: Dropdown.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: Dropdown.php 33668 2011-03-25 20:48:59Z jonnybradley $ /** * Handler class for dropdown * * Letter key: ~d~ ~D~ * */ class Tracker_Field_Dropdown extends Tracker_Field_Abstract { private $type; function __construct($fieldInfo, $itemData, $trackerDefinition, $type = '') { $this->type = $type; parent::__construct($fieldInfo, $itemData, $trackerDefinition); } function getFieldData(array $requestData = array()) { $ins_id = $this->getInsertId(); if (!empty($requestData['other_'.$this->getInsertId()])) { $value = $requestData['other_'.$this->getInsertId()]; } elseif (isset($requestData[$this->getInsertId()])) { $value = $requestData[$this->getInsertId()]; } else { $value = $this->getValue(); } return array('value' => $value); } function renderInput($context = array()) { return $this->renderTemplate('trackerinput/dropdown.tpl', $context); } }