/** * Constructor */ public function __construct($note, $attributes, $data) { parent::__construct($attributes, $data); $this->inline = $this->getAttribute('inline', false); $this->hidden = $this->getAttribute('hidden', false); $this->note = $note; $this->id = -1; if ($this->isBackReferenced()) { $this->id = $this->note->getScope()->getReferenceId(); } }
/** * Constructor */ public function __construct($scope, $namespaceName, $name) { parent::__construct(); $this->scope = $scope; $this->namespaceName = $namespaceName; $this->id = -1; $this->name = $name; $this->inline = false; $this->reference = array(); $this->text = ''; $this->processed = false; }
/** * Constructor */ public function __construct($source, $data) { parent::__construct(); $this->nameParts = array('', ''); if ($source == '{configuration}') { $this->initializeConfigNote($data); } else { $this->initializePageNote($data); } $this->attributes['source'] = $source; }