You are here

class ParserIcalCreatorComponent in iCal feed parser 7.2

A wrapper on iCalcreator component class.

Hierarchy

Expanded class hierarchy of ParserIcalCreatorComponent

File

includes/ParserIcalCreator.inc, line 275
Basic classes.

View source
class ParserIcalCreatorComponent implements ParserIcalComponentInterface {
  protected $component;
  private $_serialized_component;

  /**
   * Constructor.
   *
   * @param
   *   vcalendar object configured, but not parsed.
   */
  public function __construct($component) {
    $this->component = $component;
  }

  /**
   * Serialization helper.
   */
  public function __sleep() {
    $this->_serialized_component = serialize($this->component);
    return array(
      '_serialized_component',
    );
  }

  /**
   * Unserialization helper.
   */
  public function __wakeup() {
    ParserIcalCreator::loadLibrary();
    $this->component = unserialize($this->_serialized_component);
  }
  public function getComponentType() {
    return $this
      ->getProperty('objName');
  }
  public function setComponentType($type) {
    return $this
      ->setProperty('objName', $type);
  }
  public function getProperty($name) {
    return $this->component
      ->getProperty($name, FALSE, TRUE);
  }
  public function setProperty($name, $value) {
    return $this->component
      ->setProperty($name, $value);
  }

}

Members