0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
core
/
Tracker
/
Field
/
[
Home
]
File: Simple.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: Simple.php 33788 2011-04-02 17:47:12Z lphuberdeau $ /** * Handler class for simple fields: * * - email key ~m~ * - ip key ~I~ */ class Tracker_Field_Simple 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(); return array( 'value' => (isset($requestData[$ins_id])) ? $requestData[$ins_id] : $this->getValue(), ); } function renderInput($context = array()) { return $this->renderTemplate("trackerinput/{$this->type}.tpl", $context); } }