class ParserIcalCreatorComponent in iCal feed parser 7.2
A wrapper on iCalcreator component class.
Hierarchy
- class \ParserIcalCreatorComponent implements ParserIcalComponentInterface
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParserIcalCreatorComponent:: |
protected | property | ||
ParserIcalCreatorComponent:: |
private | property | ||
ParserIcalCreatorComponent:: |
public | function |
Overrides ParserIcalComponentInterface:: |
|
ParserIcalCreatorComponent:: |
public | function |
Overrides ParserIcalComponentInterface:: |
|
ParserIcalCreatorComponent:: |
public | function |
Overrides ParserIcalComponentInterface:: |
|
ParserIcalCreatorComponent:: |
public | function |
Overrides ParserIcalComponentInterface:: |
|
ParserIcalCreatorComponent:: |
public | function | Constructor. | |
ParserIcalCreatorComponent:: |
public | function | Serialization helper. | |
ParserIcalCreatorComponent:: |
public | function | Unserialization helper. |