Esempio n. 1
0
 /**
  * Koństruktor
  *
  * @param	CUS_Mongo_Document	$oParent	obiekt "rodzica"
  * @param	array				$aData		dane na których operuje plugin
  * @param	string				$sPath		ścieżka do danych plugina
  * @param	bool				$bCreate	czy tworzony jest nowy plugin
  */
 public function __construct(Document $oParent, $sPath, array &$aData, $bCreate)
 {
     parent::__construct($aData);
     $this->oParent = $oParent;
     $this->sMongoPath = $sPath;
     $this->bCreate = $bCreate;
 }
Esempio n. 2
0
 public function action()
 {
     if ($this->task != null) {
         if ($this->task->getDocumentType() == 'Task') {
             $this->task->setCompletion($this);
         }
     }
     return parent::action();
 }
Esempio n. 3
0
 public function action()
 {
     if ($this->task != null) {
         if ($this->task->getDocumentType() == 'Task') {
             if ($this->task->getProcessing() != null) {
                 $this->setProcessing($this->task->getProcessing());
             }
             $this->task->setProcessing($this);
         }
     }
     return parent::action();
 }
 public function __construct($id, $revision)
 {
     parent::__construct('delete', $id, $revision);
 }
 /**
  * Processes documents.
  *
  * @param AbstractDocument $item
  */
 protected function processData($item)
 {
     echo " {$item->getId()} \n";
 }
Esempio n. 6
0
 /**
  * @return \WsdlToPhp\PackageGenerator\DomHandler\Wsdl\Wsdl
  */
 public function getContent()
 {
     return parent::getContent();
 }
 /**
  * @inheritdoc
  */
 public function reset()
 {
     parent::reset();
     $this->mpdf = $this->createMpdfInstance($this->options);
 }
Esempio n. 8
0
 /**
  * Retorna o número do Título Eleitoral sem a máscara.
  * @return string
  */
 public function getValueUnmasked()
 {
     $this->value->padLeft('0', $this->getLength());
     return parent::getValueUnMasked();
 }
 public function __construct($id, $revision, $lang = 'en', array $fields = array())
 {
     parent::__construct('add', $id, $revision, $lang);
     $this->fields = (object) $fields;
 }