public function __construct($fieldsAndValues) { $logger = Logger::getLogger('NounRoot.__construct'); $logger->debug("new NounRoot"); parent::__construct($fieldsAndValues); $logger->debug("new NounRoot, apr�s parent::__construct"); $this->number = $fieldsAndValues['number']; if ($this->number == NULL || $this->number == '') { $this->number = 's'; } $this->cf = $fieldsAndValues['cf']; if ($this->cf != NULL && $this->cf != '') { $this->cfs = explode(' ', $this->cf); } $this->dialect = $fieldsAndValues['dialect']; $this->source = $fieldsAndValues['source']; if ($this->source == NULL || $this->source == '') { $this->source = 'A2'; } $this->sources = explode(' ', $this->source); // Racine de composition pour les racines duelles et plurielles $this->compositionRoot = $fieldsAndValues['compositionRoot']; $this->morphemeID = self::make_id($fieldsAndValues); $logger->debug("new NounRoot, exit"); }
public function __construct(rsMysql $db, rsHeader $head, rsContainer $body) { $this->docs = array('login' => 14, 'pwforgotten' => 47, 'register' => 46); $this->Benutzer = new rsUser(); if (!$this->is_logged_in() && !in_array($this->detect_requested_page(), $this->docs)) { $_GET['i'] = $this->docs['login']; } if ($this->Benutzer->auth()) { $this->docs = array_merge($this->docs, array('meinclara' => 13, 'stundenplan' => 87, 'terminplan' => 90)); } $this->section = array_search($this->detect_requested_page(), $this->docs); $this->userdb = new rsMysql('user'); $this->groupmemberdb = new rsMysql('groupmember'); parent::__construct($db, $head, $body); }
public function __construct($fieldsAndValues) { $inuktitut_php = getenv('PHP_INUKTITUT'); if ($fieldsAndValues != null) { parent::__construct($fieldsAndValues); $this->antipassive = $fieldsAndValues['antipassive']; $this->transinfix = $fieldsAndValues['transSuffix']; $this->intransinfix = $fieldsAndValues['intransSuffix']; $this->transitivity = $fieldsAndValues['transitivity']; $this->cf = $fieldsAndValues['cf']; if ($this->cf != NULL && $this->cf != '') { $this->cfs = explode(' ', $this->cf); } $this->dialect = $fieldsAndValues['dialect']; $this->source = $fieldsAndValues['source']; if ($this->source == NULL || $this->source == '') { $this->source = 'A2'; } $this->sources = explode(' ', $this->source); $this->morphemeID = self::make_id($fieldsAndValues); } }
public function __construct($fieldsAndValues) { parent::__construct($fieldsAndValues); $this->morpheme = $fieldsAndValues['morpheme']; $this->engMeaning = $fieldsAndValues['engMean']; $this->frenchMeaning = $fieldsAndValues['freMean']; if (isset($fieldsAndValues['dbName'])) { $this->dbName = $fieldsAndValues['dbName']; } if (isset($fieldsAndValues['tableName'])) { $this->tableName = $fieldsAndValues['tableName']; } $this->variant = $fieldsAndValues['variant']; $this->key = $fieldsAndValues['key']; if ($this->key == NULL || $this->key == '') { $this->key = '1'; } if (isset($fieldsAndValues['composition'])) { $this->comb = $fieldsAndValues['composition']; } if ($this->comb != NULL && $this->comb != '') { $this->combinedMorphemes = explode('+', $this->comb); if (count($this->combinedMorphemes) < 2) { $this->combinedMorphemes = NULL; } else { $rootId = $this->combinedMorphemes[0]; } } $this->number = $fieldsAndValues['number']; if ($this->number == NULL || $this->number == '') { $this->number = 's'; } $this->person = $fieldsAndValues['per']; if ($this->person == NULL || $this->person == '') { $this->number = '3'; } $this->morphemeID = self::make_id($fieldsAndValues); }
public function __construct(rsMysql $db, rsHeader $head, rsContainer $body) { parent::__construct($db, $head, $body); }
public function __construct($n) { parent::__construct(); $this->name = $n; $this->noise = rand(); }