/**
  * Constructor
  *
  * @param Tracker                        $tracker     The tracker
  * @param Tracker_FormElement_Field_List $list_field  The field
  * @param array                          $open_values The values with the meaning "Open"
  */
 public function __construct(Tracker $tracker, Tracker_FormElement_Field_List $list_field = null, $open_values = array())
 {
     parent::__construct($tracker);
     $this->list_field = $list_field;
     $this->open_values = $open_values;
 }
 /**
  * Cosntructor
  *
  * @param Tracker                        $tracker    The tracker
  * @param Tracker_FormElement_Field_List $list_field The field
  */
 public function __construct(Tracker $tracker, Tracker_FormElement_Field_List $list_field = null)
 {
     parent::__construct($tracker);
     $this->list_field = $list_field;
 }
 /**
  * Creates new Tracker_Semantic in the database
  *
  * @param Tracker_Semantic $semantic The semantic to save
  * @param Tracker          $tracker  The tracker
  *
  * @return bool true if the semantic is saved, false otherwise
  */
 public function saveObject($semantic, $tracker)
 {
     $semantic->setTracker($tracker);
     return $semantic->save();
 }
 /**
  * Constructor
  *
  * @param Tracker                           $tracker    The tracker
  * @param Tracker_FormElement_Field $initial_effort_field The field
  */
 public function __construct(Tracker $tracker, Tracker_FormElement_Field $initial_effort_field = null)
 {
     parent::__construct($tracker);
     $this->initial_effort_field = $initial_effort_field;
 }
 public function displaySemanticHeader(Tracker_Semantic $semantic, TrackerManager $tracker_manager)
 {
     $this->tracker->displayAdminItemHeader($tracker_manager, 'editsemantic', array(array('url' => TRACKER_BASE_URL . '/?' . http_build_query(array('tracker' => $this->tracker->getId(), 'func' => 'admin-semantic', 'semantic' => $semantic->getShortName())), 'title' => $semantic->getLabel(), 'description' => $semantic->getDescription())), $semantic->getLabel());
 }
 /**
  * Export the semantic to SOAP format
  * @return array the SOAPification of the semantic
  */
 public function exportToSOAP(PFUser $user)
 {
     $SOAP_array = parent::exportToSoap($user);
     if ($SOAP_array['field_name']) {
         $SOAP_array['values'] = $this->getOpenValues();
     } else {
         $SOAP_array['values'] = array();
     }
     return $SOAP_array;
 }
 /**
  * Cosntructor
  *
  * @param Tracker                        $tracker    The tracker
  * @param Tracker_FormElement_Field_Text $text_field The field
  */
 public function __construct(Tracker $tracker, Tracker_FormElement_Field_Text $text_field = null)
 {
     parent::__construct($tracker);
     $this->text_field = $text_field;
 }
예제 #8
0
 public function __construct(Tracker $tracker)
 {
     parent::__construct($tracker);
 }