/** * used to configure object with database's data options * * @access protected * */ protected function configureProperties() { //first character if ($this->tipo[0] != self::NODE_TYPE) { return false; } //second character ignored because not applicable //third character delegated to parent class //fourth character delegated to parent class //fifth character ignored because not applicable //sixth character delegated to parent class return parent::configureProperties(); }
/** * used to configure object with database's data options * * @access protected * */ protected function configureProperties() { $this->shuffle_answers = true; //first character if ($this->tipo[0] != self::NODE_TYPE) { return false; } //second character ignored because not applicable //third character delegated to parent class //fourth character delegated to parent class //fifth character switch ($this->tipo[4]) { default: case ADA_NO_TEST_BARRIER: $this->barrier = false; break; case ADA_YES_TEST_BARRIER: $this->barrier = true; break; } //sixth character delegated to parent class return parent::configureProperties(); }