PATH:
home
/
letacommog
/
crmleta
/
modules
/
Mobile
/
third-party
/
qCal
/
qCal
/
Property
<?php /** * Categories Property * @package qCal * @copyright Luke Visinoni (luke.visinoni@gmail.com) * @author Luke Visinoni (luke.visinoni@gmail.com) * @license GNU Lesser General Public License */ class qCal_Property_MultiValue extends qCal_Property { /** * Property value * @var qCal_Value object */ protected $value = array(); /** * MultiValue properties contain an array of values rather than one, so we * store them in an array and return them comma-separated. */ public function getValue() { $return = array(); foreach ($this->value as $value) { $return[] = $value->__toString(); } return implode(chr(44), $return); } /** * Sets the value of this property. Overwrites any previous values. Use addValue to * add rather than overwrite. * @todo I'm not sure I like how this is done. Eventually I will come back to it. */ public function setValue($value) { if (!is_array($value)) { $value = array($value); } // parent::setValue($value); $this->value = array(); foreach ($value as $val) { $this->value[] = $this->convertValue($val); } return $this; } /** * Add a value to the array of values (rather than overwrite) */ public function addValue($value) { $this->value[] = $this->convertValue($value); return $this; } }
[+]
..
[-] LastModified.php
[edit]
[-] Trigger.php
[edit]
[-] Dtstart.php
[edit]
[-] Priority.php
[edit]
[-] RequestStatus.php
[edit]
[-] NonStandard.php
[edit]
[-] Resources.php
[edit]
[-] Duration.php
[edit]
[-] Description.php
[edit]
[-] Url.php
[edit]
[-] Due.php
[edit]
[-] Dtstamp.php
[edit]
[-] Method.php
[edit]
[-] Summary.php
[edit]
[-] Exrule.php
[edit]
[-] Repeat.php
[edit]
[-] Location.php
[edit]
[-] Class.php
[edit]
[-] Prodid.php
[edit]
[-] Transp.php
[edit]
[-] Attendee.php
[edit]
[-] Rrule.php
[edit]
[-] Comment.php
[edit]
[-] Tzurl.php
[edit]
[-] Freebusy.php
[edit]
[-] PercentComplete.php
[edit]
[-] Tzname.php
[edit]
[-] Version.php
[edit]
[-] Categories.php
[edit]
[-] Attach.php
[edit]
[-] Tzid.php
[edit]
[-] Uid.php
[edit]
[-] RelatedTo.php
[edit]
[-] Sequence.php
[edit]
[-] Created.php
[edit]
[-] Tzoffsetto.php
[edit]
[-] RecurrenceId.php
[edit]
[-] Organizer.php
[edit]
[-] Dtend.php
[edit]
[-] Calscale.php
[edit]
[-] Rdate.php
[edit]
[-] Action.php
[edit]
[-] MultiValue.php
[edit]
[-] Exdate.php
[edit]
[-] Contact.php
[edit]
[-] Completed.php
[edit]
[-] Status.php
[edit]
[-] Tzoffsetfrom.php
[edit]
[-] Geo.php
[edit]