Fix a bunch of bugs discovered through RRULE expansion issues.
[awl.git] / inc / vObject.php
blobd0984d1c6fb57f27361434c4f3404261ae624686
1 <?php
2 /**
3 * Created by JetBrains PhpStorm.
4 * User: milan
5 * Date: 7/4/13
6 * Time: 12:59 PM
7 * To change this template use File | Settings | File Templates.
8 */
10 abstract class vObject {
12 protected $lineHeap;
14 protected $valid = true;
15 protected $master;
17 function __construct(&$master = null){
18 $this->master = isset($master) ? $master : $this;
22 function isValid(){
23 return $this->valid;
26 protected function invalidate(){
27 if ( isset($this->master) && $this->master != $this ) $this->master->invalidate();
28 $this->valid = false;
31 function setMaster($master){
32 $this->master = $master;
35 public function getMaster(){
36 return $this->master;
39 /**
40 * parse a lineHead to component or propertie
41 * @return
43 //abstract function parse();