query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets a collection of OperationScenarii objects related by a onetomany relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null) { $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis); $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete; foreach ($operationScenariisToDelete as $operationScenariiRemoved) { $operationScenariiRemoved->setOperationPrimes(null); } $this->collOperationScenariis = null; foreach ($operationScenariis as $operationScenarii) { $this->addOperationScenarii($operationScenarii); } $this->collOperationScenariis = $operationScenariis; $this->collOperationScenariisPartial = false; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRelations(Collection $relations);", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aOperations instanceof Persistent) {\n $this->aOperations->clearAllReferences($deep);\n }\n if ($this->aRCurrencies instanceof Persistent) {\n $this->aRCurrencies->clearAllReferences($deep);\n }\n if ($this->aRRewardTypes instanceof Persistent) {\n $this->aRRewardTypes->clearAllReferences($deep);\n }\n if ($this->aRRewardExpeditionModes instanceof Persistent) {\n $this->aRRewardExpeditionModes->clearAllReferences($deep);\n }\n if ($this->aRRewardTransporters instanceof Persistent) {\n $this->aRRewardTransporters->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collOperationPrestationss instanceof PropelCollection) {\n $this->collOperationPrestationss->clearIterator();\n }\n $this->collOperationPrestationss = null;\n if ($this->collOperationScenariis instanceof PropelCollection) {\n $this->collOperationScenariis->clearIterator();\n }\n $this->collOperationScenariis = null;\n if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) {\n $this->collLnkOperationPrimeRCountriess->clearIterator();\n }\n $this->collLnkOperationPrimeRCountriess = null;\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n }", "public function setRelations() {}", "public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }", "public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }", "private function desabilitaPoolIdsObjetosManipulados()\n {\n \t// setando para null o atributo _arrayObjetosManipulados\n \t$this->_arrayObjetosManipulados = null;\n }", "public function setActions(PropelCollection $actions, PropelPDO $con = null)\n {\n $actionsToDelete = $this->getActions(new Criteria(), $con)->diff($actions);\n\n $this->actionsScheduledForDeletion = unserialize(serialize($actionsToDelete));\n\n foreach ($actionsToDelete as $actionRemoved) {\n $actionRemoved->setActionType(null);\n }\n\n $this->collActions = null;\n foreach ($actions as $action) {\n $this->addAction($action);\n }\n\n $this->collActions = $actions;\n $this->collActionsPartial = false;\n\n return $this;\n }", "public function setSolicitacaoResgatesRelatedBySolicitanteId(PropelCollection $solicitacaoResgatesRelatedBySolicitanteId, PropelPDO $con = null)\n\t{\n\t\t$this->solicitacaoResgatesRelatedBySolicitanteIdScheduledForDeletion = $this->getSolicitacaoResgatesRelatedBySolicitanteId(new Criteria(), $con)->diff($solicitacaoResgatesRelatedBySolicitanteId);\n\n\t\tforeach ($solicitacaoResgatesRelatedBySolicitanteId as $solicitacaoResgateRelatedBySolicitanteId) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($solicitacaoResgateRelatedBySolicitanteId->isNew()) {\n\t\t\t\t$solicitacaoResgateRelatedBySolicitanteId->setUsuarioRelatedBySolicitanteId($this);\n\t\t\t}\n\t\t\t$this->addSolicitacaoResgateRelatedBySolicitanteId($solicitacaoResgateRelatedBySolicitanteId);\n\t\t}\n\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = $solicitacaoResgatesRelatedBySolicitanteId;\n\t}", "public function setRatings(Collection $ratings, ConnectionInterface $con = null)\n {\n /** @var ChildRating[] $ratingsToDelete */\n $ratingsToDelete = $this->getRatings(new Criteria(), $con)->diff($ratings);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->ratingsScheduledForDeletion = clone $ratingsToDelete;\n\n foreach ($ratingsToDelete as $ratingRemoved) {\n $ratingRemoved->setArticle(null);\n }\n\n $this->collRatings = null;\n foreach ($ratings as $rating) {\n $this->addRating($rating);\n }\n\n $this->collRatings = $ratings;\n $this->collRatingsPartial = false;\n\n return $this;\n }", "public function computeChangeSets()\n {\n $this->computeScheduleInsertsChangeSets();\n\n // Compute changes for other MANAGED documents. Change tracking policies take effect here.\n foreach ($this->identityMap as $className => $documents) {\n $class = $this->dm->getClassMetadata($className);\n if($class->isEmbeddedDocument) {\n // Embedded documents should only compute by the document itself which include the embedded document.\n // This is done separately later.\n // @see computeChangeSet()\n // @see computeAssociationChanges()\n continue;\n }\n\n // If change tracking is explicit or happens through notification, then only compute\n // changes on documents of that type that are explicitly marked for synchronization.\n $documentsToProcess = ! $class->isChangeTrackingDeferredImplicit() ?\n (isset($this->scheduledForDirtyCheck[$className]) ?\n $this->scheduledForDirtyCheck[$className] : array())\n : $documents;\n\n foreach ($documentsToProcess as $document) {\n // Ignore uninitialized proxy objects\n if (/* $document is readOnly || */ $document instanceof Proxy && ! $document->__isInitialized__) {\n continue;\n }\n // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION are processed here.\n $oid = spl_object_hash($document);\n if ( ! isset($this->documentInsertions[$oid]) && isset($this->documentStates[$oid])) {\n $this->computeChangeSet($class, $document);\n }\n }\n }\n }", "protected function addActionsForRelatedEntities()\n {\n if (! $this->mapper) {\n return;\n }\n\n foreach ($this->mapper->getRelations() as $name) {\n $this->mapper->getRelation($name)->addActions($this);\n }\n }", "protected\tfunction\tsetRelations() {}", "protected\tfunction\tsetRelations() {}", "public function setRuangs(PropelCollection $ruangs, PropelPDO $con = null)\n {\n $ruangsToDelete = $this->getRuangs(new Criteria(), $con)->diff($ruangs);\n\n $this->ruangsScheduledForDeletion = unserialize(serialize($ruangsToDelete));\n\n foreach ($ruangsToDelete as $ruangRemoved) {\n $ruangRemoved->setBangunan(null);\n }\n\n $this->collRuangs = null;\n foreach ($ruangs as $ruang) {\n $this->addRuang($ruang);\n }\n\n $this->collRuangs = $ruangs;\n $this->collRuangsPartial = false;\n\n return $this;\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function setCriteriaCollection(CriteriaCollection $collection);", "public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }", "public function limpaArrayIdsObjetosManipulados()\n {\n \t// limpando o array de ids de objetos manipulados\n \t$this->_arrayObjetosManipulados = array();\n }", "public function setNoticias(PropelCollection $noticias, PropelPDO $con = null)\n\t{\n\t\t$this->noticiasScheduledForDeletion = $this->getNoticias(new Criteria(), $con)->diff($noticias);\n\n\t\tforeach ($noticias as $noticia) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($noticia->isNew()) {\n\t\t\t\t$noticia->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addNoticia($noticia);\n\t\t}\n\n\t\t$this->collNoticias = $noticias;\n\t}", "public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }", "public function set()\n {\n\tforeach( $this->queue as $operation => $actions)\n\t{\n\t foreach($actions as $key => $action)\n\t {\n\t\tif ( is_array($action->sql))\n\t\t{\n\t\t array_walk($action->sql, array($this, 'query'));\n\t\t}\n\t\telse\n\t\t{\n\t\t $this->query($action->sql);\n\t\t}\n\t }\n\t}\n }", "public function setCOMConditions(Collection $cOMConditions, ConnectionInterface $con = null)\n {\n /** @var ChildCOMCondition[] $cOMConditionsToDelete */\n $cOMConditionsToDelete = $this->getCOMConditions(new Criteria(), $con)->diff($cOMConditions);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cOMConditionsScheduledForDeletion = clone $cOMConditionsToDelete;\n\n foreach ($cOMConditionsToDelete as $cOMConditionRemoved) {\n $cOMConditionRemoved->setCommande(null);\n }\n\n $this->collCOMConditions = null;\n foreach ($cOMConditions as $cOMCondition) {\n $this->addCOMCondition($cOMCondition);\n }\n\n $this->collCOMConditions = $cOMConditions;\n $this->collCOMConditionsPartial = false;\n\n return $this;\n }", "public function setCMDTAppareils(Collection $cMDTAppareils, ConnectionInterface $con = null)\n {\n /** @var ChildCMDTAppareil[] $cMDTAppareilsToDelete */\n $cMDTAppareilsToDelete = $this->getCMDTAppareils(new Criteria(), $con)->diff($cMDTAppareils);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cMDTAppareilsScheduledForDeletion = clone $cMDTAppareilsToDelete;\n\n foreach ($cMDTAppareilsToDelete as $cMDTAppareilRemoved) {\n $cMDTAppareilRemoved->setCommande(null);\n }\n\n $this->collCMDTAppareils = null;\n foreach ($cMDTAppareils as $cMDTAppareil) {\n $this->addCMDTAppareil($cMDTAppareil);\n }\n\n $this->collCMDTAppareils = $cMDTAppareils;\n $this->collCMDTAppareilsPartial = false;\n\n return $this;\n }", "private function computeScheduleInsertsChangeSets()\n {\n foreach ($this->documentInsertions as $document) {\n $class = $this->dm->getClassMetadata(get_class($document));\n\n $this->computeChangeSet($class, $document);\n }\n }", "protected function _updateNotification($collection)\n {\n foreach ($collection as $value) {\n $value->setAdminPendingNotification(0);\n $value->setId($value->getEntityId())->save();\n }\n }", "public function aRemoveAllFrom ($attribute, $logical = false)\n {\n // CHEK: attribute es un atributo hasMany\n\n // Si el rol tiene el nombre de la assoc declarado, necesito ver cual es el nombre\n // completo de la key en hasOne o hasMany porque usa attribute__assocName.\n $attribute = $this->getRoleWithAssocName( $attribute );\n\n // Verifica si la relacion hasMany esta cargada, y sino la carga\n $this->lazyLoadHasMany($attribute);\n\n // Aqui llega con la coleccion cargada o inicializada, siempre!\n // =================================================================\n\n // Si la coleccion no tiene elementos no hace nada.\n if ( count($this->attributeValues[$attribute]) == 0 ) return;\n \n // Aqui llega si hay elementos en la coleccion.\n // =================================================================\n\n $pm = PersistentManager::getInstance();\n\n // Busco en atributos hasMany attr y si encuentro elimino.\n foreach ( $this->attributeValues[$attribute] as $i => $obj )\n {\n // Saca de la relacion el objeto con id=$id\n $this->attributeValues[$attribute][$i] = null;\n $this->attributeValues[$attribute] = array_filter($this->attributeValues[$attribute]); // La forma PHP de hacerlo... array sin NULLs...\n\n // TODO: Verificar si el nombre de este atributo es el correcto!\n // Dado el otro objeto y mi atributo, quiero el atributo del otro objeto que corresponda a la relacion con mi atributo.\n $attr2 = $obj->getHasOneAttributeNameByAssocAttribute( get_class($this), $attribute );\n if ($attr2 == NULL) $attr2 = $obj->getHasManyAttributeNameByAssocAttribute( get_class($this), $attribute );\n // FIXME: Problema si el atributo es hasOne! no encuentra el nombre del atributo!\n // TODO: La operacion deberia ser para los 2 lados y ser tanto para n-n como para 1-n\n \n // Por defecto la asociacion se borra fisicamente.\n $pm->remove_assoc( $this, $obj, $attribute, $attr2, $logical ); // TODO: Ok ahora falta hacer que el get considere asociaciones solo con daleted false cuando carga.\n }\n \n $this->dirtyMany = true; // Marca como editado el hasMany\n \n }", "private function executeExtraUpdates()\n {\n foreach ($this->extraUpdates as $oid => $update) {\n list ($entity, $changeset) = $update;\n $this->entityChangeSets[$oid] = $changeset;\n $this->getEntityPersister(get_class($entity))->update($entity);\n }\n $this->extraUpdates = [];\n }", "public function beforeSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::MANY_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY\n ) {\n foreach ($this->owner->$rel['name'] as $m) {\n $m->save();\n }\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE) {\n $this->owner->{$rel['name']}->save();\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::BELONGS_TO) {\n if ($this->owner->$rel['name'] === null) {\n // Set link ID attribute of owner model as null.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], null);\n } else {\n // Save related model.\n $this->owner->{$rel['name']}->save();\n // Set link ID attribute of owner model as new relation ID.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], $this->owner->{$rel['name']}->id);\n }\n }\n }\n }", "protected function buildRelations()\n {\n if ($this->relations_built) {\n return;\n }\n $this_class = $this->base_class;\n\n foreach ($this_class::$relations as $field => $options) {\n $object = null;\n\n $target_class = $options['rel_class'];\n\n // Segun el lugar de la llave foránea, creamos el objeto\n if ($options['fk_location'] == self::FK_THIS) {\n // Si existe la llave foranea, y tiene un valor\n if (isset($this->fields[$options['foreing_key']])) {\n if ($options['rel_type'] == 'one') {\n $object = $target_class::get(\n $this->fields[$options['foreing_key']]\n );\n } else {\n throw new \\LogicException (\"UNIMPLEMENTED FK_THIS with 'many'\");\n }\n } else {\n // No existe la llave. Creamos objetos vacíos\n if ($options['rel_type'] == 'one') {\n $object = new $target_class;\n } else {\n throw new \\LogicException (\"UNIMPLEMENTED FK_THIS with 'many'\");\n }\n }\n } else {\n // La llave foránea está en el target_class\n if ($options['rel_type'] == 'one') {\n $object = $target_class::get([\n $options['foreing_key'] => $this->fields[$options['primary_key']]\n ]);\n } else {\n $object = new RecordSet($target_class, \n [$options['foreing_key'] => $this->fields[$options['primary_key']]]);\n }\n\n\n }\n //var_dump($object); exit;\n\n\n $this->object_fields[$field] = $object;\n }\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao) {\n\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioAlteracao as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro) {\n\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioCadastro as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRlUsuarioOrgaos) {\n\t\t\t\tforeach ($this->collRlUsuarioOrgaos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collTbDescricaoChamados) {\n\t\t\t\tforeach ($this->collTbDescricaoChamados as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUsuarioCategorias) {\n\t\t\t\tforeach ($this->collUsuarioCategorias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUsuarioTarefas) {\n\t\t\t\tforeach ($this->collUsuarioTarefas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao instanceof PropelCollection) {\n\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao->clearIterator();\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = null;\n\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro instanceof PropelCollection) {\n\t\t\t$this->collPermissaosRelatedByCoUsuarioCadastro->clearIterator();\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = null;\n\t\tif ($this->collRlUsuarioOrgaos instanceof PropelCollection) {\n\t\t\t$this->collRlUsuarioOrgaos->clearIterator();\n\t\t}\n\t\t$this->collRlUsuarioOrgaos = null;\n\t\tif ($this->collTbDescricaoChamados instanceof PropelCollection) {\n\t\t\t$this->collTbDescricaoChamados->clearIterator();\n\t\t}\n\t\t$this->collTbDescricaoChamados = null;\n\t\tif ($this->collUsuarioCategorias instanceof PropelCollection) {\n\t\t\t$this->collUsuarioCategorias->clearIterator();\n\t\t}\n\t\t$this->collUsuarioCategorias = null;\n\t\tif ($this->collUsuarioTarefas instanceof PropelCollection) {\n\t\t\t$this->collUsuarioTarefas->clearIterator();\n\t\t}\n\t\t$this->collUsuarioTarefas = null;\n\t\t$this->aPerfil = null;\n\t}", "public function buildRelations()\n {\n $this->addRelation('CiOptionsRelatedByIdOptionTipoAsociado', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_option_tipo_asociado',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdOptionNivelAsociado', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_option_nivel_asociado',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('CiUsuariosRelatedByInvitadoPor', '\\\\CiUsuarios', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':invitado_por',\n 1 => ':id_usuario',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdOpcionRole', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_opcion_role',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('HbfTurnosRelatedByIdTurno', '\\\\HbfTurnos', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_turno',\n 1 => ':id_turno',\n ),\n), null, null, null, false);\n $this->addRelation('HbfSesionesRelatedByIdSesion', '\\\\HbfSesiones', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_sesion',\n 1 => ':id_sesion',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdTipoUsuario', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_tipo_usuario',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('HbfClubsRelatedByIdClub', '\\\\HbfClubs', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_club',\n 1 => ':id_club',\n ),\n), null, null, null, false);\n $this->addRelation('CiModulosRelatedByIdUserCreated', '\\\\CiModulos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiModulossRelatedByIdUserCreated', false);\n $this->addRelation('CiModulosRelatedByIdUserModified', '\\\\CiModulos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiModulossRelatedByIdUserModified', false);\n $this->addRelation('CiOptionsRelatedByIdUserCreated', '\\\\CiOptions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiOptionssRelatedByIdUserCreated', false);\n $this->addRelation('CiOptionsRelatedByIdUserModified', '\\\\CiOptions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiOptionssRelatedByIdUserModified', false);\n $this->addRelation('CiSessions', '\\\\CiSessions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_usuario',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSessionss', false);\n $this->addRelation('CiSettingsRelatedByIdUserCreated', '\\\\CiSettings', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSettingssRelatedByIdUserCreated', false);\n $this->addRelation('CiSettingsRelatedByIdUserModified', '\\\\CiSettings', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSettingssRelatedByIdUserModified', false);\n $this->addRelation('CiUsuariosRelatedByIdUsuario', '\\\\CiUsuarios', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':invitado_por',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiUsuariossRelatedByIdUsuario', false);\n $this->addRelation('HbfClubsRelatedByIdUserCreated', '\\\\HbfClubs', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfClubssRelatedByIdUserCreated', false);\n $this->addRelation('HbfClubsRelatedByIdUserModified', '\\\\HbfClubs', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfClubssRelatedByIdUserModified', false);\n $this->addRelation('HbfComandasRelatedByIdUserCreated', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdUserCreated', false);\n $this->addRelation('HbfComandasRelatedByIdUserModified', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdUserModified', false);\n $this->addRelation('HbfComandasRelatedByIdCliente', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdCliente', false);\n $this->addRelation('HbfDetallesPedidosRelatedByIdUserCreated', '\\\\HbfDetallesPedidos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfDetallesPedidossRelatedByIdUserCreated', false);\n $this->addRelation('HbfDetallesPedidosRelatedByIdUserModified', '\\\\HbfDetallesPedidos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfDetallesPedidossRelatedByIdUserModified', false);\n $this->addRelation('HbfEgresosRelatedByIdUserCreated', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdUserCreated', false);\n $this->addRelation('HbfEgresosRelatedByIdUserModified', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdUserModified', false);\n $this->addRelation('HbfEgresosRelatedByIdCliente', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdCliente', false);\n $this->addRelation('HbfIngresosRelatedByIdUserCreated', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdUserCreated', false);\n $this->addRelation('HbfIngresosRelatedByIdUserModified', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdUserModified', false);\n $this->addRelation('HbfIngresosRelatedByIdCliente', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdCliente', false);\n $this->addRelation('HbfPorcionesRelatedByIdUserCreated', '\\\\HbfPorciones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPorcionessRelatedByIdUserCreated', false);\n $this->addRelation('HbfPorcionesRelatedByIdUserModified', '\\\\HbfPorciones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPorcionessRelatedByIdUserModified', false);\n $this->addRelation('HbfPrepagosRelatedByIdCliente', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdCliente', false);\n $this->addRelation('HbfPrepagosRelatedByIdUserCreated', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdUserCreated', false);\n $this->addRelation('HbfPrepagosRelatedByIdUserModified', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdUserModified', false);\n $this->addRelation('HbfProductosRelatedByIdUserCreated', '\\\\HbfProductos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfProductossRelatedByIdUserCreated', false);\n $this->addRelation('HbfProductosRelatedByIdUserModified', '\\\\HbfProductos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfProductossRelatedByIdUserModified', false);\n $this->addRelation('HbfSesionesRelatedByIdUserCreated', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdUserCreated', false);\n $this->addRelation('HbfSesionesRelatedByIdUserModified', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdUserModified', false);\n $this->addRelation('HbfSesionesRelatedByIdAsociado', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_asociado',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdAsociado', false);\n $this->addRelation('HbfTurnosRelatedByIdUserCreated', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdUserCreated', false);\n $this->addRelation('HbfTurnosRelatedByIdUserModified', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdUserModified', false);\n $this->addRelation('HbfTurnosRelatedByIdAsociado', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_asociado',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdAsociado', false);\n $this->addRelation('HbfVasosRelatedByIdUserModified', '\\\\HbfVasos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), 'CASCADE', 'CASCADE', 'HbfVasossRelatedByIdUserModified', false);\n $this->addRelation('HbfVasosRelatedByIdUserCreated', '\\\\HbfVasos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), 'CASCADE', 'CASCADE', 'HbfVasossRelatedByIdUserCreated', false);\n $this->addRelation('HbfVentasRelatedByIdUserCreated', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdUserCreated', false);\n $this->addRelation('HbfVentasRelatedByIdUserModified', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdUserModified', false);\n $this->addRelation('HbfVentasRelatedByIdCliente', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdCliente', false);\n }", "public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }", "function init()\n {\n foreach ($GLOBALS['_PX_models'] as $model=>$val) {\n if (isset($val['relate_to'])) {\n foreach ($val['relate_to'] as $related) {\n if ($this->_model == $related) {\n // The current model is related to $model\n // through one or more foreign key. We load\n // the $model to check on which fields the\n // foreign keys are set, as it is possible in\n // one model to have several foreign keys to\n // the same other model.\n if ($model != $this->_model) {\n $_m = new $model();\n $_fkeys = $_m->getForeignKeysToModel($this->_model);\n } else {\n $_fkeys = $this->getForeignKeysToModel($this->_model);\n }\n foreach ($_fkeys as $_fkey=>$_fkeyval) {\n //For each foreign key, we add the\n //get_xx_list method that can have a\n //custom name through the relate_name\n //value.\n if (isset($_fkeyval['relate_name'])) {\n $mname = $_fkeyval['relate_name'];\n } else {\n $mname = strtolower($model);\n }\n $this->_methods_list['get_'.$mname.'_list'] = array($model, $_fkey);\n }\n break;\n }\n }\n }\n if (isset($val['relate_to_many']) && \n in_array($this->_model, $val['relate_to_many'])) {\n $this->_methods_list['get_'.strtolower($model).'_list'] = $model;\n $this->_manytomany[$model] = 'manytomany';\n }\n }\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']($col);\n if ($field->type == 'foreignkey') {\n $this->_methods_get['get_'.strtolower($col)] = array($val['model'], $col);\n $this->_fk[$col] = 'foreignkey';\n }\n if ($field->type == 'manytomany') {\n $this->_methods_list['get_'.strtolower($col).'_list'] = $val['model'];\n $this->_manytomany[$val['model']] = 'manytomany';\n }\n foreach ($field->add_methods as $method) {\n $this->_methods_extra[$method[0]] = array(strtolower($col), $method[1]);\n }\n }\n }", "public function setColetaPesquisas(PropelCollection $coletaPesquisas, PropelPDO $con = null)\n\t{\n\t\t$this->coletaPesquisasScheduledForDeletion = $this->getColetaPesquisas(new Criteria(), $con)->diff($coletaPesquisas);\n\n\t\tforeach ($coletaPesquisas as $coletaPesquisa) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($coletaPesquisa->isNew()) {\n\t\t\t\t$coletaPesquisa->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addColetaPesquisa($coletaPesquisa);\n\t\t}\n\n\t\t$this->collColetaPesquisas = $coletaPesquisas;\n\t}", "public function run()\r\n {\r\n $services = App\\service::all();\r\n\r\n foreach ($services as $service)\r\n {\r\n $service->stylists()->save(\\App\\service::find(1));\r\n $service->stylists()->save(\\App\\service::find(2));\r\n $service->stylists()->save(\\App\\service::find(3));\r\n }\r\n\r\n }", "public function setAuditorias(PropelCollection $auditorias, PropelPDO $con = null)\n\t{\n\t\t$this->auditoriasScheduledForDeletion = $this->getAuditorias(new Criteria(), $con)->diff($auditorias);\n\n\t\tforeach ($auditorias as $auditoria) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($auditoria->isNew()) {\n\t\t\t\t$auditoria->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addAuditoria($auditoria);\n\t\t}\n\n\t\t$this->collAuditorias = $auditorias;\n\t}", "public function setPremios(PropelCollection $premios, PropelPDO $con = null)\n\t{\n\t\t$this->premiosScheduledForDeletion = $this->getPremios(new Criteria(), $con)->diff($premios);\n\n\t\tforeach ($premios as $premio) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($premio->isNew()) {\n\t\t\t\t$premio->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addPremio($premio);\n\t\t}\n\n\t\t$this->collPremios = $premios;\n\t}", "public function updateBordereauremises() {\n $bordereauremises_ids = WorkflowExec::where('model_type', Bordereauremise::class)\n ->where('current_step_id', $this->id)\n ->get()->pluck('model_id')->toArray();\n $bordereauremises = Bordereauremise::whereIn('id', $bordereauremises_ids)\n ->get();\n\n if ($bordereauremises) {\n foreach ($bordereauremises as $bordereauremise) {\n $this->updateBordereauremise($bordereauremise);\n }\n }\n }", "public function touch()\n {\n $key = $this->getRelated ()->getKeyName ();\n $columns = $this->getRelatedFreshUpdate ();\n $ids = $this->getRelatedIds ();\n if ( count ( $ids ) > 0 ) {\n $this->getRelated ()->newQuery ()->whereIn ( $key, $ids )->update ( $columns );\n }\n }", "public function filterByOperations($operations, $comparison = null)\n {\n if ($operations instanceof Operations) {\n return $this\n ->addUsingAlias(ClientSitesPeer::CL_SITE_ID, $operations->getClSiteIdForLog(), $comparison);\n } elseif ($operations instanceof PropelObjectCollection) {\n return $this\n ->useOperationsQuery()\n ->filterByPrimaryKeys($operations->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByOperations() only accepts arguments of type Operations or PropelCollection');\n }\n }", "public function saveRelations($attributes = [])\n {\n $this->categories()->sync(array_get($attributes, 'categories', []));\n $this->tags()->sync(array_get($attributes, 'tags', []));\n $this->upSellProducts()->sync(array_get($attributes, 'up_sells', []));\n $this->crossSellProducts()->sync(array_get($attributes, 'cross_sells', []));\n $this->relatedProducts()->sync(array_get($attributes, 'related_products', []));\n }", "public function computeChangeSets()\n {\n // Compute changes for INSERTed entities first. This must always happen.\n $this->computeScheduleInsertsChangeSets();\n // Compute changes for other MANAGED entities. Change tracking policies take effect here.\n foreach ($this->identityMap as $className => $entities) {\n $class = $this->manager->getClassMetadata($className);\n // Skip class if instances are read-only\n if ($class->isReadOnly()) {\n continue;\n }\n // If change tracking is explicit or happens through notification, then only compute\n // changes on entities of that type that are explicitly marked for synchronization.\n switch (true) {\n case ($class->isChangeTrackingDeferredImplicit()):\n $entitiesToProcess = $entities;\n break;\n case (isset($this->scheduledForSynchronization[$className])):\n $entitiesToProcess = $this->scheduledForSynchronization[$className];\n break;\n default:\n $entitiesToProcess = [];\n }\n foreach ($entitiesToProcess as $entity) {\n // Ignore uninitialized proxy objects\n if ($entity instanceof Proxy && !$entity->__isInitialized__) {\n continue;\n }\n // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.\n $oid = spl_object_hash($entity);\n if (!isset($this->entityInsertions[$oid]) &&\n !isset($this->entityDeletions[$oid]) &&\n isset($this->entityStates[$oid])\n ) {\n $this->computeChangeSet($class, $entity);\n }\n }\n }\n }", "public function onConstruct()\n {\n $this->useDynamicUpdate(true); // set for all, without this phalcon sometimes will re-select from database and overwrite your changes if you call save() more than 1 time\n $this->keepSnapshots(true);\n $modelRelationAlias = $this->getModelsManager()->getRelations(get_called_class());\n foreach ($modelRelationAlias as $alias)\n {\n $this->modelRelations[$alias->getType()][] = $alias->getOption('alias');\n }\n }", "public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }", "protected function saveRelations()\n {\n $spotIdsToRemove = $relationsToAdd = [\n 'photos' => [],\n 'tags' => [],\n 'amenities' => [],\n 'locations' => []\n ];\n // Preparing spots remote photos for insert\n if($this->photos != [])\n {\n foreach($this->photos as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['associated_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['associated_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['photos'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['associated_id']))\n {\n $relationsToAdd['photos'][] = $item;\n }\n }\n }\n }\n // Preparing spots amenities for insert\n if($this->amenities != [])\n {\n foreach($this->amenities as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['amenities'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['amenities'][] = $item;\n }\n }\n }\n }\n // Preparing spots tags for insert\n if($this->tags != [])\n {\n foreach($this->tags as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['tags'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['tags'][] = $item;\n }\n }\n }\n }\n // Preparing spots points for insert\n if($this->locations != [])\n {\n foreach($this->locations as $remote_id => $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['locations'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['locations'][] = $item;\n }\n }\n }\n // Database transaction to remove all old relations of existing spots and add new relations for inserted and updated spots\n DB::transaction(function() use ($spotIdsToRemove, $relationsToAdd) {\n if($spotIdsToRemove['photos'] != [])\n {\n DB::table('remote_photos')->whereIn('associated_id', $spotIdsToRemove['photos'])->where('associated_type', Spot::class)->delete();\n }\n if($spotIdsToRemove['amenities'] != [])\n {\n DB::table('spot_amenities')->whereIn('spot_id', $spotIdsToRemove['amenities'])->delete();\n }\n if($spotIdsToRemove['tags'] != [])\n {\n DB::table('spot_tag')->whereIn('spot_id', $spotIdsToRemove['tags'])->delete();\n }\n if($spotIdsToRemove['locations'] != [])\n {\n DB::table('spot_points')->whereIn('spot_id', $spotIdsToRemove['locations'])->delete();\n }\n if($relationsToAdd['photos'] != [])\n {\n DB::table('remote_photos')->insert($relationsToAdd['photos']);\n }\n if($relationsToAdd['amenities'] != [])\n {\n DB::table('spot_amenities')->insert($relationsToAdd['amenities']);\n }\n if($relationsToAdd['tags'] != [])\n {\n DB::table('spot_tag')->insert($relationsToAdd['tags']);\n }\n if($relationsToAdd['locations'] != [])\n {\n DB::table('spot_points')->insert($relationsToAdd['locations']);\n }\n });\n }", "public function setPesquisas(PropelCollection $pesquisas, PropelPDO $con = null)\n\t{\n\t\t$this->pesquisasScheduledForDeletion = $this->getPesquisas(new Criteria(), $con)->diff($pesquisas);\n\n\t\tforeach ($pesquisas as $pesquisa) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($pesquisa->isNew()) {\n\t\t\t\t$pesquisa->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addPesquisa($pesquisa);\n\t\t}\n\n\t\t$this->collPesquisas = $pesquisas;\n\t}", "public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }", "public function setSolicitacaoResgatesRelatedByAprovadorId(PropelCollection $solicitacaoResgatesRelatedByAprovadorId, PropelPDO $con = null)\n\t{\n\t\t$this->solicitacaoResgatesRelatedByAprovadorIdScheduledForDeletion = $this->getSolicitacaoResgatesRelatedByAprovadorId(new Criteria(), $con)->diff($solicitacaoResgatesRelatedByAprovadorId);\n\n\t\tforeach ($solicitacaoResgatesRelatedByAprovadorId as $solicitacaoResgateRelatedByAprovadorId) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($solicitacaoResgateRelatedByAprovadorId->isNew()) {\n\t\t\t\t$solicitacaoResgateRelatedByAprovadorId->setUsuarioRelatedByAprovadorId($this);\n\t\t\t}\n\t\t\t$this->addSolicitacaoResgateRelatedByAprovadorId($solicitacaoResgateRelatedByAprovadorId);\n\t\t}\n\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId = $solicitacaoResgatesRelatedByAprovadorId;\n\t}", "private function _set_relationships()\n {\n if(empty($this->_relationships))\n {\n $options = array('has_one','has_many','has_many_pivot');\n foreach($options as $option)\n {\n if(isset($this->{$option}) && !empty($this->{$option}))\n {\n foreach($this->{$option} as $key => $relation)\n {\n $foreign_model = (is_array($relation)) ? $relation[0] : $relation;\n $foreign_model_name = strtolower($foreign_model);\n $this->load->model($foreign_model_name);\n $foreign_table = $this->{$foreign_model_name}->table;\n if($option=='has_many_pivot')\n {\n $tables = array($this->table, $foreign_table);\n sort($tables);\n $pivot_table = $tables[0].'_'.$tables[1];\n $foreign_key = (is_array($relation)) ? $relation[1] : $this->{$foreign_model_name}->primary;\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n else\n {\n $foreign_key = (is_array($relation)) ? $relation[1] : singular($this->table) . '_id';\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n $this->_relationships[$key] = array('relation' => $option, 'relation_key' => $key, 'foreign_model' => $foreign_model_name, 'foreign_table' => $foreign_table, 'foreign_key' => $foreign_key, 'local_key' => $local_key);\n ($option == 'has_many_pivot') ? ($this->_relationships[$key]['pivot_table'] = $pivot_table) : FALSE;\n\n }\n }\n }\n }\n }", "public function setCleanUpObjects($cleanUpObjects) {}", "public function buildRelations()\n {\n $this->addRelation('Evaluacion', '\\\\Evaluacion', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_evaluacion',\n 1 => ':eval_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Objetivo', '\\\\Objetivo', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_objetivo',\n 1 => ':obje_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Pregunta', '\\\\Pregunta', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_pregunta',\n 1 => ':preg_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Seccion', '\\\\Seccion', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_seccion',\n 1 => ':secc_codigo',\n ),\n), null, 'CASCADE', null, false);\n }", "public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }", "function establecer_m2_reservas_concretadas() {\n// inner join lote on (res_lot_id=lot_id)\n// inner join zona on (lot_zon_id=zon_id)\n// where res_promotor like 'NET%'\");\n// $reservas = FUNCIONES::lista_bd_sql(\"select res_id,zon_precio from reserva_terreno\n// inner join lote on (res_lot_id=lot_id)\n// inner join zona on (lot_zon_id=zon_id)\n// where res_multinivel = 'si' and res_monto_m2=0\");\n\n\n\n $reservas = FUNCIONES::lista_bd_sql(\"select res_id,ven_metro from reserva_terreno\n\n inner join venta on (ven_res_id=res_id)\n\n where res_monto_m2=0 and res_estado in ('Concretado') and ven_estado in ('Pendiente','Pagado')\");\n\n\n\n $conec = new ADO();\n\n foreach ($reservas as $res) {\n\n $conec->ejecutar(\"update reserva_terreno set res_monto_m2=$res->ven_metro where res_id=$res->res_id\");\n }\n}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collMonths) {\n foreach ($this->collMonths as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFileCats) {\n foreach ($this->collFileCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collDocCats) {\n foreach ($this->collDocCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBookks) {\n foreach ($this->collBookks as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAccounts) {\n foreach ($this->collAccounts as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collReports) {\n foreach ($this->collReports as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collProjects) {\n foreach ($this->collProjects as $o) {\n $o->clearAllReferences($deep);\n }\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collMonths instanceof PropelCollection) {\n $this->collMonths->clearIterator();\n }\n $this->collMonths = null;\n if ($this->collFileCats instanceof PropelCollection) {\n $this->collFileCats->clearIterator();\n }\n $this->collFileCats = null;\n if ($this->collDocCats instanceof PropelCollection) {\n $this->collDocCats->clearIterator();\n }\n $this->collDocCats = null;\n if ($this->collBookks instanceof PropelCollection) {\n $this->collBookks->clearIterator();\n }\n $this->collBookks = null;\n if ($this->collAccounts instanceof PropelCollection) {\n $this->collAccounts->clearIterator();\n }\n $this->collAccounts = null;\n if ($this->collReports instanceof PropelCollection) {\n $this->collReports->clearIterator();\n }\n $this->collReports = null;\n if ($this->collProjects instanceof PropelCollection) {\n $this->collProjects->clearIterator();\n }\n $this->collProjects = null;\n }", "public function addOperationScenarii(OperationScenarii $l)\n {\n if ($this->collOperationScenariis === null) {\n $this->initOperationScenariis();\n $this->collOperationScenariisPartial = true;\n }\n\n if (!in_array($l, $this->collOperationScenariis->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationScenarii($l);\n\n if ($this->operationScenariisScheduledForDeletion and $this->operationScenariisScheduledForDeletion->contains($l)) {\n $this->operationScenariisScheduledForDeletion->remove($this->operationScenariisScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public static function merge()\n {\n $mongo = Mage::getModel('hackathon_ordertransaction/mongo');\n $quotes = $mongo->getQuotes();\n foreach ($quotes as $quote) {\n try {\n $mongo->setToDelete($quote['quote_id']);\n $persistentOrder = Mage::getResourceModel('sales/order');\n $persistentOrder->setData($quote['order']);\n $persistentOrder->save();\n unset($persistentOrder);\n } catch (Exception $e) {\n $mongo->revertToOrder($quote['quote_id']);\n Mage::logException($e);\n }\n }\n unset($quotes, $mongo);\n }", "public function clearPermissaosRelatedByCoUsuarioAlteracao()\n\t{\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function setCMDPieces(Collection $cMDPieces, ConnectionInterface $con = null)\n {\n /** @var ChildCMDPiece[] $cMDPiecesToDelete */\n $cMDPiecesToDelete = $this->getCMDPieces(new Criteria(), $con)->diff($cMDPieces);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cMDPiecesScheduledForDeletion = clone $cMDPiecesToDelete;\n\n foreach ($cMDPiecesToDelete as $cMDPieceRemoved) {\n $cMDPieceRemoved->setCommande(null);\n }\n\n $this->collCMDPieces = null;\n foreach ($cMDPieces as $cMDPiece) {\n $this->addCMDPiece($cMDPiece);\n }\n\n $this->collCMDPieces = $cMDPieces;\n $this->collCMDPiecesPartial = false;\n\n return $this;\n }", "public function setEventI18ns(PropelCollection $eventI18ns, PropelPDO $con = null)\n {\n $this->eventI18nsScheduledForDeletion = $this->getEventI18ns(new Criteria(), $con)->diff($eventI18ns);\n\n foreach ($this->eventI18nsScheduledForDeletion as $eventI18nRemoved) {\n $eventI18nRemoved->setEvent(null);\n }\n\n $this->collEventI18ns = null;\n foreach ($eventI18ns as $eventI18n) {\n $this->addEventI18n($eventI18n);\n }\n\n $this->collEventI18ns = $eventI18ns;\n $this->collEventI18nsPartial = false;\n\n return $this;\n }", "function setForeign($elements){\n\t\tglobal $Sql;\n\t\t$res = $Sql->q_mod(\"DELETE FROM cupon_producto WHERE idCupon=?;\",array($this->data['id']));\n\t\tforeach( $elements['productos'] as $k=>$v ){\n\t\t\t$tmp = array();\n\t\t\tforeach( $v as $key=>$value ){\n\t\t\t\t$key = str_replace(\"'\",\"\",$key);\n\t\t\t\t$tmp[$key] = $value;\n\t\t\t}\n\t\t\t$v = $tmp;\n\t\t\tif( empty($v['product']) ){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$data = array(\n\t\t\t\t\"idCupon\" => $this->data['id'],\n\t\t\t\t\"idProducto\" => $v['product'],\n\t\t\t\t\"descuento\" => $v['dcto']\n\t\t\t);\n\t\t\t$res = $Sql->q_mod(\"INSERT INTO cupon_producto(idCupon,idProducto,descuento) VALUES(?,?,?)\",array_values($data));\n\t\t}\n\t}", "public function setCOMEndusers(Collection $cOMEndusers, ConnectionInterface $con = null)\n {\n /** @var ChildCOMEnduser[] $cOMEndusersToDelete */\n $cOMEndusersToDelete = $this->getCOMEndusers(new Criteria(), $con)->diff($cOMEndusers);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cOMEndusersScheduledForDeletion = clone $cOMEndusersToDelete;\n\n foreach ($cOMEndusersToDelete as $cOMEnduserRemoved) {\n $cOMEnduserRemoved->setCommande(null);\n }\n\n $this->collCOMEndusers = null;\n foreach ($cOMEndusers as $cOMEnduser) {\n $this->addCOMEnduser($cOMEnduser);\n }\n\n $this->collCOMEndusers = $cOMEndusers;\n $this->collCOMEndusersPartial = false;\n\n return $this;\n }", "protected function registerOperationResources(SchemaOperationCollection $operationCollection): void\n {\n foreach ($operationCollection->getIterator() as $routeName => $methodList) {\n $operationCollection->addSchemaResource($routeName, $this->mapRouteNameToSourceFile[$routeName]);\n }\n }", "public function update($models): void\n {\n if ($models->isEmpty()) {\n return;\n }\n\n $index = $models->first()->searchableAs();\n\n if ($this->usesSoftDelete($models->first()) && $this->softDelete) {\n $models->each->pushSoftDeleteMetadata();\n }\n\n $objects = $models->map(function ($model) {\n if (empty($searchableData = $model->toSearchableArray())) {\n return;\n }\n\n return array_merge(\n $searchableData,\n $model->scoutMetadata(),\n ['objectID' => $model->getScoutKey()],\n );\n })->filter()->values();\n\n if (! empty($objects)) {\n $this->openSearch->bulkUpdate($index, $objects);\n }\n }", "public function setComentarioNoticias(PropelCollection $comentarioNoticias, PropelPDO $con = null)\n\t{\n\t\t$this->comentarioNoticiasScheduledForDeletion = $this->getComentarioNoticias(new Criteria(), $con)->diff($comentarioNoticias);\n\n\t\tforeach ($comentarioNoticias as $comentarioNoticia) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($comentarioNoticia->isNew()) {\n\t\t\t\t$comentarioNoticia->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addComentarioNoticia($comentarioNoticia);\n\t\t}\n\n\t\t$this->collComentarioNoticias = $comentarioNoticias;\n\t}", "private function computeScheduleInsertsChangeSets()\n {\n foreach ($this->entityInsertions as $entity) {\n $class = $this->manager->getClassMetadata(get_class($entity));\n $this->computeChangeSet($class, $entity);\n }\n }", "public function setItems(Collection $items, ConnectionInterface $con = null)\n {\n /** @var Item[] $itemsToDelete */\n $itemsToDelete = $this->getItems(new Criteria(), $con)->diff($items);\n\n\n $this->itemsScheduledForDeletion = $itemsToDelete;\n\n foreach ($itemsToDelete as $itemRemoved) {\n $itemRemoved->setBiblio(null);\n }\n\n $this->collItems = null;\n foreach ($items as $item) {\n $this->addItem($item);\n }\n\n $this->collItems = $items;\n $this->collItemsPartial = false;\n\n return $this;\n }", "public function handle(ActionFields $fields, Collection $models)\n {\n //\n\n $itemArrays = $fields -> item;\n $newArray = json_decode($itemArrays);\n\n foreach ($models as $model){\n foreach ($newArray as $getItem){\n\n $itemArray = $getItem->items;\n\n foreach ($itemArray as $item) {\n\n //if serial number bang null thi se ko add vao array\n $serialInputArray = [];\n if($item -> serialNumber != \"\"){\n array_push($serialInputArray, $item->serialNumber );\n }\n\n $newItem = Item::where('serialNumber', $item -> serialNumber)->first();\n if($newItem && $newItem->stockStatus == false){\n $newItem->stockStatus = true;\n $newItem->sale_order_id = null;\n $newItem->save();\n\n $updateSaleOrderModelType = \\App\\Models\\SaleOrderItem::where('id', $getItem -> id)->first();\n\n if($updateSaleOrderModelType){\n $updateSaleOrderModelType -> qty = $updateSaleOrderModelType -> qty + count($serialInputArray);\n $updateSaleOrderModelType -> shipped -= count($serialInputArray);\n $updateSaleOrderModelType -> save();\n }\n\n }\n }\n }\n }\n\n\n\n\n\n\n// $newArrays = [];\n//\n// $myArrs = explode(',', $fields->item);\n//\n// foreach ($models as $model) {\n// $sale_orders = SaleOrderModelType::where('sale_order_id', $model->id)->get();\n// $counting = count($myArrs);\n//\n// foreach ($myArrs as $myArr) {\n// $removeTrim = trim($myArr);\n//\n// if (!in_array($removeTrim, $newArrays)) {\n// array_push($newArrays, $removeTrim);\n//\n//\n// $items = Item::where('serialNumber', $removeTrim)->first();\n//\n// if ($items) {\n// $items -> stockStatus = true;\n// $items -> sale_order_id = null;\n// $items -> save();\n//\n// }\n// }\n//\n// }\n//\n// if($sale_orders){\n// foreach ($sale_orders as $sale_order){\n//\n// if($sale_order && $sale_order -> shipped > 0 && $sale_order -> shipped <= $counting ){\n// $sale_order -> qty += $sale_order -> shipped;\n// $counting -= $sale_order -> shipped;\n// $sale_order -> shipped = 0;\n// $sale_order -> save();\n// if($counting == 0){\n// return Action::message('Success');\n// }\n//\n// }elseif ($sale_order && $sale_order -> shipped > 0 && $sale_order -> shipped > $counting ){\n// $sale_order -> qty += $counting;\n// $sale_order -> shipped -= $counting;\n// $counting = 0;\n// $sale_order -> save();\n// if($counting == 0){\n// return Action::message('Success');\n// }\n// }\n// $counting -> save();\n//\n// }\n//\n// }\n//\n//\n// }\n }", "public function updateAllStoreAssociations() {\n\n $allstores = $this->getStores(null, 1);\n $this->load->model('user/productset');\n\n //echo count($allstores);\n\n //print_r($allstores);\n foreach ($allstores as $store_info) {\n //KMC new category management, disabled all categories first.\n //\n // ???? SHOULD I DELETE CATEGORIES FOR THE STORE/PRODUCTSETS FIRST??\n // Yes, I think we should otherwise we will not pick up good changes.\n $this->db->query(\"DELETE FROM \". DB_PREFIX . \"category WHERE store_code='\".$store_info['code'].\"'\");\n \n unset($productset_ids);\n\n // This picks up whatever is already set (checked in their catalog list) for a dealer.\n $productset_array = $this->model_user_productset->getProductsetsForStoreId($store_info['store_id']);\n\n foreach ($productset_array as $pset)\n {\n $productset_ids[] = $pset['productset_id'];\n }\n print_r($productset_ids);\n \t \n // For each productset ...\n if ($productset_ids) {\n \t\tforeach ($productset_ids as $productset_id) {\n // Make sure that we have categories defined for this productset, \n // else we have to add them based on our ZZZ store which holds the defaults.\n $this->load->model('catalog/category');\n $this->model_catalog_category->createStoreCategoriesIfNeeded($store_info['code'], $productset_id);\n \t\t}\n \n // Create the product_to_category associations.\n $this->load->model('productset/product');\n $this->model_productset_product->buildProductToCategoryAssociations($store_info['code'], $productset_ids);\n \n // Re-build related products for the dealer based no the default set of ZZZ.\n $this->model_productset_product->buildRelatedProductAssociations($store_info['code'], $productset_ids);\n \n // Now update the store_product table.\n $this->load->model('store/product');\n $this->model_store_product->createUnjunctionedProductRecords($store_info['code']);\n }\n }\n }", "public function saveUserImpressions($objects){\n try {\n foreach ($objects as $obj) {\n $obj = (object)$obj;\n $activityObj = new UserInteractionCollection();\n\n $activityObj->UserId = (int) $obj->UserId;\n\n $activityObj->userActivityIndex = CommonUtility::getUserActivityIndexByActionType($obj->ActionType);\n $activityObj->userActivityContext = CommonUtility::getUserActivityContextIndexByActionType($obj->RecentActivity);\n $activityObj->pageIndex = (int) 0;\n $activityObj->CreatedOn = new MongoDate(strtotime(date('Y-m-d H:i:s', time())));\n $activityObj->CreatedDate = date(\"Y-m-d\");\n $activityObj->ActionType = $obj->ActionType;\n $activityObj->RecentActivity = $obj->RecentActivity;\n\n $activityObj->NetworkId = (int)$obj->NetworkId;\n $activityObj->SegmentId = (int)$obj->SegmentId;\n $activityObj->Language = $obj->Language;\n \n $activityObj->CategoryType = (int)$obj->CategoryType;\n if(isset($obj->PostType)){\n $activityObj->PostId = new MongoId($obj->PostId);\n $activityObj->PostType = (int)$obj->PostType; \n }else if(isset($obj->WebLinkId)){\n $activityObj->WebLinkId = (int)$obj->WebLinkId;\n $activityObj->LinkGroupId = (int)$obj->LinkGroupId;\n $activityObj->WebUrl = $obj->WebUrl; \n }else if(isset($obj->JobId)){\n $activityObj->JobId = (int)$obj->JobId;\n }else if(isset($obj->AdId)){\n $activityObj->AdId = (int)$obj->AdId;\n $activityObj->Position = $obj->Position;\n $activityObj->Page = $obj->Page;\n }else if(isset($obj->GroupId)){\n $activityObj->GroupId = new MongoId($obj->GroupId);\n if(isset($obj->PostId))\n $activityObj->PostId = new MongoId($obj->PostId);\n if($obj->SubGroupId)\n $activityObj->SubGroupId = new MongoId($obj->SubGroupId);\n \n }\n \n $activityObj->save();\n $activityObj->NetworkId =(int) Yii::app()->params['NetWorkId'];\n $val = urlencode(CJSON::encode($activityObj));\n CommonUtility::executecurl(Yii::app()->params['ProphecyURL'], $val);\n }\n } catch (Exception $ex) {\n Yii::log(\"UserInteractionCollection:saveUserImpressions::\".$ex->getMessage().\"--\".$ex->getTraceAsString(), 'error', 'application');\n return \"failure\";\n }\n }", "public function update()\n {\n $ipodates = $this->fetchList();\n foreach ($ipodates as $key => $ipo) {\n $this->updateIPO($ipo[0], $ipo[1]);\n }\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collEtablissementEvents) {\n foreach ($this->collEtablissementEvents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRegionEvents) {\n foreach ($this->collRegionEvents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collEventI18ns) {\n foreach ($this->collEventI18ns as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collEtablissements) {\n foreach ($this->collEtablissements as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRegions) {\n foreach ($this->collRegions as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n // i18n behavior\n $this->currentLocale = 'fr';\n $this->currentTranslations = null;\n\n if ($this->collEtablissementEvents instanceof PropelCollection) {\n $this->collEtablissementEvents->clearIterator();\n }\n $this->collEtablissementEvents = null;\n if ($this->collRegionEvents instanceof PropelCollection) {\n $this->collRegionEvents->clearIterator();\n }\n $this->collRegionEvents = null;\n if ($this->collEventI18ns instanceof PropelCollection) {\n $this->collEventI18ns->clearIterator();\n }\n $this->collEventI18ns = null;\n if ($this->collEtablissements instanceof PropelCollection) {\n $this->collEtablissements->clearIterator();\n }\n $this->collEtablissements = null;\n if ($this->collRegions instanceof PropelCollection) {\n $this->collRegions->clearIterator();\n }\n $this->collRegions = null;\n }", "public function setOperations(Operations $v = null)\n {\n if ($v === null) {\n $this->setOpId(NULL);\n } else {\n $this->setOpId($v->getOpId());\n }\n\n $this->aOperations = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Operations object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }", "public function clearConcepts()\n {\n foreach ($this->relationships as $relationship) {\n $relationship->clearConcepts();\n }\n }", "public function __construct() {\n $this->disciplinas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->tendencias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->institucionalEstrategias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->ofertas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->estrategiaCampos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->eventos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->encuestas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "public function setCollection()\n {\n $cl = $this->nameCollection;\n $this->collection = self::$database->$cl;\n }", "public function run()\n {\n //Many to Many relacija\n factory(App\\Projekti::class, 6)->create()->each(function ($u) {\n $u->tags()->save(factory(App\\Tag::class)->make());\n });\n }", "public function buildRelations()\n\t{\n $this->addRelation('Tbnecesespecial', 'Tbnecesespecial', RelationMap::MANY_TO_ONE, array('id_neces_especial' => 'id_neces_especial', ), null, null);\n $this->addRelation('Tbcidade', 'Tbcidade', RelationMap::MANY_TO_ONE, array('naturalidade' => 'id_cidade', ), null, null);\n $this->addRelation('Tbpais', 'Tbpais', RelationMap::MANY_TO_ONE, array('nacionalidade' => 'id_pais', ), null, null);\n $this->addRelation('TblogradouroRelatedByCep', 'Tblogradouro', RelationMap::MANY_TO_ONE, array('cep' => 'cep', ), null, null);\n $this->addRelation('Tbcursoversao', 'Tbcursoversao', RelationMap::MANY_TO_ONE, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbtipoingresso', 'Tbtipoingresso', RelationMap::MANY_TO_ONE, array('id_tipo_ingresso' => 'id_tipo_ingresso', ), null, null);\n $this->addRelation('Tbalunosituacao', 'Tbalunosituacao', RelationMap::MANY_TO_ONE, array('id_situacao' => 'id_situacao', ), null, null);\n $this->addRelation('TbinstexternaRelatedByIdDestino', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_destino' => 'id_inst_externa', ), null, null);\n $this->addRelation('TbinstexternaRelatedById2grau', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_2grau' => 'id_inst_externa', ), null, null);\n $this->addRelation('TbinstexternaRelatedById3grau', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_3grau' => 'id_inst_externa', ), null, null);\n $this->addRelation('TbinstexternaRelatedByIdTrabalho', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_trabalho' => 'id_inst_externa', ), null, null);\n $this->addRelation('TblogradouroRelatedByCepTrabalho', 'Tblogradouro', RelationMap::MANY_TO_ONE, array('cep_trabalho' => 'cep', ), null, null);\n $this->addRelation('Tbpolos', 'Tbpolos', RelationMap::MANY_TO_ONE, array('id_polo' => 'id_polo', ), null, null);\n $this->addRelation('Tbalunoracacor', 'Tbalunoracacor', RelationMap::MANY_TO_ONE, array('id_raca' => 'id_raca', ), null, null);\n $this->addRelation('Tbpendencia', 'Tbpendencia', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbalunodiploma', 'Tbalunodiploma', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbalunosenha', 'Tbalunosenha', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbalunosolicitacao', 'Tbalunosolicitacao', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbbanca', 'Tbbanca', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbfila', 'Tbfila', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbhistorico', 'Tbhistorico', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('TbturmaAluno', 'TbturmaAluno', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n\t}", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}", "public function run()\n {\n \t/*factory(Category::Class, 5)->create();\n factory(Product::Class, 60)->create();\n factory(ProductImage::Class, 120)->create(); //un producto puede tener varias imagenes*/\n $categories = factory(Category::class, 4)->create();\n $categories->each(function($cat){\n \t$products = factory(Product::class, 5)->make(); // splp crea objetos, pero no almacena en la BD\n \t$cat->products()->saveMany($products); // guarda en la BD la coleccion de objetos\n \t\n \t$products->each(function ($pro){\n \t\t$images = factory(ProductImage::class, 3)->make();\n \t\t$pro->images()->saveMany($images);\n \t});\n });\n }", "public function updateAll() {\n $this->Corporations->update();\n $this->MemberTracking->update();\n $this->Facilities->update();\n $this->Industry->update();\n $this->Markets->update();\n $this->Contracts->update();\n $this->Wallet->update();\n $this->Assets->update();\n $this->Killmails->update();\n }", "public function setPatients(Collection $patients, ConnectionInterface $con = null)\n {\n $this->clearPatients();\n $currentPatients = $this->getPatients();\n\n $patientsScheduledForDeletion = $currentPatients->diff($patients);\n\n foreach ($patientsScheduledForDeletion as $toDelete) {\n $this->removePatient($toDelete);\n }\n\n foreach ($patients as $patient) {\n if (!$currentPatients->contains($patient)) {\n $this->doAddPatient($patient);\n }\n }\n\n $this->collPatientsPartial = false;\n $this->collPatients = $patients;\n\n return $this;\n }", "protected function persistObjects() {}", "#[ArrayShape([\n 'save' => 'Illuminate\\\\Database\\\\Eloquent\\\\Model[]',\n 'delete' => 'Illuminate\\\\Database\\\\Eloquent\\\\Model[]',\n ])]\n private function compareAndUpdate(\n Mensa $mensa,\n HasMany $collection,\n string $class,\n array $rawData,\n $updater\n ): array {\n $optionsToSave = [];\n $optionsToDelete = [];\n\n // Loop over all the raw data\n foreach ($rawData as $order => $rawItem) {\n /** @var Model $item */\n $item = null;\n // If the raw data contains an id we try to find it in the collection given or fail if it wasn't able to\n if (key_exists('id', $rawItem)) {\n $item = $collection->clone()->findOrFail($rawItem['id']);\n } else {\n // Otherwise we create a new object and associate it to the mensa\n /** @noinspection PhpUndefinedMethodInspection */\n $item = $class::make(['id' => Str::uuid()]);\n $item->mensa_id = $mensa->id;\n }\n\n // We update the order\n /** @noinspection PhpPossiblePolymorphicInvocationInspection */\n $item->order = $order;\n\n // We call the updater function with the item and the raw data\n $updater($item, $rawItem);\n // And add it to the save list\n $optionsToSave[] = $item;\n }\n\n // Then we check if we should delete any items by going over all previous items, and see if there are items that\n // are not in the new $optionsToSave array.\n foreach ($collection as $prevItem) {\n $comparer = function ($item) use ($prevItem) {\n return $item->id == $prevItem->id;\n };\n\n // If we were able to find the item we skip it\n if (array_first($optionsToSave, $comparer) != null) {\n continue;\n }\n\n // If we weren't able to find the item we add it up for deletion\n $optionsToDelete[] = $prevItem;\n }\n\n // Return the save and delete list\n return [\n 'save' => $optionsToSave,\n 'delete' => $optionsToDelete,\n ];\n }", "public function saveAll() {\n\t\t$originalCaret = $this->caret;\n\t\tforeach($this as $key => $row) {\n\t\t\t$this->save();\n\t\t}\n\t\t$this->caret = $originalCaret;\n\t}", "public function setValues($valueCollection) {\n\n foreach ($valueCollection as $key => $value) {\n if (isset($this[$key])) {\n $this[$key]->setValue($value);\n } //if\n } //foreach\n \n }", "public function initialize()\n {\n $this->hasMany('idmov', 'App\\Models\\MovEstoque', 'movimentacao_manual_estoque_idmov', array('alias' => 'MovEstoque'));\n $this->hasMany('idmov', 'App\\Models\\MovimentacaoManualEstoqueItem', 'idmov', array('alias' => 'MovimentacaoManualEstoqueItem'));\n $this->belongsTo('cd_ordem_servico_reparo', 'App\\Models\\OrdemServicoReparo', 'cd_ordem_servico', array('alias' => 'OrdemServicoReparo'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('requerente', 'App\\Models\\Empresa', 'cd_empresa', array('alias' => 'Empresa'));\n $this->belongsTo('usuario_responsavel', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function setCollection(CollectionInterface $collection);", "private function perfomOperations($insert, $update, $remove)\n {\n $bulkOperations = [];\n foreach ($insert as $id => $document) {\n $repository = $this->getObjectRepository($document);\n if ($repository instanceof GridFSRepository) {\n $repository->insertOne($document);\n unset($insert[$id]);\n } else {\n $query = $repository->insertOne($document, ['getQuery' => true]);\n $repositoryId = spl_object_hash($repository);\n $bulkOperations[$repositoryId] = isset($bulkOperations[$repositoryId]) ? $bulkOperations[$repositoryId] : $repository->createBulkWriteQuery();\n $bulkOperations[$repositoryId]->addQuery($query);\n }\n }\n\n foreach ($update as $id => $document) {\n $repository = $this->getObjectRepository($document);\n $query = $repository->updateOne($document, [], ['getQuery' => true]);\n $repositoryId = spl_object_hash($repository);\n $bulkOperations[$repositoryId] = isset($bulkOperations[$repositoryId]) ? $bulkOperations[$repositoryId] : $repository->createBulkWriteQuery();\n $bulkOperations[$repositoryId]->addQuery($query);\n }\n\n foreach ($remove as $id => $document) {\n $repository = $this->getObjectRepository($document);\n if ($repository instanceof GridFSRepository) {\n $repository->deleteOne($document);\n unset($remove[$id]);\n } else {\n $query = $repository->deleteOne($document, ['getQuery' => true]);\n $repositoryId = spl_object_hash($repository);\n $bulkOperations[$repositoryId] = isset($bulkOperations[$repositoryId]) ? $bulkOperations[$repositoryId] : $repository->createBulkWriteQuery();\n $bulkOperations[$repositoryId]->addQuery($query);\n }\n }\n\n foreach (array_merge($insert, $update, $remove) as $id => $document) {\n $repository = $this->getObjectRepository($document);\n $event = new PreFlushEvent($this, $repository, $document);\n $this->eventDispatcher->dispatch($event, $event::NAME);\n }\n\n foreach ($bulkOperations as $bulkOperation) {\n $bulkOperation->execute();\n }\n\n foreach (array_merge($insert, $update) as $id => $document) {\n $repository = $this->getObjectRepository($document);\n $event = new PostFlushEvent($this, $repository, $document);\n $this->eventDispatcher->dispatch($event, $event::NAME);\n $repository->cacheObject($document);\n }\n\n $this->flush();\n }", "private function registerCollections(): void\n {\n $this->initRouteMaps();\n $swaggerConfiguration = $this->loadConfiguration();\n\n $this->definitionCollection = new SchemaDefinitionCollection();\n $this->operationCollection = new SchemaOperationCollection();\n\n foreach ($swaggerConfiguration->getDefinitions()->getIterator() as $definitionName => $definition) {\n $this->definitionCollection->addSchema($definitionName, $definition);\n }\n\n $this->registerDefinitionResources($this->definitionCollection);\n\n /** @var Path $pathObject */\n foreach ($swaggerConfiguration->getPaths()->getIterator() as $path => $pathObject) {\n /** @var Operation $operation */\n foreach ($pathObject->getOperations() as $method => $operation) {\n $method = $this->normalizeMethod($method);\n $routeName = $this->mapPathToRouteName[$path][$method] ?? null;\n\n if (null === $routeName) {\n throw new OperationNotFoundException($path, $method);\n }\n\n $schema = $this->parameterMerger->merge($operation, $swaggerConfiguration->getDefinitions());\n\n $this->operationCollection->addSchema($routeName, $method, $schema);\n\n /** @var Parameter $parameter */\n foreach ($operation->getParameters()->getIterator() as $parameter) {\n $ref = $parameter->getSchema()->getRef();\n\n if (!\\is_string($ref)) {\n continue;\n }\n\n $explodedName = explode('/', $ref);\n $definitionName = end($explodedName);\n\n foreach ($this->definitionCollection->getSchemaResources($definitionName) as $fileResource) {\n $this->operationCollection->addSchemaResource($routeName, $fileResource);\n }\n }\n }\n }\n\n $this->registerOperationResources($this->operationCollection);\n }", "private function setAccommodations()\n {\n // Localise stuff\n $con = $this->con;\n $ownerId = $this->id;\n\n // Get the accom id from db and create new accom objects\n $stmt = $con->prepare(\"SELECT \" . Accommodation::ID_COLUMN . \" FROM \" . Accommodation::TABLE_NAME . \" WHERE \" . Accommodation::FOREIGN_KEY_COLUMN . \" = $ownerId \");\n try\n {\n if(!$stmt->execute())\n {\n throw new Exception(\"Error getting accommodations for owner $ownerId\", 1);\n }\n $stmt->bindColumn(1, $accId);\n $accommodations = array();\n // Loop through every accommodation\n while($stmt->fetch())\n {\n $acc = new Accommodation($con, 'get', array('id' => $accId));\n if($acc->getError())\n {\n $this->errorMsg .= \" Error with accommodation $accId: \" . $acc->getError();\n continue;\n }\n array_push($accommodations, $acc);\n }\n // Set accom\n $this->accommodations = $accommodations;\n }// try\n catch(Exception $e)\n {\n $this->errorMsg = $e->getMessage();\n }\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "public function setRelations(Notification $notification, Collection $entities)\n {\n $entities->each(function ($entity) use ($notification) {\n $entity->notifications()->attach($notification->id);\n });\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "public function buildRelations()\n\t{\n $this->addRelation('Tbformacao', 'Tbformacao', RelationMap::MANY_TO_ONE, array('id_formacao' => 'id_formacao', ), null, null);\n $this->addRelation('Tbcurso', 'Tbcurso', RelationMap::MANY_TO_ONE, array('cod_curso' => 'cod_curso', ), null, null);\n $this->addRelation('Tbturno', 'Tbturno', RelationMap::MANY_TO_ONE, array('id_turno' => 'id_turno', ), null, null);\n $this->addRelation('Tbcampus', 'Tbcampus', RelationMap::MANY_TO_ONE, array('id_campus' => 'id_campus', ), null, null);\n $this->addRelation('Tbsetor', 'Tbsetor', RelationMap::MANY_TO_ONE, array('id_setor' => 'id_setor', ), null, null);\n $this->addRelation('Tbalunomatricula', 'Tbalunomatricula', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbalunobackup', 'Tbalunobackup', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbfilacalouros', 'Tbfilacalouros', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbvagas', 'Tbvagas', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbloadaluno', 'Tbloadaluno', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbaluno', 'Tbaluno', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbcurriculodisciplinas', 'Tbcurriculodisciplinas', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbdisciplinarequisitos', 'Tbdisciplinarequisitos', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbdisciplinacorequisitos', 'Tbdisciplinacorequisitos', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbcoordenadorcurso', 'Tbcoordenadorcurso', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n\t}", "public function setObjects(array $objects): void\n {\n $this->objects = $objects;\n $this->objects[ObjectManagerInterface::class]['i'] = $this;\n $this->objects[get_class($this)]['i'] = $this;\n }", "protected function updateOneToMany( $theOptions )\n\t{\n\t\t//\n\t\t// Init local storage.\n\t\t//\n\t\t$taxa = $samples = Array();\n\t\t$this->offsetUnset( ':mission:collecting:taxa' );\n\t\t$this->offsetUnset( ':mission:collecting:samples' );\n\t\t\n\t\t//\n\t\t// Resolve collection.\n\t\t//\n\t\t$collection\n\t\t\t= static::ResolveCollection(\n\t\t\t\tstatic::ResolveDatabase( $this->mDictionary, TRUE ) );\n\t\t\n\t\t//\n\t\t// Build query.\n\t\t//\n\t\t$query = array( kTAG_DOMAIN\n\t\t\t\t\t\t\t=> kDOMAIN_SAMPLE_COLLECTED,\n\t\t\t\t\t\t$this->resolveOffset( ':mission:collecting' )\n\t\t\t\t\t\t\t=> $this->offsetGet( kTAG_NID ) );\n\t\t\n\t\t//\n\t\t// Load collected samples.\n\t\t//\n\t\t$rs = $collection->matchAll( $query, kQUERY_OBJECT );\n\t\tif( $rs->count() )\n\t\t{\n\t\t\t//\n\t\t\t// Iterate collected samples.\n\t\t\t//\n\t\t\tforeach( $rs as $record )\n\t\t\t{\n\t\t\t\t//\n\t\t\t\t// Set collected samples list.\n\t\t\t\t//\n\t\t\t\t$sample = $record->attributesList();\n\t\t\t\tif( count( $sample ) )\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// Load sample.\n\t\t\t\t\t//\n\t\t\t\t\t// MILKO - Disabled, since there are too many.\n\t\t\t\t//\t$samples[] = $sample;\n\t\t\t\t\t\n\t\t\t\t\t//\n\t\t\t\t\t// Init taxon.\n\t\t\t\t\t//\n\t\t\t\t\t$taxon = Array();\n\t\t\t\t\t\n\t\t\t\t\t//\n\t\t\t\t\t// Check epithet.\n\t\t\t\t\t//\n\t\t\t\t\tif( array_key_exists(\n\t\t\t\t\t\t\t($tag = $this->resolveOffset( ':taxon:epithet', TRUE )),\n\t\t\t\t\t\t\t$sample ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Save epithet.\n\t\t\t\t\t\t//\n\t\t\t\t\t\t$epithet = $sample[ $tag ];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Set epithet.\n\t\t\t\t\t\t//\n\t\t\t\t\t\t$taxon[ $tag ] = $epithet;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Set genus.\n\t\t\t\t\t\t//\n\t\t\t\t\t\tif( array_key_exists(\n\t\t\t\t\t\t\t\t($tag = $this->resolveOffset( ':taxon:genus', TRUE )),\n\t\t\t\t\t\t\t\t$sample ) )\n\t\t\t\t\t\t\t$taxon[ $tag ] = $sample[ $tag ];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// Set species name.\n\t\t\t\t\t\t//\n\t\t\t\t\t\tif( array_key_exists(\n\t\t\t\t\t\t\t\t($tag = $this->resolveOffset( ':taxon:species:name', TRUE )),\n\t\t\t\t\t\t\t\t$sample ) )\n\t\t\t\t\t\t\t$taxon[ $tag ] = $sample[ $tag ];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//\n\t\t\t\t\t// Set taxon.\n\t\t\t\t\t//\n\t\t\t\t\tif( count( $taxon ) )\n\t\t\t\t\t\t$taxa[ $epithet ] = $taxon;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} // Iterating \n\t\t\t\n\t\t\t//\n\t\t\t// Set collected samples list.\n\t\t\t//\n\t\t\tif( count( $samples ) )\n\t\t\t\t$this->offsetSet( ':mission:collecting:samples', $samples );\n\t\t\t\n\t\t\t//\n\t\t\t// Set collected taxa list.\n\t\t\t//\n\t\t\tif( count( $taxa ) )\n\t\t\t\t$this->offsetSet( ':mission:collecting:taxa', array_values( $taxa ) );\n\t\t\n\t\t} // Has collecting missions.\n\t\n\t}", "public function testSyncMorphMany()\n {\n $user = EloquentTestUser::create(['name' => 'David']);\n // Set up original phones\n $user->phones()->create([\n 'id' => 1,\n 'label' => 'primary',\n 'number' => '5555551212',\n ]);\n $user->phones()->create([\n 'id' => 2,\n 'label' => 'work',\n 'number' => '2223334444',\n ]);\n\n // Delete `work`, update `primary`, and add `fax`\n $user->phones()->sync([\n [\n 'id' => 1,\n 'number' => '8883332222',\n ],\n [\n 'label' => 'fax',\n 'number' => '5550005555',\n ],\n ]);\n\n $phones = $user->phones->toArray();\n\n $this->assertEquals([\n [\n 'id' => 1,\n 'phoneable_id' => 1,\n 'phoneable_type' => EloquentTestUser::class,\n 'label' => 'primary',\n 'number' => '8883332222',\n ],\n [\n 'id' => 3,\n 'phoneable_id' => 1,\n 'phoneable_type' => EloquentTestUser::class,\n 'label' => 'fax',\n 'number' => '5550005555',\n ],\n ], $phones);\n }", "public function populateMcoData(){\n\t\t$mcoDiffs = new Application_Model_DbTable_McoData();\n\t\t$editAccredit = $mcoDiffs->fetchAll($mcoDiffs->select()->where('mco = 9'));\n\t\tforeach ($editAccredit as $edit) {\n\t\t\t$edit['id'] = $edit->id;\n\t\t\t$edit['amount_passenger'] = $edit->end_roulette - $edit->start_roulette;\n\t\t\t$edit->save();\n\t\t}\n\t}", "public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }", "public function setCollection(Collection $collection): void\n {\n $this->collection = $collection;\n\n // Map the properties of the base collection\n $this->mapProperties($this->collection);\n\n $this->setUsers();\n }" ]
[ "0.53279346", "0.5052725", "0.5033467", "0.49696007", "0.49487805", "0.48957825", "0.4892381", "0.48710623", "0.48691344", "0.48363343", "0.48270226", "0.4759509", "0.4759509", "0.47541085", "0.47431684", "0.47396654", "0.47341594", "0.47037262", "0.46990106", "0.46961734", "0.4691591", "0.4677957", "0.46715283", "0.46669924", "0.4660701", "0.46536097", "0.46439818", "0.46216848", "0.4608666", "0.46022144", "0.45986256", "0.45669395", "0.4538829", "0.4525567", "0.4510185", "0.4502765", "0.44984528", "0.44974637", "0.44960925", "0.44863287", "0.44705728", "0.44603375", "0.44481713", "0.44425175", "0.4440772", "0.44398475", "0.4439588", "0.4436923", "0.44307953", "0.4426552", "0.44228676", "0.4418165", "0.44055638", "0.4403974", "0.4402987", "0.44023055", "0.43937343", "0.43798518", "0.43772522", "0.4370127", "0.436746", "0.43637452", "0.4350677", "0.43504754", "0.43460968", "0.43451476", "0.43443462", "0.43435976", "0.43385172", "0.43350732", "0.43310517", "0.43174493", "0.43125314", "0.43089572", "0.4306373", "0.43046576", "0.43045878", "0.42984986", "0.4297632", "0.42969692", "0.42894015", "0.42882666", "0.4284682", "0.42750514", "0.42739198", "0.4272201", "0.42634985", "0.42627102", "0.4258638", "0.42553827", "0.42490155", "0.4247907", "0.42421743", "0.42387867", "0.42376646", "0.42347246", "0.42324188", "0.42280197", "0.42273214", "0.42270243" ]
0.637494
0
Returns the number of related OperationScenarii objects.
public function countOperationScenariis(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) { $partial = $this->collOperationScenariisPartial && !$this->isNew(); if (null === $this->collOperationScenariis || null !== $criteria || $partial) { if ($this->isNew() && null === $this->collOperationScenariis) { return 0; } if ($partial && !$criteria) { return count($this->getOperationScenariis()); } $query = OperationScenariiQuery::create(null, $criteria); if ($distinct) { $query->distinct(); } return $query ->filterByOperationPrimes($this) ->count($con); } return count($this->collOperationScenariis); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n\t{\n\t\treturn $this->getParentObject()->count();\n\t}", "public function count() {\r\n return count($this->objects);\r\n }", "public function getOperationsCount()\n {\n return $this->count(self::_OPERATIONS);\n }", "public abstract function countObjects();", "public function count()\n {\n return $this->getChildsObject()->count();\n }", "public function count(): int\n {\n return count($this->resources);\n }", "public function count() {\r\n if (is_null($this->objectcount)) {\r\n $this->fetchData();\r\n }\r\n return $this->objectcount;\r\n }", "public function count()\n {\n return count($this->countable);\n }", "public function countEntities(): int;", "public function count()\n {\n return count($this->_models);\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "public static function nombreAssociations() {\n $req = 'SELECT COUNT(*)\n FROM association_vehicule_conducteur';\n return Db::dbQuery($req);\n }", "public function numeroInscripciones()\n {\n $socio = Auth()->user()->socio->id;\n $res = Inscription::where('partners_id', $socio)->count();\n return $res;\n }", "public function size()\n {\n return count($this->models);\n }", "public function getResCount()\n {\n return $this->count(self::RES);\n }", "public function count()\n\t{\n\t\treturn $this->all()->count();\n\t}", "public function getCount()\n {\n return $this->model->count();\n }", "public function count() {\n return $this->model->all()->count();\n }", "public function getNumberOfWorks()\n {\n return $this->createQueryBuilder('w')\n ->select('COUNT(w)')\n ->getQuery();\n }", "public function size()\n {\n $count = 0;\n foreach ($this->identityMap as $documentSet) {\n $count += count($documentSet);\n }\n return $count;\n }", "protected function getIterationsCount()\n {\n return count($this->readerGroups->getGroup('source_documents'));\n }", "function count()\r\n\t{\r\n\t\t// Check if related object\r\n\t\tif ( ! empty($this->parent))\r\n\t\t{\r\n\t\t\t// Prepare model\r\n\t\t\t$model = ucfirst($this->parent['model']);\r\n\t\t\t$object = new $model();\r\n\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$this->db->where($this->parent['model'] . '_id', $this->parent['id']);\r\n\t\t\t$this->db->from($relationship_table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t}", "public function count()\n {\n return $this->model->count();\n }", "public function count()\n {\n return $this->model->count();\n }", "public function count()\n {\n return count($this->entities);\n }", "public function count()\n {\n return count($this->entities);\n }", "public static function getCount()\n {\n return static::find()->count();\n }", "public function count()\n {\n return $this->size();\n }", "public function getCompCount()\n {\n return $this->count(self::_COMP);\n }", "public function count()\n {\n return $this->getCount();\n }", "public function count() {\n return count($this->components);\n }", "public function count()\n\t{\n\t\treturn $this->getCount();\n\t}", "function getCount() {\n\t\t$i = $this->_query->join('synd_issue','i');\n\t\t$query = clone $this->_query;\n\t\t$query->column(\"COUNT(DISTINCT $i.node_id)\");\n\n\t\t$persistent = $this->_storage->getPersistentStorage();\n\t\t$database = $persistent->getDatabase();\n\t\treturn $database->getOne($query->toString());\n\t}", "final public function count(): int\n {\n return count($this->all());\n }", "public function getCount() {\n \treturn $this->count();\n }", "public function count(): int\n\t{\n\t\treturn count($this->all());\n\t}", "public function findCount()\n {\n return $this->getEntityManager()\n ->createQuery(\"SELECT t.number, COUNT(f.id) as cnt\n FROM GazMainBundle:Finance f\n LEFT JOIN f.terminal t\n LEFT JOIN f.clientSale cs\n\t\t\t\t\t\t\tLEFT JOIN f.clientBuy cb\n\t\t\t\t\t\t\tWHERE f.financeType = FALSE\n\t\t\t\t\t\t\tGROUP BY t.number\n\t\t\t\t\t\t\tORDER BY t.number ASC\n \")\n ->getResult();\n }", "function get_object_count()\r\n {\r\n return $this->get_browser()->count_profile_publications($this->get_condition());\r\n }", "public function count() {\n\t\treturn count($this->_dataobjects);\n\t}", "public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }", "public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }", "public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }", "function get_object_count()\r\n {\r\n return $this->get_browser()->count_photo_gallery_publications($this->get_condition());\r\n }", "public function count()\n {\n return count($this->getInnerIterator());\n }", "public function count()\n {\n return $this->iterator->count();\n }", "public function size()\n {\n return count($this->getCollection());\n }", "public function count()\n {\n return iterator_count($this->getIterator());\n }", "public function getResourceCount()\n {\n return $this->resourceCount;\n }", "public function numCOI() {\r\n $numCOI = 0;\r\n foreach($this->coi AS $coi) {\r\n if($coi->hasDeclarations() == true) {\r\n $numCOI++;\r\n }\r\n }\r\n return $numCOI;\r\n }", "public function count(): int\n {\n return ($this->constraint !== null) ? $this->constraint->count() + 1 : 1;\n }", "public function count() {\n\t\treturn count($this->getIterator());\n\t}", "public function count() {\r\n\t\t//$src = Dbi_Source::GetModelSource($this);\r\n\t\t//return count($src->select($this->query()));\r\n\t\treturn count($this->source->select($this));\r\n\t}", "public function count()\n {\n return $this->client->count($this->compile())['count'];\n }", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "public function count()\n\t{\n\t\treturn iterator_count($this);\n\t}", "public function getCountList(){\n\t\t$select = $this->getListSelect();\n\t\t$stmt = $select->query();\n\t\t$objects = array();\n\t\treturn count($stmt->fetchAll());\n\t}", "public function get_count_company_invoice_foreigner() {\n $invoice_id = $this->input->post('invoice');\n $subsidy = $this->input->post('subsidy');\n \n $result = $this->classtraineemodel->get_company_invoice_foreigner($invoice_id);\n \n echo count($result);\n }", "public function getCount()\n {\n return $this->count++;\n }", "public static function nombreConducteurs() {\n $req = 'SELECT COUNT(*)\n FROM conducteur';\n return Db::dbQuery($req);\n }", "public function count()\n\t{\n\t\t$content = $this->resource->get($this->name)->getContent();\n\t\t\n\t\treturn $content['doc_count'];\n\t}", "public function count(): int {\n return count($this->toArray());\n }", "public function count()\n {\n return count($this->_mappersByPriority);\n }", "private function count_operation_rows()\n {\n // $license_rows = $license['rows'];\n\n // $constructse = $this->Header_model->get_data_list('license_constructs', array('status' => 1));\n // $constructse_rows = $constructse['rows'];\n\n // return ($license_rows + $constructse_rows);\n }", "public function count()\r\n\t{\r\n\t\t$countModel = clone $this->model;\r\n\t\t$countQuery = $countModel->getQuery();\r\n\t\t$countQuery->orders = null;\r\n\t\t$countModel->setQuery($countQuery);\r\n\r\n\t\treturn $countModel->count();\r\n\t}", "public function countAll()\n {\n return $this->getModel()->count();\n }", "public function getReferenceCount() {}", "public function getNumber()\n {\n return $this->model->count();\n }", "public function count()\n {\n return $this->getNumParts();\n }", "public function count()\n {\n return count($this->getIteratorArray());\n }", "public function count_items() {\n\t\treturn SalesHistoryDetailQuery::create()->filterByOrdernumber($this->oehhnbr)->count();\n\t}", "#[\\ReturnTypeWillChange]\n public function count() {\n return count($this->all());\n }", "public function count() { return $this->_m_count; }", "public function count()\n {\n return count($this->collection);\n }", "public function count() {\r\n\t\treturn count($this->collection);\r\n\t}", "public function count(): int\n {\n return count( $this->toArray() );\n }", "public function count(): int\n {\n return $this->getIterator()->count();\n }", "public function count()\n\t\t{\n\t\t\treturn count($this->source);\n\t\t}", "public function count()\n {\n $constrainedBuilder = clone $this->query;\n\n $constrainedBuilder = $constrainedBuilder->distinct();\n\n return $constrainedBuilder->count($this->relatedPivotKey);\n }", "function count()\n\t{\n\t\treturn count($this->getGoods());\n//\t\treturn count($this->getSESSION()[$this->sessionsGoodsKey]);\n\t}", "public function count()\n {\n return $this->createStandardQueryBuilder()->count()->getQuery()->execute();\n }", "public function count()\n {\n return count($this->container);\n }", "public function size(): int {\n\t\treturn $this->count();\n\t}", "public function count() {\n\t\treturn count($this->_aSet);\n\t}", "public function size()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->__size;\n }", "public function count() {\n\t\treturn $this->_count;\n\t}", "public function count()\n {\n return $this->model->paginate(1, $this->select)->total();\n }", "public function count() {\n\t\treturn $this->sets[':default']->count();\n\t}", "public function getInstances(): int;", "public function count()\n {\n return count($this->getResults());\n }", "public function count()\n {\n return $this->getValue()->count();\n }", "public function countItems() : int\n {\n return $this->model->count();\n }", "public function count() {\n\t\treturn count($this->getData());\n\t}", "private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }", "public function size()\n {\n return Iterators::size($this->iterator());\n }", "public function count(): int\n {\n return \\count($this->container);\n }", "public function count()\n {\n $this->setIteratorFilter(self::FLIST_NOCONTAINER | self::FLIST_UNSUB);\n return count(iterator_to_array($this));\n }", "function count()\n\t{\n\t\treturn $this->count;\n\t}" ]
[ "0.6947352", "0.680512", "0.68034995", "0.6686433", "0.6616811", "0.6561766", "0.65490717", "0.64963293", "0.64408505", "0.6409165", "0.6406243", "0.6406243", "0.6405025", "0.6398125", "0.6393465", "0.63911647", "0.6379137", "0.6364741", "0.6352321", "0.6348454", "0.6335802", "0.6321582", "0.6312888", "0.6301354", "0.62997824", "0.62997824", "0.62983656", "0.62983656", "0.62959594", "0.62815785", "0.62742805", "0.62718815", "0.6255488", "0.62553847", "0.6254402", "0.6234203", "0.62290025", "0.62260497", "0.6225524", "0.62192076", "0.62141097", "0.6213199", "0.6213199", "0.6213199", "0.6205049", "0.6193571", "0.61885977", "0.6186177", "0.6178486", "0.6177845", "0.6175986", "0.61710495", "0.61606795", "0.61538935", "0.61303955", "0.6123641", "0.6123267", "0.6119253", "0.61183614", "0.6116808", "0.61130023", "0.61113465", "0.61099064", "0.6105999", "0.61040187", "0.6094875", "0.6091769", "0.6091391", "0.6085346", "0.6080465", "0.60797364", "0.6077267", "0.6075824", "0.6074122", "0.6070934", "0.6070109", "0.60688436", "0.6065302", "0.60640603", "0.60623163", "0.605658", "0.605168", "0.6050144", "0.6045336", "0.6044205", "0.6042197", "0.60360044", "0.6027537", "0.6023684", "0.6022299", "0.6022222", "0.6020058", "0.6016587", "0.601618", "0.601525", "0.60095286", "0.60094225", "0.60078716", "0.60032874", "0.60001653" ]
0.63881683
16
Method called to associate a OperationScenarii object to this object through the OperationScenarii foreign key attribute.
public function addOperationScenarii(OperationScenarii $l) { if ($this->collOperationScenariis === null) { $this->initOperationScenariis(); $this->collOperationScenariisPartial = true; } if (!in_array($l, $this->collOperationScenariis->getArrayCopy(), true)) { // only add it if the **same** object is not already associated $this->doAddOperationScenarii($l); if ($this->operationScenariisScheduledForDeletion and $this->operationScenariisScheduledForDeletion->contains($l)) { $this->operationScenariisScheduledForDeletion->remove($this->operationScenariisScheduledForDeletion->search($l)); } } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }", "public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }", "function setId_serie($iid_serie)\n {\n $this->iid_serie = $iid_serie;\n }", "public function addOperation(string $operation): OperationInterface;", "abstract public function saveOperation(OperationInterface $op);", "private function setOperation(OperatorInterface $operation)\n {\n \t$this->operation = $operation;\n }", "public function setOperation(OperationInterface $operation)\n {\n $this->operation = $operation;\n }", "public function addModelIri($key, $modelIri)\n {\n // generate uri with subscription id\n $subscriptionResourceUri = $this->_generateSubscriptionResourceUri(\n $this->_subscriptionConfig->get('classUri'),\n $key\n );\n\n // init and fill the statements array\n $addStatements = array();\n $modelIriPropertyUri = $this->_subscriptionConfig->get('modelIri');\n $addStatements[$subscriptionResourceUri] = array();\n $addStatements[$subscriptionResourceUri][$modelIriPropertyUri] = array();\n $addStatements[$subscriptionResourceUri][$modelIriPropertyUri][]\n = array(\n 'value' => $modelIri,\n 'type' => 'uri'\n );\n\n // setup the versioning options\n $versioningActionSpec = array(\n 'type' => self::VERSIONING_SUBSCRIPTION_UPDATE_ACTION_TYPE,\n 'modeluri' => $this->_selectedModelInstance->getBaseUri(),\n 'resourceuri' => $subscriptionResourceUri\n );\n\n // start versioning\n $this->_versioning->startAction($versioningActionSpec);\n\n // write the statements to the store\n $this->_selectedModelInstance->addMultipleStatements($addStatements);\n\n // end versioning\n $this->_versioning->endAction();\n }", "function setId_situacion($iid_situacion)\n {\n $this->iid_situacion = $iid_situacion;\n }", "public function addCOI() {\r\n global $db;\r\n\r\n $sql = sprintf(\"INSERT INTO `forms_coi`\r\n (`form_coi_id`, `user_id`, `form_tracking_id`, `created`, `modified`)\r\n VALUES(NULL, %s, %s, UNIX_TIMESTAMP(), UNIX_TIMESTAMP())\",\r\n $this->userId, $this->trackingFormId);\r\n $result = $db->Execute($sql);\r\n if (!$result) {\r\n throw new Exception('Unable to insert new COI form into database');\r\n }\r\n else {\r\n $coiId = mysql_insert_id();\r\n }\r\n\r\n $this->coi[] = new \\tracking\\COI($coiId);\r\n\r\n return $coiId;\r\n }", "public function getId()\n\t\t{\n\t\t\t\treturn $this->id_sucursal;\n }", "public function getCodigoSucursalSII()\n {\n return $this->codigoSucursalSII;\n }", "public function getSocio()\n {\n return $this->hasOne(Socio::className(), ['id' => 'socio_id']);\n }", "function setId_situacion($iid_situacion = '')\n {\n $this->iid_situacion = $iid_situacion;\n }", "public function SaveComandoRisco() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstComandoItem) $this->objComandoRisco->ComandoItemId = $this->lstComandoItem->SelectedValue;\n\t\t\t\tif ($this->lstComando) $this->objComandoRisco->ComandoId = $this->lstComando->SelectedValue;\n\t\t\t\tif ($this->txtReferencia) $this->objComandoRisco->Referencia = $this->txtReferencia->Text;\n\t\t\t\tif ($this->lstMolde) $this->objComandoRisco->MoldeId = $this->lstMolde->SelectedValue;\n\t\t\t\tif ($this->lstTamanho) $this->objComandoRisco->TamanhoId = $this->lstTamanho->SelectedValue;\n\t\t\t\tif ($this->txtQuantidadeRisco) $this->objComandoRisco->QuantidadeRisco = $this->txtQuantidadeRisco->Text;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\t\t\t\tif ($this->lstBalancoPecasAsOrdemProducaoGrade) $this->objComandoRisco->BalancoPecasAsOrdemProducaoGrade = BalancoPecas::Load($this->lstBalancoPecasAsOrdemProducaoGrade->SelectedValue);\n\n\t\t\t\t// Save the ComandoRisco object\n\t\t\t\t$this->objComandoRisco->Save();\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "function getId_serie()\n {\n if (!isset($this->iid_serie) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_serie;\n }", "public function add(Operation $operation);", "public static function addNewPoi($objPoi) { \n $response = array();\n try{//poiDesignerId, name, coordinate, triggerZone, designerID\n $poiDesigner = SharcPoiDesigner::create(array(\n 'id' => $objPoi['id'],\n 'name' => $objPoi['poiDesigner']['name'], \n 'coordinate' => $objPoi['poiDesigner']['coordinate'],\n 'triggerZone' => $objPoi['poiDesigner']['triggerZone'], \n 'designerId' => $objPoi['poiDesigner']['designerId']\n )); \n $result = $poiDesigner->save(); \n if (!$result){ \n $response[\"status\"] = ERROR;\n $response[\"data\"] = INTERNAL_SERVER_ERROR; \n return $response; \n } \n \n $poiExperience = SharcPoiExperience::create(array(\n 'id' => $objPoi['id'],\n 'experienceId' => $objPoi['experienceId'], \n 'poiDesignerId' => $poiDesigner->id,\n 'description' => $objPoi['description'],\n 'typeList' => $objPoi['typeList'],\n 'eoiList' => $objPoi['eoiList'], \n 'routeList' => $objPoi['routeList'] \n ));\n \n //$poiExperience->sharcPoiDesigner()->associate(poiDe)\n \n $result = $poiExperience->save(); \n if ($result){ //= 1 success\n $response[\"status\"] = SUCCESS; \n //$poiExperience->$poiDesigner \n $response[\"data\"] = $poiExperience->toArray();\n } \n else { //error\n $response[\"status\"] = ERROR;\n $response[\"data\"] = INTERNAL_SERVER_ERROR; \n }\n //update other table e.g. route/event/media \n }\n catch(Exception $e) {\n $response[\"status\"] = ERROR;\n $response[\"data\"] = Utils::getExceptionMessage($e);\n } \n return $response; \n }", "public function insertOpcSeleccRolAction() {\n $idRol = $this->getRequest()->get('reg');\n $idOpc = $this->getRequest()->get('opc');\n\n $rolDao = new RolDao($this->getDoctrine());\n $rolDao->insertOpcSeleccRol($idRol, $idOpc);\n return $this->opcionesAsignadasAction();\n }", "public function saveInfisso(Infisso $i){\n \n try{\n $this->wpdb->insert(\n $this->table,\n array(\n 'id_preventivo' => $i->getIdPreventivo(),\n 'tipo' => $i->getTipo(),\n 'n_ante' => $i->getNAnte(),\n 'id_infisso' => $i->getIdInfisso(),\n 'altezza' => $i->getAltezza(),\n 'lunghezza' => $i->getLunghezza(),\n 'apertura' => $i->getApertura(),\n 'barra' => $i->getBarra(),\n 'serratura' => $i->getSerratura(),\n 'nodo' => $i->getNodo(),\n 'colore' => $i->getColore(),\n 'cerniera' => $i->getCerniera(),\n 'n_infisso' => $i->getNInfisso(),\n 'spesa_infisso' => $i->getSpesaInfisso(),\n 'anta_principale' => $i->getAntaPrincipale(),\n 'posizione_serratura' => $i->getPosizioneSerratura(), \n 'verniciatura' => $i->getVerniciatura()\n ),\n array('%d', '%s', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%f', '%s', '%s', '%s')\n );\n return $this->wpdb->insert_id;\n } catch (Exception $ex) {\n _e($ex);\n return false;\n }\n }", "public static function addInstanceToPool(AsignacionSc $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getId();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "function CreaIntervento($ID_Operatore, $ID_Assistito, $data, $orainizio, $oraFine, $descrizione){\n\t\t$query = \"INSERT INTO interventi (ID_Operatore, ID_Assistito, Data, Ora_Inizio, Ora_Fine, Descrizione) VALUES($ID_Operatore, $ID_Assistito, '$data', '$oraInizio', '$oraFine','$descrizione')\";\n\t\tif(!$mysqli -> query($query)){\n\t\t\tdie($mysqli->error);\n\t\t}\n\t}", "public function actionCreate()\n\t{\n\t\t$model=new Ios;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t$this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Ios']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Ios'];\n\t\t\tif($model->save())\n\t\t\t{\n\t\t\t\tif(isset($_POST['opp_ids']))\n\t\t\t\t{\n\t\t\t\t\tforeach ($_POST['opp_ids'] as $value) {\n\t\t\t\t\t\tif(IosHasOpportunities::model()->checkRelation($model->id,$value))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t$modelHasIos = new IosHasOpportunities;\n\t\t\t\t\t\t$modelHasIos->ios_id=$model->id;\n\t\t\t\t\t\t$modelHasIos->opportunities_id=$value;\n\t\t\t\t\t\t$modelHasIos->save();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('admin'));\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t$this->renderFormAjax($model);\n\t}", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function getOperationId()\n {\n return $this->operation_id;\n }", "public function iglesia(){\n return $this->hasOne('App\\Iglesia', 'id', 'id_iglesia');\n }", "public function setPrimarySic($primarySic)\n {\n $this->primarySic = $primarySic;\n return $this;\n }", "public function inOperation(){\n //When an Operation is created we have to adjust the price of the inventory\n //and the quantity\n //We adjust the price of the inventory based on the last In\n $this->inventory->setQuantity($this->inventory->getQuantity() + $this->getQuantity());\n $this->inventory->setPrice($this->price);\n $this->type = \"IN\";\n }", "function setId_situacion($iid_situacion = '')\n {\n $this->iid_situacion = (int)$iid_situacion;\n }", "function inscribirEstudiante($estudiante_id,$semestre_id,$dicta_id) {\n //Creamos la evaluacion\n leerClase('Evaluacion');\n $evaluacion = new Evaluacion();\n $evaluacion->estado = Objectbase::STATUS_AC;\n $evaluacion->save();\n \n $this->semestre_id = $semestre_id;\n $this->dicta_id = $dicta_id;\n $this->estudiante_id = $estudiante_id;\n $this->evaluacion_id = $evaluacion->id;\n $this->estado = Objectbase::STATUS_AC;\n $this->save();\n }", "public function store(Request $request)\n {\n\n $iduser2= $request['id_user2'];\n\n if($iduser2!=''){\n $miduser2=$iduser2;\n }else{\n $miduser2='';\n }\n\n $sucursales=Sucursales::create([\n 'nombre' => $request['nombre'],\n 'ubicacion' => $request['ubicacion'],\n 'telefono' => $request['telefono'],\n 'serie' => $request['serie'],\n 'id_user' => $request['id_user'],\n 'id_user2' => $miduser2,\n 'codigo_esta' => $request['codigo_esta'],\n 'codigo_sat' => $request['codigo_sat'],\n 'resolucion' => $request['resolucion'],\n 'fresolucion' => $request['fresolucion'],\n 'codigo_satnce' => $request['codigo_satnce'],\n 'serie_nce' => $request['serie_nce'],\n 'resolucion_nce' => $request['resolucion_nce'],\n 'fresolucion_nce' => $request['fresolucion_nce'],\n 'codigo_satnde' => $request['codigo_satnde'],\n 'serie_nde' => $request['serie_nde'],\n 'resolucion_nde' => $request['resolucion_nde'],\n 'fresolucion_nde' => $request['fresolucion_nde'],\n \n ]);\n $sucursales->save();\n }", "public function shelterResource() {\n return $this->hasOne('App\\ShelterResource');\n }", "private function crearContribuyente($modelInscripcion)\r\n {\r\n $result = false;\r\n $cancel = false;\r\n $idGenerado = 0;\r\n $idRif = 0;\r\n $tabla = ContribuyenteBase::tableName();\r\n\r\n // Se determina si el solicitante es la sede principal de la sucursal.\r\n if ( $this->getSedePrincipal() ) {\r\n $modelContribuyente = self::findDatosSedePrincipal($this->_model['id_contribuyente']);\r\n $findArregloContribuyente = $modelContribuyente->asArray()->one();\r\n\r\n if ( count($findArregloContribuyente) > 0 ) {\r\n // Verificar que el RIF o DNI de la sede principal coincidan con el de\r\n // la sucursal creada en la solicitud.\r\n if ( $modelInscripcion['naturaleza'] == $findArregloContribuyente['naturaleza'] &&\r\n $modelInscripcion['cedula'] == $findArregloContribuyente['cedula'] &&\r\n $modelInscripcion['tipo'] == $findArregloContribuyente['tipo'] ) {\r\n\r\n // Retorna atributos de la entidad \"contribuyentes\".\r\n $camposContribuyente = $findArregloContribuyente;\r\n\r\n $modelSucursal = New InscripcionSucursalForm();\r\n // Se obtienen los atributos particulares de las sucursales, que seran guardadas\r\n // al momento de crear el registro.\r\n $camposSucursal = $modelSucursal->getAtributoSucursal();\r\n\r\n foreach ( $camposSucursal as $campo ) {\r\n if ( array_key_exists($campo, $modelInscripcion->toArray()) ) {\r\n $camposContribuyente[$campo] = $modelInscripcion[$campo];\r\n } else {\r\n $cancel = true;\r\n self::setErrors(Yii::t('backend', 'Failed fields not match'));\r\n break;\r\n }\r\n }\r\n\r\n if ( !$cancel ) {\r\n // Se actualiza la fecha de inclusion de la suucrsal, se sustituye la colocada\r\n // de la sede principal por la actual.\r\n $camposContribuyente['fecha_inclusion'] = date('Y-m-d');\r\n\r\n // Se coloca el valor del identificador de la entidad en null, ya que este identificador\r\n // no es de este registro, sino de la sede principal.\r\n $camposContribuyente['id_contribuyente'] = null;\r\n\r\n // Se pasa a obtener el identificador de la sucursal.\r\n $idRif = $this->getIdentificadorSucursalNuevo($modelInscripcion['naturaleza'],\r\n $modelInscripcion['cedula'],\r\n $modelInscripcion['tipo']\r\n );\r\n\r\n if ( $idRif > 0 ) {\r\n $camposContribuyente['id_rif'] = $idRif;\r\n $result = $this->_conexion->guardarRegistro($this->_conn, $tabla, $camposContribuyente);\r\n if ( $result ) {\r\n $idGenerado = $this->_conn->getLastInsertID();\r\n }\r\n }\r\n }\r\n } else {\r\n // El RIF de la sede principal no coinciden con el de la solicitud.\r\n self::setErrors(Yii::t('backend', 'DNI do not match'));\r\n }\r\n }\r\n }\r\n return $idGenerado;\r\n\r\n }", "public function addCoresearcher($userId, $isPI = false) {\r\n global $db;\r\n\r\n // remove existing PI's if this is a PU and they already exist\r\n if($isPI == true) {\r\n $this->clearPrincipalInvestigators();\r\n }\r\n\r\n $sql = sprintf(\"INSERT INTO `forms_tracking_coresearchers`\r\n (`form_tracking_coresearcher_id`,`user_id`,`form_tracking_id`, isPI)\r\n VALUES(NULL, %s, %s, %s)\",\r\n $userId, $this->trackingFormId, $isPI ? '1' : '0');\r\n $result = $db->Execute($sql);\r\n if(!$result) {\r\n throw new Exception('Unable to save coresearcher');\r\n }\r\n\r\n $this->coResearchers[] = new Investigator($userId);\r\n }", "public function sindicato()\n {\n return $this->belongsTo(\\App\\Models\\Sindicato::class);\n }", "function setId_asignatura($iid_asignatura)\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "public function security_question(){\n return $this->hasOne('App\\SecurityQuestion');\n }", "public function import(ResourceInterface $resource): void\n {\n if (null === $resource->getId()) {\n $this->entityManager->persist($resource);\n }\n }", "public function SaveComandoRiscoPeca() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->txtQuantidadeReal) $this->objComandoRiscoPeca->QuantidadeReal = $this->txtQuantidadeReal->Text;\n\t\t\t\tif ($this->txtPeso) $this->objComandoRiscoPeca->Peso = $this->txtPeso->Text;\n\t\t\t\tif ($this->lstComandoRisco) $this->objComandoRiscoPeca->ComandoRiscoId = $this->lstComandoRisco->SelectedValue;\n\t\t\t\tif ($this->lstComandoPeca) $this->objComandoRiscoPeca->ComandoPecaId = $this->lstComandoPeca->SelectedValue;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\n\t\t\t\t// Save the ComandoRiscoPeca object\n\t\t\t\t$this->objComandoRiscoPeca->Save();\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "public function setIlosc($ilosc)\n {\n $this->ilosc = $ilosc;\n\n return $this;\n }", "public function sucursal()\n {\n return $this->belongsTo(Sucursal::class);\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "public function storeUniqueKey()\n {\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"unique_key\") .\"=\". $this->db->quote($this->unique_key))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n\n return $this;\n }", "public function addOperation(ckWsdlOperation $operation)\r\n {\r\n $this->operations[] = $operation;\r\n }", "public function sitio()\n {\n return $this->belongsTo('App\\Sitio', 'sitios_id');\n }", "public function updateStockId();", "public function getUserOperationByIdAction()\n {\n /** @var Object_Operation $operation */\n $data = $this->getRequestData();\n if (isset($data['operation_id'])) {\n $operation = Object_Operation::getById($data['operation_id']);\n if (!$operation) {\n $this->setErrorResponse('no Operation with this operation_id!');\n } elseif ($this->getDeviceSession()->getUserId() != $operation->getCreator()->getId()) {\n $this->setErrorResponse('no Operation for this user with current operation_id!');\n }\n } else {\n $this->setErrorResponse('operation_id is mandatory field for this request!');\n }\n $this->_helper->json($operation);\n }", "public function __construct(array $skiOpportunitiesAttribute = array())\n {\n $this\n ->setSkiOpportunitiesAttribute($skiOpportunitiesAttribute);\n }", "public function createShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathMultipleResource(),\n 'METHOD' => 'POST',\n 'DATA' => [\n /*\n * Using static:: instead of self:: because static:: binds at runtime\n * If we use self this would not work because it would\n * always call ShopifyResource::getResourceSingularName()\n */\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function getClinic()\n {\n return $this->hasOne(Consid::className(), ['wd_id' => 'clinicId']);\n }", "public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }", "private function _agregarSeguimiento($id_practica, $titulo, $id_segui = NULL, $id_lp_seg = NULL) {\n $_objUsuPractica = new DAO_UsuariosPracticas(); // DAO de practicas del usuario\n $_objUsuPractica->set_id_practica($id_practica);\n $_objUsuPractica->consultar();\n $estado = $_objUsuPractica->get_estado_practica(); // el estado del seguimiento es el estado actual de la practica\n $_objSeguimiento = new DAO_Seguimientos();\n if (!empty($id_segui)) {\n $_objSeguimiento->set_id_segui($id_segui);\n $_objSeguimiento->consultar();\n $estado = $_objSeguimiento->get_segui_tipo(); // no puede actualizar el tipo de seguimiento \n }\n $_objSeguimiento->set_id_practica($id_practica);\n $_objSeguimiento->set_segui_titulo($titulo);\n $_objSeguimiento->set_segui_tipo($estado);\n $_objSeguimiento->set_id_usu_cent($_SESSION['id_usuario']);\n if (!$_objSeguimiento->guardar()) {\n $this->_mensaje = $_objSeguimiento->getMysqlError();\n throw new ControllerException(\"No se pudo guardar seguimiento \", 0);\n }\n if (!empty($id_lp_seg)) {\n $_objProgramacionSeg = new DAO_ConfLineasPracticaSeguimiento();\n $_objProgramacionSeg->set_id_lp_seg($id_lp_seg);\n $_id_usu_cp_solicitado = $_objProgramacionSeg->get_id_usu_cp();\n if($_id_usu_cp_solicitado != $_SESSION['id_usu_cp']){\n throw new ControllerException(\"usted no es el usuario que debe generar éste seguimiento\");\n }\n $_objProgramacionSeg->set_id_segui($_objSeguimiento->get_id_segui());\n if (!$_objProgramacionSeg->guardar()) {\n $this->_mensaje = $_objSeguimiento->getMysqlError();\n throw new ControllerException(\"No se pudo relacionar seguimiento actual con el seguimiento programado\", 0);\n }\n }\n $this->_guardarLog($_SESSION['id_usu_cent'], ['accion' => 'insertar', 'metodo' => get_class() . ':_agregarSeguimiento', 'parametros' => ['id_practica' => $id_practica, 'titulo' => $titulo, 'id_segui' => $id_segui, 'id_lp_seg' => $id_lp_seg]]);\n return $_objSeguimiento->getArray();\n }", "public function save()\n {\n $ins = $this->valores();\n unset($ins[\"idInscription\"]);\n\n $ins['idUser'] = $this->userO->idUser;\n unset($ins[\"userO\"]);\n\n $ins['idProject'] = $this->project->idProject;\n unset($ins[\"project\"]);\n\n if (empty($this->idInscription)) {\n $this->insert($ins);\n $this->idInscription = self::$conn->lastInsertId();\n } else {\n $this->update($this->idInscription, $ins);\n }\n }", "public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_exercicio\");\n $this->hasMany('id', 'Circuitos\\Models\\ContratoFinanceiro', 'id_exercicio', ['alias' => 'ContratoFinanceiro']);\n $this->belongsTo('id_contrato', 'Circuitos\\Models\\Contrato', 'id', ['alias' => 'Contrato']);\n }", "function salida_por_traspaso(){\n\t\t$e= new Salida();\n\t\t$e->usuario_id=$GLOBALS['usuarioid'];\n\t\t$e->empresas_id=$GLOBALS['empresaid'];\n\t\t$related = $e->from_array($_POST);\n\t\t//if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n\t\t$e->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$e->costo_total=($e->cantidad * $e->costo_unitario);\n\t\t$e->cclientes_id=1;\n\t\t$e->fecha=date(\"Y-m-d H:i:s\");\n\t\tif($e->id==0)\n\t\t\tunset($e->id);\n\t\tif($e->save($related)) {\n\t\t\techo $e->id;\n\t\t} else\n\t\t\techo 0;\n\t}", "public function updateUserOperationAction()\n {\n /** @var Object_Operation $operation */\n $data = $this->getRequestData();\n if (isset($data['operation_id'])) {\n $operation = Object_Operation::getById($data['operation_id']);\n if (!$operation) {\n $this->setErrorResponse('no Operation with this operation_id!');\n } elseif ($this->getDeviceSession()->getUserId() != $operation->getCreator()->getId()) {\n $this->setErrorResponse('you have no rights to change this Operation!');\n } else {\n if (isset($data['title'])) {\n $operation->setTitle($data['title']);\n }\n if (isset($data['explanation'])) {\n $operation->setExplanation($data['explanation']);\n }\n if (isset($data['photo'])) {\n $operation->setPhoto(Asset_Image::getById($data['photo']));\n }\n if (isset($data['video'])) {\n $operation->setVideo(Asset_Video::getById($data['video']));\n }\n if (isset($data['latitude']) && isset($data['longtitude'])) {\n $geo = new Object_Data_Geopoint($data['longtitude'], $data['latitude']);\n $operation->setLocation($geo);\n }\n if (isset($data['activity_id'])) {\n $operation->setActivity(Object_Activity::getById($data['activity_id']));\n }\n if (!$operation->save()) {\n $this->setErrorResponse('cannot update Operation object');\n }\n }\n } else {\n $this->setErrorResponse('operation_id is mandatory field for this request!');\n }\n\n $this->_helper->json($operation);\n }", "public function initialize()\n {\n $this->setSchema(\"dia_sin_iva\");\n $this->setSource(\"terceros_descuentos_sin_impuestos\");\n $this->belongsTo('cod_descuento_sin_impuesto', 'App\\Models\\DescuentosSinImpuestos', 'cod', ['alias' => 'DescuentosSinImpuestos']);\n $this->belongsTo('cod_producto', 'App\\Models\\Productos', 'cod', ['alias' => 'Productos']);\n }", "protected function addChange($calendarId, $objectUri, $operation) {\n\n /* $stmt = $this->pdo->prepare('INSERT INTO ' . $this->calendarChangesTableName . ' (uri, synctoken, calendarid, operation) SELECT ?, synctoken, ?, ? FROM ' . $this->calendarTableName . ' WHERE id = ?');\n $stmt->execute([\n $objectUri,\n $calendarId,\n $operation,\n $calendarId\n ]);\n $stmt = $this->pdo->prepare('UPDATE ' . $this->calendarTableName . ' SET synctoken = synctoken + 1 WHERE id = ?');\n $stmt->execute([\n $calendarId\n ]);\n */ // TODO\n }", "function setId_asignatura($iid_asignatura = '')\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "public function siswa()\n {\n return $this->belongsTo('App\\Siswa');\n }", "public function addInscripcion(\\SitioBundle\\Entity\\Inscripcion $inscripcion){\n try{\n $em = $this->getEntityManager();\n $em->persist($inscripcion);\n $em->flush();\n }\n catch (\\Exception $e){\n throw $e;\n }\n }", "public function createUserOperationAction()\n {\n /** @var Object_Operation $operation */\n $data = $this->getRequestData();\n if (isset($data['title']) && isset($data['activity_id'])) {\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n\n $folder = Object_Folder::getByPath('/operations/' . $user->getKey() . \"-operations\");\n if (!$folder) {\n $folder = new Object_Folder();\n $folder->setKey($user->getKey() . \"-operations\");\n $folder->setParentId(4);\n $folder->save();\n }\n\n $geo = new Object_Data_Geopoint($data['longtitude'], $data['latitude']);\n\n $operation = new Object_Operation();\n $operation->setCreator($user);\n $operation->setTitle($data['title']);\n $operation->setExplanation(isset($data['explanation']) ? $data['explanation'] : \"\");\n $operation->setLocation($geo);\n $operation->setPhoto(isset($data['photo']) ? Asset_Image::getById($data['photo']) : \"\");\n $operation->setVideo(isset($data['video']) ? Asset_Video::getById($data['video']) : \"\");\n $operation->setActivity(Object_Activity::getById($data['activity_id']));\n $operation->setKey(Pimcore_File::getValidFilename($user->getKey() . \"-\" . $data['title'] . \"-\" . time()));\n $operation->setPublished(true);\n $operation->setParentId($folder->getId());\n if (!$operation->save()) {\n $this->setErrorResponse('cannot save Operation object');\n }\n } else {\n $this->setErrorResponse('title and activity_id is mandatory field for this request!');\n }\n\n $this->_helper->json($operation);\n }", "public function getSoi()\n {\n return $this->soi;\n }", "private static function siieToSiieWeb($iExternalId, $oSiiePO = '', $lFormulas = [], $lWebItems = [], $lWebUnits = [])\n {\n if ($iExternalId == 0) {\n $oSiieWebPO = new SProductionOrder();\n \n $oSiieWebPO->created_by_id = 1;\n $oSiieWebPO->created_at = $oSiiePO[\"ts_new\"];\n }\n else {\n $oSiieWebPO = SProductionOrder::where('external_id', $iExternalId)\n ->first(); \n }\n\n $oSiieWebPO->folio = $oSiiePO[\"num\"];\n $oSiieWebPO->identifier = $oSiiePO[\"ref\"];\n $oSiieWebPO->date = $oSiiePO[\"dt\"];\n $oSiieWebPO->quantity = $oSiiePO[\"qty\"];\n $oSiieWebPO->charges = $oSiiePO[\"chgs\"];\n $oSiieWebPO->external_id = $oSiiePO[\"id_year\"].$oSiiePO[\"id_ord\"];\n $oSiieWebPO->is_deleted = $oSiiePO[\"b_del\"];\n $oSiieWebPO->plan_id = 1;\n $oSiieWebPO->branch_id = 3287;\n $oSiieWebPO->floor_id = 2;\n $oSiieWebPO->type_id = $oSiiePO[\"fid_tp_ord\"];\n $oSiieWebPO->status_id = $oSiiePO[\"fid_st_ord\"];\n $oSiieWebPO->item_id = $lWebItems[$oSiiePO[\"fid_item_r\"]];\n $oSiieWebPO->unit_id = $lWebUnits[$oSiiePO[\"fid_unit_r\"]];\n\n if ($oSiiePO[\"fid_ord_year_n\"] != null) {\n $oSiieWebPO->lot_id = SImportProductionOrders::getLotID($oSiiePO[\"_lot\"], \n $oSiiePO[\"fid_lot_item_nr\"], \n $oSiiePO[\"fid_lot_unit_nr\"],\n $lWebItems,\n $lWebUnits,\n $oSiiePO[\"fid_ord_n\"]\n );\n\n $f_id = SProductionOrder::select('id_order')\n ->where('external_id', $oSiiePO[\"fid_ord_year_n\"].$oSiiePO[\"fid_ord_n\"])\n ->first();\n\n $oSiieWebPO->father_order_id = $f_id['id_order'];\n }\n else {\n $oSiieWebPO->lot_id = 1;\n $oSiieWebPO->father_order_id = 1;\n }\n\n $oSiieWebPO->formula_id = $lFormulas[$oSiiePO[\"fid_bom\"]];\n $oSiieWebPO->updated_by_id = 1;\n $oSiieWebPO->updated_at = $oSiiePO[\"ts_edit\"];\n\n $oSiieWebPO->save();\n }", "public function store(StoreSeccionsRequest $request)\n {\n if (! Gate::allows('seccion_create')) {\n return abort(401);\n }\n #count the items in seccion\n $request['id_atributos'] = count($request['item']); \n\n # insert and get last id \n $query = \"INSERT INTO seccions ( id_ubicacion, nombre_seccion, id_atributos, created_at, c_personas ) \n VALUES ( \".$request->id_ubicacion.\", '\".$request->nombre_seccion.\"', \".$request['id_atributos'].\", getdate(), '\".$request->c_personas.\"' )\";\n $insert_seccion= DB::connection('odbc')->insert($query);\n\n $select_seccion = DB::connection('odbc')->selectOne(\"SELECT id from seccions WHERE nombre_seccion = '\".$request->nombre_seccion.\"' AND c_personas = \".$request->c_personas.\" AND id_ubicacion = \".$request->id_ubicacion.\" \");\n\n\n\n try {\n foreach ($request['item'] as $item) {\n \n $inserted_items= DB::connection('odbc')->insert(\n \"INSERT INTO items_seccions ( id_seccions, id_item, created_at ) \n VALUES ( '\".$select_seccion->id.\"', '\".$item.\"', getdate() )\"); \n }\n \n } catch (\\Exception $inserted_items) {\n die($inserted_items->getMessage());\n } \n\n return redirect()->route('admin.seccions.index');\n }", "public static function Create($objParentObject, $strSeccionId = null, $intCreateType = QModelConnectorCreateType::CreateOrEdit) {\n\t\t\t// Attempt to Load from PK Arguments\n\t\t\tif (strlen($strSeccionId)) {\n\t\t\t\t$objSeccion = Seccion::Load($strSeccionId);\n\n\t\t\t\t// Seccion was found -- return it!\n\t\t\t\tif ($objSeccion)\n\t\t\t\t\treturn new SeccionConnector($objParentObject, $objSeccion);\n\n\t\t\t\t// If CreateOnRecordNotFound not specified, throw an exception\n\t\t\t\telse if ($intCreateType != QModelConnectorCreateType::CreateOnRecordNotFound)\n\t\t\t\t\tthrow new QCallerException('Could not find a Seccion object with PK arguments: ' . $strSeccionId);\n\n\t\t\t// If EditOnly is specified, throw an exception\n\t\t\t} else if ($intCreateType == QModelConnectorCreateType::EditOnly)\n\t\t\t\tthrow new QCallerException('No PK arguments specified');\n\n\t\t\t// If we are here, then we need to create a new record\n\t\t\treturn new SeccionConnector($objParentObject, new Seccion());\n\t\t}", "Public Function insertPerformanceConnectorNiche($nicheId)\n\t{\n\t\t$Data = array('user__id'=>$this->id, 'niche__id'=>$nicheId);\n\t\t$this->_db->insert('bevomedia_user_performanceconnector_niche', $Data);\n\t}", "public function adicionardisciplina() {\n \t\t/* Carrega o modelo */\n\t\t$this->load->model('cursos_model');\n\n\t\t// Maximo de Cursos\n\t\t$intMax = 20;\n\t\t//Recebendo a listagem de alunos\n\t\t$objCursos = $this->cursos_model->listar($intMax, 0);\n\n\t\tself::header();\n\t\t$this->load->view('administracao/adicionardisciplina', array(\"objCursos\" => $objCursos));\n\t\tself::footer();\n\t}", "protected function establish_icon() {\n\t\t$this->icon = \"<i class='sw swp_{$this->key}_icon'></i>\";\n\t}", "public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"contrato_financeiro_nota_anexo\");\n $this->belongsTo('id_anexo', 'Circuitos\\Models\\Anexos', 'id', ['alias' => 'Anexos']);\n $this->belongsTo('id_contrato_financeiro_nota', 'Circuitos\\Models\\ContratoFinanceiroNota', 'id', ['alias' => 'ContratoFinanceiroNota']);\n }", "public function setOpis($opis)\n {\n $this->opis = $opis;\n\n return $this;\n }", "public function aAddTo($attribute, PersistentObject $value)\n {\n Logger::getInstance()->po_log(\"PO:aAddTo $attribute []=\".$value->getClass());\n \n // CHEK: attribute es un atributo hasMany\n \n // Si el rol tiene el nombre de la assoc declarado, necesito ver cual es el nombre\n // completo de la key en hasOne o hasMany porque usa attribute__assocName.\n $attribute = $this->getRoleWithAssocName( $attribute );\n\n\n // TODO: Se podria poner la restriccion de que no se puede hacer set('id', xxx); \n // o sea el id no se puede modificar por el usuario.\n // (asi puedo asumir que si no tiene id es xq no esta guardado... y me ahorro consultar si existe en la base)\n\n // Aqui se hace todo lo del codigo comentado abajo\n $this->lazyLoadHasMany($attribute);\n\n\n // Chekeo de tipos con el tipo definido en hasMany para este atributo.\n \n // Si es colection, se agrega normalmente, \n // si es set se verifica que no hay otro con el mismo id, \n // si es list al salvar y cargar se respeta el orden en el que se agregaron los elementos.\n \n $add = false;\n \n switch ( $this->hasManyType[$attribute] )\n {\n case self::HASMANY_COLLECTION:\n case self::HASMANY_LIST: // Por ahora hace lo mismo que COLECTION, en PM se verificaria el orden.\n \n $add = true;\n \n break;\n case self::HASMANY_SET: // Buscar repetidos por id, si ya esta no agrego de nuevo.\n \n $found = false;\n reset( $this->attributeValues[$attribute] );\n $elem = current( $this->attributeValues[$attribute] );\n while ( $elem )\n {\n if ($elem->getId() === $value->getId() )\n {\n $found = true;\n break; // while\n }\n $elem = next( $this->attributeValues[$attribute] );\n }\n\n $add = !$found; // Agrega solo si no esta.\n\n break;\n }\n\n if ($add)\n {\n $this->attributeValues[$attribute][] = $value; // TODO: Verificar que args0 es un PersistentObject y es simple!\n // FIXME: bool is_subclass_of ( mixed $object, string $class_name )\n $this->dirtyMany = true; // Marca como editado el hasMany\n }\n }", "public function setScoId($scoId)\n {\n $this->scoId = $scoId;\n }", "public function run()\n {\n foreach($this->identification_types as $shortcut => $text){\n $create_identification_type = new TipoIdentificacion;\n $create_identification_type->abreviatura = $shortcut;\n $create_identification_type->nombre = $text;\n $create_identification_type->save();\n }\n foreach ($this->roles as $rol) {\n $modeloRol = new Rol;\n $modeloRol->nombre = $rol;\n $modeloRol->save();\n }\n foreach ($this->modulos as $nombre) {\n $modulo = new Modulo;\n $modulo->nombre = $nombre;\n $modulo->save();\n foreach ($this->permisos as $p) {\n $permiso = new Permiso;\n $permiso->id_modulo = $modulo->id_modulo;\n $permiso->clave = $p.'_'.$modulo->nombre;\n $permiso->descripcion = 'puede '.$p.' en '.$modulo->nombre;\n $permiso->save();\n }\n }\n foreach($this->roles as $g){\n $grupo = new Grupo;\n $grupo->nombre = $g;\n $grupo->save();\n }\n /**\n * Codigo ciiu\n */\n $data_ciiu = Storage::get('CIIU.json');\n\n $ciiu = json_decode($data_ciiu, true);\n\n foreach($ciiu as $codigo_seccion => $def_seccion){\n $id_seccion = DB::table('ciiu_secciones')->insertGetId(\n [\n 'descripcion' => $def_seccion['titulo'],\n 'codigo' => $codigo_seccion\n ]\n ); \n foreach($def_seccion['divisiones'] as $cod_div => $def_div){\n $id_division = DB::table('ciiu_divisiones')->insertGetId(\n [\n 'id_seccion' => $id_seccion,\n 'descripcion' => $def_div['titulo'],\n 'codigo' => $cod_div\n ]\n ); \n foreach ($def_div['grupos'] as $cod_grupo => $def_grupo) {\n $id_grupo = DB::table('ciiu_grupos')->insertGetId(\n [\n 'id_division' => $id_division,\n 'descripcion' => $def_grupo['titulo'],\n 'codigo' => $cod_grupo\n ]\n ); \n foreach ($def_grupo['actividades'] as $cod_clase => $def_clase) {\n DB::table('ciiu_clases')->insertGetId(\n [\n 'id_grupo' => $id_grupo,\n 'descripcion' => $def_clase,\n 'codigo' => $cod_clase\n ]\n ); \n }\n }\n\n }\n }\n $this->call([\n AdministradorSeeder::class\n ]);\n }", "public function store(Request $request)\n {\n if (Auth::user()->canCadastrarInventario()) {\n $this->validate($request, [\n 'estoque_id' => ['required', new ValidInventario, new ValidInventarioItem]\n ]);\n\n try {\n DB::beginTransaction();\n $inventario = new Inventario($request->all());\n \n if ($inventario->save()) {\n $estoque = Estoque::find($inventario->estoque_id);\n \n if ($request->produto_id) {\n $produtos = $estoque->produtos()->where('produtos.id', $request->produto_id)->get();\n } elseif ($request->grupo_produto_id) {\n $produtos = $estoque->produtos()->where('produtos.grupo_produto_id', $request->grupo_produto_id)->get();\n } else {\n $produtos = $estoque->produtos()->get();\n }\n\n foreach ($produtos as $produto) {\n $items[] = [\n 'produto_id' => $produto->id,\n 'qtd_estoque' => $estoque->saldo_produto($produto)\n ]; \n }\n\n $inventario->inventario_items()->createMany($items);\n\n DB::commit();\n\n Session::flash('success', __('messages.create_success', [\n 'model' => 'inventario',\n 'name' => $inventario->id\n ]));\n\n return redirect()->action('InventarioController@index');\n } else {\n throw new \\Exception(__('messages.create_error', [\n 'model' => 'inventario',\n 'name' => $inventario->id\n ]));\n } \n } catch (\\Exception $e) {\n DB::rollback();\n Session::flash('error', __('messages.exception', [\n 'exception' => $e->getMessage()\n ]));\n return redirect()->back()->withInput();\n }\n } else {\n Session::flash('error', __('messages.access_denied'));\n return redirect()->back();\n }\n }", "function addResource($resObject)\n{\n\t\n\t\n\t$sql = \"INSERT INTO `\".DB_NAME.\"`.`resources` (\n\t\t`rid` ,\n\t\t`title` ,\n\t\t`link` ,\n\t\t`author` ,\n\t\t`timecreated` ,\n\t\t`rating` ,\n\t\t`description` ,\n\t\t`tags` ,\n\t\t`voteips`\n\t\t)\n\t\tVALUES (\n\t\tNULL , '\".sanitize($resObject->name).\"', '\".sanitize($resObject->url).\"', '\".$resObject->owner.\"',\n\t\t\".time().\" , '\".$resObject->score.\"', '\".sanitize($resObject->description).\"', '\".sanitize(dcSemicolonArrayToString($resObject->tags)).\"',\n\t\t'\".dcSemicolonArrayToString($resObject->voteips).\"'\n\t\t)\";\n\n\t$result = mysql_query($sql);\n\n\tif($result)\n\t\t$result = mysql_insert_id();\n\t\t\n\treturn $result;\n}", "public function save_linea(){\n \n //$sql = \"SELECT LAST_INSERT_ID() as 'pedido' ;\";//Devuelve id del ultimo pedido\n $sql = \"SELECT * FROM pedidos ORDER BY id DESC LIMIT 1;\";\n $query = $this->db->query($sql);\n\n $pedido_id = $query->fetch_object()->id;\n\n $cast_pedido_id = (int)$pedido_id;\n \n //var_dump($cast_pedido_id);\n \n //Insertamos productos y cantidad de productos\n foreach($_SESSION['carrito'] as $indice =>$elemento){\n \n $producto = $elemento['producto'];\n $product_id = (int)$producto->id;\n \n $insert = \"INSERT INTO lineas_pedidos VALUES(null , $cast_pedido_id, $product_id, {$elemento['unidades']});\";\n $save = $this->db->query($insert);\n \n //Llamada al método updateStock, el cual le pasamos el id del producto y las unidades y va modificando el stock.\n $this->updateStock($producto->id, $elemento['unidades']);\n // echo $this->db->error;\n // die();\n } \n\n\n $result = false;\n if($save){\n $result = true;\n }\n return $result;\n }", "function __construct() \n\t{\n\t\tparent::__construct();\n\n\t\t$this->attributes['id']\t\t= $this->createID('KOPERASI');\n\n\t\tif(isset($this->ext_appends))\n\t\t{\n\t\t\t$this->appends \t\t\t= array_merge($this->appends, $this->ext_appends);\n\t\t}\n\n\t}", "public function execute()\n {\n DatabaseManager::getInstance()->query(Constants::getInstance()->get('addServiceAction'), [\n ':ACT_NAME' => $this->getRequest()->query->get('name'),\n ':ACT_TYPE' => $this->getRequest()->query->get('type')\n ]);\n\n $this->setMessage('ServiceInsertion', [\n 'item_id' => $this->getInstruction()->getInsertId(),\n 'action_id' => $actionId = DatabaseManager::getInstance()->getLastInsertId()\n ]);\n\n DatabaseManager::getInstance()->query(Constants::getInstance()->get('addServiceActionRelation'),\n [':SRVC_ID' => $this->getInstruction()->getInsertId(), ':ACT_ID' => $actionId]);\n }", "public function actionCreate()\n {\n $this->layout = 'blank';\n $model = new InstructionDisposal();\n $model->scenario = 'create';\n\n if ($model->load(Yii::$app->request->post())) {\n $model->id_modul = $this->id_modul;\n\n $model->status_listing = 50;\n\n if (isset($_FILES['file'])) {\n if (isset($_FILES['file']['size'])) {\n if($_FILES['file']['size'] != 0) {\n $model->file = $_FILES['file'];\n $filename = $_FILES['file']['name'];\n $filepath = 'uploads/INST/DISPOSAL/';\n }\n }\n }\n\n if (!$model->save()){\n return Displayerror::pesan($model->getErrors());\n }\n $model->file_attachment = $filepath.$model->id.'/'.$filename;\n $model->save();\n \n Yii::$app->session->set('idInstructionDisposal', $model->id);\n // Yii::$app->session->set('idInstructionDisposal',$model->id);\n // return var_dump($model);\n \n if (!file_exists($filepath.$model->id.'/')) {\n mkdir($filepath.$model->id.'/', 0777, true);\n }\n move_uploaded_file($_FILES['file']['tmp_name'], $model->file_attachment);\n \n return 'success';\n\n\n\n // if ($model->load(Yii::$app->request->post())) {\n // $newidinst = InstructionDisposal::find()->andWhere(['and',['like', 'instruction_number', '%/'.date('Y'), false],['id_modul' => $model->id_modul]])->count() + 1;\n // $newidinstexist = InstructionDisposal::find()->andWhere(['and',['instruction_number' => $newidinst],['id_modul' => $model->id_modul]])->exists();\n // $newidinst++;\n \n // $monthroman = Numbertoroman::convert(date('n'));\n \n // $model->instruction_number = sprintf(\"%04d\", $newidinst).'/INST-IC1/DSP/'.$monthroman.date('/Y');\n\n\n // $newidinst1 = InstructionDisposal::find()->andWhere(['and',['like', 'no_iom', '%/'.date('Y'), false],['id_modul' => $model->id_modul]])->count() + 1;\n // $newidinstexist = InstructionDisposal::find()->andWhere(['and',['no_iom' => $newidinst1],['id_modul' => $model->id_modul]])->exists();\n // $newidinst1++;\n \n // $monthroman = Numbertoroman::convert(date('n'));\n\n // // $model->no_iom = sprintf(\"%04d\", $newidinst1).'/IOM/INT/DIV1/'.$monthroman.date('/Y');\n \n // $model->status_listing = 50;\n\n // if (isset($_FILES['file'])) {\n // if (isset($_FILES['file']['size'])) {\n // if($_FILES['file']['size'] != 0) {\n // $model->file = $_FILES['file'];\n // $filename = $_FILES['file']['name'];\n // $filepath = 'uploads/INST/DISPOSAL/';\n // }\n // }\n // }\n\n // if (!$model->save()){\n // return Displayerror::pesan($model->getErrors());\n // }\n // $model->file_attachment = $filepath.$model->id.'/'.$filename;\n // $model->save();\n \n // Yii::$app->session->set('idInstWhTr', $model->id);\n // // Yii::$app->session->set('idInstructionDisposal',$model->id);\n // // return var_dump($model);\n \n // if (!file_exists($filepath.$model->id.'/')) {\n // mkdir($filepath.$model->id.'/', 0777, true);\n // }\n // move_uploaded_file($_FILES['file']['tmp_name'], $model->file_attachment);\n \n // return 'success';\n // } \n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }", "public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }", "public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }", "public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }", "public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }", "public function setOperation($value)\n {\n return $this->set('Operation', $value);\n }", "public function initialize()\n {\n $this->belongsTo('posicao_id', 'Ecommerce\\Admin\\Models\\Posicao', 'id', array('alias' => 'Posicao'));\n }", "public function adicionarInicial($iCodigoInicial) {\n\n db_app::import('inicial');\n $this->aIniciais[$iCodigoInicial] = new inicial($iCodigoInicial);\n }", "function add_cross($so, $sn, $cc, $ce, $am, $text, $rep_id){\n $c = new CrossCharge;\n $c->service_order = $so;\n $c->serial = $sn;\n $c->cost_centre = $cc;\n $c->cost_element = $ce;\n $c->amount = $am;\n $c->text = $text;\n $c->repair_id = $rep_id;\n $c->charged = 0;\n $c->charged_date = Carbon::now();\n $c->save();\n }", "public function getIdsucursal()\n {\n\n return $this->idsucursal;\n }", "public function store(CreatesochiRequest $request)\n {\n $input = $request->all();\n\n $sochi = $this->sochiRepository->create($input);\n\n Flash::success('Sochi saved successfully.');\n\n return redirect(route('sochis.index'));\n }", "public function store()\n\t{\n\t\t$this->Model_siswa->store();\n\t}", "public function connectorCreate(DatabaseCodeGen $objCodeGen, SqlTable $objTable, ColumnInterface $objColumn)\n {\n if ($objColumn instanceof ManyToManyReference) {\n throw new Exception(\"Autocomplete does not support many-to-many references.\");\n }\n\n $strObjectName = $objCodeGen->modelVariableName($objTable->Name);\n $strControlVarName = $objCodeGen->modelConnectorVariableName($objColumn);\n $strLabelName = addslashes(DatabaseCodeGen::modelConnectorControlName($objColumn));\n $strPropName = DatabaseCodeGen::modelConnectorPropertyName($objColumn);\n\n // Read the control type in case we are generating code for a similar class\n $strControlType = $objCodeGen->getControlCodeGenerator($objColumn)->getControlClass();\n\n // Create a control designed just for selecting from a type table\n if ($objColumn instanceof SqlColumn && $objColumn->Reference->IsType) {\n $strRet = <<<TMPL\n /**\n * Create and setup {$strControlType} {$strControlVarName}\n * @param string \\$strControlId optional ControlId to use\n * @return {$strControlType}\n */\n\n public function {$strControlVarName}_Create(\\$strControlId = null) {\n\nTMPL;\n } else { // Create a control that presents a list taken from the database\n\n $strRet = <<<TMPL\n\t\t/**\n\t\t * Create and setup {$strControlType} {$strControlVarName}\n\t\t * @param null|string \\$strControlId optional ControlId to use\n\t\t * @param null|QQCondition \\$objConditions override the default condition of QQ::all() to the query, itself\n\t\t * @param null|QQClause[] \\$objClauses additional QQClause object or array of QQClause objects for the query\n\t\t * @return {$strControlType}\n\t\t */\n\n\t\tpublic function {$strControlVarName}_Create(\\$strControlId = null, QQCondition \\$objCondition = null, \\$objClauses = null) {\n\t\t\t\\$this->obj{$strPropName}Condition = \\$objCondition;\n\t\t\t\\$this->obj{$strPropName}Clauses = \\$objClauses;\n\nTMPL;\n }\n\n // Allow the codegen process to either create custom ids based on the field/table names, or to be\n // Specified by the developer.\n $strControlIdOverride = $objCodeGen->generateControlId($objTable, $objColumn);\n\n if ($strControlIdOverride) {\n $strRet .= <<<TMPL\n\t\t\tif (!\\$strControlId) {\n\t\t\t\t\\$strControlId = '$strControlIdOverride';\n\t\t\t}\n\nTMPL;\n }\n\n $strRet .= <<<TMPL\n\t\t\t\\$this->{$strControlVarName} = new \\\\{$strControlType}(\\$this->objParentObject, \\$strControlId);\n\t\t\t\\$this->{$strControlVarName}->Name = t('{$strLabelName}');\n\nTMPL;\n if ($objColumn instanceof SqlColumn && $objColumn->NotNull) {\n $strRet .= <<<TMPL\n\t\t\t\\$this->{$strControlVarName}->Required = true;\n\nTMPL;\n }\n\n if ($strMethod = DatabaseCodeGen::$PreferredRenderMethod) {\n $strRet .= <<<TMPL\n\t\t\t\\$this->{$strControlVarName}->PreferredRenderMethod = '$strMethod';\n\nTMPL;\n }\n $strRet .= $this->connectorCreateOptions($objCodeGen, $objTable, $objColumn, $strControlVarName);\n $strRet .= $this->connectorRefresh($objCodeGen, $objTable, $objColumn, true);\n\n $strRet .= <<<TMPL\n\t\t\treturn \\$this->{$strControlVarName};\n\t\t}\n\nTMPL;\n\n if ($objColumn instanceof SqlColumn && $objColumn->Reference->IsType) {\n if ($objColumn instanceof SqlColumn) {\n $strVarType = $objColumn->Reference->VariableType;\n } else {\n $strVarType = $objColumn->VariableType;\n }\n $strRet .= <<<TMPL\n\n\t\t/**\n\t\t *\tCreate item list for use by {$strControlVarName}\n\t\t */\n\t\tpublic function {$strControlVarName}_GetItems() {\n\t\t\treturn {$strVarType}::nameArray();\n\t\t}\n\n\nTMPL;\n } else {\n if ($objColumn instanceof SqlColumn) {\n $strRefVarType = $objColumn->Reference->VariableType;\n $strRefVarName = $objColumn->Reference->VariableName;\n $strRefTable = $objColumn->Reference->Table;\n } elseif ($objColumn instanceof ReverseReference) {\n $strRefVarType = $objColumn->VariableType;\n $strRefVarName = $objColumn->VariableName;\n $strRefTable = $objColumn->Table;\n } else {\n throw new \\Exception(\"Unprepared to handle this column type.\");\n }\n\n $strRet .= <<<TMPL\n\n\t\t/**\n\t\t *\tCreate item list for use by {$strControlVarName}\n\t\t */\n\t\t public function {$strControlVarName}_GetItems() {\n\t\t\t\\$a = array();\n\t\t\t\\$objCondition = \\$this->obj{$strPropName}Condition;\n\t\t\tif (is_null(\\$objCondition)) \\$objCondition = QQ::all();\n\t\t\t\\${$strRefVarName}Cursor = {$strRefVarType}::queryCursor(\\$objCondition, \\$this->obj{$strPropName}Clauses);\n\n\t\t\t// Iterate through the Cursor\n\t\t\twhile (\\${$strRefVarName} = {$strRefVarType}::instantiateCursor(\\${$strRefVarName}Cursor)) {\n\t\t\t\t\\$objListItem = new ListItem(\\${$strRefVarName}->__toString(), \\${$strRefVarName}->{$objCodeGen->getTable($strRefTable)->PrimaryKeyColumnArray[0]->PropertyName});\n\t\t\t\tif ((\\$this->{$strObjectName}->{$strPropName}) && (\\$this->{$strObjectName}->{$strPropName}->{$objCodeGen->getTable($strRefTable)->PrimaryKeyColumnArray[0]->PropertyName} == \\${$strRefVarName}->{$objCodeGen->getTable($strRefTable)->PrimaryKeyColumnArray[0]->PropertyName}))\n\t\t\t\t\t\\$objListItem->Selected = true;\n\t\t\t\t\\$a[] = \\$objListItem;\n\t\t\t}\n\t\t\treturn \\$a;\n\t\t }\n\n\nTMPL;\n }\n return $strRet;\n }", "public function getOperationPrestationssJoinOperationScenarii($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationScenarii', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }", "public function getIdSoin() {\r\n return $this->idSoin;\r\n }", "public function create() {\n $sii = new Sii();\n $parametros = array(\n 'descripcion' => Input::get('descripcion'),\n 'sub_concepto' => Input::get('sub_concepto'),\n 'conceptos_id' => Input::get('conceptos_id'),\n 'importe' => Input::get('importe'),\n 'periodo' => Input::get('periodo'),\n 'nivel_id' => Input::get('nivel_id'),\n 'tipo_adeudo' => Input::get('tipo_adeudo'),\n 'es_inscripcion'=>Input::get('es_inscripcion'),\n 'aplica_beca'=> Input::get('aplica_beca')\n );\n $reglas = array(\n 'descripcion' => 'required',\n 'sub_concepto' => 'required|max:70',\n 'conceptos_id' => 'required|integer',\n 'importe' => 'required|numeric',\n 'periodo' => 'required',\n 'nivel_id' => 'required|integer',\n 'tipo_adeudo' => 'required|integer',\n 'es_inscripcion' => 'required|integer',\n 'aplica_beca' => 'integer'\n );\n $validator = Validator::make($parametros, $reglas);\n\n if (!$validator->fails()) {\n $res = Sub_conceptos::create($parametros);\n $respuesta = json_encode(array('error' => false, 'mensaje' => 'Nuevo registro', 'respuesta' => $res));\n } else {\n $respuesta = json_encode(array('error' => true, 'mensaje' => 'No hay parametros o estan mal.', 'respuesta' => null));\n }\n $final_response = Response::make($respuesta, 200);\n $final_response->header('Content-Type', \"application/json; charset=utf-8\");\n\n return $final_response;\n }", "public function CicloCDI(){\n return $this->belongsTo(Ciclo::class, 'ciclo_id', 'id');\n }", "function setId_ubi($iid_ubi = '')\n {\n $this->iid_ubi = $iid_ubi;\n }", "public function addSalarie($Salarie){\n\t\t$req=$this ->db->prepare\n\t\t('INSERT INTO salarie (per_num,sal_telprof,fon_num)\n\t\tVALUES (:num,:saltelprof,:fonnum)');\n\n\t\t$req ->bindValue(':num',$Salarie->getPerNum(),PDO::PARAM_STR);\n\t\t$req ->bindValue(':saltelprof',$Salarie->getTelProf(),PDO::PARAM_STR);\n\t\t$req ->bindValue(':fonnum',$Salarie->getFonNum(),PDO::PARAM_STR);\n\n\t\t$req->execute();\n\t}" ]
[ "0.5536275", "0.5436308", "0.5380035", "0.51070744", "0.51019716", "0.48792845", "0.4863726", "0.48174158", "0.4816235", "0.47655308", "0.4710799", "0.46752945", "0.46390477", "0.46059033", "0.45966685", "0.459367", "0.45864248", "0.45555443", "0.45517206", "0.45369753", "0.4536577", "0.4533468", "0.4519478", "0.44991857", "0.44745445", "0.4452249", "0.44449916", "0.4432379", "0.442679", "0.4406618", "0.44028106", "0.43750888", "0.4370358", "0.43689618", "0.4359676", "0.43575194", "0.43441573", "0.4343698", "0.433391", "0.43301722", "0.4330063", "0.43300223", "0.43300223", "0.43184385", "0.4315286", "0.43072498", "0.43030295", "0.43017846", "0.4297971", "0.4284063", "0.42699528", "0.42546853", "0.42462555", "0.42273012", "0.42213613", "0.42202413", "0.4215594", "0.42122176", "0.4206145", "0.4195465", "0.4185846", "0.41798243", "0.4179082", "0.41772762", "0.41635755", "0.41612738", "0.41573212", "0.41549554", "0.4143364", "0.4136394", "0.41310668", "0.4130462", "0.41196242", "0.4112799", "0.4112013", "0.4110847", "0.41101193", "0.4104221", "0.4099035", "0.40990025", "0.4097993", "0.40945843", "0.4094482", "0.4094482", "0.4094482", "0.4094482", "0.409421", "0.40864578", "0.40841043", "0.40837425", "0.40835243", "0.40824154", "0.40818623", "0.4080777", "0.40798518", "0.4076877", "0.4075429", "0.40750703", "0.40709025", "0.40665147" ]
0.68358207
0
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationScenariis from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes.
public function getOperationScenariisJoinOperations($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $query = OperationScenariiQuery::create(null, $criteria); $query->joinWith('Operations', $join_behavior); return $this->getOperationScenariis($query, $con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }", "public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}", "protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }", "public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }", "protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }", "public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function getComposedCollection()\n {\n return $this->composedCollection;\n }", "protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }", "protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }", "protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }", "public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }", "protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }", "public function copy(): Collection\n {\n return clone $this;\n }", "function getComposite()\n {\n return $this;\n }", "public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }", "protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }", "public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }", "public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }", "protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }", "public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }", "function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}", "public function getCriteriaCollection(): CriteriaCollection;", "public function getProcessorsCollection();", "public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}", "public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }", "public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }", "protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }", "public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getCollection(){\n\t\treturn $this->_collection;\n\t}", "public function getCollection()\n {\n if (!$this->_collection) {\n $this->_prepareCollection();\n }\n\n return $this->_collection;\n }", "protected function buildColection() \n {\n $content_id = $this->getContentId();\n $origin_content_id = $this->getOriginContentId();\n $project_id = $this->getProjectId();\n $storeId = $this->getStoreId();\n \n try {\n $contentCollection = Mage::getModel('connector/content')->getCollection();\n $contentCollection->addFieldToFilter('filename', array('neq' => ''))\n ->addFieldToFilter('percent', array('lt' => '100'));\n\n if($content_id) { // identity field\n $contentCollection->addIndentifyToFilter($content_id);\n } elseif($origin_content_id && $project_id && $storeId) {\n $contentCollection->addUniqueByParams($origin_content_id, $project_id, $storeId);\n } else { // get all none updated records\n $contentCollection->setPageSize(500)\n ->setCurPage(1);\n }\n \n $contentCollection->joinAdditionalDetails();\n \n return $contentCollection;\n } catch (Exception $ex) {\n Mage::helper('connector')->log($ex->getMessage(), Zend_log::ERR);\n return false;\n }\n \n \n }", "public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }", "protected function getCmsPageCollection()\n {\n /** @var \\Magento\\Cms\\Model\\ResourceModel\\Page\\Collection $cmsPageCollection */\n $cmsPageCollection = $this->cmsPageCollectionFactory->create();\n $cmsPageCollection->load();\n return $cmsPageCollection;\n }", "public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }", "public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }", "protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }", "public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }", "public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }", "protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }", "public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }", "public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }", "protected function createCollection()\n {\n $model = $this->getModel();\n return $model->asCollection();\n }", "public function Panier() \n {\n $this->CollProduit = new Collection;\n }", "public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }", "function getClone(){\n\t\t\treturn clone($this);\n\t\t}", "protected function _getProductCollection()\n {\n if (!$this->_productCollection) {\n throw new OnePica_AvaTax_Exception('Product collection should be set before usage');\n }\n\n return $this->_productCollection;\n }", "public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }", "private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }", "public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }", "public function copy(): Collection\n {\n return new Collection($this->array);\n }", "public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }", "public function get_criteria() { return $this->criteria_list; }", "public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }", "protected function _getProductCollection()\n\t{\n\t\tif (is_null($this->_productCollection)) {\n $collection = Mage::getModel('catalog/product')->getCollection();\n\n\t\t\t$attributes = Mage::getSingleton('catalog/config')\n\t\t\t\t->getProductAttributes();\n\n\t\t\t$collection->addAttributeToSelect($attributes)\n\t\t\t\t->addMinimalPrice()\n\t\t\t\t->addFinalPrice()\n\t\t\t\t->addTaxPercents()\n\t\t\t\t->addAttributeToFilter('md_featured_product', 1, 'left')\n\t\t\t\t->addStoreFilter();\n\n\t\t\tMage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);\n\t\t\tMage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);\n\t\t\t$this->_productCollection = $collection;\n\t\t}\n\t\treturn $this->_productCollection;\n}", "public function getCriteria(){\n return $this->criteria;\n }", "public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "protected function _getProductCollection()\n {\n if (!Mage::helper('integernet_solr')->module()->isActive()) {\n return parent::_getProductCollection();\n }\n\n if (!Mage::helper('integernet_solr')->page()->isSolrResultPage()) {\n parent::_getProductCollection();\n }\n\n if (Mage::getStoreConfig('integernet_solr/results/use_html_from_solr')) {\n return Mage::getSingleton('integernet_solr/result_collection');\n }\n\n if (is_null($this->_productCollection) || !($this->_productCollection instanceof IntegerNet_Solr_Model_Resource_Catalog_Product_Collection)) {\n\n /** @var $productCollection IntegerNet_Solr_Model_Resource_Catalog_Product_Collection */\n $productCollection = Mage::getResourceModel('integernet_solr/catalog_product_collection')\n ->setStoreId(Mage::app()->getStore()->getId())\n ->addMinimalPrice()\n ->addFinalPrice()\n ->addTaxPercents()\n ->addUrlRewrite()\n ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())\n ->addAttributeToSelect(array('url_key'));\n\n Mage::dispatchEvent('catalog_block_product_list_collection', array(\n 'collection' => $productCollection\n ));\n\n $this->_productCollection = $productCollection;\n\n /* @var $layer Mage_Catalog_Model_Layer */\n $layer = $this->getLayer();\n $this->prepareSortableFieldsByCategory($layer->getCurrentCategory());\n }\n\n return $this->_productCollection;\n }", "public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }", "function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }", "public function initContributionss($overrideExisting = true)\n {\n if (null !== $this->collContributionss && !$overrideExisting) {\n return;\n }\n $this->collContributionss = new ObjectCollection();\n $this->collContributionss->setModel('\\Contributions');\n }", "public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }", "function create() {\n\t\t$this->rs[$this->ckname] = 1; // start the concurrency counter at 1\n\t\treturn parent::create();\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}", "public function getRCurrencies(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRCurrencies === null && ($this->operation_prime_currency_id !== null) && $doQuery) {\n $this->aRCurrencies = RCurrenciesQuery::create()->findPk($this->operation_prime_currency_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRCurrencies->addOperationPrimess($this);\n */\n }\n\n return $this->aRCurrencies;\n }", "public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }", "public function cicloEscolarPredeterminado()\n {\n $ciclo = Ciclo::where('ciclo_activo', false)\n ->where('ciclo_actual', true)\n ->first();\n\n return $ciclo;\n }" ]
[ "0.6432534", "0.616455", "0.60676116", "0.5967978", "0.57871777", "0.5603849", "0.5412624", "0.5361123", "0.5311536", "0.52497274", "0.5249158", "0.5202309", "0.51907885", "0.5177287", "0.51725477", "0.5124477", "0.512439", "0.51073444", "0.51018786", "0.50871056", "0.50743747", "0.50714755", "0.5034809", "0.50236356", "0.50224626", "0.5011888", "0.4998979", "0.49907374", "0.49830243", "0.4975536", "0.49738201", "0.49711686", "0.4939717", "0.49340972", "0.49297366", "0.49138835", "0.49063122", "0.49051663", "0.48857948", "0.48851746", "0.48733553", "0.48700434", "0.48674154", "0.4863959", "0.48621467", "0.48605233", "0.48161727", "0.47971222", "0.47772396", "0.47767305", "0.47710577", "0.47659877", "0.47638226", "0.4759667", "0.4742138", "0.47394004", "0.47311884", "0.47224545", "0.47114956", "0.47070694", "0.47059625", "0.47012433", "0.47007066", "0.4692541", "0.46765077", "0.46716088", "0.46627006", "0.46592435", "0.46574086", "0.46561557", "0.4656076", "0.46559587", "0.46537223", "0.4643555", "0.46368694", "0.4632595", "0.46261182", "0.4612846", "0.46059677", "0.4601477", "0.46013764", "0.45994642", "0.45931837", "0.45919654", "0.45862776", "0.458518", "0.45849636", "0.45804277", "0.4578344", "0.45758325", "0.45748562", "0.45705402", "0.4568541", "0.4566611", "0.45658106", "0.45612106", "0.45599097", "0.455953", "0.45464966", "0.454569", "0.45456028" ]
0.0
-1
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related OperationScenariis from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes.
public function getOperationScenariisJoinRScenarios($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $query = OperationScenariiQuery::create(null, $criteria); $query->joinWith('RScenarios', $join_behavior); return $this->getOperationScenariis($query, $con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }", "public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}", "protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }", "public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }", "protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }", "public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function getComposedCollection()\n {\n return $this->composedCollection;\n }", "protected function _prepareCollection() {\n $session = Mage::getModel('core/session');\n $filterConditions = $session->getData('rp_conditions');\n if (!$filterConditions)\n $filterConditions = $this->_filterConditions;\n $posorderCollection = Mage::getModel('webpos/posorder')->getCollection();\n /* Jack - create an empty collection */\n $collection = $posorderCollection;\n foreach ($collection->getItems() as $key => $item) {\n $collection->removeItemByKey($key);\n }\n /**/\n\n /* Define variables and set default data */\n $totalsSalesByUser = array();\n $totalSales = 0;\n $incTimeStrings = array('1' => ' +1 week', '2' => ' +1 day', '3' => ' +1 month', '4' => ' +1 day', '5' => ' +1 day', '6' => ' +1 week', '7' => ' +1 week');\n $descTimeStrings = array('4' => ' -1 week', '5' => ' -1 week', '6' => ' -1 month', '7' => ' -1 month');\n $periodFormat = ($filterConditions['period'] == 3 || $filterConditions['period'] == 6 || $filterConditions['period'] == 7 ) ? \"Y-m-d\" : \"Y-m-d\";\n $specialPeriod = array('1', '2', '3', '4');\n $stringTimeFrom = array('1' => 'monday this week', '2' => 'monday last week', '3' => 'first day of this month', '4' => 'first day of previous month');\n $stringTimeTo = array('1' => 'sunday this week', '2' => 'sunday last week', '3' => 'last day of this month', '4' => 'last day of previous month');\n $thisFriday = date($periodFormat, strtotime('friday this week'));\n $today = date($periodFormat);\n $userIds = $this->userIds;\n if (($filterConditions['from'] == '' || $filterConditions['to'] == '' ) && in_array($filterConditions['period'], $specialPeriod) == false) {\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }\n\n $startTime = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeFrom = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeFrom[$filterConditions['range']]))) : date($periodFormat, strtotime($filterConditions['from']));\n $timeTo = (in_array($filterConditions['range'], $specialPeriod)) ? (date($periodFormat, strtotime($stringTimeTo[$filterConditions['range']]))) : date(\"Y-m-d\", strtotime($filterConditions['to']));\n if ($timeFrom && $timeTo) {\n while ($timeFrom <= $timeTo) {\n $i = 0;\n foreach ($this->userIds as $userId => $displayName) {\n $isSave = true;\n $totalSalesOfPeriod = 0;\n $isEmpty = true;\n if ($filterConditions['period'] == 1) {\n $endTime = $this->lastDayOf('year', new DateTime($timeFrom))->format('Y-m-d');\n } else if ($filterConditions['period'] == 3) {\n $endTime = $this->lastDayOf('month', new DateTime($timeFrom))->format('Y-m-d');\n } else\n $endTime = date('Y-m-d', strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n $endTime = (strtotime($endTime) < strtotime($timeTo)) ? $endTime : $timeTo;\n $itemDataObject = new Varien_Object();\n if ($i == 0) {\n if ($filterConditions['period'] == 1) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0]);\n } else if ($filterConditions['period'] == 3) {\n $exTimeFrom = explode('-', $timeFrom);\n $itemDataObject->setData('period', $exTimeFrom[0] . '-' . $exTimeFrom[1]);\n } else\n $itemDataObject->setData('period', $timeFrom);\n } else\n $itemDataObject->setData('period', '');\n if ($itemDataObject->getData('period'))\n $itemDataObject->setData('period', date('F j, Y', strtotime($itemDataObject->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeFrom, $endTime, array('user_id' => $userId));\n $totalU = 0;\n if (count($webposOrderCollection) > 0) {\n foreach ($webposOrderCollection as $order) {\n $totalU += $order->getTotals();\n }\n }\n if (!$totalU && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n\n if ($isSave) {\n $itemDataObject->setData('user', $displayName);\n\n $itemDataObject->setData('totals_sales', ($totalU > 0) ? $totalU : '0.00');\n $collection->addItem($itemDataObject);\n }\n $i++;\n }\n if ($filterConditions['period'] == 1)\n $timeFrom = date('Y-m-d', strtotime($endTime));\n else\n $timeFrom = date($periodFormat, strtotime($timeFrom . $incTimeStrings[$filterConditions['period']]));\n }\n /* get last item data \n $i = 0;\n foreach($this->userIds as $userId => $displayName){\n $isSave = true;\n $beforeLastItem = new Varien_Object();\n if($i == 0){\n if($filterConditions['period'] == 1){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0]);\n }\n else if($filterConditions['period'] == 3){\n $exTimeFrom = explode('-',$timeTo);\n $beforeLastItem->setData('period',$exTimeFrom[0].'-'.$exTimeFrom[1]);\n }\n else\n $beforeLastItem->setData('period',$timeTo);\n }\n else\n $beforeLastItem->setData('period','');\n if($beforeLastItem->getData('period'))\n $beforeLastItem->setData('period',date('F j, Y', strtotime($beforeLastItem->getData('period'))));\n $webposOrderCollection = $this->getSalesCollection($timeTo,$timeTo,array('user_id' => $userId))->getFirstItem();\n if( !$webposOrderCollection->getTotals() && $filterConditions['rp_settings']['show_empty_result'] == 'false')\n $isSave = false;\n if($isSave){\n $beforeLastItem->setData('user',$displayName);\n $beforeLastItem->setData('totals_sales',$webposOrderCollection->getTotals()?$webposOrderCollection->getTotals():'0.00');\n $collection->addItem($beforeLastItem);\n }\n $i++;\n }\n end last item */\n }\n /* set data for totals row */\n $lastItemDataObject = new Varien_Object();\n $lastItemDataObject->setData('period', 'Totals:');\n $orders = $this->getSalesTotal($startTime, $endTime);\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $lastItemDataObject->setData('totals_sales', $totalU);\n $collection->addItem($lastItemDataObject);\n $this->setCollection($collection);\n /* set session for chart */\n $sessionObject = new Varien_Object();\n foreach ($this->userIds as $userId => $username) {\n $orders = $this->getSalesTotal($startTime, $endTime, array('user_id' => $userId));\n\n\n $totalU = 0;\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $totalU += $order->getTotals();\n }\n }\n $sessionObject->setData($username, $totalU);\n }\n Mage::getSingleton('core/session')->setData('total_sales_by_user', $sessionObject->toArray());\n Mage::getSingleton('core/session')->setType('user');\n $this->setTotalRowByUser($sessionObject->toArray());\n return parent::_prepareCollection();\n }", "protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }", "protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }", "public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }", "protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }", "public function copy(): Collection\n {\n return clone $this;\n }", "function getComposite()\n {\n return $this;\n }", "public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }", "protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }", "public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }", "public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }", "public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }", "public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }", "function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}", "public function getCriteriaCollection(): CriteriaCollection;", "public function getProcessorsCollection();", "public function getCollection(){\r\n\t\treturn $this->_collection;\r\n\t}", "public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }", "public function getProduitsPanier()\n {\n return $this->CollProduit->getCollection();\n }", "protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }", "public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('iparcel/log')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getCollection(){\n\t\treturn $this->_collection;\n\t}", "public function getCollection()\n {\n if (!$this->_collection) {\n $this->_prepareCollection();\n }\n\n return $this->_collection;\n }", "protected function buildColection() \n {\n $content_id = $this->getContentId();\n $origin_content_id = $this->getOriginContentId();\n $project_id = $this->getProjectId();\n $storeId = $this->getStoreId();\n \n try {\n $contentCollection = Mage::getModel('connector/content')->getCollection();\n $contentCollection->addFieldToFilter('filename', array('neq' => ''))\n ->addFieldToFilter('percent', array('lt' => '100'));\n\n if($content_id) { // identity field\n $contentCollection->addIndentifyToFilter($content_id);\n } elseif($origin_content_id && $project_id && $storeId) {\n $contentCollection->addUniqueByParams($origin_content_id, $project_id, $storeId);\n } else { // get all none updated records\n $contentCollection->setPageSize(500)\n ->setCurPage(1);\n }\n \n $contentCollection->joinAdditionalDetails();\n \n return $contentCollection;\n } catch (Exception $ex) {\n Mage::helper('connector')->log($ex->getMessage(), Zend_log::ERR);\n return false;\n }\n \n \n }", "public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }", "protected function getCmsPageCollection()\n {\n /** @var \\Magento\\Cms\\Model\\ResourceModel\\Page\\Collection $cmsPageCollection */\n $cmsPageCollection = $this->cmsPageCollectionFactory->create();\n $cmsPageCollection->load();\n return $cmsPageCollection;\n }", "public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}", "protected function _getProductCollection()\n {\n $collection = parent::_getProductCollection();\n\t\t$helper = Mage::helper('catalogMembersonly/productsFilter');\n\t\t$collection = $helper->filterProductCollection($collection);\n\n return $collection;\t\t\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }", "protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function __clone()\n {\n if (is_object($this->collection)) {\n $this->collection = clone $this->collection;\n }\n $this->initialize();\n $this->owner = null;\n $this->snapshot = [];\n $this->changed();\n }", "public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }", "public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }", "public function __clone()\r\n {\r\n $this->document = [];\r\n $this->document_id = 0;\r\n\r\n $this->documentTotal = 0;\r\n $this->documentExchageTotal = 0;\r\n\r\n $this->associatedDocuments = [];\r\n }", "protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }", "public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }", "protected function createCollection()\n {\n $model = $this->getModel();\n return $model->asCollection();\n }", "public function Panier() \n {\n $this->CollProduit = new Collection;\n }", "public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }", "function getClone(){\n\t\t\treturn clone($this);\n\t\t}", "protected function _getProductCollection()\n {\n if (!$this->_productCollection) {\n throw new OnePica_AvaTax_Exception('Product collection should be set before usage');\n }\n\n return $this->_productCollection;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }", "public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }", "public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }", "private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }", "public function chapitrePrec() {\n $prevChapitre = $this->cour->chapitres()->where('num_ordre', '<', $this->num_ordre)\n ->orderBy('num_ordre', 'desc')\n ->first();\n\n if($prevChapitre) {\n return $prevChapitre;\n }\n\n return $this;\n }", "public function copy(): Collection\n {\n return new Collection($this->array);\n }", "public function get_criteria() { return $this->criteria_list; }", "public function getParameters() : CollectionInterface\n {\n return $this->parameters->copy();\n }", "protected function _getProductCollection()\n\t{\n\t\tif (is_null($this->_productCollection)) {\n $collection = Mage::getModel('catalog/product')->getCollection();\n\n\t\t\t$attributes = Mage::getSingleton('catalog/config')\n\t\t\t\t->getProductAttributes();\n\n\t\t\t$collection->addAttributeToSelect($attributes)\n\t\t\t\t->addMinimalPrice()\n\t\t\t\t->addFinalPrice()\n\t\t\t\t->addTaxPercents()\n\t\t\t\t->addAttributeToFilter('md_featured_product', 1, 'left')\n\t\t\t\t->addStoreFilter();\n\n\t\t\tMage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);\n\t\t\tMage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);\n\t\t\t$this->_productCollection = $collection;\n\t\t}\n\t\treturn $this->_productCollection;\n}", "public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "public function getCriteria(){\n return $this->criteria;\n }", "protected function _getProductCollection()\n {\n if (!Mage::helper('integernet_solr')->module()->isActive()) {\n return parent::_getProductCollection();\n }\n\n if (!Mage::helper('integernet_solr')->page()->isSolrResultPage()) {\n parent::_getProductCollection();\n }\n\n if (Mage::getStoreConfig('integernet_solr/results/use_html_from_solr')) {\n return Mage::getSingleton('integernet_solr/result_collection');\n }\n\n if (is_null($this->_productCollection) || !($this->_productCollection instanceof IntegerNet_Solr_Model_Resource_Catalog_Product_Collection)) {\n\n /** @var $productCollection IntegerNet_Solr_Model_Resource_Catalog_Product_Collection */\n $productCollection = Mage::getResourceModel('integernet_solr/catalog_product_collection')\n ->setStoreId(Mage::app()->getStore()->getId())\n ->addMinimalPrice()\n ->addFinalPrice()\n ->addTaxPercents()\n ->addUrlRewrite()\n ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())\n ->addAttributeToSelect(array('url_key'));\n\n Mage::dispatchEvent('catalog_block_product_list_collection', array(\n 'collection' => $productCollection\n ));\n\n $this->_productCollection = $productCollection;\n\n /* @var $layer Mage_Catalog_Model_Layer */\n $layer = $this->getLayer();\n $this->prepareSortableFieldsByCategory($layer->getCurrentCategory());\n }\n\n return $this->_productCollection;\n }", "public function getOperations(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aOperations === null && ($this->op_id !== null) && $doQuery) {\n $this->aOperations = OperationsQuery::create()->findPk($this->op_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aOperations->addOperationPrimess($this);\n */\n }\n\n return $this->aOperations;\n }", "function detachProductCollection()\n {\n $collection = $this->productCollection();\n if ( !$collection )\n {\n $retValue = false;\n return $retValue;\n }\n\n $db = eZDB::instance();\n $db->begin();\n $newCollection = $collection->copy();\n if ( !$newCollection )\n {\n $db->commit();\n $retValue = false;\n return $retValue;\n }\n $this->setAttribute( 'productcollection_id', $newCollection->attribute( 'id' ) );\n $this->store();\n\n $db->commit();\n return $newCollection;\n }", "public function initContributionss($overrideExisting = true)\n {\n if (null !== $this->collContributionss && !$overrideExisting) {\n return;\n }\n $this->collContributionss = new ObjectCollection();\n $this->collContributionss->setModel('\\Contributions');\n }", "public function __clone()\n {\n parent::__clone();\n $this->_stockItem = null;\n $this->_stockItems = null;\n $this->_inStockStockItems = null;\n return $this;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}", "function create() {\n\t\t$this->rs[$this->ckname] = 1; // start the concurrency counter at 1\n\t\treturn parent::create();\n\t}", "public function getRCurrencies(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRCurrencies === null && ($this->operation_prime_currency_id !== null) && $doQuery) {\n $this->aRCurrencies = RCurrenciesQuery::create()->findPk($this->operation_prime_currency_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRCurrencies->addOperationPrimess($this);\n */\n }\n\n return $this->aRCurrencies;\n }", "public function getProposedChanges(): ProposedChangeCollection\n {\n return $this->proposedChanges;\n }", "public function cicloEscolarPredeterminado()\n {\n $ciclo = Ciclo::where('ciclo_activo', false)\n ->where('ciclo_actual', true)\n ->first();\n\n return $ciclo;\n }" ]
[ "0.6431651", "0.6165256", "0.6068618", "0.59680986", "0.57871217", "0.56028926", "0.5411398", "0.536176", "0.53107464", "0.5249257", "0.52484024", "0.5200242", "0.5189108", "0.5175743", "0.51708066", "0.5123161", "0.51227987", "0.51070935", "0.51009303", "0.5085772", "0.5072962", "0.5071703", "0.5033154", "0.50227016", "0.5021058", "0.5010529", "0.4999786", "0.49889472", "0.49833152", "0.4975301", "0.49741408", "0.49724117", "0.49379623", "0.49346513", "0.49299657", "0.49138284", "0.49060327", "0.49046546", "0.48839068", "0.48838133", "0.4873767", "0.4869981", "0.48672998", "0.4863315", "0.486074", "0.48606247", "0.48150456", "0.47965", "0.4778453", "0.47753656", "0.47701347", "0.47668776", "0.47622144", "0.47584698", "0.47414362", "0.4737617", "0.47326547", "0.47227657", "0.47114572", "0.470811", "0.47040188", "0.4700228", "0.46996585", "0.46916065", "0.46769083", "0.46697763", "0.46622658", "0.46576682", "0.46573892", "0.46558502", "0.4655578", "0.46547866", "0.46534148", "0.46433258", "0.4635517", "0.46304223", "0.46246958", "0.46147665", "0.4605904", "0.4600467", "0.4600268", "0.45982412", "0.45930597", "0.4592776", "0.4586745", "0.45862433", "0.45842287", "0.4580694", "0.45773363", "0.45748043", "0.45746166", "0.4569103", "0.45677543", "0.45662668", "0.4565161", "0.45622283", "0.45601994", "0.4557004", "0.45472032", "0.454677", "0.45454916" ]
0.0
-1
Clears out the collLnkOperationPrimeRCountriess collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
public function clearLnkOperationPrimeRCountriess() { $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized $this->collLnkOperationPrimeRCountriessPartial = null; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_libelle = null;\n $this->op_prime_numero = null;\n $this->gdl_art_id = null;\n $this->operation_prime_currency_id = null;\n $this->operation_prime_r_reward_type_id = null;\n $this->operation_prime_r_reward_expedition_mode_id = null;\n $this->operation_prime_r_reward_transporter_id = null;\n $this->operation_prime_fixed_amount = null;\n $this->operation_prime_product_price_pourcentage = null;\n $this->operation_prime_maximum_amount = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function clearContributionss()\n {\n $this->collContributionss = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearInappropriates()\n\t{\n\t\t$this->collInappropriates = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clear()\n {\n $this->links = [];\n }", "public function clearMemberReferrals()\n\t{\n\t\t$this->collMemberReferrals = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearColetaPesquisas()\n\t{\n\t\t$this->collColetaPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearNoticias()\n\t{\n\t\t$this->collNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearCOMVendeurs()\n {\n $this->collCOMVendeurs = null; // important to set this to NULL since that means it is uninitialized\n }", "public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)\n {\n if ($this->collLnkOperationPrimeRCountriess === null) {\n $this->initLnkOperationPrimeRCountriess();\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddLnkOperationPrimeRCountries($l);\n\n if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) {\n $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function clear()\n {\n if (null !== $this->aPublisher) {\n $this->aPublisher->removeBiblio($this);\n }\n if (null !== $this->aLanguage) {\n $this->aLanguage->removeBiblio($this);\n }\n if (null !== $this->aPlace) {\n $this->aPlace->removeBiblio($this);\n }\n if (null !== $this->aFrequency) {\n $this->aFrequency->removeBiblio($this);\n }\n if (null !== $this->aUser) {\n $this->aUser->removeBiblio($this);\n }\n $this->biblio_id = null;\n $this->title = null;\n $this->sor = null;\n $this->edition = null;\n $this->isbn_issn = null;\n $this->publisher_id = null;\n $this->publish_year = null;\n $this->collation = null;\n $this->series_title = null;\n $this->call_number = null;\n $this->language_id = null;\n $this->source = null;\n $this->publish_place_id = null;\n $this->classification = null;\n $this->notes = null;\n $this->image = null;\n $this->file_att = null;\n $this->opac_hide = null;\n $this->promoted = null;\n $this->labels = null;\n $this->frequency_id = null;\n $this->spec_detail_info = null;\n $this->input_date = null;\n $this->last_update = null;\n $this->uid = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }", "public function clearOffensives()\n\t{\n\t\t$this->collOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function clear()\n {\n $this->feature_cvterm_id = null;\n $this->feature_id = null;\n $this->cvterm_id = null;\n $this->pub_id = null;\n $this->is_not = null;\n $this->rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clearRatings()\n {\n $this->collRatings = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearPainRatings()\n {\n $this->collPainRatings = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearPesquisas()\n\t{\n\t\t$this->collPesquisas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t\t// invalidate objects in TbturmaProfessorPeer instance pool, since one or more of them may be deleted by ON DELETE CASCADE rule.\n\t\tTbturmaProfessorPeer::clearInstancePool();\n\n\t}", "public function clear() {\n\t\t\n\t\t$queryString = \"\n\t\t\tMATCH (n)-[r]-()\n\t\t\tDELETE n, r\n\t\t\";\n\t\t\n\t\t$result = $this->query($queryString);\n\t\t\n\t\t$queryString = \"\n\t\t\tMATCH (n)\n\t\t\tDELETE n\n\t\t\";\n\t\t\n\t\t$result = $this->query($queryString);\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aOperations instanceof Persistent) {\n $this->aOperations->clearAllReferences($deep);\n }\n if ($this->aRCurrencies instanceof Persistent) {\n $this->aRCurrencies->clearAllReferences($deep);\n }\n if ($this->aRRewardTypes instanceof Persistent) {\n $this->aRRewardTypes->clearAllReferences($deep);\n }\n if ($this->aRRewardExpeditionModes instanceof Persistent) {\n $this->aRRewardExpeditionModes->clearAllReferences($deep);\n }\n if ($this->aRRewardTransporters instanceof Persistent) {\n $this->aRRewardTransporters->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collOperationPrestationss instanceof PropelCollection) {\n $this->collOperationPrestationss->clearIterator();\n }\n $this->collOperationPrestationss = null;\n if ($this->collOperationScenariis instanceof PropelCollection) {\n $this->collOperationScenariis->clearIterator();\n }\n $this->collOperationScenariis = null;\n if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) {\n $this->collLnkOperationPrimeRCountriess->clearIterator();\n }\n $this->collLnkOperationPrimeRCountriess = null;\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n }", "public function clearBiblioTopics()\n {\n $this->collBiblioTopics = null; // important to set this to NULL since that means it is uninitialized\n }", "function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Clear this objects properties and set blank error messages in case they are accessed\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->{$field} = NULL;\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has many\" related objects\r\n\t\tforeach ($this->has_many as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has one\" related objects\r\n\t\tforeach ($this->has_one as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear the query related list\r\n\t\t$this->query_related = array();\r\n\r\n\t\t// Clear and refresh stored values\r\n\t\t$this->stored = new stdClass();\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}", "public function clear() {\n $this->_documentBoost = FALSE;\n\n $this->_fields = array();\n $this->_fieldBoosts = array();\n }", "public function clearCheckInformations()\n\t{\n\t\t$this->collCheckInformations = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearOpenids()\n\t{\n\t\t$this->collOpenids = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearGearReviews()\n\t{\n\t\t$this->collGearReviews = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clear()\n {\n $this->collection->clear();\n $this->keys = [];\n }", "public function clearBookks()\n {\n $this->collBookks = null; // important to set this to null since that means it is uninitialized\n $this->collBookksPartial = null;\n\n return $this;\n }", "public function clearRIssuesNarrationplugins()\n {\n $this->collRIssuesNarrationplugins = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearCMDTAppareils()\n {\n $this->collCMDTAppareils = null; // important to set this to NULL since that means it is uninitialized\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n HbfVasosTableMap::clearInstancePool();\n }", "public function clearItems()\n {\n $this->collItems = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearPesquisaHabilitadas()\n\t{\n\t\t$this->collPesquisaHabilitadas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearCMDPieces()\n {\n $this->collCMDPieces = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear()\n\t{\n\t\tforeach($this->all() as $ip)\n\t\t{\n\t\t\t$this->delete($ip['ip_address']);\n\t\t}\n\t}", "public function clearComentarioNoticias()\n\t{\n\t\t$this->collComentarioNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n SkillTableMap::clearInstancePool();\n }", "public function clear()\n {\n if (null !== $this->aPurchaseOrder) {\n $this->aPurchaseOrder->removePoReceivingHead($this);\n }\n if (null !== $this->aWarehouse) {\n $this->aWarehouse->removePoReceivingHead($this);\n }\n $this->pothnbr = null;\n $this->pothstat = null;\n $this->pothrcptdate = null;\n $this->intbwhse = null;\n $this->pothglpd = null;\n $this->pothairship = null;\n $this->potherinreview = null;\n $this->pothexchctry = null;\n $this->pothexchrate = null;\n $this->intbwhseorig = null;\n $this->pothlandcost = null;\n $this->pothrcptnbr = null;\n $this->pothlandbasedon = null;\n $this->pothinvcnbr = null;\n $this->pothinvcdate = null;\n $this->pothfrtamt = null;\n $this->pothmiscamt = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\r\n\t{\r\n\t\t$this->isLoaded = false;\r\n\t\t$this->elements = array();\r\n\t\t$this->keyAssocation = array();\r\n\t\t$this->i = 0;\r\n\t\t$this->count = 0;\r\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public function clearCollection()\n {\n $this->collections = [];\n }", "public function clearCampaignLinks()\n\t{\n\t\t$this->collCampaignLinks = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "public function clearCOMConditions()\n {\n $this->collCOMConditions = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear(): void\n {\n $this->collectionStatsById = [];\n $this->proxyStatsByClass = [];\n }", "public function resetPartialLnkOperationPrimeRCountriess($v = true)\n {\n $this->collLnkOperationPrimeRCountriessPartial = $v;\n }", "public function clear() {\n\t\t$this->_where\t\t= array();\n\t\t$this->_order\t\t= array();\n\t\t$this->_isAddingNew\t= false;\n\t\t$this->_currentRow\t= 0;\n\t\t$this->_relationship\t= array();\n\t\t$this->_recordset\t= array();\n\t\t$this->_updateBuffer\t= array();\n\t\t$this->_limit\t\t= NULL;\n\t\t$this->_offset\t\t= NULL;\n\t\t$this->isDirty( false );\n\t}", "public function clear(){\n\t\t$this->pile = array();\n\t}", "public function clearVpoRequestCargos()\n\t{\n\t\t$this->collVpoRequestCargos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }", "public function clearAnswerVotes()\n\t{\n\t\t$this->collAnswerVotes = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearGearInfos()\n\t{\n\t\t$this->collGearInfos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clear()\n {\n $this->routes = array();\n }", "public function clearRelationCache();", "public function clearSolicitacaoResgatesRelatedByAprovadorId()\n\t{\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function removeAll()\n {\n foreach ($this->findAll() as $object) {\n $this->remove($object);\n }\n }", "public function clearConcepts()\n {\n foreach ($this->relationships as $relationship) {\n $relationship->clearConcepts();\n }\n }", "public function clearVenueratings()\n\t{\n\t\t$this->collVenueratings = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearPostPollVotes()\n\t{\n\t\t$this->collPostPollVotes = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearRightss()\n {\n $this->collRightss = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearPartnerssRelatedByPatientId()\n {\n $this->collPartnerssRelatedByPatientId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear() {\n $this->collection = [];\n $this->noteCollectionChanged();\n }", "public function clearPartnerssRelatedByAgentId()\n {\n $this->collPartnerssRelatedByAgentId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear()\n {\n if (null !== $this->aSociete) {\n $this->aSociete->removeCommande($this);\n }\n if (null !== $this->aMTransport) {\n $this->aMTransport->removeCommande($this);\n }\n $this->id_commande = null;\n $this->reference = null;\n $this->soc_id_fk = null;\n $this->transport_fk = null;\n $this->quantite = null;\n $this->prix = null;\n $this->delai = null;\n $this->dte_commande = null;\n $this->priorite = null;\n $this->note = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clearAvaliacaoRespostaForums()\n\t{\n\t\t$this->collAvaliacaoRespostaForums = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearRRightsForissues()\n {\n $this->collRRightsForissues = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearQuestionVotes()\n\t{\n\t\t$this->collQuestionVotes = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clear()\n {\n if ($this->first != null) {\n if (($e = $this->first->next) != null) {\n do {\n $e->setValue(null);\n $e->prev = null;\n } while (($e = $e->next) != null);\n }\n }\n $this->last = null;\n $this->first = null;\n $this->size = 0;\n }", "public function clearAnswerOffensives()\n\t{\n\t\t$this->collAnswerOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}", "protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}", "public function clearRIssuesAllplugins()\n {\n $this->collRIssuesAllplugins = null; // important to set this to NULL since that means it is uninitialized\n }", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }", "public function clearAssignedPrayersRelatedByPatientId()\n {\n $this->collAssignedPrayersRelatedByPatientId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear()\n {\n foreach ($this->objectsRepository as $repository) {\n if ($repository instanceof Repository) {\n $repository->clear();\n }\n }\n parent::clear();\n $this->objectsRepository = [];\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references) {\n foreach (GsGeneriekeProductenPeer::$instances as $instance) {\n $instance->clearAllReferences(true);\n }\n }\n GsGeneriekeProductenPeer::$instances = array();\n }", "public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }", "public function clearFeatureCvtermprops()\n {\n $this->collFeatureCvtermprops = null; // important to set this to null since that means it is uninitialized\n $this->collFeatureCvtermpropsPartial = null;\n\n return $this;\n }", "public function clear()\n {\n $this->idmontacargas = null;\n $this->idsucursal = null;\n $this->montacargas_modelo = null;\n $this->montacargas_marca = null;\n $this->montacargas_c = null;\n $this->montacargas_k = null;\n $this->montacargas_p = null;\n $this->montacargas_t = null;\n $this->montacargas_e = null;\n $this->montacargas_volts = null;\n $this->montacargas_amperaje = null;\n $this->montacargas_nombre = null;\n $this->montacargas_numserie = null;\n $this->montacargas_comprador = null;\n $this->montacargas_ciclosmant = null;\n $this->montacargas_ciclosiniciales = null;\n $this->montacargas_baja = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}", "public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}", "public function clearAssignedPrayersRelatedByAgentId()\n {\n $this->collAssignedPrayersRelatedByAgentId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearRespostaForums()\n\t{\n\t\t$this->collRespostaForums = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearItemRatings()\n\t{\n\t\t$this->collItemRatings = null; // important to set this to NULL since that means it is uninitialized\n\t}", "Public Function clearPerformanceConnectorNiches()\n\t{\n\t\t$this->_db->delete('bevomedia_user_performanceconnector_niche', 'user__Id = ' . $this->id);\n\t}", "public function clearSolicitacaoResgatesRelatedBySolicitanteId()\n\t{\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearRIssuesXmlplugins()\n {\n $this->collRIssuesXmlplugins = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearBiblioAuthors()\n {\n $this->collBiblioAuthors = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearAnswers()\n\t{\n\t\t$this->collAnswers = null; // important to set this to NULL since that means it is uninitialized\n\t}" ]
[ "0.64430946", "0.6380274", "0.59960514", "0.5976945", "0.5924551", "0.58635014", "0.5850904", "0.5838168", "0.5825917", "0.56791365", "0.5651359", "0.56427115", "0.5636238", "0.5629349", "0.5627899", "0.56266546", "0.56032336", "0.56003785", "0.5572963", "0.55691105", "0.5540146", "0.547442", "0.54718417", "0.5446931", "0.54429954", "0.5431356", "0.54248154", "0.54135424", "0.5396098", "0.5385119", "0.53846186", "0.53785264", "0.5376568", "0.53733164", "0.53575164", "0.5344037", "0.5339009", "0.53363556", "0.53345984", "0.5334383", "0.5329394", "0.5325653", "0.5325653", "0.5324273", "0.5324273", "0.5324273", "0.5324273", "0.5324273", "0.5324273", "0.5324273", "0.53212273", "0.53139055", "0.5304655", "0.5299221", "0.5290435", "0.52829653", "0.5280814", "0.5271375", "0.5264854", "0.5249942", "0.52369636", "0.5233419", "0.52166045", "0.52083516", "0.520256", "0.51995456", "0.51974785", "0.5196465", "0.5194463", "0.51926756", "0.519208", "0.51906836", "0.51847416", "0.5179673", "0.51775646", "0.5176961", "0.5176543", "0.5174545", "0.51741326", "0.51721364", "0.5162189", "0.5160134", "0.5158688", "0.51412934", "0.5129856", "0.51215416", "0.51172334", "0.5112057", "0.5110557", "0.51070803", "0.50922805", "0.50914955", "0.50899696", "0.5088364", "0.50838286", "0.50813925", "0.5079567", "0.50754553", "0.5074285", "0.5072632" ]
0.8122684
0
reset is the collLnkOperationPrimeRCountriess collection loaded partially
public function resetPartialLnkOperationPrimeRCountriess($v = true) { $this->collLnkOperationPrimeRCountriessPartial = $v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}", "public function reset() {\n\t\t\t$this->arList = NULL; \t\n\t\t}", "public static function reset()\n {\n self::$toLoad = array();\n }", "public function reset()\n {\n $this->values[self::RES] = array();\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function reset()\n {\n $this->_contacts = [];\n $this->_lists = [];\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n }", "public function reset() {\n $this->customurlscount = 0;\n }", "function reset() {\n\t\tparent::_resetSet();\n\t}", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n $this->values[self::_ITEMS] = array();\n }", "public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }", "public function reset()\n\t{\n\t\t$this->get(1);\n\t}", "function reset(){\n\t\t$this->__columns = array();\n\t\t$this->__actions = array();\n\t}", "private function resetAll(){\n $this->score = ['heritage'=> 0,'relax'=> 0,'sightseeing'=> 0,'weather'=> 0,'populated'=> 0];\n $this->answeredQuestions = [];\n $this->answersId = [];\n }", "function Reset()\n\t{\t$this->details = array();\n\t\t$this->courses = array();\n\t\t$this->id = 0;\n\t}", "public function reset()\n\t{\n\t\t$this->queries = [];\n\t\t$this->count = [\n\t\t\t'total' => 0, 'slow' => 0, 'select' => 0, 'insert' => 0, 'update' => 0, 'delete' => 0, 'other' => 0\n\t\t];\n\n\t\t$this->modelsActions = [];\n\t\t$this->modelsCount = [\n\t\t\t'retrieved' => [], 'created' => [], 'updated' => [], 'deleted' => []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\t}", "public function reset()\n {\n $this->values[self::_GUILDS] = array();\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HERO] = array();\n $this->values[self::_DIAMOND] = null;\n }", "private function reset_state() {\n\n\t\t\tglobal $ld_qs_api_vars;\n\t\t\t/**\n\t\t\t * Reset the state only if we have some data in memory upfront\n\t\t\t * because embed will be called only when there is valid data\n\t\t\t * available in memory.\n\t\t\t */\n\t\t\tif ( ! empty( $this->stat_refs ) ) {\n\t\t\t\t$GLOBALS['ld_qs_api_vars'] = $ld_qs_api_vars ? $ld_qs_api_vars : array();\n\t\t\t\t$object_vars = get_object_vars( $this );\n\t\t\t\t$GLOBALS['ld_qs_api_vars'][] = $object_vars;\n\n\t\t\t\tforeach ( $object_vars as $property => $var ) {\n\n\t\t\t\t\tswitch ( gettype( $var ) ) {\n\n\t\t\t\t\t\tcase 'integer':\n\t\t\t\t\t\t\t$this->$property = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'string':\n\t\t\t\t\t\t\t$this->$property = '';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'array':\n\t\t\t\t\t\t\t$this->$property = array();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$this->$property = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static function reset() {\n\t\tself::$objects = array();\n\t}", "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "public function reset()\n {\n $this->values[self::_GUILDS] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }", "private function resetResults() {\n $this->results = array();\n }", "function Reset ( )\n{\n $this->_dataset = array();\n $this->_ReversedRecord = false;\n $this->_CurrPtr = -1;\n $this->_PageCount = 0;\n $this->_RecordCount = 0;\n $this->_new_page_(0);\n $this->_isAscending = true;\n $this->_FilterExp = '';\n}", "private function reset()\n\t{\t\t\n\t\t$this->limit = null;\n\t\t\n\t\t$this->table = null;\n\t\t\n\t\t$this->offset = null;\n\t\t\n\t\t$this->data = [];\n\t\t\n\t\t$this->joins = [];\n\t\t\n\t\t$this->wheres = [];\n\t\t\n\t\t$this->orderBy = [];\n\t\t\n\t\t$this->selects = [];\n\t\t\n\t\t$this->bindings = [];\n\t\t\t\n\t}", "function resetPred(){\n\t\tforeach($vertexList as $v){\n\t\t\t$v->visited = false;\n\t\t\t$v->pret = NULL;\n\t\t}\n\t}", "public function clear()\n {\n $this->links = [];\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_LINEUP] = array();\n $this->values[self::_GS] = null;\n }", "private function reset() {\n $this->_minimumPage = NULL;\n $this->_maximumPage = NULL;\n $this->_previousPage = NULL;\n $this->_nextPage = NULL;\n $this->_lastPage = NULL;\n }", "public function reset()\n {\n $this->values[self::_PER] = null;\n $this->values[self::_ITEMS] = array();\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_BEST_RANK_REWARD] = null;\n $this->values[self::_BEST_RANK] = null;\n $this->values[self::_CUR_RANK] = null;\n }", "public function reset()\n {\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_NUM] = null;\n $this->values[self::_STATE] = null;\n $this->values[self::_APPLY_NUM] = null;\n $this->values[self::_ABLE_APP_COUNT] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_NEW_MAN] = null;\n }", "function reset()\n {\n $this->mBlockHandles = array();\n $this->mBlockKeys = array();\n $this->mGlobalAssignArray = array();\n }", "public function reset()\n {\n $this->values[self::_OPPOS] = array();\n }", "private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}", "public function reset() {\n $this->entitiescount = 0;\n }", "public function reset_rezultati()\n {\n $query = $this->query(\"SELECT * FROM rezultati;\");\n foreach ($query->getResultArray() as $row)\n {\n $this->delete($row['idrezultati']);\n }\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_SELF_RANKING] = null;\n $this->values[self::_SELF_SUMMARY] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n }", "public function reset() {\n $this->setEntities([]);\n $this->setLinks([]);\n $this->setMetadata([]);\n $this->setIncludes([]);\n $this->setDynamic();\n $this->setCacheability(new CacheableMetadata());\n }", "public function reset(): void\n {\n $this->data = [];\n $this->relationships = [];\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_APPLY_REWARDS] = array();\n $this->values[self::_STAGE_OLD_PROGRESS] = null;\n $this->values[self::_JOIN_TIMES] = null;\n $this->values[self::_BREAK_HISTORY] = null;\n }", "protected function reset() {}", "protected function reset() {}", "protected function reset() {}", "public function clear()\r\n\t{\r\n\t\t$this->isLoaded = false;\r\n\t\t$this->elements = array();\r\n\t\t$this->keyAssocation = array();\r\n\t\t$this->i = 0;\r\n\t\t$this->count = 0;\r\n\t}", "public function reset()\n {\n $this->values[self::_MEMBERS] = array();\n $this->values[self::_ITEMS] = array();\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n $this->values[self::_SSHOP] = null;\n }", "public function reset()\n {\n $this->values[self::_COMP] = array();\n }", "protected function reset() {\n\t\t$this->data = array();\n\t}", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_FROM] = null;\n $this->values[self::_UID] = null;\n $this->values[self::_HERO] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_REWARDS] = array();\n }", "private function reset_internal() {\n\t\t$this->started = false;\n\t\t$this->failed = false;\n\t\t$this->querys = array();\n\t\t$this->querys_info = array();\n\t\t$this->querys_info['exec_times'] = array();\n\t\t$this->querys_info['explain_results'] = array();\n\t}", "public function reset() {\n\t\t$this->_finalScore = 0;\n\t\t$this->_totalElements = 0;\n\t\t$this->resetCounts();\n\t\treturn true;\n\t}", "public function reset() {\r\n\t\t$this->images = array();\r\n\t}", "public function clearOffensives()\n\t{\n\t\t$this->collOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearMemberReferrals()\n\t{\n\t\t$this->collMemberReferrals = null; // important to set this to NULL since that means it is uninitialized\n\t}", "function clear(){\n \t\t$this->result = array();\n \t}", "public function reset()\n {\n $this->values[self::_SUMMARY] = array();\n $this->values[self::_TIMEOUT] = null;\n $this->values[self::_ITEM_COUNT] = null;\n $this->values[self::_RANK] = null;\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_JUMP_TIMES] = null;\n $this->values[self::_COST_MONEY] = null;\n }", "public function clearNoticias()\n\t{\n\t\t$this->collNoticias = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function reset()\n {\n $this->hasLimit = false;\n $this->limit = 0;\n $this->offset = 0;\n $this->orderColumns = array();\n parent::reset();\n }", "public function clearMembros()\n\t{\n\t\t$this->collMembros = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }", "protected function reset()\n {\n $this->iterator->rewind();\n }", "public function reset(){}", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_STAGE_ID] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_HEROES] = array();\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_SHOP] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_AVATAR] = null;\n $this->values[self::_SLOGAN] = null;\n $this->values[self::_JOIN_TYPE] = null;\n $this->values[self::_JOIN_LIMIT] = null;\n $this->values[self::_MEMBER_CNT] = null;\n $this->values[self::_PRESIDENT] = null;\n $this->values[self::_LIVENESS] = null;\n $this->values[self::_CAN_JUMP] = null;\n }", "public function Reset(){\r\n\t\t$this->points = 0;\r\n\t }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_GS] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_GS] = null;\n }", "public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_JOIN_GUILD_ID] = null;\n $this->values[self::_GUILD_INFO] = null;\n $this->values[self::_CD_TIME] = null;\n $this->values[self::_FAIL_REASON] = null;\n }", "public function reset()\r\n\t{\r\n\t\t$this->first = null;\r\n\t\t$this->alreadyIncluded = array();\r\n\t\t$this->depths = array();\r\n\t}", "public function clearRespostaForums()\n\t{\n\t\t$this->collRespostaForums = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initMemberReferrals()\n\t{\n\t\t$this->collMemberReferrals = array();\n\t}", "public function reset()\n {\n $this->values[self::_RSEED] = null;\n $this->values[self::_LOOTS] = array();\n }", "public function reset()\n {\n foreach (self::AvailableCoins as $aCoin) {\n \t $sProperty = $aCoin['name'];\n $this->$sProperty = 0;\n }\n }", "public function reset()\n {\n $this->values[self::_RANK_LIST] = array();\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_MEMBERS] = array();\n $this->values[self::_APPLIERS] = array();\n $this->values[self::_VITALITY] = null;\n $this->values[self::_SELF_VITALITY] = null;\n $this->values[self::_LEFT_DISTRIBUTE_TIME] = null;\n }", "public function reset()\n {\n $this->values[self::_LOOT] = array();\n $this->values[self::_ITEMS] = array();\n $this->values[self::_SHOP] = null;\n $this->values[self::_SSHOP] = null;\n }", "public function clear(){\n\t\t$this->pile = array();\n\t}", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_ACTIVITY_REWARD] = array();\n }", "public function reset()\n {\n $this->values[self::sku_arr] = array();\n $this->values[self::pagination] = null;\n }", "public function clearPainRatings()\n {\n $this->collPainRatings = null; // important to set this to NULL since that means it is uninitialized\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_PACK] = null;\n }", "public function reset()\n {\n $this->values[self::_ITEMS] = array();\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_APPLY_ITEM_ID] = null;\n $this->values[self::_RANK] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_REWARD] = null;\n }", "protected function _resetData()\n\t{\n\n\t\t// clean data, total and pagination, as we need them rebuilt\n\t\t$this->_data = null;\n\t\t$this->_total = null;\n\t\t$this->_pagination = null;\n\t}", "public function reset() {\n $this->cache = array();\n $this->parent()->reset();\n }", "public function reset()\n {\n $this->values[self::FILTER] = null;\n $this->values[self::AFTERINDEXKEY] = null;\n $this->values[self::POPULATEDOCUMENTS] = self::$fields[self::POPULATEDOCUMENTS]['default'];\n $this->values[self::INJECTENTITYCONTENT] = self::$fields[self::INJECTENTITYCONTENT]['default'];\n $this->values[self::POPULATEPREVIOUSDOCUMENTSTATES] = self::$fields[self::POPULATEPREVIOUSDOCUMENTSTATES]['default'];\n }", "public function clearRatings()\n {\n $this->collRatings = null; // important to set this to NULL since that means it is uninitialized\n }", "public function reset()\n {\n $this->values[self::_RESULT] = array();\n }", "public function reset()\n {\n $this->values[self::_RESULT] = array();\n }" ]
[ "0.7394799", "0.6394161", "0.6371969", "0.6296", "0.62572", "0.62346", "0.6208907", "0.6204121", "0.620173", "0.618232", "0.6151997", "0.6108509", "0.6082319", "0.6077061", "0.6076555", "0.607531", "0.60681075", "0.6067455", "0.6061299", "0.6022697", "0.60200256", "0.6013597", "0.6011874", "0.60064846", "0.60061145", "0.59921795", "0.598454", "0.59624374", "0.5934113", "0.59306514", "0.5914475", "0.59038186", "0.59037954", "0.5902415", "0.58989453", "0.5897729", "0.58874285", "0.58747166", "0.5869751", "0.5861519", "0.5860776", "0.58536816", "0.58535177", "0.58535177", "0.58535177", "0.58526504", "0.5846894", "0.5843917", "0.5826702", "0.5824978", "0.5824972", "0.58225995", "0.5818269", "0.581493", "0.58106464", "0.5810543", "0.58096564", "0.5804944", "0.57991403", "0.5794659", "0.579432", "0.579109", "0.5785179", "0.5768911", "0.5767624", "0.5766703", "0.57648975", "0.57607794", "0.57546365", "0.57525194", "0.5750705", "0.57442856", "0.57440317", "0.57415795", "0.5739183", "0.5731482", "0.5731482", "0.57257926", "0.57215726", "0.57089686", "0.570524", "0.5701904", "0.57008964", "0.5696877", "0.5695656", "0.56946266", "0.5689809", "0.5685483", "0.56850326", "0.5684622", "0.56833833", "0.5682982", "0.5682314", "0.56801766", "0.5678438", "0.56775796", "0.5677093", "0.56740797", "0.56701", "0.56680876" ]
0.64632845
1
Initializes the collLnkOperationPrimeRCountriess collection. By default this just sets the collLnkOperationPrimeRCountriess collection to an empty array (like clearcollLnkOperationPrimeRCountriess()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to the values stored in database.
public function initLnkOperationPrimeRCountriess($overrideExisting = true) { if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) { return; } $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection(); $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)\n {\n if ($this->collLnkOperationPrimeRCountriess === null) {\n $this->initLnkOperationPrimeRCountriess();\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddLnkOperationPrimeRCountries($l);\n\n if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) {\n $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "public function getLnkOperationPrimeRCountriessJoinRCountries($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n $query->joinWith('RCountries', $join_behavior);\n\n return $this->getLnkOperationPrimeRCountriess($query, $con);\n }", "public function resetPartialLnkOperationPrimeRCountriess($v = true)\n {\n $this->collLnkOperationPrimeRCountriessPartial = $v;\n }", "public function initLinks()\n\t{\n\t\tif ($this->collLinks === null) {\n\t\t\t$this->collLinks = array();\n\t\t}\n\t}", "public function countLnkOperationPrimeRCountriess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getLnkOperationPrimeRCountriess());\n }\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collLnkOperationPrimeRCountriess);\n }", "public function initMemberReferrals()\n\t{\n\t\t$this->collMemberReferrals = array();\n\t}", "public function initPostPollVotes()\n\t{\n\t\t$this->collPostPollVotes = array();\n\t}", "public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}", "public function initAnswerVotes()\n\t{\n\t\t$this->collAnswerVotes = array();\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }", "public function initQuestionVotes()\n\t{\n\t\t$this->collQuestionVotes = array();\n\t}", "protected function _initPollList()\n {\n if (!isset($this->_cache['poll']) &&\n !$GLOBALS['prefs']->getValue('nav_poll_all')) {\n /* We ALWAYS poll the INBOX. */\n $this->_cache['poll'] = array('INBOX' => 1);\n\n /* Add the list of polled mailboxes from the prefs. */\n if ($navPollList = @unserialize($GLOBALS['prefs']->getValue('nav_poll'))) {\n $this->_cache['poll'] += $navPollList;\n }\n }\n }", "public function initVpoRequestCargos()\n\t{\n\t\t$this->collVpoRequestCargos = array();\n\t}", "public function initCampaignLinks()\n\t{\n\t\t$this->collCampaignLinks = array();\n\t}", "function _initrs()\n\t{\n\t\t$this->_numOfRows = ldap_count_entries( $this->connection->_connectionID, $this->_queryID );\n\t}", "public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }", "public function setLinksFoundArray()\n { \n $cnt = count($this->links_found_url_descriptors);\n for ($x=0; $x<$cnt; $x++)\n {\n $UrlDescriptor = $this->links_found_url_descriptors[$x];\n \n // Convert $UrlDescriptor-object to an array\n $object_vars = get_object_vars($UrlDescriptor);\n \n $this->links_found[] = $object_vars;\n }\n }", "public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }", "public function _construct(){\n $this->KcsPoll = new ArrayCollection();\n }", "public function initGearReviews()\n\t{\n\t\t$this->collGearReviews = array();\n\t}", "public function __construct() {\r\n\t\t$this->links = array();\r\n\t}", "public function __construct($page, $totalcount, $rpp, $style=1)\n {\n $this->rpp=$rpp;\n $this->page=$page;\n $this->style=$style;\n \n $this->totalPages=$this->setTotalPages($totalcount, $rpp);\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function clearRIssuesNarrationplugins()\n {\n $this->collRIssuesNarrationplugins = null; // important to set this to NULL since that means it is uninitialized\n }", "public function initialize()\n {\n if (is_null($this->images)) {\n $this->images = new ArrayCollection();\n }\n }", "public function initOffensives()\n\t{\n\t\t$this->collOffensives = array();\n\t}", "public function initializeAction()\n {\n $this->totalItems = $this->widgetConfiguration['totalItems'];\n $this->itemsOffset = $this->widgetConfiguration['itemsOffset'];\n $this->itemsPerPage = $this->widgetConfiguration['itemsPerPage'];\n $this->maxPaginationLinks = $this->widgetConfiguration['maxPaginationLinks'];\n\n $this->currentPage = intval($this->itemsOffset / $this->itemsPerPage + 1);\n $this->numberOfPages = $this->itemsPerPage > 0 ? ceil($this->totalItems / $this->itemsPerPage) : 0;\n\n ArrayUtility::mergeRecursiveWithOverrule($this->linkConfiguration, $this->widgetConfiguration['linkConfiguration']);\n }", "public function getPrimeNumbers()\n {\n $this->action = isset($_GET['action']) ? $_GET['action'] : '';\n $this->limit = isset($_GET['limit']) ? $_GET['limit'] : 1000;\n $primeNumber = 2;\n $primeNumbers = array();\n $primeNumbers[] = $primeNumber;\n if ($this->limit == 1) {\n return $primeNumbers;\n }\n $primeNumber += 1;\n $primeNumbers[] = $primeNumber;\n // Generate array of prime numbers until we reach the limitation (defined in variale 'limit')\n while (count($primeNumbers) < $this->limit) {\n $primeNumber += 2;\n $flag = true;\n $sqrtPrimeNumber = sqrt($primeNumber);\n foreach ($primeNumbers as $p) {\n if ($p > $sqrtPrimeNumber) {\n break;\n }\n if ($primeNumber % $p == 0) {\n $flag = false;\n break;\n }\n }\n if ($flag) {\n $primeNumbers[] = $primeNumber;\n }\n }\n return $primeNumbers;\n }", "function __construct() {\n $this->pflanzen = array();\n }", "private function comprobarCasillasLibres()\r\n {\r\n if (($this->minasMarcadas <= $this->getMaxMinas()) && ($this->minasMarcadas + $this->casillasDescubiertas) == $this->maxCasillas) //victoria\r\n $this->finalizarJuego(true);\r\n }", "public function initCheckInformations()\n\t{\n\t\t$this->collCheckInformations = array();\n\t}", "public function initOpenids()\n\t{\n\t\t$this->collOpenids = array();\n\t}", "public function initAnswerOffensives()\n\t{\n\t\t$this->collAnswerOffensives = array();\n\t}", "protected function init()\n\t{\n\t\t$this->upVector = array();\n\t\t$this->downVector = array();\n\t\t$this->modifiedA = array();\n\t\t$this->modifiedB = array();\n\t}", "public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }", "public function initialize()\n {\n if ($this->initialized || !$this->association) {\n return;\n }\n $this->doInitialize();\n $this->initialized = true;\n }", "public function actionInitPool()\r\n {\r\n echo 1;\r\n exit();\r\n ini_set('max_execution_time', 0);\r\n\r\n $prizeType = Config::find()->all();\r\n foreach ($prizeType as $k => $v) {\r\n\r\n if ($v->praisenumber > 0) {\r\n for ($i = 0; $i < $v->praisenumber; $i++) {\r\n $model = new PrizePool();\r\n $model->aid = $v->id;\r\n $model->save();\r\n unset($model);\r\n }\r\n echo $v->praisename;\r\n }\r\n\r\n }\r\n\r\n echo '~All OK!!!';\r\n }", "public function initialize() {\n\t\t# Create structure\n\t\t$parentResult =& $this->getParentResult();\n\t\t# Creating array structures!\n\t\t$parentResult[$this->getTagName()] =& $this->getResult();\n\t}", "public function init()\n\t{\n\t\tif (isset($_GET['parent_id'])){\n\t\t\t$this->upButtonUrl='Yii::app()->controller->createUrl(\"priority\",array(\"id\"=>$data->primaryKey, \"move\"=>\"up\", \"parent_id\"=>\"'.$_GET['parent_id'].'\"))';\n\t\t\t$this->downButtonUrl='Yii::app()->controller->createUrl(\"priority\",array(\"id\"=>$data->primaryKey, \"move\"=>\"down\", \"parent_id\"=>\"'.$_GET['parent_id'].'\"))';\n\t\t}\t\t\n\t\t$this->initDefaultButtons();\n\t\t$this->registerClientScript();\n\t}", "public function initPostPollAnswers()\n\t{\n\t\t$this->collPostPollAnswers = array();\n\t}", "function init_L($IP_M){\n $L = array();\n for($i=0; $i<32; $i++){\n $L[$i] = $IP_M[$i];\n }\n\n return $L;\n }", "public function initData()\n {\n $this->appliedNumberingData = array();\n $this->currHyperlink = null;\n }", "protected function _construct()\n\t{\n\t\t$this->_init('cecropia_advancedoc/blockedip');\n\t}", "public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }", "protected function initParameters(array &$feature_array, array &$l)\n {\n $this->numerators = array();\n $this->fprime_vector = array();\n foreach ($feature_array as $doc) {\n foreach ($doc as $class=>$features) {\n if (!is_array($features)) continue;\n foreach ($features as $fi) {\n $l[$fi] = 0;\n $this->fprime_vector[$fi] = 0;\n if (!isset($this->numerators[$fi])) {\n $this->numerators[$fi] = 0;\n }\n }\n }\n foreach ($doc[$doc['__label__']] as $fi) {\n $this->numerators[$fi]++;\n }\n }\n }", "protected function _construct()\n {\n $this->_init('commercers_profilers_rule', 'rule_id');\n }", "public function __construct()\n {\n $this->placas = new ArrayCollection();\n }", "protected function initialize()\n {\n if (!is_array($this->rows)) {\n $this->rows = $this->query->getResult();\n }\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }", "public function __construct()\n {\n $this->references = new ArrayCollection();\n }", "public function initFromArray($o)\r\n {\r\n $this->survivorResources = array();\r\n if (isset($o['survivorResources'])) {\r\n foreach ($o['survivorResources'] as $i => $x) {\r\n $this->survivorResources[$i] = new ResourceReference($x);\r\n }\r\n }\r\n $this->duplicateResources = array();\r\n if (isset($o['duplicateResources'])) {\r\n foreach ($o['duplicateResources'] as $i => $x) {\r\n $this->duplicateResources[$i] = new ResourceReference($x);\r\n }\r\n }\r\n $this->conflictingResources = array();\r\n if (isset($o['conflictingResources'])) {\r\n foreach ($o['conflictingResources'] as $i => $x) {\r\n $this->conflictingResources[$i] = new MergeConflict($x);\r\n }\r\n }\r\n if (isset($o['survivor'])) {\r\n $this->survivor = new ResourceReference($o[\"survivor\"]);\r\n }\r\n if (isset($o['duplicate'])) {\r\n $this->duplicate = new ResourceReference($o[\"duplicate\"]);\r\n }\r\n }", "public function initItemRatings()\n\t{\n\t\t$this->collItemRatings = array();\n\t}", "public function __construct(array $arrLinks, $intNumberOfLinks = 7)\n {\n parent::__construct(count($arrLinks), 1, $intNumberOfLinks);\n\n $this->arrLinks = array_values($arrLinks);\n }", "public function initColetaPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collColetaPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collColetaPesquisas = new PropelObjectCollection();\n\t\t$this->collColetaPesquisas->setModel('ColetaPesquisa');\n\t}", "public function initVpoRequestPassengers()\n\t{\n\t\t$this->collVpoRequestPassengers = array();\n\t}", "public function setCrlAccessUrls($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->crl_access_urls = $arr;\n\n return $this;\n }", "public function initNarrationPlugins()\n {\n $this->collNarrationPlugins = new ObjectCollection();\n $this->collNarrationPluginsPartial = true;\n\n $this->collNarrationPlugins->setModel('\\Plugins');\n }", "public function initRIssuesAllplugins($overrideExisting = true)\n {\n if (null !== $this->collRIssuesAllplugins && !$overrideExisting) {\n return;\n }\n $this->collRIssuesAllplugins = new ObjectCollection();\n $this->collRIssuesAllplugins->setModel('\\RIssuesAllplugin');\n }", "public function initPicMms()\n\t{\n\t\tif ($this->collPicMms === null) {\n\t\t\t$this->collPicMms = array();\n\t\t}\n\t}", "public function initAnswers()\n\t{\n\t\t$this->collAnswers = array();\n\t}", "public function initQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = array();\n\t}", "public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }", "protected function initializeResultArray() {}", "public function initPesquisaHabilitadas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisaHabilitadas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisaHabilitadas = new PropelObjectCollection();\n\t\t$this->collPesquisaHabilitadas->setModel('PesquisaHabilitada');\n\t}", "public function initContributionss($overrideExisting = true)\n {\n if (null !== $this->collContributionss && !$overrideExisting) {\n return;\n }\n $this->collContributionss = new ObjectCollection();\n $this->collContributionss->setModel('\\Contributions');\n }", "public function initEmptyGrille() : void\n {\n \n for($i = 0 ; $i < self::NB_MAX_NUMERO ; $i++){\n $this->emptyGrille[\"numeros\"][] = \"\";\n \n if($i < self::NB_MAX_ETOILE){\n $this->emptyGrille[\"etoiles\"][] = \"\";\n }\n }\n }", "protected function init()\n {\n $this->totais = [\n 'liquidados' => 0,\n 'entradas' => 0,\n 'baixados' => 0,\n 'protestados' => 0,\n 'erros' => 0,\n 'alterados' => 0,\n ];\n }", "public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }", "public function __construct()\n\t\t\t\t{\n\t\t\t\t\t$this->miLista \t=\tarray();\t\t\t\t\t\n\t\t\t\t}", "protected function _initCounter()\n {\n $this->_counter->reset();\n $tries = $this->_options[self::OPT_TRIES];\n $this->_counter->setOptions( array( Streamwide_Engine_Counter::OPT_TRIES => $tries ) );\n }", "public function init() {\n\t\tparent::init();\n\t\tlist(, $this->roots) = Ola_Service_Area::getsBy(array('root_id'=>0, 'parent_id'=>0), array('sort'=>'DESC' ,'id'=>'DESC'));\n\t\tlist(, $this->parents) = Ola_Service_Area::getsBy(array('root_id'=>array('!=', 0), 'parent_id'=>0), array('sort'=>'DESC', 'id'=>'DESC'));\n\t}", "public function __construct()\n {\n $this->arrPk = array('idCategoriaItemEstoque');\n $this->arrMethodPk = ['getIdCategoriaItemEstoque'];\n $this->arrMethodPaging = [\n 'getStatus',\n 'getNoCategoriaItemEstoque',\n 'getNomeTipoItemEstoque',\n ];\n }", "protected function init()\n {\n $this->totais = [\n 'liquidados' => 0,\n 'entradas' => 0,\n 'baixados' => 0,\n 'protestados' => 0,\n 'erros' => 0,\n 'alterados' => 0,\n ];\n }", "private function _reinit()\n {\n $this->compressed_list = array();\n $this->central_dir_list = array();\n $this->end_of_central = array();\n $this->info = array();\n $this->error = array();\n }", "public function initGearInfos()\n\t{\n\t\t$this->collGearInfos = array();\n\t}", "public function getOperationPrestationssJoinOperationRubriques($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = OperationPrestationsQuery::create(null, $criteria);\n $query->joinWith('OperationRubriques', $join_behavior);\n\n return $this->getOperationPrestationss($query, $con);\n }", "protected function initializeCommonReferences() {}", "public function init()\n {\n if (!class_exists('Predis\\\\Client', false)) {\n $path = !empty($this->predisLibPath) ? $this->predisLibPath : dirname(__FILE__) . '/predis/lib';\n $path = rtrim($path, '/') . '/Predis';\n Yii::setPathOfAlias('Predis', $path);\n }\n \n if (!is_array($this->connections))\n $this->connections = array();\n \n parent::init();\n }", "private function initConnection()\n {\n //NewJs_Slave Connection\n $this->m_objNewJs_Jprofile_Slave = new PROFILE_PROFILE_COMPLETION_SCORE('newjs_slave');\n }", "public function initShoppingCarts()\n\t{\n\t\t$this->collShoppingCarts = array();\n\t}", "public function initialize()\n\t{\n\t\tparent::initialize();\n\n\t\tif ($this->isEnabled()) {\n\t\t\t$this->_setCount();\n\t\t}\n\t}", "public function __construct() { $this->_competitions = [new Competition(0, 'unknow', 0)]; }", "public function setRCurrencies(RCurrencies $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeCurrencyId(NULL);\n } else {\n $this->setOperationPrimeCurrencyId($v->getRCurrencyId());\n }\n\n $this->aRCurrencies = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RCurrencies object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }", "public function init()\n {\n $ar = array();\n for ($i = 0; $i < 20; $i++)\n {\n $ar[] = $i;\n }\n }", "public function clearPostPollVotes()\n\t{\n\t\t$this->collPostPollVotes = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initializeObject()\n {\n $operationsAndFinalOperationNames = static::buildOperationsAndFinalOperationNames($this->objectManager);\n $this->operations = $operationsAndFinalOperationNames[0];\n $this->finalOperationNames = $operationsAndFinalOperationNames[1];\n }", "function initialize()\n\t{\n\t\t$this->_configure \t= $this->config->item('province_configure');\n\t\t$this->_pagination \t= $this->config->item('pagination');\n\t\t$this->_validation \t= $this->config->item('province_validation');\n\t}", "public function __construct($linkReset, $linkLogin)\n {\n $this->linkReset = $linkReset;\n $this->linkLogin = $linkLogin;\n }", "public function initRIssuesNarrationplugins($overrideExisting = true)\n {\n if (null !== $this->collRIssuesNarrationplugins && !$overrideExisting) {\n return;\n }\n $this->collRIssuesNarrationplugins = new ObjectCollection();\n $this->collRIssuesNarrationplugins->setModel('\\RIssuesNarrationplugin');\n }", "protected function init()\r\n {\r\n $this->table_name = 'libelles';\r\n $this->table_type = 'system';\r\n $this->table_gateway_alias = 'Sbm\\Db\\SysTableGateway\\Libelles';\r\n $this->id_name = array(\r\n 'nature',\r\n 'code'\r\n );\r\n }", "public function initRightss()\n {\n $this->collRightss = new ObjectCollection();\n $this->collRightssPartial = true;\n\n $this->collRightss->setModel('\\Rights');\n }", "public function ListarComprasPag()\n\t{\n\t\tself::SetNames();\t\t\n\t\t$sql = \" SELECT compras.codcompra, compras.subtotalivasic, compras.subtotalivanoc, compras.ivac, compras.totalivac, compras.descuentoc, compras.totaldescuentoc, compras.totalc, compras.statuscompra, compras.fechavencecredito, compras.fechacompra, proveedores.nomproveedor, SUM(detallecompras.cantcompra) AS articulos FROM (compras INNER JOIN proveedores ON compras.codproveedor = proveedores.codproveedor) INNER JOIN usuarios ON compras.codigo = usuarios.codigo LEFT JOIN detallecompras ON detallecompras.codcompra = compras.codcompra WHERE compras.statuscompra = 'PAGADA' GROUP BY compras.codcompra\";\n foreach ($this->dbh->query($sql) as $row)\n\t\t{\n\t\t\t$this->p[] = $row;\n\t\t}\n\t\treturn $this->p;\n\t\t$this->dbh=null;\t \n}", "protected function init() {\n\t\t$routes = $this->routePluginManager;\n\t\tforeach ( array (\n\t\t\t\t'hostname' => __NAMESPACE__ . '\\Hostname',\n\t\t\t\t'literal' => __NAMESPACE__ . '\\Literal',\n\t\t\t\t'part' => __NAMESPACE__ . '\\Part',\n\t\t\t\t'regex' => __NAMESPACE__ . '\\Regex',\n\t\t\t\t'scheme' => __NAMESPACE__ . '\\Scheme',\n\t\t\t\t'segment' => __NAMESPACE__ . '\\Segment',\n\t\t\t\t'wildcard' => __NAMESPACE__ . '\\Wildcard',\n\t\t\t\t'query' => __NAMESPACE__ . '\\Query',\n\t\t\t\t'method' => __NAMESPACE__ . '\\Method' \n\t\t) as $name => $class ) {\n\t\t\t$routes->setInvokableClass ( $name, $class );\n\t\t}\n\t\t;\n\t}", "public function initialize(){\n\t\t $db_params = OpenContext_OCConfig::get_db_config();\n\t\t $db = new Zend_Db_Adapter_Pdo_Mysql($db_params);\n\t\t $db->getConnection();\n\t\t $this->setUTFconnection($db);\n\t\t $this->db = $db;\n\t\t $this->checkTableIndex();\n\t\t $this->solrDocArray = false;\n\t\t $this->toDoList = false;\n\t\t $this->toDoCount = 0;\n\t\t $this->errors = array();\n\t\t $this->totalIndexed = 0;\n }", "public function filterByRPClientLibelle($rPClientLibelle = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($rPClientLibelle)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $rPClientLibelle)) {\n $rPClientLibelle = str_replace('*', '%', $rPClientLibelle);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(ClientPrestationsPeer::R_P_CLIENT_LIBELLE, $rPClientLibelle, $comparison);\n }", "static function prime1000()\n {\n $prime = array();\n $s = 0;\n for ($i = 0; $i < 1000; $i++) {\n if (Utility::isPrime($i)) {\n $prime[$s++] = $i;\n }\n }\n return $prime;\n }" ]
[ "0.71638006", "0.70091325", "0.6869609", "0.62956905", "0.5360133", "0.52857304", "0.51841426", "0.51489633", "0.4538413", "0.4529241", "0.44997868", "0.4471349", "0.4462172", "0.43436876", "0.4245498", "0.42426777", "0.42295885", "0.4212909", "0.41634142", "0.41592157", "0.41551885", "0.40894255", "0.40395114", "0.40328273", "0.40190333", "0.40031505", "0.39965683", "0.39850634", "0.3973079", "0.39637285", "0.39535436", "0.39532062", "0.39389673", "0.39345676", "0.39297956", "0.39286497", "0.39119756", "0.39014402", "0.3871082", "0.38645005", "0.38559642", "0.38522542", "0.38510615", "0.38397646", "0.38363478", "0.38354144", "0.38174197", "0.38098815", "0.37886646", "0.3783101", "0.3780398", "0.3770084", "0.37688497", "0.37570208", "0.3746686", "0.37400028", "0.37393582", "0.37341714", "0.37337205", "0.37320775", "0.37301245", "0.37265092", "0.37237167", "0.3722845", "0.37213203", "0.3712482", "0.36943457", "0.36890507", "0.36831906", "0.3680195", "0.36770013", "0.3667102", "0.3661441", "0.3659497", "0.36570454", "0.3646822", "0.3645749", "0.36431092", "0.36423776", "0.36403215", "0.3635946", "0.36346316", "0.3626769", "0.36220953", "0.36202654", "0.3613307", "0.36120045", "0.36098137", "0.3606314", "0.36047068", "0.36017624", "0.35981455", "0.35979044", "0.35953513", "0.35926488", "0.35914338", "0.3590083", "0.35895583", "0.3583352", "0.3581765" ]
0.7232321
0
Gets an array of LnkOperationPrimeRCountries objects which contain a foreign key that references this object. If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this OperationPrimes is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null) { $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew(); if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) { if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) { // return empty collection $this->initLnkOperationPrimeRCountriess(); } else { $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria) ->filterByOperationPrimes($this) ->find($con); if (null !== $criteria) { if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) { $this->initLnkOperationPrimeRCountriess(false); foreach ($collLnkOperationPrimeRCountriess as $obj) { if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) { $this->collLnkOperationPrimeRCountriess->append($obj); } } $this->collLnkOperationPrimeRCountriessPartial = true; } $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind(); return $collLnkOperationPrimeRCountriess; } if ($partial && $this->collLnkOperationPrimeRCountriess) { foreach ($this->collLnkOperationPrimeRCountriess as $obj) { if ($obj->isNew()) { $collLnkOperationPrimeRCountriess[] = $obj; } } } $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess; $this->collLnkOperationPrimeRCountriessPartial = false; } } return $this->collLnkOperationPrimeRCountriess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }", "public function getRIssuesAllplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesAllpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesAllplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesAllplugins) {\n // return empty collection\n $this->initRIssuesAllplugins();\n } else {\n $collRIssuesAllplugins = ChildRIssuesAllpluginQuery::create(null, $criteria)\n ->filterByAllIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesAllpluginsPartial && count($collRIssuesAllplugins)) {\n $this->initRIssuesAllplugins(false);\n\n foreach ($collRIssuesAllplugins as $obj) {\n if (false == $this->collRIssuesAllplugins->contains($obj)) {\n $this->collRIssuesAllplugins->append($obj);\n }\n }\n\n $this->collRIssuesAllpluginsPartial = true;\n }\n\n return $collRIssuesAllplugins;\n }\n\n if ($partial && $this->collRIssuesAllplugins) {\n foreach ($this->collRIssuesAllplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesAllplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesAllplugins = $collRIssuesAllplugins;\n $this->collRIssuesAllpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesAllplugins;\n }", "public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }", "public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }", "public function getRIssuesNarrationplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesNarrationpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesNarrationplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesNarrationplugins) {\n // return empty collection\n $this->initRIssuesNarrationplugins();\n } else {\n $collRIssuesNarrationplugins = ChildRIssuesNarrationpluginQuery::create(null, $criteria)\n ->filterByNarrationIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesNarrationpluginsPartial && count($collRIssuesNarrationplugins)) {\n $this->initRIssuesNarrationplugins(false);\n\n foreach ($collRIssuesNarrationplugins as $obj) {\n if (false == $this->collRIssuesNarrationplugins->contains($obj)) {\n $this->collRIssuesNarrationplugins->append($obj);\n }\n }\n\n $this->collRIssuesNarrationpluginsPartial = true;\n }\n\n return $collRIssuesNarrationplugins;\n }\n\n if ($partial && $this->collRIssuesNarrationplugins) {\n foreach ($this->collRIssuesNarrationplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesNarrationplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesNarrationplugins = $collRIssuesNarrationplugins;\n $this->collRIssuesNarrationpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesNarrationplugins;\n }", "public function getCMDPieces(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDPiecesPartial && !$this->isNew();\n if (null === $this->collCMDPieces || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDPieces) {\n // return empty collection\n $this->initCMDPieces();\n } else {\n $collCMDPieces = ChildCMDPieceQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDPiecesPartial && count($collCMDPieces)) {\n $this->initCMDPieces(false);\n\n foreach ($collCMDPieces as $obj) {\n if (false == $this->collCMDPieces->contains($obj)) {\n $this->collCMDPieces->append($obj);\n }\n }\n\n $this->collCMDPiecesPartial = true;\n }\n\n return $collCMDPieces;\n }\n\n if ($partial && $this->collCMDPieces) {\n foreach ($this->collCMDPieces as $obj) {\n if ($obj->isNew()) {\n $collCMDPieces[] = $obj;\n }\n }\n }\n\n $this->collCMDPieces = $collCMDPieces;\n $this->collCMDPiecesPartial = false;\n }\n }\n\n return $this->collCMDPieces;\n }", "public function getLnkOperationPrimeRCountriessJoinRCountries($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n $query->joinWith('RCountries', $join_behavior);\n\n return $this->getLnkOperationPrimeRCountriess($query, $con);\n }", "public function getCOMConditions(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCOMConditionsPartial && !$this->isNew();\n if (null === $this->collCOMConditions || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCOMConditions) {\n // return empty collection\n $this->initCOMConditions();\n } else {\n $collCOMConditions = ChildCOMConditionQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCOMConditionsPartial && count($collCOMConditions)) {\n $this->initCOMConditions(false);\n\n foreach ($collCOMConditions as $obj) {\n if (false == $this->collCOMConditions->contains($obj)) {\n $this->collCOMConditions->append($obj);\n }\n }\n\n $this->collCOMConditionsPartial = true;\n }\n\n return $collCOMConditions;\n }\n\n if ($partial && $this->collCOMConditions) {\n foreach ($this->collCOMConditions as $obj) {\n if ($obj->isNew()) {\n $collCOMConditions[] = $obj;\n }\n }\n }\n\n $this->collCOMConditions = $collCOMConditions;\n $this->collCOMConditionsPartial = false;\n }\n }\n\n return $this->collCOMConditions;\n }", "public function getRIssuesXmlplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesXmlpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesXmlplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesXmlplugins) {\n // return empty collection\n $this->initRIssuesXmlplugins();\n } else {\n $collRIssuesXmlplugins = ChildRIssuesXmlpluginQuery::create(null, $criteria)\n ->filterByXmlIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesXmlpluginsPartial && count($collRIssuesXmlplugins)) {\n $this->initRIssuesXmlplugins(false);\n\n foreach ($collRIssuesXmlplugins as $obj) {\n if (false == $this->collRIssuesXmlplugins->contains($obj)) {\n $this->collRIssuesXmlplugins->append($obj);\n }\n }\n\n $this->collRIssuesXmlpluginsPartial = true;\n }\n\n return $collRIssuesXmlplugins;\n }\n\n if ($partial && $this->collRIssuesXmlplugins) {\n foreach ($this->collRIssuesXmlplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesXmlplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesXmlplugins = $collRIssuesXmlplugins;\n $this->collRIssuesXmlpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesXmlplugins;\n }", "public function getNarrationPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collNarrationPluginsPartial && !$this->isNew();\n if (null === $this->collNarrationPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collNarrationPlugins) {\n $this->initNarrationPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByNarrationIssue($this);\n $collNarrationPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collNarrationPlugins;\n }\n\n if ($partial && $this->collNarrationPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collNarrationPlugins as $obj) {\n if (!$collNarrationPlugins->contains($obj)) {\n $collNarrationPlugins[] = $obj;\n }\n }\n }\n\n $this->collNarrationPlugins = $collNarrationPlugins;\n $this->collNarrationPluginsPartial = false;\n }\n }\n\n return $this->collNarrationPlugins;\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function getCOMVendeurs(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCOMVendeursPartial && !$this->isNew();\n if (null === $this->collCOMVendeurs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCOMVendeurs) {\n // return empty collection\n $this->initCOMVendeurs();\n } else {\n $collCOMVendeurs = ChildCOMVendeurQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCOMVendeursPartial && count($collCOMVendeurs)) {\n $this->initCOMVendeurs(false);\n\n foreach ($collCOMVendeurs as $obj) {\n if (false == $this->collCOMVendeurs->contains($obj)) {\n $this->collCOMVendeurs->append($obj);\n }\n }\n\n $this->collCOMVendeursPartial = true;\n }\n\n return $collCOMVendeurs;\n }\n\n if ($partial && $this->collCOMVendeurs) {\n foreach ($this->collCOMVendeurs as $obj) {\n if ($obj->isNew()) {\n $collCOMVendeurs[] = $obj;\n }\n }\n }\n\n $this->collCOMVendeurs = $collCOMVendeurs;\n $this->collCOMVendeursPartial = false;\n }\n }\n\n return $this->collCOMVendeurs;\n }", "public function getRIssuesSingleplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesSinglepluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesSingleplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesSingleplugins) {\n // return empty collection\n $this->initRIssuesSingleplugins();\n } else {\n $collRIssuesSingleplugins = ChildRIssuesSinglepluginQuery::create(null, $criteria)\n ->filterBySingleIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesSinglepluginsPartial && count($collRIssuesSingleplugins)) {\n $this->initRIssuesSingleplugins(false);\n\n foreach ($collRIssuesSingleplugins as $obj) {\n if (false == $this->collRIssuesSingleplugins->contains($obj)) {\n $this->collRIssuesSingleplugins->append($obj);\n }\n }\n\n $this->collRIssuesSinglepluginsPartial = true;\n }\n\n return $collRIssuesSingleplugins;\n }\n\n if ($partial && $this->collRIssuesSingleplugins) {\n foreach ($this->collRIssuesSingleplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesSingleplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesSingleplugins = $collRIssuesSingleplugins;\n $this->collRIssuesSinglepluginsPartial = false;\n }\n }\n\n return $this->collRIssuesSingleplugins;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildKluBillQuery::create();\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}", "public function get_criteria() { return $this->criteria_list; }", "public function countLnkOperationPrimeRCountriess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getLnkOperationPrimeRCountriess());\n }\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collLnkOperationPrimeRCountriess);\n }", "public function getPermissaosRelatedByCoUsuarioAlteracao($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPermissaosRelatedByCoUsuarioAlteracao || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPermissaosRelatedByCoUsuarioAlteracao) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPermissaosRelatedByCoUsuarioAlteracao();\n\t\t\t} else {\n\t\t\t\t$collPermissaosRelatedByCoUsuarioAlteracao = PermissaoQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedByCoUsuarioAlteracao($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPermissaosRelatedByCoUsuarioAlteracao;\n\t\t\t\t}\n\t\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = $collPermissaosRelatedByCoUsuarioAlteracao;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPermissaosRelatedByCoUsuarioAlteracao;\n\t}", "public function getColetaPesquisas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collColetaPesquisas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collColetaPesquisas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initColetaPesquisas();\n\t\t\t} else {\n\t\t\t\t$collColetaPesquisas = ColetaPesquisaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collColetaPesquisas;\n\t\t\t\t}\n\t\t\t\t$this->collColetaPesquisas = $collColetaPesquisas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collColetaPesquisas;\n\t}", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}", "public function getComentarioNoticias($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collComentarioNoticias || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collComentarioNoticias) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initComentarioNoticias();\n\t\t\t} else {\n\t\t\t\t$collComentarioNoticias = ComentarioNoticiaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collComentarioNoticias;\n\t\t\t\t}\n\t\t\t\t$this->collComentarioNoticias = $collComentarioNoticias;\n\t\t\t}\n\t\t}\n\t\treturn $this->collComentarioNoticias;\n\t}", "public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(CidadePeer::DATABASE_NAME);\n\t\t$criteria->add(CidadePeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }", "public function getAllPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collAllPluginsPartial && !$this->isNew();\n if (null === $this->collAllPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collAllPlugins) {\n $this->initAllPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByAllIssue($this);\n $collAllPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collAllPlugins;\n }\n\n if ($partial && $this->collAllPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collAllPlugins as $obj) {\n if (!$collAllPlugins->contains($obj)) {\n $collAllPlugins[] = $obj;\n }\n }\n }\n\n $this->collAllPlugins = $collAllPlugins;\n $this->collAllPluginsPartial = false;\n }\n }\n\n return $this->collAllPlugins;\n }", "public function getOpenids($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collOpenids === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collOpenids = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(OpenidPeer::USER_ID, $this->id);\n\n\t\t\t\tOpenidPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collOpenids = OpenidPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(OpenidPeer::USER_ID, $this->id);\n\n\t\t\t\tOpenidPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastOpenidCriteria) || !$this->lastOpenidCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collOpenids = OpenidPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastOpenidCriteria = $criteria;\n\t\treturn $this->collOpenids;\n\t}", "public function getCriteria()\n\t{\n\t\treturn $this->criteria;\n\t}", "public function getCriteria()\n {\n return $this->criteria;\n }", "public function getCriteria()\n {\n return $this->criteria;\n }", "public function get_criteria() {\n\n if (!$this->_criteria) {\n global $DB;\n\n $params = array(\n 'id' => $this->criteriaid\n );\n\n $record = $DB->get_record('course_completion_criteria', $params);\n\n $this->attach_criteria(completion_criteria::factory((array) $record));\n }\n\n return $this->_criteria;\n }", "public function getVpoRequestCargos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collVpoRequestCargos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collVpoRequestCargos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(VpoRequestCargoPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestCargoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collVpoRequestCargos = VpoRequestCargoPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(VpoRequestCargoPeer::REQUEST_ID, $this->id);\n\n\t\t\t\tVpoRequestCargoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastVpoRequestCargoCriteria) || !$this->lastVpoRequestCargoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collVpoRequestCargos = VpoRequestCargoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastVpoRequestCargoCriteria = $criteria;\n\t\treturn $this->collVpoRequestCargos;\n\t}", "public function getRIssuesRtfplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesRtfpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesRtfplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesRtfplugins) {\n // return empty collection\n $this->initRIssuesRtfplugins();\n } else {\n $collRIssuesRtfplugins = ChildRIssuesRtfpluginQuery::create(null, $criteria)\n ->filterByRtfIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesRtfpluginsPartial && count($collRIssuesRtfplugins)) {\n $this->initRIssuesRtfplugins(false);\n\n foreach ($collRIssuesRtfplugins as $obj) {\n if (false == $this->collRIssuesRtfplugins->contains($obj)) {\n $this->collRIssuesRtfplugins->append($obj);\n }\n }\n\n $this->collRIssuesRtfpluginsPartial = true;\n }\n\n return $collRIssuesRtfplugins;\n }\n\n if ($partial && $this->collRIssuesRtfplugins) {\n foreach ($this->collRIssuesRtfplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesRtfplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesRtfplugins = $collRIssuesRtfplugins;\n $this->collRIssuesRtfpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesRtfplugins;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildBiblioQuery::create();\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n\n return $criteria;\n }", "public function getQuestionVotes($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionVotes === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionVotes = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionVotePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionVotePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionVotes = QuestionVotePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionVotePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionVotePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionVoteCriteria) || !$this->lastQuestionVoteCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionVotes = QuestionVotePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionVoteCriteria = $criteria;\n\t\treturn $this->collQuestionVotes;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::CO_USUARIO, $this->co_usuario);\n\n\t\treturn $criteria;\n\t}", "public function getClips($criteria)\n {\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(MontacargasPeer::DATABASE_NAME);\n $criteria->add(MontacargasPeer::IDMONTACARGAS, $this->idmontacargas);\n\n return $criteria;\n }", "public function getCriteria()\n {\n return isset($this->criteria) ? $this->criteria : null;\n }", "public function getFeatureCvtermPubs($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermPubsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermPubs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermPubs) {\n // return empty collection\n $this->initFeatureCvtermPubs();\n } else {\n $collFeatureCvtermPubs = FeatureCvtermPubQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermPubsPartial && count($collFeatureCvtermPubs)) {\n $this->initFeatureCvtermPubs(false);\n\n foreach($collFeatureCvtermPubs as $obj) {\n if (false == $this->collFeatureCvtermPubs->contains($obj)) {\n $this->collFeatureCvtermPubs->append($obj);\n }\n }\n\n $this->collFeatureCvtermPubsPartial = true;\n }\n\n $collFeatureCvtermPubs->getInternalIterator()->rewind();\n return $collFeatureCvtermPubs;\n }\n\n if($partial && $this->collFeatureCvtermPubs) {\n foreach($this->collFeatureCvtermPubs as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermPubs[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermPubs = $collFeatureCvtermPubs;\n $this->collFeatureCvtermPubsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermPubs;\n }", "public function getPermissaosRelatedByCoUsuarioCadastro($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPermissaosRelatedByCoUsuarioCadastro || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPermissaosRelatedByCoUsuarioCadastro) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPermissaosRelatedByCoUsuarioCadastro();\n\t\t\t} else {\n\t\t\t\t$collPermissaosRelatedByCoUsuarioCadastro = PermissaoQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuarioRelatedByCoUsuarioCadastro($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPermissaosRelatedByCoUsuarioCadastro;\n\t\t\t\t}\n\t\t\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = $collPermissaosRelatedByCoUsuarioCadastro;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPermissaosRelatedByCoUsuarioCadastro;\n\t}", "public function getXmlPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collXmlPluginsPartial && !$this->isNew();\n if (null === $this->collXmlPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collXmlPlugins) {\n $this->initXmlPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByXmlIssue($this);\n $collXmlPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collXmlPlugins;\n }\n\n if ($partial && $this->collXmlPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collXmlPlugins as $obj) {\n if (!$collXmlPlugins->contains($obj)) {\n $collXmlPlugins[] = $obj;\n }\n }\n }\n\n $this->collXmlPlugins = $collXmlPlugins;\n $this->collXmlPluginsPartial = false;\n }\n }\n\n return $this->collXmlPlugins;\n }", "public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)\n {\n if ($this->collLnkOperationPrimeRCountriess === null) {\n $this->initLnkOperationPrimeRCountriess();\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddLnkOperationPrimeRCountries($l);\n\n if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) {\n $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function getrpxAuths($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collrpxAuths === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collrpxAuths = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(rpxAuthPeer::USER_ID, $this->id);\n\n\t\t\t\trpxAuthPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collrpxAuths = rpxAuthPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(rpxAuthPeer::USER_ID, $this->id);\n\n\t\t\t\trpxAuthPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastrpxAuthCriteria) || !$this->lastrpxAuthCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collrpxAuths = rpxAuthPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastrpxAuthCriteria = $criteria;\n\t\treturn $this->collrpxAuths;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t$criteria->add(UsuarioPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function getCriteria(){\n return $this->criteria;\n }", "public function getQuestionOffensives($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestionOffensives === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestionOffensives = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionOffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionOffensivePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestionOffensives = QuestionOffensivePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionOffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionOffensivePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionOffensiveCriteria) || !$this->lastQuestionOffensiveCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestionOffensives = QuestionOffensivePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionOffensiveCriteria = $criteria;\n\t\treturn $this->collQuestionOffensives;\n\t}", "public function getPremios($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPremios || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPremios) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPremios();\n\t\t\t} else {\n\t\t\t\t$collPremios = PremioQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPremios;\n\t\t\t\t}\n\t\t\t\t$this->collPremios = $collPremios;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPremios;\n\t}", "public function getRtfPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRtfPluginsPartial && !$this->isNew();\n if (null === $this->collRtfPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collRtfPlugins) {\n $this->initRtfPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByRtfIssue($this);\n $collRtfPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collRtfPlugins;\n }\n\n if ($partial && $this->collRtfPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collRtfPlugins as $obj) {\n if (!$collRtfPlugins->contains($obj)) {\n $collRtfPlugins[] = $obj;\n }\n }\n }\n\n $this->collRtfPlugins = $collRtfPlugins;\n $this->collRtfPluginsPartial = false;\n }\n }\n\n return $this->collRtfPlugins;\n }", "public function getTranscodingsJoinCpu($criteria = null, $con = null)\n\t{\n\t\t// include the Peer class\n\t\tinclude_once 'lib/model/om/BaseTranscodingPeer.php';\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria();\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collTranscodings === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t\t$this->collTranscodings = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectJoinCpu($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// the following code is to determine if a new query is\n\t\t\t// called for. If the criteria is the same as the last\n\t\t\t// one, just return the collection.\n\n\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\tif (!isset($this->lastTranscodingCriteria) || !$this->lastTranscodingCriteria->equals($criteria)) {\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectJoinCpu($criteria, $con);\n\t\t\t}\n\t\t}\n\t\t$this->lastTranscodingCriteria = $criteria;\n\n\t\treturn $this->collTranscodings;\n\t}", "public function getPesquisas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPesquisas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPesquisas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPesquisas();\n\t\t\t} else {\n\t\t\t\t$collPesquisas = PesquisaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPesquisas;\n\t\t\t\t}\n\t\t\t\t$this->collPesquisas = $collPesquisas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPesquisas;\n\t}", "public function getChoices()\n {\n $choices = array();\n if (false !== $this->getOption('add_empty'))\n {\n $choices[''] = true === $this->getOption('add_empty') ? '' : $this->getOption('add_empty');\n }\n\n $criteria = PropelQuery::from($this->getOption('model'));\n if ($this->getOption('criteria'))\n {\n $criteria->mergeWith(clone $this->getOption('criteria'));\n }\n foreach ($this->getOption('query_methods') as $method)\n {\n $criteria->$method();\n }\n if ($order = $this->getOption('order_by'))\n {\n $criteria->orderBy($order[0], $order[1]);\n }\n $object = $criteria->findOne($this->getOption('connection'));\n if($object->getParent())\n $object=$object->getParent();\n\t\t$methodKey = $this->getOption('key_method');\n if (!method_exists($this->getOption('model'), $methodKey))\n {\n throw new RuntimeException(sprintf('Class \"%s\" must implement a \"%s\" method to be rendered in a \"%s\" widget', $this->getOption('model'), $methodKey, __CLASS__));\n }\n\n $methodValue = $this->getOption('method');\n if (!method_exists($this->getOption('model'), $methodValue))\n {\n throw new RuntimeException(sprintf('Class \"%s\" must implement a \"%s\" method to be rendered in a \"%s\" widget', $this->getOption('model'), $methodValue, __CLASS__));\n }\n\t\treturn $this->treeChoices($object, $methodKey, $methodValue, $criteria);\n }", "public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }", "public function getRCurrencies(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRCurrencies === null && ($this->operation_prime_currency_id !== null) && $doQuery) {\n $this->aRCurrencies = RCurrenciesQuery::create()->findPk($this->operation_prime_currency_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRCurrencies->addOperationPrimess($this);\n */\n }\n\n return $this->aRCurrencies;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }", "public function getOffensives($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collOffensives === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collOffensives = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(OffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tOffensivePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collOffensives = OffensivePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(OffensivePeer::USER_ID, $this->id);\n\n\t\t\t\tOffensivePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastOffensiveCriteria) || !$this->lastOffensiveCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collOffensives = OffensivePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastOffensiveCriteria = $criteria;\n\t\treturn $this->collOffensives;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\t$criteria->add(UserPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function getRuangs($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collRuangsPartial && !$this->isNew();\n if (null === $this->collRuangs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRuangs) {\n // return empty collection\n $this->initRuangs();\n } else {\n $collRuangs = RuangQuery::create(null, $criteria)\n ->filterByBangunan($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collRuangsPartial && count($collRuangs)) {\n $this->initRuangs(false);\n\n foreach($collRuangs as $obj) {\n if (false == $this->collRuangs->contains($obj)) {\n $this->collRuangs->append($obj);\n }\n }\n\n $this->collRuangsPartial = true;\n }\n\n $collRuangs->getInternalIterator()->rewind();\n return $collRuangs;\n }\n\n if($partial && $this->collRuangs) {\n foreach($this->collRuangs as $obj) {\n if($obj->isNew()) {\n $collRuangs[] = $obj;\n }\n }\n }\n\n $this->collRuangs = $collRuangs;\n $this->collRuangsPartial = false;\n }\n }\n\n return $this->collRuangs;\n }", "public function getNoticias($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collNoticias || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collNoticias) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initNoticias();\n\t\t\t} else {\n\t\t\t\t$collNoticias = NoticiaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collNoticias;\n\t\t\t\t}\n\t\t\t\t$this->collNoticias = $collNoticias;\n\t\t\t}\n\t\t}\n\t\treturn $this->collNoticias;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }", "public function getCMDTAppareils(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDTAppareilsPartial && !$this->isNew();\n if (null === $this->collCMDTAppareils || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDTAppareils) {\n // return empty collection\n $this->initCMDTAppareils();\n } else {\n $collCMDTAppareils = ChildCMDTAppareilQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDTAppareilsPartial && count($collCMDTAppareils)) {\n $this->initCMDTAppareils(false);\n\n foreach ($collCMDTAppareils as $obj) {\n if (false == $this->collCMDTAppareils->contains($obj)) {\n $this->collCMDTAppareils->append($obj);\n }\n }\n\n $this->collCMDTAppareilsPartial = true;\n }\n\n return $collCMDTAppareils;\n }\n\n if ($partial && $this->collCMDTAppareils) {\n foreach ($this->collCMDTAppareils as $obj) {\n if ($obj->isNew()) {\n $collCMDTAppareils[] = $obj;\n }\n }\n }\n\n $this->collCMDTAppareils = $collCMDTAppareils;\n $this->collCMDTAppareilsPartial = false;\n }\n }\n\n return $this->collCMDTAppareils;\n }", "public function getBookks($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collBookksPartial && !$this->isNew();\n if (null === $this->collBookks || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collBookks) {\n // return empty collection\n $this->initBookks();\n } else {\n $collBookks = BookkQuery::create(null, $criteria)\n ->filterByYear($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collBookksPartial && count($collBookks)) {\n $this->initBookks(false);\n\n foreach ($collBookks as $obj) {\n if (false == $this->collBookks->contains($obj)) {\n $this->collBookks->append($obj);\n }\n }\n\n $this->collBookksPartial = true;\n }\n\n $collBookks->getInternalIterator()->rewind();\n\n return $collBookks;\n }\n\n if ($partial && $this->collBookks) {\n foreach ($this->collBookks as $obj) {\n if ($obj->isNew()) {\n $collBookks[] = $obj;\n }\n }\n }\n\n $this->collBookks = $collBookks;\n $this->collBookksPartial = false;\n }\n }\n\n return $this->collBookks;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(MmPeer::DATABASE_NAME);\n\n\t\t$criteria->add(MmPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function getPostPollVotes($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collPostPollVotes === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collPostPollVotes = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(PostPollVotePeer::POST_ID, $this->id);\n\n\t\t\t\tPostPollVotePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collPostPollVotes = PostPollVotePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(PostPollVotePeer::POST_ID, $this->id);\n\n\t\t\t\tPostPollVotePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastPostPollVoteCriteria) || !$this->lastPostPollVoteCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collPostPollVotes = PostPollVotePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastPostPollVoteCriteria = $criteria;\n\t\treturn $this->collPostPollVotes;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n\n return $criteria;\n }", "public function getPesquisaHabilitadas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collPesquisaHabilitadas || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collPesquisaHabilitadas) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initPesquisaHabilitadas();\n\t\t\t} else {\n\t\t\t\t$collPesquisaHabilitadas = PesquisaHabilitadaQuery::create(null, $criteria)\n\t\t\t\t\t->filterByUsuario($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collPesquisaHabilitadas;\n\t\t\t\t}\n\t\t\t\t$this->collPesquisaHabilitadas = $collPesquisaHabilitadas;\n\t\t\t}\n\t\t}\n\t\treturn $this->collPesquisaHabilitadas;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildIssuesQuery::create();\n $criteria->add(IssuesTableMap::COL_ID, $this->id);\n\n return $criteria;\n }", "public function getUserExperiences($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collUserExperiences === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collUserExperiences = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(UserExperiencePeer::USER_ID, $this->id);\n\n\t\t\t\tUserExperiencePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collUserExperiences = UserExperiencePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(UserExperiencePeer::USER_ID, $this->id);\n\n\t\t\t\tUserExperiencePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastUserExperienceCriteria) || !$this->lastUserExperienceCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collUserExperiences = UserExperiencePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastUserExperienceCriteria = $criteria;\n\t\treturn $this->collUserExperiences;\n\t}", "public function getProjects($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collProjectsPartial && !$this->isNew();\n if (null === $this->collProjects || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collProjects) {\n // return empty collection\n $this->initProjects();\n } else {\n $collProjects = ProjectQuery::create(null, $criteria)\n ->filterByYear($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collProjectsPartial && count($collProjects)) {\n $this->initProjects(false);\n\n foreach ($collProjects as $obj) {\n if (false == $this->collProjects->contains($obj)) {\n $this->collProjects->append($obj);\n }\n }\n\n $this->collProjectsPartial = true;\n }\n\n $collProjects->getInternalIterator()->rewind();\n\n return $collProjects;\n }\n\n if ($partial && $this->collProjects) {\n foreach ($this->collProjects as $obj) {\n if ($obj->isNew()) {\n $collProjects[] = $obj;\n }\n }\n }\n\n $this->collProjects = $collProjects;\n $this->collProjectsPartial = false;\n }\n }\n\n return $this->collProjects;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildUserQuery::create();\n $criteria->add(UserTableMap::COL_ID, $this->id);\n $criteria->add(UserTableMap::COL_NICKNAME, $this->nickname);\n\n return $criteria;\n }", "public function getLoadCriteria() {\n return $this->_load_criteria;\n }", "public function getGearCompanyInfos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collGearCompanyInfos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collGearCompanyInfos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(GearCompanyInfoPeer::USER_ID, $this->id);\n\n\t\t\t\tGearCompanyInfoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collGearCompanyInfos = GearCompanyInfoPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(GearCompanyInfoPeer::USER_ID, $this->id);\n\n\t\t\t\tGearCompanyInfoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastGearCompanyInfoCriteria) || !$this->lastGearCompanyInfoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collGearCompanyInfos = GearCompanyInfoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastGearCompanyInfoCriteria = $criteria;\n\t\treturn $this->collGearCompanyInfos;\n\t}", "public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "public function getFeatureCvtermDbxrefs($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermDbxrefsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermDbxrefs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermDbxrefs) {\n // return empty collection\n $this->initFeatureCvtermDbxrefs();\n } else {\n $collFeatureCvtermDbxrefs = FeatureCvtermDbxrefQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermDbxrefsPartial && count($collFeatureCvtermDbxrefs)) {\n $this->initFeatureCvtermDbxrefs(false);\n\n foreach($collFeatureCvtermDbxrefs as $obj) {\n if (false == $this->collFeatureCvtermDbxrefs->contains($obj)) {\n $this->collFeatureCvtermDbxrefs->append($obj);\n }\n }\n\n $this->collFeatureCvtermDbxrefsPartial = true;\n }\n\n $collFeatureCvtermDbxrefs->getInternalIterator()->rewind();\n return $collFeatureCvtermDbxrefs;\n }\n\n if($partial && $this->collFeatureCvtermDbxrefs) {\n foreach($this->collFeatureCvtermDbxrefs as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermDbxrefs[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermDbxrefs = $collFeatureCvtermDbxrefs;\n $this->collFeatureCvtermDbxrefsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermDbxrefs;\n }", "public function getCandidates()\n {\n foreach ($this->candidates as $id) {\n $this->numOfCandidates++;\n // Use a generator to save on memory/resources\n // load accounts from DB one at a time only when required\n yield (new CandidateModel())->load($id);\n }\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildPoReceivingHeadQuery::create();\n $criteria->add(PoReceivingHeadTableMap::COL_POTHNBR, $this->pothnbr);\n\n return $criteria;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }", "public function getQuestions($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collQuestions === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collQuestions = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(QuestionPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collQuestions = QuestionPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(QuestionPeer::USER_ID, $this->id);\n\n\t\t\t\tQuestionPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastQuestionCriteria) || !$this->lastQuestionCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collQuestions = QuestionPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastQuestionCriteria = $criteria;\n\t\treturn $this->collQuestions;\n\t}", "public function getExpertCategorys($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collExpertCategorys === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collExpertCategorys = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(ExpertCategoryPeer::USER_ID, $this->id);\n\n\t\t\t\tExpertCategoryPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collExpertCategorys = ExpertCategoryPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(ExpertCategoryPeer::USER_ID, $this->id);\n\n\t\t\t\tExpertCategoryPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastExpertCategoryCriteria) || !$this->lastExpertCategoryCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collExpertCategorys = ExpertCategoryPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastExpertCategoryCriteria = $criteria;\n\t\treturn $this->collExpertCategorys;\n\t}", "public function getTranscodingsWithI18n($criteria = null, $con = null)\n\t{\n\t\t// include the Peer class\n\t\tinclude_once 'lib/model/om/BaseTranscodingPeer.php';\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria();\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collTranscodings === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collTranscodings = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectWithI18n($criteria, $this->getCulture(), $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(TranscodingPeer::MM_ID, $this->getId());\n\n\t\t\t\tif (!isset($this->lastTranscodingCriteria) || !$this->lastTranscodingCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collTranscodings = TranscodingPeer::doSelectWithI18n($criteria, $this->getCulture(), $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastTranscodingCriteria = $criteria;\n\t\treturn $this->collTranscodings;\n\t}", "public function getByCriteria(Criteria $criteria)\n {\n try\n {\n $this->db->setFetchMode(Zend_Db::FETCH_ASSOC);\n $sql = \"SELECT \".ZipCode::ZIP_CODE.\", \".ZipCode::SETTLEMENT.\", \".ZipCode::DISTRICT.\", \".ZipCode::STATE.\", \".ZipCode::CITY.\", \".ZipCode::MEXICO_STATE.\"\n FROM \".ZipCode::TABLENAME.\"\n WHERE \" . $criteria->createSql();\n $zipCodeCollection = new ZipCodeCollection();\n foreach ($this->db->fetchAll($sql) as $result){\n $zipCodeCollection->append($this->createInternal($result));\n }\n }\n catch(Exception $e)\n {\n throw new Exception(\"No se pudo obtener la colección de items\\n\" . $e->getMessage());\n }\n return $zipCodeCollection;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\n\t\t$criteria->add(PostPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(YearPeer::DATABASE_NAME);\n $criteria->add(YearPeer::ID, $this->id);\n\n return $criteria;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_PARTICIPANTE)) $criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_USUARIO_ELABORA)) $criteria->add(J019tParticipantesPeer::CO_USUARIO_ELABORA, $this->co_usuario_elabora);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_FORENSE, $this->co_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES)) $criteria->add(J019tParticipantesPeer::CO_INFORME_RECOMENDACIONES, $this->co_informe_recomendaciones);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_INCIDENTE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_INCIDENTE, $this->co_informe_incidente);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_FORENSE)) $criteria->add(J019tParticipantesPeer::CO_INFORME_FORENSE, $this->co_informe_forense);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_INFORME_DEPURACION)) $criteria->add(J019tParticipantesPeer::CO_INFORME_DEPURACION, $this->co_informe_depuracion);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_MANTENIMIENTO)) $criteria->add(J019tParticipantesPeer::CO_MANTENIMIENTO, $this->co_mantenimiento);\n\t\tif ($this->isColumnModified(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO)) $criteria->add(J019tParticipantesPeer::CO_DOUMENTO_NORMATIVO, $this->co_doumento_normativo);\n\n\t\treturn $criteria;\n\t}", "public function matching(Criteria $criteria)\n {\n if ($this->isDirty) {\n $this->initialize();\n }\n if ($this->initialized) {\n return $this->collection->matching($criteria);\n }\n\n $builder = Criteria::expr();\n $ownerExpression = $builder->eq($this->backRefFieldName, $this->owner);\n $expression = $criteria->getWhereExpression();\n $expression = $expression ? $builder->andX($expression, $ownerExpression) : $ownerExpression;\n $criteria = clone $criteria;\n $criteria->where($expression);\n $persister = $this->manager->getUnitOfWork()->getEntityPersister($this->association['targetEntity']);\n\n return new LazyCriteriaCollection($persister, $criteria);\n }", "public function getShoppingCarts($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collShoppingCarts === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collShoppingCarts = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(ShoppingCartPeer::USER_ID, $this->id);\n\n\t\t\t\tShoppingCartPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collShoppingCarts = ShoppingCartPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(ShoppingCartPeer::USER_ID, $this->id);\n\n\t\t\t\tShoppingCartPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastShoppingCartCriteria) || !$this->lastShoppingCartCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collShoppingCarts = ShoppingCartPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastShoppingCartCriteria = $criteria;\n\t\treturn $this->collShoppingCarts;\n\t}", "public function getCriteriaList() {\n return $this->_get(6);\n }", "public function fetchCollection($criteria = null);", "public abstract function findOperationBy(array $criteria);", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(EventPeer::DATABASE_NAME);\n $criteria->add(EventPeer::ID, $this->id);\n\n return $criteria;\n }", "public function GetInfobjectfonds($criteria = null)\r\n\t{\r\n\t\treturn $this->_phreezer->GetOneToMany($this, \"FK_fironk10lq67q4j0a3oue8ldg\", $criteria);\r\n\t}", "public function getMembros($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif(null === $this->collMembros || null !== $criteria) {\n\t\t\tif ($this->isNew() && null === $this->collMembros) {\n\t\t\t\t// return empty collection\n\t\t\t\t$this->initMembros();\n\t\t\t} else {\n\t\t\t\t$collMembros = MembroQuery::create(null, $criteria)\n\t\t\t\t\t->filterByCidade($this)\n\t\t\t\t\t->find($con);\n\t\t\t\tif (null !== $criteria) {\n\t\t\t\t\treturn $collMembros;\n\t\t\t\t}\n\t\t\t\t$this->collMembros = $collMembros;\n\t\t\t}\n\t\t}\n\t\treturn $this->collMembros;\n\t}", "public function buildPkeyCriteria()\n {\n $criteria = ChildOrdrhedQuery::create();\n $criteria->add(OrdrhedTableMap::COL_SESSIONID, $this->sessionid);\n $criteria->add(OrdrhedTableMap::COL_RECNO, $this->recno);\n $criteria->add(OrdrhedTableMap::COL_ORDERNO, $this->orderno);\n\n return $criteria;\n }" ]
[ "0.65903765", "0.6560057", "0.628412", "0.61360604", "0.56110454", "0.5591172", "0.5567438", "0.5505992", "0.5469546", "0.54690737", "0.5392265", "0.53495556", "0.5338507", "0.5283804", "0.5222667", "0.52197963", "0.5208035", "0.52051127", "0.51970255", "0.51662004", "0.51526266", "0.51495665", "0.5146107", "0.5145501", "0.5138974", "0.51389503", "0.51361346", "0.5136115", "0.5134889", "0.513366", "0.51139224", "0.5099468", "0.5097041", "0.5097041", "0.5096834", "0.50946283", "0.5093816", "0.5087428", "0.5055121", "0.50406075", "0.5039146", "0.50364137", "0.5031851", "0.50200725", "0.50100625", "0.49951178", "0.4988762", "0.4987502", "0.49851102", "0.49794644", "0.4977506", "0.4975123", "0.49652857", "0.4964377", "0.49627268", "0.4962637", "0.49528986", "0.49490204", "0.49457029", "0.49434537", "0.49357936", "0.49335235", "0.49335235", "0.49256626", "0.4924474", "0.49226192", "0.49155185", "0.49059102", "0.48988476", "0.48879054", "0.4872302", "0.48606828", "0.48586196", "0.48541492", "0.4847015", "0.4842379", "0.4841675", "0.48358718", "0.48225406", "0.48163307", "0.48089167", "0.4781135", "0.47694543", "0.4759477", "0.47563538", "0.47480908", "0.4745512", "0.47361743", "0.47323513", "0.473169", "0.47300395", "0.47283223", "0.47215864", "0.47199485", "0.471976", "0.47148427", "0.47105488", "0.47098386", "0.4688885", "0.4685387" ]
0.77509034
0
Sets a collection of LnkOperationPrimeRCountries objects related by a onetomany relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null) { $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess); $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete; foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) { $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null); } $this->collLnkOperationPrimeRCountriess = null; foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) { $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries); } $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess; $this->collLnkOperationPrimeRCountriessPartial = false; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)\n {\n if ($this->collLnkOperationPrimeRCountriess === null) {\n $this->initLnkOperationPrimeRCountriess();\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddLnkOperationPrimeRCountries($l);\n\n if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) {\n $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function setRelations(Collection $relations);", "public function setRelations() {}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aOperations instanceof Persistent) {\n $this->aOperations->clearAllReferences($deep);\n }\n if ($this->aRCurrencies instanceof Persistent) {\n $this->aRCurrencies->clearAllReferences($deep);\n }\n if ($this->aRRewardTypes instanceof Persistent) {\n $this->aRRewardTypes->clearAllReferences($deep);\n }\n if ($this->aRRewardExpeditionModes instanceof Persistent) {\n $this->aRRewardExpeditionModes->clearAllReferences($deep);\n }\n if ($this->aRRewardTransporters instanceof Persistent) {\n $this->aRRewardTransporters->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collOperationPrestationss instanceof PropelCollection) {\n $this->collOperationPrestationss->clearIterator();\n }\n $this->collOperationPrestationss = null;\n if ($this->collOperationScenariis instanceof PropelCollection) {\n $this->collOperationScenariis->clearIterator();\n }\n $this->collOperationScenariis = null;\n if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) {\n $this->collLnkOperationPrimeRCountriess->clearIterator();\n }\n $this->collLnkOperationPrimeRCountriess = null;\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n }", "protected\tfunction\tsetRelations() {}", "protected\tfunction\tsetRelations() {}", "function init()\n {\n foreach ($GLOBALS['_PX_models'] as $model=>$val) {\n if (isset($val['relate_to'])) {\n foreach ($val['relate_to'] as $related) {\n if ($this->_model == $related) {\n // The current model is related to $model\n // through one or more foreign key. We load\n // the $model to check on which fields the\n // foreign keys are set, as it is possible in\n // one model to have several foreign keys to\n // the same other model.\n if ($model != $this->_model) {\n $_m = new $model();\n $_fkeys = $_m->getForeignKeysToModel($this->_model);\n } else {\n $_fkeys = $this->getForeignKeysToModel($this->_model);\n }\n foreach ($_fkeys as $_fkey=>$_fkeyval) {\n //For each foreign key, we add the\n //get_xx_list method that can have a\n //custom name through the relate_name\n //value.\n if (isset($_fkeyval['relate_name'])) {\n $mname = $_fkeyval['relate_name'];\n } else {\n $mname = strtolower($model);\n }\n $this->_methods_list['get_'.$mname.'_list'] = array($model, $_fkey);\n }\n break;\n }\n }\n }\n if (isset($val['relate_to_many']) && \n in_array($this->_model, $val['relate_to_many'])) {\n $this->_methods_list['get_'.strtolower($model).'_list'] = $model;\n $this->_manytomany[$model] = 'manytomany';\n }\n }\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']($col);\n if ($field->type == 'foreignkey') {\n $this->_methods_get['get_'.strtolower($col)] = array($val['model'], $col);\n $this->_fk[$col] = 'foreignkey';\n }\n if ($field->type == 'manytomany') {\n $this->_methods_list['get_'.strtolower($col).'_list'] = $val['model'];\n $this->_manytomany[$val['model']] = 'manytomany';\n }\n foreach ($field->add_methods as $method) {\n $this->_methods_extra[$method[0]] = array(strtolower($col), $method[1]);\n }\n }\n }", "private function _set_relationships()\n {\n if(empty($this->_relationships))\n {\n $options = array('has_one','has_many','has_many_pivot');\n foreach($options as $option)\n {\n if(isset($this->{$option}) && !empty($this->{$option}))\n {\n foreach($this->{$option} as $key => $relation)\n {\n $foreign_model = (is_array($relation)) ? $relation[0] : $relation;\n $foreign_model_name = strtolower($foreign_model);\n $this->load->model($foreign_model_name);\n $foreign_table = $this->{$foreign_model_name}->table;\n if($option=='has_many_pivot')\n {\n $tables = array($this->table, $foreign_table);\n sort($tables);\n $pivot_table = $tables[0].'_'.$tables[1];\n $foreign_key = (is_array($relation)) ? $relation[1] : $this->{$foreign_model_name}->primary;\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n else\n {\n $foreign_key = (is_array($relation)) ? $relation[1] : singular($this->table) . '_id';\n $local_key = (is_array($relation) && isset($relation[2])) ? $relation[2] : $this->primary;\n }\n $this->_relationships[$key] = array('relation' => $option, 'relation_key' => $key, 'foreign_model' => $foreign_model_name, 'foreign_table' => $foreign_table, 'foreign_key' => $foreign_key, 'local_key' => $local_key);\n ($option == 'has_many_pivot') ? ($this->_relationships[$key]['pivot_table'] = $pivot_table) : FALSE;\n\n }\n }\n }\n }\n }", "public function setRuangs(PropelCollection $ruangs, PropelPDO $con = null)\n {\n $ruangsToDelete = $this->getRuangs(new Criteria(), $con)->diff($ruangs);\n\n $this->ruangsScheduledForDeletion = unserialize(serialize($ruangsToDelete));\n\n foreach ($ruangsToDelete as $ruangRemoved) {\n $ruangRemoved->setBangunan(null);\n }\n\n $this->collRuangs = null;\n foreach ($ruangs as $ruang) {\n $this->addRuang($ruang);\n }\n\n $this->collRuangs = $ruangs;\n $this->collRuangsPartial = false;\n\n return $this;\n }", "public function setRecogidas(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_Recogidas === null) {\n\n $this->getRecogidas();\n }\n\n $oldRelations = $this->_Recogidas;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n $pk = $newItem->getPrimaryKey();\n if (!empty($pk)) {\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_Recogidas = array();\n\n foreach ($data as $object) {\n $this->addRecogidas($object);\n }\n\n return $this;\n }", "public function buildRelations()\n {\n $this->addRelation('CiOptionsRelatedByIdOptionTipoAsociado', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_option_tipo_asociado',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdOptionNivelAsociado', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_option_nivel_asociado',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('CiUsuariosRelatedByInvitadoPor', '\\\\CiUsuarios', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':invitado_por',\n 1 => ':id_usuario',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdOpcionRole', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_opcion_role',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('HbfTurnosRelatedByIdTurno', '\\\\HbfTurnos', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_turno',\n 1 => ':id_turno',\n ),\n), null, null, null, false);\n $this->addRelation('HbfSesionesRelatedByIdSesion', '\\\\HbfSesiones', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_sesion',\n 1 => ':id_sesion',\n ),\n), null, null, null, false);\n $this->addRelation('CiOptionsRelatedByIdTipoUsuario', '\\\\CiOptions', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_tipo_usuario',\n 1 => ':id_option',\n ),\n), null, null, null, false);\n $this->addRelation('HbfClubsRelatedByIdClub', '\\\\HbfClubs', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id_club',\n 1 => ':id_club',\n ),\n), null, null, null, false);\n $this->addRelation('CiModulosRelatedByIdUserCreated', '\\\\CiModulos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiModulossRelatedByIdUserCreated', false);\n $this->addRelation('CiModulosRelatedByIdUserModified', '\\\\CiModulos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiModulossRelatedByIdUserModified', false);\n $this->addRelation('CiOptionsRelatedByIdUserCreated', '\\\\CiOptions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiOptionssRelatedByIdUserCreated', false);\n $this->addRelation('CiOptionsRelatedByIdUserModified', '\\\\CiOptions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiOptionssRelatedByIdUserModified', false);\n $this->addRelation('CiSessions', '\\\\CiSessions', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_usuario',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSessionss', false);\n $this->addRelation('CiSettingsRelatedByIdUserCreated', '\\\\CiSettings', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSettingssRelatedByIdUserCreated', false);\n $this->addRelation('CiSettingsRelatedByIdUserModified', '\\\\CiSettings', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiSettingssRelatedByIdUserModified', false);\n $this->addRelation('CiUsuariosRelatedByIdUsuario', '\\\\CiUsuarios', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':invitado_por',\n 1 => ':id_usuario',\n ),\n), null, null, 'CiUsuariossRelatedByIdUsuario', false);\n $this->addRelation('HbfClubsRelatedByIdUserCreated', '\\\\HbfClubs', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfClubssRelatedByIdUserCreated', false);\n $this->addRelation('HbfClubsRelatedByIdUserModified', '\\\\HbfClubs', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfClubssRelatedByIdUserModified', false);\n $this->addRelation('HbfComandasRelatedByIdUserCreated', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdUserCreated', false);\n $this->addRelation('HbfComandasRelatedByIdUserModified', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdUserModified', false);\n $this->addRelation('HbfComandasRelatedByIdCliente', '\\\\HbfComandas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfComandassRelatedByIdCliente', false);\n $this->addRelation('HbfDetallesPedidosRelatedByIdUserCreated', '\\\\HbfDetallesPedidos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfDetallesPedidossRelatedByIdUserCreated', false);\n $this->addRelation('HbfDetallesPedidosRelatedByIdUserModified', '\\\\HbfDetallesPedidos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfDetallesPedidossRelatedByIdUserModified', false);\n $this->addRelation('HbfEgresosRelatedByIdUserCreated', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdUserCreated', false);\n $this->addRelation('HbfEgresosRelatedByIdUserModified', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdUserModified', false);\n $this->addRelation('HbfEgresosRelatedByIdCliente', '\\\\HbfEgresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfEgresossRelatedByIdCliente', false);\n $this->addRelation('HbfIngresosRelatedByIdUserCreated', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdUserCreated', false);\n $this->addRelation('HbfIngresosRelatedByIdUserModified', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdUserModified', false);\n $this->addRelation('HbfIngresosRelatedByIdCliente', '\\\\HbfIngresos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfIngresossRelatedByIdCliente', false);\n $this->addRelation('HbfPorcionesRelatedByIdUserCreated', '\\\\HbfPorciones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPorcionessRelatedByIdUserCreated', false);\n $this->addRelation('HbfPorcionesRelatedByIdUserModified', '\\\\HbfPorciones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPorcionessRelatedByIdUserModified', false);\n $this->addRelation('HbfPrepagosRelatedByIdCliente', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdCliente', false);\n $this->addRelation('HbfPrepagosRelatedByIdUserCreated', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdUserCreated', false);\n $this->addRelation('HbfPrepagosRelatedByIdUserModified', '\\\\HbfPrepagos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfPrepagossRelatedByIdUserModified', false);\n $this->addRelation('HbfProductosRelatedByIdUserCreated', '\\\\HbfProductos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfProductossRelatedByIdUserCreated', false);\n $this->addRelation('HbfProductosRelatedByIdUserModified', '\\\\HbfProductos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfProductossRelatedByIdUserModified', false);\n $this->addRelation('HbfSesionesRelatedByIdUserCreated', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdUserCreated', false);\n $this->addRelation('HbfSesionesRelatedByIdUserModified', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdUserModified', false);\n $this->addRelation('HbfSesionesRelatedByIdAsociado', '\\\\HbfSesiones', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_asociado',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfSesionessRelatedByIdAsociado', false);\n $this->addRelation('HbfTurnosRelatedByIdUserCreated', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdUserCreated', false);\n $this->addRelation('HbfTurnosRelatedByIdUserModified', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdUserModified', false);\n $this->addRelation('HbfTurnosRelatedByIdAsociado', '\\\\HbfTurnos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_asociado',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfTurnossRelatedByIdAsociado', false);\n $this->addRelation('HbfVasosRelatedByIdUserModified', '\\\\HbfVasos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), 'CASCADE', 'CASCADE', 'HbfVasossRelatedByIdUserModified', false);\n $this->addRelation('HbfVasosRelatedByIdUserCreated', '\\\\HbfVasos', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), 'CASCADE', 'CASCADE', 'HbfVasossRelatedByIdUserCreated', false);\n $this->addRelation('HbfVentasRelatedByIdUserCreated', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_created',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdUserCreated', false);\n $this->addRelation('HbfVentasRelatedByIdUserModified', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_user_modified',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdUserModified', false);\n $this->addRelation('HbfVentasRelatedByIdCliente', '\\\\HbfVentas', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':id_cliente',\n 1 => ':id_usuario',\n ),\n), null, null, 'HbfVentassRelatedByIdCliente', false);\n }", "public function buildRelations()\n {\n $this->addRelation('Evaluacion', '\\\\Evaluacion', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_evaluacion',\n 1 => ':eval_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Objetivo', '\\\\Objetivo', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_objetivo',\n 1 => ':obje_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Pregunta', '\\\\Pregunta', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_pregunta',\n 1 => ':preg_codigo',\n ),\n), null, 'CASCADE', null, false);\n $this->addRelation('Seccion', '\\\\Seccion', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':evpr_c_seccion',\n 1 => ':secc_codigo',\n ),\n), null, 'CASCADE', null, false);\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "protected function addActionsForRelatedEntities()\n {\n if (! $this->mapper) {\n return;\n }\n\n foreach ($this->mapper->getRelations() as $name) {\n $this->mapper->getRelation($name)->addActions($this);\n }\n }", "public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n\n foreach ($operationScenariisToDelete as $operationScenariiRemoved) {\n $operationScenariiRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationScenariis = null;\n foreach ($operationScenariis as $operationScenarii) {\n $this->addOperationScenarii($operationScenarii);\n }\n\n $this->collOperationScenariis = $operationScenariis;\n $this->collOperationScenariisPartial = false;\n\n return $this;\n }", "public function reload($deep = false, PropelPDO $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"Cannot reload a deleted object.\");\n }\n\n if ($this->isNew()) {\n throw new PropelException(\"Cannot reload an unsaved object.\");\n }\n\n if ($con === null) {\n $con = Propel::getConnection(OperationPrimesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n // We don't need to alter the object instance pool; we're just modifying this instance\n // already in the pool.\n\n $stmt = OperationPrimesPeer::doSelectStmt($this->buildPkeyCriteria(), $con);\n $row = $stmt->fetch(PDO::FETCH_NUM);\n $stmt->closeCursor();\n if (!$row) {\n throw new PropelException('Cannot find matching row in the database to reload object values.');\n }\n $this->hydrate($row, 0, true); // rehydrate\n\n if ($deep) { // also de-associate any related objects?\n\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n $this->collOperationPrestationss = null;\n\n $this->collOperationScenariis = null;\n\n $this->collLnkOperationPrimeRCountriess = null;\n\n } // if (deep)\n }", "public function buildRelations()\n\t{\n $this->addRelation('Tbnecesespecial', 'Tbnecesespecial', RelationMap::MANY_TO_ONE, array('id_neces_especial' => 'id_neces_especial', ), null, null);\n $this->addRelation('Tbcidade', 'Tbcidade', RelationMap::MANY_TO_ONE, array('naturalidade' => 'id_cidade', ), null, null);\n $this->addRelation('Tbpais', 'Tbpais', RelationMap::MANY_TO_ONE, array('nacionalidade' => 'id_pais', ), null, null);\n $this->addRelation('TblogradouroRelatedByCep', 'Tblogradouro', RelationMap::MANY_TO_ONE, array('cep' => 'cep', ), null, null);\n $this->addRelation('Tbcursoversao', 'Tbcursoversao', RelationMap::MANY_TO_ONE, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbtipoingresso', 'Tbtipoingresso', RelationMap::MANY_TO_ONE, array('id_tipo_ingresso' => 'id_tipo_ingresso', ), null, null);\n $this->addRelation('Tbalunosituacao', 'Tbalunosituacao', RelationMap::MANY_TO_ONE, array('id_situacao' => 'id_situacao', ), null, null);\n $this->addRelation('TbinstexternaRelatedByIdDestino', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_destino' => 'id_inst_externa', ), null, null);\n $this->addRelation('TbinstexternaRelatedById2grau', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_2grau' => 'id_inst_externa', ), null, null);\n $this->addRelation('TbinstexternaRelatedById3grau', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_3grau' => 'id_inst_externa', ), null, null);\n $this->addRelation('TbinstexternaRelatedByIdTrabalho', 'Tbinstexterna', RelationMap::MANY_TO_ONE, array('id_trabalho' => 'id_inst_externa', ), null, null);\n $this->addRelation('TblogradouroRelatedByCepTrabalho', 'Tblogradouro', RelationMap::MANY_TO_ONE, array('cep_trabalho' => 'cep', ), null, null);\n $this->addRelation('Tbpolos', 'Tbpolos', RelationMap::MANY_TO_ONE, array('id_polo' => 'id_polo', ), null, null);\n $this->addRelation('Tbalunoracacor', 'Tbalunoracacor', RelationMap::MANY_TO_ONE, array('id_raca' => 'id_raca', ), null, null);\n $this->addRelation('Tbpendencia', 'Tbpendencia', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbalunodiploma', 'Tbalunodiploma', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbalunosenha', 'Tbalunosenha', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbalunosolicitacao', 'Tbalunosolicitacao', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbbanca', 'Tbbanca', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbfila', 'Tbfila', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('Tbhistorico', 'Tbhistorico', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n $this->addRelation('TbturmaAluno', 'TbturmaAluno', RelationMap::ONE_TO_MANY, array('matricula' => 'matricula', ), null, null);\n\t}", "public function setCriteriaCollection(CriteriaCollection $collection);", "public function setRIssuesAllplugins(Collection $rIssuesAllplugins, ConnectionInterface $con = null)\n {\n /** @var ChildRIssuesAllplugin[] $rIssuesAllpluginsToDelete */\n $rIssuesAllpluginsToDelete = $this->getRIssuesAllplugins(new Criteria(), $con)->diff($rIssuesAllplugins);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->rIssuesAllpluginsScheduledForDeletion = clone $rIssuesAllpluginsToDelete;\n\n foreach ($rIssuesAllpluginsToDelete as $rIssuesAllpluginRemoved) {\n $rIssuesAllpluginRemoved->setAllIssue(null);\n }\n\n $this->collRIssuesAllplugins = null;\n foreach ($rIssuesAllplugins as $rIssuesAllplugin) {\n $this->addRIssuesAllplugin($rIssuesAllplugin);\n }\n\n $this->collRIssuesAllplugins = $rIssuesAllplugins;\n $this->collRIssuesAllpluginsPartial = false;\n\n return $this;\n }", "public function buildRelations()\n {\n $this->addRelation('Attendance', '\\\\lwops\\\\lwops\\\\Attendance', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Attendances', false);\n $this->addRelation('Casualemployeepayslip', '\\\\lwops\\\\lwops\\\\Casualemployeepayslip', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Casualemployeepayslips', false);\n $this->addRelation('Employeeloan', '\\\\lwops\\\\lwops\\\\Employeeloan', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeloans', false);\n $this->addRelation('Employeeotherdeduction', '\\\\lwops\\\\lwops\\\\Employeeotherdeduction', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeotherdeductions', false);\n $this->addRelation('Employeepurchases', '\\\\lwops\\\\lwops\\\\Employeepurchases', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeepurchasess', false);\n $this->addRelation('Employeerole', '\\\\lwops\\\\lwops\\\\Employeerole', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeroles', false);\n $this->addRelation('Employeesalaryexpenseallocation', '\\\\lwops\\\\lwops\\\\Employeesalaryexpenseallocation', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeesalaryexpenseallocations', false);\n $this->addRelation('Employeetermination', '\\\\lwops\\\\lwops\\\\Employeetermination', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Employeeterminations', false);\n $this->addRelation('Fteemployeepayslip', '\\\\lwops\\\\lwops\\\\Fteemployeepayslip', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Fteemployeepayslips', false);\n $this->addRelation('Ftesalaryadvance', '\\\\lwops\\\\lwops\\\\Ftesalaryadvance', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Ftesalaryadvances', false);\n $this->addRelation('Medicaldeduction', '\\\\lwops\\\\lwops\\\\Medicaldeduction', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Medicaldeductions', false);\n $this->addRelation('Nssfdeduction', '\\\\lwops\\\\lwops\\\\Nssfdeduction', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Nssfdeductions', false);\n $this->addRelation('Parttimedetail', '\\\\lwops\\\\lwops\\\\Parttimedetail', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Parttimedetails', false);\n $this->addRelation('Salary', '\\\\lwops\\\\lwops\\\\Salary', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':employeeOid',\n 1 => ':oid',\n ),\n), null, null, 'Salaries', false);\n }", "public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao) {\n\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioAlteracao as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro) {\n\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioCadastro as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRlUsuarioOrgaos) {\n\t\t\t\tforeach ($this->collRlUsuarioOrgaos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collTbDescricaoChamados) {\n\t\t\t\tforeach ($this->collTbDescricaoChamados as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUsuarioCategorias) {\n\t\t\t\tforeach ($this->collUsuarioCategorias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUsuarioTarefas) {\n\t\t\t\tforeach ($this->collUsuarioTarefas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao instanceof PropelCollection) {\n\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao->clearIterator();\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = null;\n\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro instanceof PropelCollection) {\n\t\t\t$this->collPermissaosRelatedByCoUsuarioCadastro->clearIterator();\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = null;\n\t\tif ($this->collRlUsuarioOrgaos instanceof PropelCollection) {\n\t\t\t$this->collRlUsuarioOrgaos->clearIterator();\n\t\t}\n\t\t$this->collRlUsuarioOrgaos = null;\n\t\tif ($this->collTbDescricaoChamados instanceof PropelCollection) {\n\t\t\t$this->collTbDescricaoChamados->clearIterator();\n\t\t}\n\t\t$this->collTbDescricaoChamados = null;\n\t\tif ($this->collUsuarioCategorias instanceof PropelCollection) {\n\t\t\t$this->collUsuarioCategorias->clearIterator();\n\t\t}\n\t\t$this->collUsuarioCategorias = null;\n\t\tif ($this->collUsuarioTarefas instanceof PropelCollection) {\n\t\t\t$this->collUsuarioTarefas->clearIterator();\n\t\t}\n\t\t$this->collUsuarioTarefas = null;\n\t\t$this->aPerfil = null;\n\t}", "public function initPermissaosRelatedByCoUsuarioAlteracao($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPermissaosRelatedByCoUsuarioAlteracao && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = new PropelObjectCollection();\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao->setModel('Permissao');\n\t}", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "protected function buildRelations()\n {\n if ($this->relations_built) {\n return;\n }\n $this_class = $this->base_class;\n\n foreach ($this_class::$relations as $field => $options) {\n $object = null;\n\n $target_class = $options['rel_class'];\n\n // Segun el lugar de la llave foránea, creamos el objeto\n if ($options['fk_location'] == self::FK_THIS) {\n // Si existe la llave foranea, y tiene un valor\n if (isset($this->fields[$options['foreing_key']])) {\n if ($options['rel_type'] == 'one') {\n $object = $target_class::get(\n $this->fields[$options['foreing_key']]\n );\n } else {\n throw new \\LogicException (\"UNIMPLEMENTED FK_THIS with 'many'\");\n }\n } else {\n // No existe la llave. Creamos objetos vacíos\n if ($options['rel_type'] == 'one') {\n $object = new $target_class;\n } else {\n throw new \\LogicException (\"UNIMPLEMENTED FK_THIS with 'many'\");\n }\n }\n } else {\n // La llave foránea está en el target_class\n if ($options['rel_type'] == 'one') {\n $object = $target_class::get([\n $options['foreing_key'] => $this->fields[$options['primary_key']]\n ]);\n } else {\n $object = new RecordSet($target_class, \n [$options['foreing_key'] => $this->fields[$options['primary_key']]]);\n }\n\n\n }\n //var_dump($object); exit;\n\n\n $this->object_fields[$field] = $object;\n }\n }", "public static function clearRelatedInstancePool()\n\t{\n\t\t// invalidate objects in TbturmaProfessorPeer instance pool, since one or more of them may be deleted by ON DELETE CASCADE rule.\n\t\tTbturmaProfessorPeer::clearInstancePool();\n\n\t}", "public function setRelations(Notification $notification, Collection $entities)\n {\n $entities->each(function ($entity) use ($notification) {\n $entity->notifications()->attach($notification->id);\n });\n }", "public function setOneToManyRelations($scope, $oneId, array $manyIds)\n {\n\n $relation = strtolower($scope);\n $relation_singular = substr($relation, 0, -1);\n\n $one = $this->getRequestedObject($oneId, [\n 'includes' => [$relation]\n ]);\n\n\n $currentManys = $one->{$relation}->pluck($relation_singular . '_uuid')->toArray();\n $manys = $this->checkValidityOfOneToManyRelations($scope, $manyIds);\n\n $remove = array_diff($currentManys, $manyIds);\n $add = array_diff($manyIds, $currentManys);\n\n $remove = $this->mapNamesToIds($scope, $remove);\n $add = $this->mapNamesToIds($scope, $add);\n\n\n // ~ $this->userRepository->setGroups($user, $add, $remove);\n $this->{$this->scope . 'Repository'}->{'set' . $scope}($one, $add, $remove);\n\n $one->setRelation($relation, new Collection($manys));\n\n return $one;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collMonths) {\n foreach ($this->collMonths as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFileCats) {\n foreach ($this->collFileCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collDocCats) {\n foreach ($this->collDocCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBookks) {\n foreach ($this->collBookks as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAccounts) {\n foreach ($this->collAccounts as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collReports) {\n foreach ($this->collReports as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collProjects) {\n foreach ($this->collProjects as $o) {\n $o->clearAllReferences($deep);\n }\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collMonths instanceof PropelCollection) {\n $this->collMonths->clearIterator();\n }\n $this->collMonths = null;\n if ($this->collFileCats instanceof PropelCollection) {\n $this->collFileCats->clearIterator();\n }\n $this->collFileCats = null;\n if ($this->collDocCats instanceof PropelCollection) {\n $this->collDocCats->clearIterator();\n }\n $this->collDocCats = null;\n if ($this->collBookks instanceof PropelCollection) {\n $this->collBookks->clearIterator();\n }\n $this->collBookks = null;\n if ($this->collAccounts instanceof PropelCollection) {\n $this->collAccounts->clearIterator();\n }\n $this->collAccounts = null;\n if ($this->collReports instanceof PropelCollection) {\n $this->collReports->clearIterator();\n }\n $this->collReports = null;\n if ($this->collProjects instanceof PropelCollection) {\n $this->collProjects->clearIterator();\n }\n $this->collProjects = null;\n }", "public function setKanpainaRelKategoria(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_KanpainaRelKategoria === null) {\n\n $this->getKanpainaRelKategoria();\n }\n\n $oldRelations = $this->_KanpainaRelKategoria;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n $pk = $newItem->getPrimaryKey();\n if (!empty($pk)) {\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_KanpainaRelKategoria = array();\n\n foreach ($data as $object) {\n $this->addKanpainaRelKategoria($object);\n }\n\n return $this;\n }", "private function prepRelations() : self\n {\n\n // Lvd.\n $maxRId = 0;\n $relationships = [];\n\n // Add Sheets.\n foreach ($this->xlsx->getBook()->getSheets() as $sheet) {\n\n $relationships[] = [\n '@Id' => 'rId' . $sheet->getId(),\n '@Type' => $this->types['sheet'],\n '@Target' => 'worksheets/sheet' . $sheet->getId() . '.xml',\n ];\n\n // Count max ID.\n $maxRId = max($maxRId, $sheet->getId());\n }\n\n // Add the rest of relationships.\n $relationships[] = [\n '@Id' => 'rId' . ( ++$maxRId ),\n '@Type' => $this->types['styles'],\n '@Target' => 'styles.xml',\n ];\n $relationships[] = [\n '@Id' => 'rId' . ( ++$maxRId ),\n '@Type' => $this->types['theme'],\n '@Target' => 'theme/theme1.xml',\n ];\n $relationships[] = [\n '@Id' => 'rId' . ( ++$maxRId ),\n '@Type' => $this->types['sharedStrings'],\n '@Target' => 'sharedStrings.xml',\n ];\n\n // Save.\n $this->array['Relationships']['@@']['Relationship'] = $relationships;\n\n return $this;\n }", "public function buildRelations()\n {\n $this->addRelation('Country', 'Slashworks\\\\AppBundle\\\\Model\\\\Country', RelationMap::MANY_TO_ONE, array('country_id' => 'id', ), null, 'CASCADE');\n $this->addRelation('RemoteApp', 'Slashworks\\\\AppBundle\\\\Model\\\\RemoteApp', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'SET NULL', 'CASCADE', 'RemoteApps');\n $this->addRelation('UserCustomerRelation', 'Slashworks\\\\AppBundle\\\\Model\\\\UserCustomerRelation', RelationMap::ONE_TO_MANY, array('id' => 'customer_id', ), 'CASCADE', 'CASCADE', 'UserCustomerRelations');\n }", "public function setNoticias(PropelCollection $noticias, PropelPDO $con = null)\n\t{\n\t\t$this->noticiasScheduledForDeletion = $this->getNoticias(new Criteria(), $con)->diff($noticias);\n\n\t\tforeach ($noticias as $noticia) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($noticia->isNew()) {\n\t\t\t\t$noticia->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addNoticia($noticia);\n\t\t}\n\n\t\t$this->collNoticias = $noticias;\n\t}", "public function setCOMConditions(Collection $cOMConditions, ConnectionInterface $con = null)\n {\n /** @var ChildCOMCondition[] $cOMConditionsToDelete */\n $cOMConditionsToDelete = $this->getCOMConditions(new Criteria(), $con)->diff($cOMConditions);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cOMConditionsScheduledForDeletion = clone $cOMConditionsToDelete;\n\n foreach ($cOMConditionsToDelete as $cOMConditionRemoved) {\n $cOMConditionRemoved->setCommande(null);\n }\n\n $this->collCOMConditions = null;\n foreach ($cOMConditions as $cOMCondition) {\n $this->addCOMCondition($cOMCondition);\n }\n\n $this->collCOMConditions = $cOMConditions;\n $this->collCOMConditionsPartial = false;\n\n return $this;\n }", "public function setIncidencias(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_Incidencias === null) {\n\n $this->getIncidencias();\n }\n\n $oldRelations = $this->_Incidencias;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n if (is_numeric($pk = $newItem->getPrimaryKey())) {\n\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_Incidencias = array();\n\n foreach ($data as $object) {\n $this->addIncidencias($object);\n }\n\n return $this;\n }", "public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPrestationssToDelete;\n\n foreach ($operationPrestationssToDelete as $operationPrestationsRemoved) {\n $operationPrestationsRemoved->setOperationPrimes(null);\n }\n\n $this->collOperationPrestationss = null;\n foreach ($operationPrestationss as $operationPrestations) {\n $this->addOperationPrestations($operationPrestations);\n }\n\n $this->collOperationPrestationss = $operationPrestationss;\n $this->collOperationPrestationssPartial = false;\n\n return $this;\n }", "public function setIncidencias(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_Incidencias === null) {\n\n $this->getIncidencias();\n }\n\n $oldRelations = $this->_Incidencias;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n $pk = $newItem->getPrimaryKey();\n if (!empty($pk)) {\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_Incidencias = array();\n\n foreach ($data as $object) {\n $this->addIncidencias($object);\n }\n\n return $this;\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n HbfVasosTableMap::clearInstancePool();\n }", "public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }", "public function buildRelations()\n\t{\n $this->addRelation('Tbformacao', 'Tbformacao', RelationMap::MANY_TO_ONE, array('id_formacao' => 'id_formacao', ), null, null);\n $this->addRelation('Tbcurso', 'Tbcurso', RelationMap::MANY_TO_ONE, array('cod_curso' => 'cod_curso', ), null, null);\n $this->addRelation('Tbturno', 'Tbturno', RelationMap::MANY_TO_ONE, array('id_turno' => 'id_turno', ), null, null);\n $this->addRelation('Tbcampus', 'Tbcampus', RelationMap::MANY_TO_ONE, array('id_campus' => 'id_campus', ), null, null);\n $this->addRelation('Tbsetor', 'Tbsetor', RelationMap::MANY_TO_ONE, array('id_setor' => 'id_setor', ), null, null);\n $this->addRelation('Tbalunomatricula', 'Tbalunomatricula', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbalunobackup', 'Tbalunobackup', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbfilacalouros', 'Tbfilacalouros', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbvagas', 'Tbvagas', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbloadaluno', 'Tbloadaluno', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbaluno', 'Tbaluno', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbcurriculodisciplinas', 'Tbcurriculodisciplinas', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbdisciplinarequisitos', 'Tbdisciplinarequisitos', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbdisciplinacorequisitos', 'Tbdisciplinacorequisitos', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n $this->addRelation('Tbcoordenadorcurso', 'Tbcoordenadorcurso', RelationMap::ONE_TO_MANY, array('id_versao_curso' => 'id_versao_curso', ), null, null);\n\t}", "public function setCMDTAppareils(Collection $cMDTAppareils, ConnectionInterface $con = null)\n {\n /** @var ChildCMDTAppareil[] $cMDTAppareilsToDelete */\n $cMDTAppareilsToDelete = $this->getCMDTAppareils(new Criteria(), $con)->diff($cMDTAppareils);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->cMDTAppareilsScheduledForDeletion = clone $cMDTAppareilsToDelete;\n\n foreach ($cMDTAppareilsToDelete as $cMDTAppareilRemoved) {\n $cMDTAppareilRemoved->setCommande(null);\n }\n\n $this->collCMDTAppareils = null;\n foreach ($cMDTAppareils as $cMDTAppareil) {\n $this->addCMDTAppareil($cMDTAppareil);\n }\n\n $this->collCMDTAppareils = $cMDTAppareils;\n $this->collCMDTAppareilsPartial = false;\n\n return $this;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collEtablissementEvents) {\n foreach ($this->collEtablissementEvents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRegionEvents) {\n foreach ($this->collRegionEvents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collEventI18ns) {\n foreach ($this->collEventI18ns as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collEtablissements) {\n foreach ($this->collEtablissements as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRegions) {\n foreach ($this->collRegions as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n // i18n behavior\n $this->currentLocale = 'fr';\n $this->currentTranslations = null;\n\n if ($this->collEtablissementEvents instanceof PropelCollection) {\n $this->collEtablissementEvents->clearIterator();\n }\n $this->collEtablissementEvents = null;\n if ($this->collRegionEvents instanceof PropelCollection) {\n $this->collRegionEvents->clearIterator();\n }\n $this->collRegionEvents = null;\n if ($this->collEventI18ns instanceof PropelCollection) {\n $this->collEventI18ns->clearIterator();\n }\n $this->collEventI18ns = null;\n if ($this->collEtablissements instanceof PropelCollection) {\n $this->collEtablissements->clearIterator();\n }\n $this->collEtablissements = null;\n if ($this->collRegions instanceof PropelCollection) {\n $this->collRegions->clearIterator();\n }\n $this->collRegions = null;\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n SkillTableMap::clearInstancePool();\n }", "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "public function initPermissaosRelatedByCoUsuarioCadastro($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPermissaosRelatedByCoUsuarioCadastro && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = new PropelObjectCollection();\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro->setModel('Permissao');\n\t}", "public function loadAllVilles()\n {\n /** vous pouvez écrire les requêtes pour les différents managers de DB, ou bien vous focaliser sur celui de votre choix */\n if (DB_MANAGER == PDO) // version PDO\n {\n $req = $this->getDatabase()->prepare(\"SELECT * FROM villes_france \");\n $req->execute();\n $villes = $req->fetchAll(PDO::FETCH_ASSOC);\n $req->closeCursor();\n } else if (DB_MANAGER == MEDOO) // version MEDOO\n {\n $villes = $this->getDatabase()->select(\"villes_france\", \"*\");\n }\n\n // on a récupéré tous les utilisateurs, on les ajoute au manager de villes\n foreach ($villes as $ville) {\n $new_ville = new Ville(\n $ville['id'],\n $ville['departement'],\n $ville['nom'],\n $ville['code_postal'],\n $ville['canton'],\n $ville['population'],\n $ville['densite'],\n $ville['surface']\n );\n $this->addVille($new_ville);\n }\n }", "public function setAllPlugins(Collection $allPlugins, ConnectionInterface $con = null)\n {\n $this->clearAllPlugins();\n $currentAllPlugins = $this->getAllPlugins();\n\n $allPluginsScheduledForDeletion = $currentAllPlugins->diff($allPlugins);\n\n foreach ($allPluginsScheduledForDeletion as $toDelete) {\n $this->removeAllPlugin($toDelete);\n }\n\n foreach ($allPlugins as $allPlugin) {\n if (!$currentAllPlugins->contains($allPlugin)) {\n $this->doAddAllPlugin($allPlugin);\n }\n }\n\n $this->collAllPluginsPartial = false;\n $this->collAllPlugins = $allPlugins;\n\n return $this;\n }", "protected function saveRelations()\n {\n $spotIdsToRemove = $relationsToAdd = [\n 'photos' => [],\n 'tags' => [],\n 'amenities' => [],\n 'locations' => []\n ];\n // Preparing spots remote photos for insert\n if($this->photos != [])\n {\n foreach($this->photos as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['associated_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['associated_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['photos'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['associated_id']))\n {\n $relationsToAdd['photos'][] = $item;\n }\n }\n }\n }\n // Preparing spots amenities for insert\n if($this->amenities != [])\n {\n foreach($this->amenities as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['amenities'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['amenities'][] = $item;\n }\n }\n }\n }\n // Preparing spots tags for insert\n if($this->tags != [])\n {\n foreach($this->tags as $remote_id => $items)\n {\n foreach($items as $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['tags'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['tags'][] = $item;\n }\n }\n }\n }\n // Preparing spots points for insert\n if($this->locations != [])\n {\n foreach($this->locations as $remote_id => $item)\n {\n if(isset($this->insertedIds[$remote_id]))\n {\n $item['spot_id'] = $this->insertedIds[$remote_id];\n }\n if(isset($this->existingIds[$remote_id]))\n {\n $item['spot_id'] = $this->existingIds[$remote_id];\n $spotIdsToRemove['locations'][] = $this->existingIds[$remote_id];\n }\n if(isset($item['spot_id']))\n {\n $relationsToAdd['locations'][] = $item;\n }\n }\n }\n // Database transaction to remove all old relations of existing spots and add new relations for inserted and updated spots\n DB::transaction(function() use ($spotIdsToRemove, $relationsToAdd) {\n if($spotIdsToRemove['photos'] != [])\n {\n DB::table('remote_photos')->whereIn('associated_id', $spotIdsToRemove['photos'])->where('associated_type', Spot::class)->delete();\n }\n if($spotIdsToRemove['amenities'] != [])\n {\n DB::table('spot_amenities')->whereIn('spot_id', $spotIdsToRemove['amenities'])->delete();\n }\n if($spotIdsToRemove['tags'] != [])\n {\n DB::table('spot_tag')->whereIn('spot_id', $spotIdsToRemove['tags'])->delete();\n }\n if($spotIdsToRemove['locations'] != [])\n {\n DB::table('spot_points')->whereIn('spot_id', $spotIdsToRemove['locations'])->delete();\n }\n if($relationsToAdd['photos'] != [])\n {\n DB::table('remote_photos')->insert($relationsToAdd['photos']);\n }\n if($relationsToAdd['amenities'] != [])\n {\n DB::table('spot_amenities')->insert($relationsToAdd['amenities']);\n }\n if($relationsToAdd['tags'] != [])\n {\n DB::table('spot_tag')->insert($relationsToAdd['tags']);\n }\n if($relationsToAdd['locations'] != [])\n {\n DB::table('spot_points')->insert($relationsToAdd['locations']);\n }\n });\n }", "public function setFeatureCvtermprops(PropelCollection $featureCvtermprops, PropelPDO $con = null)\n {\n $featureCvtermpropsToDelete = $this->getFeatureCvtermprops(new Criteria(), $con)->diff($featureCvtermprops);\n\n $this->featureCvtermpropsScheduledForDeletion = unserialize(serialize($featureCvtermpropsToDelete));\n\n foreach ($featureCvtermpropsToDelete as $featureCvtermpropRemoved) {\n $featureCvtermpropRemoved->setFeatureCvterm(null);\n }\n\n $this->collFeatureCvtermprops = null;\n foreach ($featureCvtermprops as $featureCvtermprop) {\n $this->addFeatureCvtermprop($featureCvtermprop);\n }\n\n $this->collFeatureCvtermprops = $featureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n\n return $this;\n }", "private static function relations()\n {\n $files = ['OneToOne', 'OneToMany', 'ManyToMany', 'BelongsTo'];\n $folder = static::$root.'MVC/Relations'.'/';\n\n self::call($files, $folder);\n\n $files = ['ManyRelationException', 'ModelNotFindedException'];\n $folder = static::$root.'MVC/Relations/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function setRIssuesXmlplugins(Collection $rIssuesXmlplugins, ConnectionInterface $con = null)\n {\n /** @var ChildRIssuesXmlplugin[] $rIssuesXmlpluginsToDelete */\n $rIssuesXmlpluginsToDelete = $this->getRIssuesXmlplugins(new Criteria(), $con)->diff($rIssuesXmlplugins);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->rIssuesXmlpluginsScheduledForDeletion = clone $rIssuesXmlpluginsToDelete;\n\n foreach ($rIssuesXmlpluginsToDelete as $rIssuesXmlpluginRemoved) {\n $rIssuesXmlpluginRemoved->setXmlIssue(null);\n }\n\n $this->collRIssuesXmlplugins = null;\n foreach ($rIssuesXmlplugins as $rIssuesXmlplugin) {\n $this->addRIssuesXmlplugin($rIssuesXmlplugin);\n }\n\n $this->collRIssuesXmlplugins = $rIssuesXmlplugins;\n $this->collRIssuesXmlpluginsPartial = false;\n\n return $this;\n }", "private function desabilitaPoolIdsObjetosManipulados()\n {\n \t// setando para null o atributo _arrayObjetosManipulados\n \t$this->_arrayObjetosManipulados = null;\n }", "protected function hydratePivotRelation(array $models)\n {\n foreach ( $models as $model ) {\n $pivot = $this->newExistingPivot ( $this->cleanPivotAttributes ( $model ) );\n $model->setRelation ( 'pivot', $pivot );\n }\n }", "public function buildRelations()\n\t{\n\t\t$this->addRelation('User', 'User', RelationMap::MANY_TO_ONE, array('user_id' => 'id', ), 'CASCADE', null);\n\t\t$this->addRelation('OOBookingType', 'OOBookingType', RelationMap::MANY_TO_ONE, array('oobookingtype_id' => 'id', ), null, null);\n\t\t$this->addRelation('OOEntry', 'OOEntry', RelationMap::ONE_TO_MANY, array('id' => 'oobooking_id', ), 'CASCADE', null, 'OOEntrys');\n\t\t$this->addRelation('OORequest', 'OORequest', RelationMap::ONE_TO_ONE, array('id' => 'id', ), 'CASCADE', null);\n\t}", "public function buildRelations()\n {\n $this->addRelation('RemoteApp', 'Slashworks\\\\AppBundle\\\\Model\\\\RemoteApp', RelationMap::MANY_TO_ONE, array('remote_app_id' => 'id', ), 'CASCADE', 'CASCADE');\n }", "public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->aRuang instanceof Persistent) {\n $this->aRuang->clearAllReferences($deep);\n }\n if ($this->aSekolahLongitudinal instanceof Persistent) {\n $this->aSekolahLongitudinal->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe01 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe01->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe02 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe02->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe03 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe03->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe04 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe04->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe05 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe05->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe06 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe06->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe07 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe07->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe08 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe08->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe09 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe09->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe10 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe10->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe11 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe11->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe12 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe12->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe13 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe13->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe14 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe14->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe15 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe15->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe16 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe16->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe17 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe17->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe18 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe18->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe19 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe19->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe20 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe20->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n $this->aRuang = null;\n $this->aSekolahLongitudinal = null;\n $this->aPembelajaranRelatedByBelKe01 = null;\n $this->aPembelajaranRelatedByBelKe02 = null;\n $this->aPembelajaranRelatedByBelKe03 = null;\n $this->aPembelajaranRelatedByBelKe04 = null;\n $this->aPembelajaranRelatedByBelKe05 = null;\n $this->aPembelajaranRelatedByBelKe06 = null;\n $this->aPembelajaranRelatedByBelKe07 = null;\n $this->aPembelajaranRelatedByBelKe08 = null;\n $this->aPembelajaranRelatedByBelKe09 = null;\n $this->aPembelajaranRelatedByBelKe10 = null;\n $this->aPembelajaranRelatedByBelKe11 = null;\n $this->aPembelajaranRelatedByBelKe12 = null;\n $this->aPembelajaranRelatedByBelKe13 = null;\n $this->aPembelajaranRelatedByBelKe14 = null;\n $this->aPembelajaranRelatedByBelKe15 = null;\n $this->aPembelajaranRelatedByBelKe16 = null;\n $this->aPembelajaranRelatedByBelKe17 = null;\n $this->aPembelajaranRelatedByBelKe18 = null;\n $this->aPembelajaranRelatedByBelKe19 = null;\n $this->aPembelajaranRelatedByBelKe20 = null;\n }", "public function setEdukiaRelKanpaina(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_EdukiaRelKanpaina === null) {\n\n $this->getEdukiaRelKanpaina();\n }\n\n $oldRelations = $this->_EdukiaRelKanpaina;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n $pk = $newItem->getPrimaryKey();\n if (!empty($pk)) {\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_EdukiaRelKanpaina = array();\n\n foreach ($data as $object) {\n $this->addEdukiaRelKanpaina($object);\n }\n\n return $this;\n }", "public function loadResources(): void {\n\t\t$sql = \"SELECT * FROM `npc_resource` WHERE `id_npc` = ?\";\n\t\t$this->db->query($sql, [$this->get('id')]);\n\t\t$resources = [];\n\t\twhile ($res = $this->db->next()) {\n\t\t\t$npc_resource = new NPCResource();\n\t\t\t$npc_resource->update($res);\n\t\t\t$npc_resource->loadResource($this->get('margin'));\n\n\t\t\tarray_push($resources, $npc_resource);\n\t\t}\n\t\t$this->setResources($resources);\n\t}", "protected function importPartRelationships()\n {\n $this->updateStatus('Importing Rebrickable Part Relationships into Database...');\n\n $processed = $this->processed;\n\n $this->lazyCollectionFromCsv()\n ->chunk(1000)\n ->each(function ($partRelationships) use (&$processed) {\n $partRelationshipList = [];\n foreach ($partRelationships as $partRelationship) {\n $partRelationshipList[] = [\n 'rel_type' => $partRelationship['rel_type'],\n 'child_part_num' => $partRelationship['child_part_num'],\n 'parent_part_num' => $partRelationship['parent_part_num'],\n ];\n\n $processed++;\n }\n\n if (count($partRelationshipList)) {\n PartRelationship::insert($partRelationshipList);\n }\n });\n\n $this->processed = $processed;\n }", "public function setLlamadas(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_Llamadas === null) {\n\n $this->getLlamadas();\n }\n\n $oldRelations = $this->_Llamadas;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n if (is_numeric($pk = $newItem->getPrimaryKey())) {\n\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_Llamadas = array();\n\n foreach ($data as $object) {\n $this->addLlamadas($object);\n }\n\n return $this;\n }", "public function setMilestones(){\n\n //Unset all the milestones that already exist\n foreach($this->milestones as $milestone){\n foreach($this->all_milestones as $aM){\n if($aM->Id == $milestone->Id) {\n array_push($this->thisMilestones, $this->rowMilestone($milestone, $aM));\n unset($this->all_milestones[(int)$aM->Id]);\n break;\n }\n }\n }\n }", "public function buildRelations()\n {\n $this->addRelation('Photo', 'wiosloCMS\\\\PhotoBundle\\\\Model\\\\Photo', RelationMap::MANY_TO_ONE, array('photo_id' => 'id', ), 'CASCADE', 'CASCADE');\n $this->addRelation('UserRate', 'wiosloCMS\\\\PhotoBundle\\\\Model\\\\UserRate', RelationMap::ONE_TO_MANY, array('photo_id' => 'photo_id', ), 'CASCADE', 'CASCADE', 'UserRates');\n $this->addRelation('User', 'wiosloCMS\\\\UserBundle\\\\Model\\\\User', RelationMap::MANY_TO_MANY, array(), 'CASCADE', 'CASCADE', 'Users');\n }", "public function buildRelations()\n {\n $this->addRelation('Biblio', '\\\\Slims\\\\Models\\\\Bibliography\\\\Biblio\\\\Biblio', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':biblio_id',\n 1 => ':biblio_id',\n ),\n), null, null, null, false);\n $this->addRelation('User', '\\\\Slims\\\\Models\\\\System\\\\User\\\\User', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':uid',\n 1 => ':user_id',\n ),\n), null, null, null, false);\n $this->addRelation('Colltype', '\\\\Slims\\\\Models\\\\Masterfile\\\\Colltype\\\\Colltype', RelationMap::MANY_TO_ONE, array (\n 0 =>\n array (\n 0 => ':coll_type_id',\n 1 => ':coll_type_id',\n ),\n), null, null, null, false);\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references)\n {\n foreach (RuangLongitudinalPeer::$instances as $instance)\n {\n $instance->clearAllReferences(true);\n }\n }\n RuangLongitudinalPeer::$instances = array();\n }", "public function buildRelations()\n\t{\n\t\t$this->addRelation('Cargo', 'Cargo', RelationMap::MANY_TO_ONE, array('cargo_id' => 'id', ), null, null);\n\t\t$this->addRelation('Departamento', 'Departamento', RelationMap::MANY_TO_ONE, array('departamento_id' => 'id', ), null, null);\n\t\t$this->addRelation('Endereco', 'Endereco', RelationMap::MANY_TO_ONE, array('endereco_id' => 'id', ), null, null);\n\t\t$this->addRelation('Perfil', 'Perfil', RelationMap::MANY_TO_ONE, array('perfil_id' => 'id', ), null, null);\n\t\t$this->addRelation('Auditoria', 'Auditoria', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'Auditorias');\n\t\t$this->addRelation('AvaliacaoRespostaForum', 'AvaliacaoRespostaForum', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'AvaliacaoRespostaForums');\n\t\t$this->addRelation('ColetaPesquisa', 'ColetaPesquisa', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'ColetaPesquisas');\n\t\t$this->addRelation('ComentarioNoticia', 'ComentarioNoticia', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'ComentarioNoticias');\n\t\t$this->addRelation('CurtidaForum', 'CurtidaForum', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'CurtidaForums');\n\t\t$this->addRelation('Noticia', 'Noticia', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'Noticias');\n\t\t$this->addRelation('Pesquisa', 'Pesquisa', RelationMap::ONE_TO_MANY, array('id' => 'criador_id', ), null, null, 'Pesquisas');\n\t\t$this->addRelation('PesquisaHabilitada', 'PesquisaHabilitada', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'PesquisaHabilitadas');\n\t\t$this->addRelation('Premio', 'Premio', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'Premios');\n\t\t$this->addRelation('RespostaForum', 'RespostaForum', RelationMap::ONE_TO_MANY, array('id' => 'usuario_id', ), null, null, 'RespostaForums');\n\t\t$this->addRelation('SolicitacaoResgateRelatedByAprovadorId', 'SolicitacaoResgate', RelationMap::ONE_TO_MANY, array('id' => 'aprovador_id', ), null, null, 'SolicitacaoResgatesRelatedByAprovadorId');\n\t\t$this->addRelation('SolicitacaoResgateRelatedBySolicitanteId', 'SolicitacaoResgate', RelationMap::ONE_TO_MANY, array('id' => 'solicitante_id', ), null, null, 'SolicitacaoResgatesRelatedBySolicitanteId');\n\t}", "public function onConstruct()\n {\n $this->useDynamicUpdate(true); // set for all, without this phalcon sometimes will re-select from database and overwrite your changes if you call save() more than 1 time\n $this->keepSnapshots(true);\n $modelRelationAlias = $this->getModelsManager()->getRelations(get_called_class());\n foreach ($modelRelationAlias as $alias)\n {\n $this->modelRelations[$alias->getType()][] = $alias->getOption('alias');\n }\n }", "public function setEnderecos(PropelCollection $enderecos, PropelPDO $con = null)\n\t{\n\t\t$this->enderecosScheduledForDeletion = $this->getEnderecos(new Criteria(), $con)->diff($enderecos);\n\n\t\tforeach ($enderecos as $endereco) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($endereco->isNew()) {\n\t\t\t\t$endereco->setCidade($this);\n\t\t\t}\n\t\t\t$this->addEndereco($endereco);\n\t\t}\n\n\t\t$this->collEnderecos = $enderecos;\n\t}", "protected function _updateNotification($collection)\n {\n foreach ($collection as $value) {\n $value->setAdminPendingNotification(0);\n $value->setId($value->getEntityId())->save();\n }\n }", "private function set_relation_joins() {\n if(!$this->use_relations) return;\n $relations = [];\n foreach ($this->colmodel as $i => $col) {\n if (!isset($col['relation']))\n continue;\n foreach (explode('>', $col['relation']) as $relation) {\n if (!str_contains($relation, '.'))\n continue;\n list($model_name, $relation_name) = explode('.', $relation);\n if ($relation_name != '' && !in_array($relation, $relations)) {\n $this->set_relation_join($model_name, $relation_name);\n $relations[] = $relation;\n }\n }\n }\n }", "public function clearPermissaosRelatedByCoUsuarioAlteracao()\n\t{\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function fixAllMissingReferences($documentsPerBatch = 1000)\n {\n foreach ($this->getAllRepositories() as $repository) {\n $repository->fixMissingReferences($documentsPerBatch);\n }\n }", "private function populateTranslations()\n {\n //translations\n $aRelated = $this->owner->getRelatedRecords();\n if (isset($aRelated[$this->relation]) && $aRelated[$this->relation] != null) {\n if (is_array($aRelated[$this->relation])) {\n foreach ($aRelated[$this->relation] as $model) {\n $this->_models[$model->getAttribute($this->languageField)] = $model;\n }\n } else {\n $model = $aRelated[$this->relation];\n $this->_models[$model->getAttribute($this->languageField)] = $model;\n }\n }\n }", "public function setEventI18ns(PropelCollection $eventI18ns, PropelPDO $con = null)\n {\n $this->eventI18nsScheduledForDeletion = $this->getEventI18ns(new Criteria(), $con)->diff($eventI18ns);\n\n foreach ($this->eventI18nsScheduledForDeletion as $eventI18nRemoved) {\n $eventI18nRemoved->setEvent(null);\n }\n\n $this->collEventI18ns = null;\n foreach ($eventI18ns as $eventI18n) {\n $this->addEventI18n($eventI18n);\n }\n\n $this->collEventI18ns = $eventI18ns;\n $this->collEventI18nsPartial = false;\n\n return $this;\n }", "public function regenerate_missing_relation_objects()\n {\n $l_dao = isys_cmdb_dao_category_g_relation::instance(isys_application::instance()->database);\n\n try\n {\n $l_root_location = 'SELECT isys_obj__id FROM isys_obj WHERE isys_obj__const = \\'C__OBJ__ROOT_LOCATION\\';';\n $l_root_location_id = $l_dao->retrieve($l_root_location)\n ->get_row_value('isys_obj__id');\n $l_sql = 'SELECT * FROM isys_catg_location_list\n\t\t\t\tWHERE isys_catg_location_list__isys_catg_relation_list__id IS NULL AND\n\t\t\t\t(isys_catg_location_list__isys_obj__id != \\'' . $l_root_location_id . '\\' AND isys_catg_location_list__isys_obj__id > 0);';\n $l_res = $l_dao->retrieve($l_sql);\n\n if ($l_res->num_rows() > 0)\n {\n while ($l_row = $l_res->get_row())\n {\n // rebuild missing relation for location entries\n $l_dao->handle_relation(\n $l_row['isys_catg_location_list__id'],\n 'isys_catg_location_list',\n C__RELATION_TYPE__LOCATION,\n null,\n $l_row['isys_catg_location_list__parentid'],\n $l_row['isys_catg_location_list__isys_obj__id']\n );\n } // while\n } // if\n return true;\n }\n catch (Exception $e)\n {\n isys_notify::error('Error with following message: ' . $e->getMessage());\n } // try\n return false;\n }", "public function buildRelations()\n\t{\n $this->addRelation('SftOrganismo', 'SftOrganismo', RelationMap::ONE_TO_MANY, array('id' => 'id_pais', ), 'SET NULL', 'CASCADE');\n $this->addRelation('SftPersona', 'SftPersona', RelationMap::ONE_TO_MANY, array('id' => 'id_paisdocidentificacion', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('GenPaisI18n', 'GenPaisI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', 'CASCADE');\n\t}", "public function setRIssuesNarrationplugins(Collection $rIssuesNarrationplugins, ConnectionInterface $con = null)\n {\n /** @var ChildRIssuesNarrationplugin[] $rIssuesNarrationpluginsToDelete */\n $rIssuesNarrationpluginsToDelete = $this->getRIssuesNarrationplugins(new Criteria(), $con)->diff($rIssuesNarrationplugins);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->rIssuesNarrationpluginsScheduledForDeletion = clone $rIssuesNarrationpluginsToDelete;\n\n foreach ($rIssuesNarrationpluginsToDelete as $rIssuesNarrationpluginRemoved) {\n $rIssuesNarrationpluginRemoved->setNarrationIssue(null);\n }\n\n $this->collRIssuesNarrationplugins = null;\n foreach ($rIssuesNarrationplugins as $rIssuesNarrationplugin) {\n $this->addRIssuesNarrationplugin($rIssuesNarrationplugin);\n }\n\n $this->collRIssuesNarrationplugins = $rIssuesNarrationplugins;\n $this->collRIssuesNarrationpluginsPartial = false;\n\n return $this;\n }", "private function compileHasManyRelations()\n {\n //get all foreign keys\n $foreignKeys = $this->schema->listForeignKeys();\n\n //get all foreign keys, where foreign table is equal to this table\n $filteredForeignKeys = [];\n foreach ($foreignKeys as $foreignKey) {\n if ($foreignKey->getForeignTableName() === $this->tableName) {\n array_push($filteredForeignKeys, $foreignKey);\n }\n }\n\n //get \"has many\" relations and call compiler for each\n $relationsCompiled = '';\n foreach ($filteredForeignKeys as $foreignKey) {\n\n $localTableName = $foreignKey->getLocalTableName();\n\n $modelName = Helper::tableNameToModelName($localTableName, $this->dbTablePrefix);\n\n $relationCompiler = new HasManyRelationCompiler();\n $relationsCompiled .= \"\\n\\n\\t\" . $relationCompiler->compile([\n 'modelName' => $modelName,\n 'foreignKey' => $foreignKey->getColumns()[0],\n 'modelsNamespace' => $this->modelsNamespace,\n ]);\n\n //add new param\n $this->relationTableModelParams[] = new RelationTableModelParamBag(\n str_plural(camel_case($modelName)),\n $localTableName,\n $modelName);\n }\n\n //{{HasManyRelations}}\n $this->replaceInStub(['{{HasManyRelations}}' => $relationsCompiled]);\n }", "public function setOperations(Operations $v = null)\n {\n if ($v === null) {\n $this->setOpId(NULL);\n } else {\n $this->setOpId($v->getOpId());\n }\n\n $this->aOperations = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Operations object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function testUpdateRecordWithManyToManyRelation()\n {\n $this->expectQueries(\n [\n [\n 'SELECT many_many.pk, many_many.fk, relation.primaryKey as relation_primaryKey FROM many_many ' .\n 'LEFT JOIN joinTable ON many_many.fk=joinTable.many_many_fk ' .\n 'LEFT JOIN related relation ON joinTable.related_primaryKey=relation.primaryKey ' .\n 'WHERE many_many.pk=?',\n [2],\n [\n [\n 'pk' => 1,\n 'fk' => 1,\n 'relation_primaryKey' => 1\n ],\n [\n 'pk' => 1,\n 'fk' => 1,\n 'relation_primaryKey' => 2\n ]\n ]\n ],\n ['INSERT INTO related () VALUES ()'],\n ['DELETE FROM joinTable WHERE (many_many_fk=? AND related_primaryKey=?)', [1, 1]],\n ['INSERT INTO joinTable (many_many_fk, related_primaryKey) VALUES (?, ?)', [1, 3]],\n [\n 'INSERT INTO joinTable (many_many_fk, related_primaryKey) VALUES (?, ?)',\n [1, null]\n ]\n ]\n );\n\n $entity = $this->entityManager->get('ManyManyRelationEntity');\n $object = $entity->find()->with('relation')->get(2);\n\n unset($object->relation[1]);\n\n $object->relation[] = 3;\n $object->relation[] = new RelatedEntity;\n\n $entity->save($object);\n\n $this->entityManager->commit();\n }", "public function buildRelations()\n {\n $this->addRelation('Marca', 'Marca', RelationMap::MANY_TO_ONE, array('idmarca' => 'idmarca', ), 'CASCADE', 'CASCADE');\n $this->addRelation('Proveedor', 'Proveedor', RelationMap::MANY_TO_ONE, array('idproveedor' => 'idproveedor', ), 'CASCADE', 'CASCADE');\n }", "public function setKanpainaRelIkastegiMota(array $data, $deleteOrphans = false)\n {\n if ($deleteOrphans === true) {\n\n if ($this->_KanpainaRelIkastegiMota === null) {\n\n $this->getKanpainaRelIkastegiMota();\n }\n\n $oldRelations = $this->_KanpainaRelIkastegiMota;\n\n if (is_array($oldRelations)) {\n\n $dataPKs = array();\n\n foreach ($data as $newItem) {\n\n $pk = $newItem->getPrimaryKey();\n if (!empty($pk)) {\n $dataPKs[] = $pk;\n }\n }\n\n foreach ($oldRelations as $oldItem) {\n\n if (!in_array($oldItem->getPrimaryKey(), $dataPKs)) {\n\n $this->_orphans[] = $oldItem;\n }\n }\n }\n }\n\n $this->_KanpainaRelIkastegiMota = array();\n\n foreach ($data as $object) {\n $this->addKanpainaRelIkastegiMota($object);\n }\n\n return $this;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collAssignedPrayersRelatedByAgentId) {\n foreach ($this->collAssignedPrayersRelatedByAgentId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAssignedPrayersRelatedByPatientId) {\n foreach ($this->collAssignedPrayersRelatedByPatientId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPartnerssRelatedByAgentId) {\n foreach ($this->collPartnerssRelatedByAgentId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPartnerssRelatedByPatientId) {\n foreach ($this->collPartnerssRelatedByPatientId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPainRatings) {\n foreach ($this->collPainRatings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collUserDemoss) {\n foreach ($this->collUserDemoss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPatients) {\n foreach ($this->collPatients as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAgents) {\n foreach ($this->collAgents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collAssignedPrayersRelatedByAgentId = null;\n $this->collAssignedPrayersRelatedByPatientId = null;\n $this->collPartnerssRelatedByAgentId = null;\n $this->collPartnerssRelatedByPatientId = null;\n $this->collPainRatings = null;\n $this->collUserDemoss = null;\n $this->collPatients = null;\n $this->collAgents = null;\n $this->aUserAge = null;\n }", "public function buildRelations()\n\t{\n $this->addRelation('Track', 'Track', RelationMap::MANY_TO_ONE, array('track_id' => 'id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('Featurevectortype', 'Featurevectortype', RelationMap::MANY_TO_ONE, array('featurevectortype_id' => 'id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('File', 'File', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('DistanceRelatedByTrackAId', 'Distance', RelationMap::ONE_TO_MANY, array('track_id' => 'track_a_id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('DistanceRelatedByTrackBId', 'Distance', RelationMap::ONE_TO_MANY, array('track_id' => 'track_b_id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('Distancejob', 'Distancejob', RelationMap::ONE_TO_MANY, array('track_id' => 'track_id', ), 'RESTRICT', 'CASCADE');\n $this->addRelation('Featurevectorsegment', 'Featurevectorsegment', RelationMap::ONE_TO_MANY, array('track_id' => 'track_id', ), 'RESTRICT', 'CASCADE');\n\t}", "public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }", "public function buildRelations()\n {\n $this->addRelation('Ruang', 'DataDikdas\\\\Model\\\\Ruang', RelationMap::MANY_TO_ONE, array('id_ruang' => 'id_ruang', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('SekolahLongitudinal', 'DataDikdas\\\\Model\\\\SekolahLongitudinal', RelationMap::MANY_TO_ONE, array('sekolah_id' => 'sekolah_id', 'semester_id' => 'semester_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe01', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_01' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe02', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_02' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe03', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_03' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe04', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_04' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe05', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_05' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe06', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_06' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe07', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_07' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe08', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_08' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe09', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_09' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe10', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_10' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe11', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_11' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe12', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_12' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe13', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_13' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe14', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_14' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe15', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_15' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe16', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_16' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe17', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_17' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe18', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_18' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe19', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_19' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n $this->addRelation('PembelajaranRelatedByBelKe20', 'DataDikdas\\\\Model\\\\Pembelajaran', RelationMap::MANY_TO_ONE, array('bel_ke_20' => 'pembelajaran_id', ), 'RESTRICT', 'RESTRICT');\n }", "public function buildRelations()\n {\n $this->addRelation('Contrarecibo', 'Contrarecibo', RelationMap::MANY_TO_ONE, array('idcontrarecibo' => 'idcontrarecibo', ), 'CASCADE', 'CASCADE');\n }", "public function setPesquisas(PropelCollection $pesquisas, PropelPDO $con = null)\n\t{\n\t\t$this->pesquisasScheduledForDeletion = $this->getPesquisas(new Criteria(), $con)->diff($pesquisas);\n\n\t\tforeach ($pesquisas as $pesquisa) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($pesquisa->isNew()) {\n\t\t\t\t$pesquisa->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addPesquisa($pesquisa);\n\t\t}\n\n\t\t$this->collPesquisas = $pesquisas;\n\t}", "function initCompaniesArray($roo, $data)\n {\n $tn = $this->tableName();\n \n foreach($data as $d){\n $com = DB_DataObject::factory($tn);\n $com->setFrom($d);\n if(!$com->find(true)){\n $com->created_dt = Date('Y-m-d H:i:s');\n $com->updated_dt = Date('Y-m-d H:i:s');\n $com->is_system = 1;// new column.. block the user changing the code and name..\n $com->insert();\n }\n }\n \n \n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collRIssuesAllplugins) {\n foreach ($this->collRIssuesAllplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesNarrationplugins) {\n foreach ($this->collRIssuesNarrationplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesRtfplugins) {\n foreach ($this->collRIssuesRtfplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesSingleplugins) {\n foreach ($this->collRIssuesSingleplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesXmlplugins) {\n foreach ($this->collRIssuesXmlplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRRightsForissues) {\n foreach ($this->collRRightsForissues as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collContributionss) {\n foreach ($this->collContributionss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAllPlugins) {\n foreach ($this->collAllPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collNarrationPlugins) {\n foreach ($this->collNarrationPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRtfPlugins) {\n foreach ($this->collRtfPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collSinglePlugins) {\n foreach ($this->collSinglePlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collXmlPlugins) {\n foreach ($this->collXmlPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRightss) {\n foreach ($this->collRightss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collRIssuesAllplugins = null;\n $this->collRIssuesNarrationplugins = null;\n $this->collRIssuesRtfplugins = null;\n $this->collRIssuesSingleplugins = null;\n $this->collRIssuesXmlplugins = null;\n $this->collRRightsForissues = null;\n $this->collContributionss = null;\n $this->collAllPlugins = null;\n $this->collNarrationPlugins = null;\n $this->collRtfPlugins = null;\n $this->collSinglePlugins = null;\n $this->collXmlPlugins = null;\n $this->collRightss = null;\n $this->auserSysRef = null;\n $this->aBooks = null;\n }", "public function afterSave(){\r\n parent::afterSave();\r\n if($this->isNewRecord){\r\n $class = Strategy::getClass('Aro');\r\n $aro = new $class();\r\n $aro->model = get_class($this);\r\n $aro->foreign_key = $this->getPrimaryKey();\r\n if(!$aro->save())\r\n throw new RuntimeError(\"Unable to save Aro-Collection\");\r\n }\r\n }", "public static function belongsToManyUpdatingExistingPivot($callback)\n {\n static::registerModelBelongsToManyEvent('belongsToManyUpdatingExistingPivot', $callback);\n }", "public function buildRelations()\n {\n $this->addRelation('Pregunta', '\\\\Pregunta', RelationMap::ONE_TO_MANY, array (\n 0 =>\n array (\n 0 => ':preg_t_pregunta',\n 1 => ':tpre_tipo',\n ),\n), null, 'CASCADE', 'Preguntas', false);\n }", "public function setColetaPesquisas(PropelCollection $coletaPesquisas, PropelPDO $con = null)\n\t{\n\t\t$this->coletaPesquisasScheduledForDeletion = $this->getColetaPesquisas(new Criteria(), $con)->diff($coletaPesquisas);\n\n\t\tforeach ($coletaPesquisas as $coletaPesquisa) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($coletaPesquisa->isNew()) {\n\t\t\t\t$coletaPesquisa->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addColetaPesquisa($coletaPesquisa);\n\t\t}\n\n\t\t$this->collColetaPesquisas = $coletaPesquisas;\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collAuditorias) {\n\t\t\t\tforeach ($this->collAuditorias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAvaliacaoRespostaForums) {\n\t\t\t\tforeach ($this->collAvaliacaoRespostaForums as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collColetaPesquisas) {\n\t\t\t\tforeach ($this->collColetaPesquisas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collComentarioNoticias) {\n\t\t\t\tforeach ($this->collComentarioNoticias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCurtidaForums) {\n\t\t\t\tforeach ($this->collCurtidaForums as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collNoticias) {\n\t\t\t\tforeach ($this->collNoticias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPesquisas) {\n\t\t\t\tforeach ($this->collPesquisas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPesquisaHabilitadas) {\n\t\t\t\tforeach ($this->collPesquisaHabilitadas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPremios) {\n\t\t\t\tforeach ($this->collPremios as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRespostaForums) {\n\t\t\t\tforeach ($this->collRespostaForums as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collSolicitacaoResgatesRelatedByAprovadorId) {\n\t\t\t\tforeach ($this->collSolicitacaoResgatesRelatedByAprovadorId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collSolicitacaoResgatesRelatedBySolicitanteId) {\n\t\t\t\tforeach ($this->collSolicitacaoResgatesRelatedBySolicitanteId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collAuditorias instanceof PropelCollection) {\n\t\t\t$this->collAuditorias->clearIterator();\n\t\t}\n\t\t$this->collAuditorias = null;\n\t\tif ($this->collAvaliacaoRespostaForums instanceof PropelCollection) {\n\t\t\t$this->collAvaliacaoRespostaForums->clearIterator();\n\t\t}\n\t\t$this->collAvaliacaoRespostaForums = null;\n\t\tif ($this->collColetaPesquisas instanceof PropelCollection) {\n\t\t\t$this->collColetaPesquisas->clearIterator();\n\t\t}\n\t\t$this->collColetaPesquisas = null;\n\t\tif ($this->collComentarioNoticias instanceof PropelCollection) {\n\t\t\t$this->collComentarioNoticias->clearIterator();\n\t\t}\n\t\t$this->collComentarioNoticias = null;\n\t\tif ($this->collCurtidaForums instanceof PropelCollection) {\n\t\t\t$this->collCurtidaForums->clearIterator();\n\t\t}\n\t\t$this->collCurtidaForums = null;\n\t\tif ($this->collNoticias instanceof PropelCollection) {\n\t\t\t$this->collNoticias->clearIterator();\n\t\t}\n\t\t$this->collNoticias = null;\n\t\tif ($this->collPesquisas instanceof PropelCollection) {\n\t\t\t$this->collPesquisas->clearIterator();\n\t\t}\n\t\t$this->collPesquisas = null;\n\t\tif ($this->collPesquisaHabilitadas instanceof PropelCollection) {\n\t\t\t$this->collPesquisaHabilitadas->clearIterator();\n\t\t}\n\t\t$this->collPesquisaHabilitadas = null;\n\t\tif ($this->collPremios instanceof PropelCollection) {\n\t\t\t$this->collPremios->clearIterator();\n\t\t}\n\t\t$this->collPremios = null;\n\t\tif ($this->collRespostaForums instanceof PropelCollection) {\n\t\t\t$this->collRespostaForums->clearIterator();\n\t\t}\n\t\t$this->collRespostaForums = null;\n\t\tif ($this->collSolicitacaoResgatesRelatedByAprovadorId instanceof PropelCollection) {\n\t\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId->clearIterator();\n\t\t}\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId = null;\n\t\tif ($this->collSolicitacaoResgatesRelatedBySolicitanteId instanceof PropelCollection) {\n\t\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId->clearIterator();\n\t\t}\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = null;\n\t\t$this->aCargo = null;\n\t\t$this->aDepartamento = null;\n\t\t$this->aEndereco = null;\n\t\t$this->aPerfil = null;\n\t}", "public function buildRelations()\n {\n $this->addRelation(\n 'Group',\n 'CAD\\\\TransferBundle\\\\Model\\\\Conn1\\\\Group',\n RelationMap::MANY_TO_ONE,\n array('group_id' => 'id',),\n null,\n null\n );\n $this->addRelation(\n 'Batch',\n 'CAD\\\\TransferBundle\\\\Model\\\\Conn1\\\\Batch',\n RelationMap::MANY_TO_ONE,\n array('batch_id' => 'id',),\n null,\n null\n );\n }", "function _ci_assign_to_models()\n {\n if (count($this->_ci_models) == 0)\n {\n return;\n }\n\n $CI =& get_instance();\n foreach ($this->_ci_models as $model)\n {\n $CI->$model->_assign_libraries();\n }\n }" ]
[ "0.53294456", "0.5276085", "0.5172079", "0.5024019", "0.49761328", "0.49010965", "0.49010965", "0.4842405", "0.4815598", "0.47761714", "0.47132882", "0.46900707", "0.46638405", "0.46614772", "0.46549684", "0.46372625", "0.46216393", "0.4613934", "0.46029884", "0.46000704", "0.45589936", "0.4549258", "0.45466036", "0.45077172", "0.45026615", "0.4470619", "0.44603387", "0.44547704", "0.4449982", "0.44425192", "0.44402057", "0.44334942", "0.44099098", "0.44082364", "0.4388044", "0.438781", "0.43870923", "0.43848732", "0.43638203", "0.4360216", "0.4354838", "0.4338895", "0.43324718", "0.4307297", "0.42997584", "0.42648727", "0.42642087", "0.42596847", "0.42580596", "0.42465743", "0.42448008", "0.42386016", "0.4226091", "0.42177504", "0.4217648", "0.4217588", "0.42172495", "0.42155573", "0.4214614", "0.42117125", "0.4211193", "0.42108297", "0.42068055", "0.42037323", "0.4186583", "0.41844285", "0.41838884", "0.4181805", "0.41803154", "0.41664198", "0.41589952", "0.41579935", "0.415498", "0.41483936", "0.4142401", "0.4141414", "0.4138982", "0.41384187", "0.41369018", "0.41289088", "0.41264892", "0.41246307", "0.4123992", "0.4121836", "0.4113771", "0.41133285", "0.41101018", "0.41093805", "0.40921456", "0.4081516", "0.40789568", "0.40717125", "0.40716362", "0.40703997", "0.40702122", "0.4067307", "0.40614992", "0.40600148", "0.40567026", "0.4055669" ]
0.6124001
0
Returns the number of related LnkOperationPrimeRCountries objects.
public function countLnkOperationPrimeRCountriess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) { $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew(); if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) { if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) { return 0; } if ($partial && !$criteria) { return count($this->getLnkOperationPrimeRCountriess()); } $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria); if ($distinct) { $query->distinct(); } return $query ->filterByOperationPrimes($this) ->count($con); } return count($this->collLnkOperationPrimeRCountriess); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n {\n return count($this->_mappersByPriority);\n }", "function getAllNumNodes(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_nodos;\n\t\treturn $u;\n\t}", "static public function rrcnt( object $pp1, string $tbl, array $other=[] ): int { \n self::$pp1 = $pp1 ;\n if (isset($pp1->shared_dbadapter_obj)) self::$utldb = $pp1->shared_dbadapter_obj ;\n\n $rcnt = self::$utldb::rrcount($tbl) ;\n return (int)$rcnt ;\n //return (int)utl::escp($rcnt) ;\n }", "public function getCompCount()\n {\n return $this->count(self::_COMP);\n }", "public function getReferenceCount() {}", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "function get_all_pelanggan_count()\n {\n $this->db->from('pelanggan');\n return $this->db->count_all_results();\n }", "public static function nombreAssociations() {\n $req = 'SELECT COUNT(*)\n FROM association_vehicule_conducteur';\n return Db::dbQuery($req);\n }", "public function count()\n\t{\n\t\treturn $this->getParentObject()->count();\n\t}", "function get_object_count()\r\n {\r\n return $this->get_browser()->count_profile_publications($this->get_condition());\r\n }", "public function getPromotionsCount()\n {\n return $this->count(self::promotions);\n }", "public function nbLangues()\r\n\t\t{\r\n\t\treturn $this->lesLangues->count();\r\n\t\t}", "public function countAncestors();", "public function countLigne_equipe_personne(){\n\t\t\t\t\t return count($this->listeLigne_equipe_personne());\n\t\t\t\t\t }", "public function countTriples()\n {\n $count = 0;\n foreach ($this->index as $resource) {\n foreach ($resource as $values) {\n $count += count($values);\n }\n }\n return $count;\n }", "function getNbProduits() {\n\t return $this->nbProduits;\n\t }", "function getCount() {\n\t\t$i = $this->_query->join('synd_issue','i');\n\t\t$query = clone $this->_query;\n\t\t$query->column(\"COUNT(DISTINCT $i.node_id)\");\n\n\t\t$persistent = $this->_storage->getPersistentStorage();\n\t\t$database = $persistent->getDatabase();\n\t\treturn $database->getOne($query->toString());\n\t}", "public function getRankListCount()\n {\n return $this->count(self::_RANK_LIST);\n }", "public function nbProduits(){\n\treturn count($this->listeProduits);\n }", "public function getLootsCount()\n {\n return $this->count(self::_LOOTS);\n }", "public function getLootsCount()\n {\n return $this->count(self::_LOOTS);\n }", "public function getLootsCount()\n {\n return $this->count(self::_LOOTS);\n }", "function get_object_count()\r\n {\r\n return $this->get_browser()->count_photo_gallery_publications($this->get_condition());\r\n }", "public function count() {\r\n if (is_null($this->objectcount)) {\r\n $this->fetchData();\r\n }\r\n return $this->objectcount;\r\n }", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "public function getOperationsCount()\n {\n return $this->count(self::_OPERATIONS);\n }", "public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)\n {\n if ($this->collLnkOperationPrimeRCountriess === null) {\n $this->initLnkOperationPrimeRCountriess();\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddLnkOperationPrimeRCountries($l);\n\n if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) {\n $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "private static function getNumberOfPKs(string $type): int {\n if (!isset(self::$numPkKeys[$type])) {\n $numPKs = 1;\n $persistenceFacade = ObjectFactory::getInstance('persistenceFacade');\n if ($persistenceFacade->isKnownType($type)) {\n $mapper = $persistenceFacade->getMapper($type);\n $numPKs = sizeof($mapper->getPKNames());\n }\n self::$numPkKeys[$type] = $numPKs;\n }\n return self::$numPkKeys[$type];\n }", "public static function getCount()\n {\n return static::find()->count();\n }", "public abstract function countObjects();", "function countRefPool($pid)\n\t\t {\n\t\t $sql = \"SELECT COUNT(*) As cnt FROM pof_candidates WHERE pofid =\".$pid.\" AND stage ='287' \";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t\t }", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "function similarProductCount()\n {\n if($this->soap)\n return count($this->soap['SimilarProducts']);\n else\n return count($this->similarProducts);\n }", "public function countPossibilitiesProviders(){\n\n return [\n [[],9],\n [[1],8],\n [[1,2],7],\n [[1,2,3],6],\n [[1,2,3,4],5],\n [[1,2,3,4,5],4],\n [[1,2,3,4,5,6],3],\n [[1,2,3,4,5,6,7],2],\n [[1,2,3,4,5,6,7,8],1],\n [[1,2,3,4,5,6,7,8,9],0],\n ];\n }", "public function getProNumRows()\n {\n return $this->db->count_all('products');\n }", "public function getNumberOfReplies()\n\t{\n\t\t$table = new Zend_Db_Table(array('name'=>PrecurioTableConstants::FORUM_POSTS, 'rowClass'=>'Post'));\n\t\t$select = $table->select(false);\n\t\t\n\t\t$select->setTable($table)->setIntegrityCheck(false);\t\t\t\n\t\t\n\t\t\n\t\t$select = $select->from(array('a' => PrecurioTableConstants::FORUM_POSTS))\n\t\t\t->join(array('b' => PrecurioTableConstants::FORUM_TOPICS), 'b.id = a.topic_id','forum_id')\n\t\t\t->where(\"a.active = 1 AND b.forum_id = {$this->getId()}\")\n\t\t\t->order(\"a.id DESC\");\n\t\t\n\t\n\t\treturn $table->fetchAll($select)->count();\n\t}", "public function getResCount()\n {\n return $this->count(self::RES);\n }", "public function count() {\r\n return count($this->objects);\r\n }", "public function getCountList(){\n\t\t$select = $this->getListSelect();\n\t\t$stmt = $select->query();\n\t\t$objects = array();\n\t\treturn count($stmt->fetchAll());\n\t}", "public function numLocalizations()\n {\n return count($this->localizations());\n }", "public function getNbAddresses()\n\t{\n\t\tif ( $this->nb_addresses === null ) {\n\t\t\t$this->nb_addresses = gmp_strval(gmp_pow(2, $this->getMaxPrefix() - $this->prefix));\n\t\t}\n\t\treturn $this->nb_addresses;\n\t}", "public function getEntryCount() {}", "function get_all_perumahan__pembangunan_rumah_count()\n {\n $this->db->from('perumahan__pembangunan_rumah');\n return $this->db->count_all_results();\n }", "public function getResourceCount()\n {\n return $this->resourceCount;\n }", "function getAllNumClases(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_clases;\n\t\treturn $u;\n\t}", "public function getSingletonCount ();", "public function loadCount($relations);", "function countPartners(){\n return $this->db->count_all('partner');\n \t}", "public function getNumberDescendants();", "public function count()\n {\n return $this->getChildsObject()->count();\n }", "public function getAmountOfTicketsLabel()\n {\n return Ticket::find()->creator($this->id)->count();\n }", "public function count(): int\n {\n return count($this->pool);\n }", "function get_all_projetos_count()\n {\n $this->db->from('projetos');\n return $this->db->count_all_results();\n }", "function count()\r\n\t{\r\n\t\t// Check if related object\r\n\t\tif ( ! empty($this->parent))\r\n\t\t{\r\n\t\t\t// Prepare model\r\n\t\t\t$model = ucfirst($this->parent['model']);\r\n\t\t\t$object = new $model();\r\n\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$this->db->where($this->parent['model'] . '_id', $this->parent['id']);\r\n\t\t\t$this->db->from($relationship_table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t}", "public function getPointCount() {}", "public function getConnectionCount();", "function gettotalpageno(){\n\t $qry = \"SELECT * FROM countries\";\n\t return $result = $this->modelObj->numRows($qry);\n\t}", "public function computeCount() {\n $count = 0;\n foreach ($this->sourceUrls as $url) {\n $reader = new $this->readerClass($url, $this->idField);\n foreach ($reader as $element) {\n $count++;\n }\n }\n\n return $count;\n }", "public abstract function get_counts();", "public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }", "public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }", "public function getOpposCount()\n {\n return $this->count(self::_OPPOS);\n }", "public static function get_nb_orders(){\n $return = array();\n $sql = \"SELECT count(mo.id)\n FROM miki_person mp, miki_order mo\n WHERE mp.id = mo.id_person\";\n $result = mysql_query($sql);\n\n $row = mysql_fetch_array($result);\n return $row[0];\n }", "public function nbArticles(){\n\t$nbArticles = 0;\n\tforeach($this->listeProduits as $value){\n\t\t$nbArticles += $value[1];\n\t}\n\treturn $nbArticles;\n }", "function retrieve_num_clients(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\t$result = $this->CI->users_promoters->retrieve_promoter_clients_list($this->promoter->up_id, $this->promoter->team->t_fan_page_id, array('count' => true));\n\t\t\n\t\treturn $result[0]->count_clients;\n\t\t\n\t}", "public function countEntities(): int;", "public function numeroInscripciones()\n {\n $socio = Auth()->user()->socio->id;\n $res = Inscription::where('partners_id', $socio)->count();\n return $res;\n }", "public function countCompanyContacts()\n {\n \n $db = $this->getDb();\n \n $sql = <<<SQL\nSELECT\n count(contact.rowid) as number\nFROM\n core_contact_r contact\nJOIN core_person_r person\n ON contact.id_person = person.rowid\nWHERE person.type = 2;\nSQL;\n \n return $db->select($sql)->getField('number');\n \n }", "public function count(): int\n {\n return count($this->resources);\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "function getNumeroPaginas($rpp = Configuracion::RPP) {\r\n $lista = $this->count();\r\n return (ceil($lista[0] / $rpp) - 1);\r\n }", "public function getCount() {\n \treturn $this->count();\n }", "public function getLinkedinCount($url)\n {\n return $this->getCount($url, self::SN_LINKEDIN);\n }", "public function findCount()\n {\n return $this->getEntityManager()\n ->createQuery(\"SELECT t.number, COUNT(f.id) as cnt\n FROM GazMainBundle:Finance f\n LEFT JOIN f.terminal t\n LEFT JOIN f.clientSale cs\n\t\t\t\t\t\t\tLEFT JOIN f.clientBuy cb\n\t\t\t\t\t\t\tWHERE f.financeType = FALSE\n\t\t\t\t\t\t\tGROUP BY t.number\n\t\t\t\t\t\t\tORDER BY t.number ASC\n \")\n ->getResult();\n }", "function get_predicate_object_counts(){\n\t\n\tGLOBAL $cmd_pre;\n\tGLOBAL $cmd_post;\n\t\n\t$qry = \"select ?p (COUNT(?o) AS ?c) where { graph ?g { ?s ?p ?o . FILTER isIRI(?o) . } FILTER regex(?g, \\\"bio2rdf\\\") } ORDER BY DESC(?c)\";\n\t\n\t$cmd = $cmd_pre.$qry.$cmd_post;\n\t\n\t$out = \"\";\n\t\n\ttry {\n\t\t$out = execute_isql_command($cmd);\n\t} catch (Exception $e){\n\t\techo 'iSQL error: ' .$e->getMessage();\n\t\treturn null;\n\t}\n\t\n\t$split_results = explode(\"Type HELP; for help and EXIT; to exit.\\n\", $out);\n\t$split_results_2 = explode(\"\\n\\n\", $split_results[1]);\n\t\n\t$results = trim($split_results_2[0]);\n\t\n\tif (preg_match(\"/^0 Rows./is\", $results) === 0) {\t\n\t\t$results_arr = array();\n\t\t\n\t\t$lines = explode(\"\\n\", $results);\n\t\tforeach($lines as $line){\n\t\t\t\t$split_line = preg_split('/[[:space:]]+/', $line);\n\t\t\t\t$results_arr[$split_line[0]] = $split_line[1];\n\t\t}\n\n\t\treturn $results_arr;\n\t} else {\n\t\treturn null;\n\t}\n}", "public function countOperationScenariis(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getOperationScenariis());\n }\n $query = OperationScenariiQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collOperationScenariis);\n }", "public function getCount()\n {\n return $this->model->count();\n }", "function count() {\n # The return value of this function is intended to indicate the total\n # number of results of the operation the Iter represents.\n return NULL;\n }", "public function countAll(): int;", "final public static function count( ) {\n\t\treturn self::$intQueryCount;\n\t}", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "public function getNumberOfRelations()\n {\n return count($this->relations);\n }", "public function getNeighborCount()\n {\n return $this->neighbor_count;\n }", "public function getAnswerCount();", "public function getCountriesListCount()\n {\n $query = $this->em->createQuery(\"SELECT COUNT(c) FROM \\entities\\Country c\");\n return $query->getSingleScalarResult();\n }", "public function countKeys();", "public function getResultCount()\n {\n return $this->count(self::_RESULT);\n }", "function get_cantidad_ingresantes_cohorte()\n\t{\n\t\t$filtro = $this->s__datos_filtro;\n\t\tif (isset($filtro))\n\t\t{\n\t\t\tei_arbol($filtro, 'filtro');\n\t\t\t$alumnos_cohorte = consultas_extension::get_alumnos_ingresantes_cohorte($filtro);\n\t\t\treturn count($alumnos_cohorte);\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\n\t}", "public function getResultCount()\n {\n return $this->count(self::_RESULT);\n }", "private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }", "public function count(){\n return count($this->accounts);\n }", "public function count() {\n\t \treturn sizeof($this->links);\n\t}", "public function numLinks();", "public function get_number_proyects(){\n if(isset($this->number_proyects))\n return $this->number_proyects;\n else {\n return NULL;\n }\n }", "public function count()\n {\n return count($this->countable);\n }", "public function getDpsRankCount()\n {\n return $this->count(self::_DPS_RANK);\n }", "public function getEntriesNum() {\n\t\t$db = Denkmal_Db::get();\n\t\treturn $db->fetchOne('SELECT COUNT(1)\n\t\t\t\t\t\t\t\tFROM promotion_entry e\n\t\t\t\t\t\t\t\tWHERE e.promotionId=?'\n\t\t\t, array($this->getId()));\n\t}" ]
[ "0.56959254", "0.56481504", "0.5630712", "0.56275594", "0.5590137", "0.5587153", "0.5585118", "0.5566324", "0.5562667", "0.5561838", "0.55585283", "0.55396694", "0.5515096", "0.5483477", "0.54697376", "0.5464577", "0.5461492", "0.5453932", "0.54340005", "0.54080826", "0.54080826", "0.54071736", "0.537532", "0.5374504", "0.5349476", "0.5346528", "0.5341088", "0.5340593", "0.53382283", "0.5313409", "0.52932215", "0.5293184", "0.52919084", "0.52800345", "0.5261145", "0.5254153", "0.52495235", "0.5244891", "0.5244103", "0.5235574", "0.5229907", "0.5229474", "0.52260745", "0.5207865", "0.5193419", "0.51897013", "0.51848394", "0.5181374", "0.51790863", "0.5177342", "0.5174606", "0.5174177", "0.5171915", "0.5170697", "0.5166255", "0.5153336", "0.51463675", "0.51451975", "0.51417506", "0.5123947", "0.5123947", "0.5123947", "0.5119561", "0.51174617", "0.5111012", "0.51101035", "0.5108764", "0.510667", "0.51044506", "0.51034343", "0.51034343", "0.5101414", "0.50949484", "0.509247", "0.50915325", "0.50872874", "0.5086721", "0.50846875", "0.5082174", "0.50764245", "0.50746495", "0.5072495", "0.5072495", "0.5072495", "0.506811", "0.50667113", "0.50616276", "0.5058064", "0.5049136", "0.50432676", "0.5042586", "0.5042461", "0.50420904", "0.50419956", "0.5032668", "0.50320894", "0.5029226", "0.502851", "0.5026598", "0.5025931" ]
0.7116602
0
Method called to associate a LnkOperationPrimeRCountries object to this object through the LnkOperationPrimeRCountries foreign key attribute.
public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l) { if ($this->collLnkOperationPrimeRCountriess === null) { $this->initLnkOperationPrimeRCountriess(); $this->collLnkOperationPrimeRCountriessPartial = true; } if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated $this->doAddLnkOperationPrimeRCountries($l); if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) { $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l)); } } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "public function countLnkOperationPrimeRCountriess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getLnkOperationPrimeRCountriess());\n }\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collLnkOperationPrimeRCountriess);\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "public function getLnkOperationPrimeRCountriessJoinRCountries($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n $query->joinWith('RCountries', $join_behavior);\n\n return $this->getLnkOperationPrimeRCountriess($query, $con);\n }", "public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }", "public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function add(RP $rp) {\n if (($pos = array_search($rp->team, $this->teams)) === false) {\n $this->teams[] = $rp->team;\n $pos = count($this->teams) - 1;\n }\n $this->rps[$pos][(string)$rp->division][$rp->boat_role][] = $rp;\n }", "public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }", "public function getIntegranteInternoPes()\n {\n return $this->hasMany(IntegranteInternoPe::className(), ['funcion_p' => 'id_extension']);\n }", "public function setNbrOperations(?string $nbrOperations): LettresMissionsLignes {\n $this->nbrOperations = $nbrOperations;\n return $this;\n }", "public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }", "public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }", "protected function insert() {\n $this->repo_id = $this->repository->repo_id; // for drupal_write_record() only\n\n if (isset($this->label_id)) {\n // The label already exists in the database, update the record.\n drupal_write_record('versioncontrol_labels', $this, 'label_id');\n }\n else {\n // The label does not yet exist, create it.\n // drupal_write_record() also assigns the new id to $this->label_id.\n drupal_write_record('versioncontrol_labels', $this);\n }\n unset($this->repo_id);\n }", "function\tassignERPNos( $_key=\"\", $_id=-1, $_val=\"\") {\n\t\ttry {\n\t\t\tif ( $this->SupplierPrefix == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have prefix assigned\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\tif ( $this->ERPNoStart == \"\") {\n\t\t\t\t$e\t=\t\"Supplier.php::Supplier::assignERPNos(...): supplier does not have vallid ERP no. range\" ;\n\t\t\t\terror_log( $e) ;\n\t\t\t\tthrow new Exception( $e) ;\n\t\t\t}\n\t\t\t$myArticle\t=\tnew Article() ;\n\t\t\tfor ( $myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \") ;\n\t\t\t\t\t$myArticle->_valid ;\n\t\t\t\t\t$myArticle->_firstFromDb( \"ArticleNr like '\" . $this->SupplierPrefix . \".%' AND ERPNo = '' \")) {\n\t\t\t\tFDbg::dumpL( \"0x00000002\", \"Supplier.php::Supplier::assignERPNo(...): current article no. '$myArticle->ArticleNr'\") ;\n\t\t\t\ttry {\n\t\t\t\t\t$erpNoStart\t=\t$this->ERPNoStart ;\n\t\t\t\t\t$erpNoEnd\t=\t$this->ERPNoEnd ;\n\t\t\t\t\t$myQuery\t=\t\"SELECT IFNULL(( SELECT ERPNo + 1 FROM Article \" .\n\t\t\t\t\t\t\t\t\t\"WHERE ArticleNr LIKE '\".$this->SupplierPrefix.\".%' AND ERPNo >= '$erpNoStart' AND ERPNo <= '$erpNoEnd' \" .\n\t\t\t\t\t\t\t\t\t\"ORDER BY ERPNo DESC LIMIT 1 ), \" . ( $erpNoStart + 1) . \" ) AS newKey\" ;\n\t\t\t\t\t$myRow\t=\tFDb::queryRow( $myQuery) ;\n\t\t\t\t\t$myArticle->ERPNo\t=\tsprintf( \"%08s\", $myRow['newKey']) ;\n\t\t\t\t\t$myArticle->updateColInDb( \"ERPNo\") ;\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\tthrow $e ;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( Exception $e) {\n\t\t\tthrow $e ;\n\t\t}\n\t\treturn true ;\n\t}", "public function initInappropriates()\n\t{\n\t\t$this->collInappropriates = array();\n\t}", "public function actionInitPool()\r\n {\r\n echo 1;\r\n exit();\r\n ini_set('max_execution_time', 0);\r\n\r\n $prizeType = Config::find()->all();\r\n foreach ($prizeType as $k => $v) {\r\n\r\n if ($v->praisenumber > 0) {\r\n for ($i = 0; $i < $v->praisenumber; $i++) {\r\n $model = new PrizePool();\r\n $model->aid = $v->id;\r\n $model->save();\r\n unset($model);\r\n }\r\n echo $v->praisename;\r\n }\r\n\r\n }\r\n\r\n echo '~All OK!!!';\r\n }", "public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }", "public function initialize()\n {\n // attributes\n $this->setName('evaluacion_pregunta');\n $this->setPhpName('EvaluacionPregunta');\n $this->setIdentifierQuoting(false);\n $this->setClassName('\\\\EvaluacionPregunta');\n $this->setPackage('');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('evpr_codigo', 'EvprCodigo', 'INTEGER', true, null, null);\n $this->addForeignKey('evpr_c_evaluacion', 'EvprCEvaluacion', 'INTEGER', 'evaluacion', 'eval_codigo', true, null, null);\n $this->addForeignKey('evpr_c_pregunta', 'EvprCPregunta', 'INTEGER', 'pregunta', 'preg_codigo', true, null, null);\n $this->addForeignKey('evpr_c_objetivo', 'EvprCObjetivo', 'INTEGER', 'objetivo', 'obje_codigo', true, null, null);\n $this->addForeignKey('evpr_c_seccion', 'EvprCSeccion', 'INTEGER', 'seccion', 'secc_codigo', true, null, null);\n $this->addColumn('evpr_orden', 'EvprOrden', 'INTEGER', false, 1, null);\n $this->addColumn('evpr_r_fecha_creacion', 'EvprRFechaCreacion', 'TIMESTAMP', false, null, null);\n $this->addColumn('evpr_r_fecha_modificacion', 'EvprRFechaModificacion', 'TIMESTAMP', false, null, null);\n $this->addColumn('evpr_r_usuario', 'EvprRUsuario', 'INTEGER', false, null, 1);\n }", "function create_binding() {\r\n\t\ttry {\r\n\t\t\t$conn = db_connect::getInstance();\r\n\t\t\t$result = $conn->db->query(\"SELECT OLT_ID from OLT_IP_POOLS where OLT_ID = '$this->olt_id'\");\r\n\t\t} catch (PDOException $e) {\r\n\t\t\t$error = \"Connection Failed:\" . $e->getMessage() . \"\\n\";\r\n\t\t\treturn $error;\r\n\t\t}\r\n\t\twhile ($row = $result->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\tif ($row[\"OLT_ID\"])\r\n\t\t\t\t$error = (\"ERROR: THIS OLT have been ASSIGNED pool ALREADY, Please remove any existing bindings and try to create again!\");\r\n\t\t\t\treturn $error;\t\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t$conn = db_connect::getInstance();\r\n\t\t\t$result = $conn->db->query(\"INSERT INTO OLT_IP_POOLS (OLT_ID, IP_POOL_ID) VALUES ('$this->olt_id', '$this->id')\");\r\n\t\t} catch (PDOException $e) {\r\n\t\t\t$error = \"Connection Failed:\" . $e->getMessage() . \"\\n\";\r\n\t\t\treturn $error;\r\n\t\t}\r\n\t}", "public function getConnection(){\n return BaseOperationPrimesPeer::getConnection();\n }", "public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)\n {\n $pos = OperationPrimesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);\n\n $this->setByPosition($pos, $value);\n }", "public function setPR($r) {}", "public function setRCurrencies(RCurrencies $v = null)\n {\n if ($v === null) {\n $this->setOperationPrimeCurrencyId(NULL);\n } else {\n $this->setOperationPrimeCurrencyId($v->getRCurrencyId());\n }\n\n $this->aRCurrencies = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the RCurrencies object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }", "public function addOperationScenarii(OperationScenarii $l)\n {\n if ($this->collOperationScenariis === null) {\n $this->initOperationScenariis();\n $this->collOperationScenariisPartial = true;\n }\n\n if (!in_array($l, $this->collOperationScenariis->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationScenarii($l);\n\n if ($this->operationScenariisScheduledForDeletion and $this->operationScenariisScheduledForDeletion->contains($l)) {\n $this->operationScenariisScheduledForDeletion->remove($this->operationScenariisScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function addOperationPrestations(OperationPrestations $l)\n {\n if ($this->collOperationPrestationss === null) {\n $this->initOperationPrestationss();\n $this->collOperationPrestationssPartial = true;\n }\n\n if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddOperationPrestations($l);\n\n if ($this->operationPrestationssScheduledForDeletion and $this->operationPrestationssScheduledForDeletion->contains($l)) {\n $this->operationPrestationssScheduledForDeletion->remove($this->operationPrestationssScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "function permissions_init()\n{\n // Get datbase setup - note that both pnDBGetConn() and pnDBGetTables()\n // return arrays but we handle them differently. For pnDBGetConn()\n // we currently just want the first item, which is the official\n // database handle. For pnDBGetTables() we want to keep the entire\n // tables array together for easy reference later on\n $dbconn =& pnDBGetConn(true);\n $pntable =& pnDBGetTables();\n\n // Create a new data dictionary object\n $dict = NewDataDictionary($dbconn);\n\n // Define any table specific options\n\t$taboptarray =& pnDBGetTableOptions();\n\n // It's good practice to name the table and column definitions you\n // are getting - $table and $column don't cut it in more complex\n // modules\n $grouppermstable = &$pntable['group_perms'];\n $grouppermscolumn = &$pntable['group_perms_column'];\n\n // Create the sql using adodb's data dictionary.\n\t// The formatting here is not mandatory, but it does\n // make the SQL statement relatively easy to read.\n $sql = \"\n\t\t\tpn_pid I(11) AUTO PRIMARY,\n\t\t\tpn_gid I(11) NOTNULL DEFAULT '0',\n\t\t\tpn_sequence I(11) NOTNULL DEFAULT '0',\n\t\t\tpn_realm I(4) NOTNULL DEFAULT '0',\n\t\t\tpn_component C(255) NOTNULL DEFAULT '',\n\t\t\tpn_instance C(255) NOTNULL DEFAULT '',\n\t\t\tpn_level I(4) NOTNULL DEFAULT '0',\n\t\t\tpn_bond I(2) NOTNULL DEFAULT '0'\n \";\n\t\n // create the data dictionaries SQL array\n\t// This array contains all the ncessary information to execute some sql \n\t// on any of the supported dbms platforms\n $sqlarray = $dict->CreateTableSQL($grouppermstable, $sql, $taboptarray);\n\n // Execute the sql that has been created\n $result = $dict->ExecuteSQLArray($sqlarray);\n\n // Check for an error with the database code, and if so set an\n // appropriate error message and return\n if ($result != 2) {\n pnSessionSetVar('errormsg', _CREATETABLEFAILED);\n return false;\n }\n\n // It's good practice to name the table and column definitions you\n // are getting - $table and $column don't cut it in more complex\n // modules\n $userpermstable = &$pntable['user_perms'];\n $userpermscolumn = &$pntable['user_perms_column'];\n\n // Create the sql using adodb's data dictionary.\n\t// The formatting here is not mandatory, but it does\n // make the SQL statement relatively easy to read.\n $sql = \"\n\t\t\tpn_pid I(11) PRIMARY AUTO,\n\t\t\tpn_uid I(11) NOTNULL DEFAULT '0',\n\t\t\tpn_sequence I(6) NOTNULL DEFAULT '0',\n\t\t\tpn_realm I(4) NOTNULL DEFAULT '0',\n\t\t\tpn_component C(255) NOTNULL DEFAULT '',\n\t\t\tpn_instance C(255) NOTNULL DEFAULT '',\n\t\t\tpn_level I(4) NOTNULL DEFAULT '0',\n\t\t\tpn_bond I(2) NOTNULL DEFAULT '0'\n \";\n\t\n // create the data dictionaries SQL array\n\t// This array contains all the ncessary information to execute some sql \n\t// on any of the supported dbms platforms\n $sqlarray = $dict->CreateTableSQL($userpermstable, $sql, $taboptarray);\n\n // Execute the sql that has been created\n $result = $dict->ExecuteSQLArray($sqlarray);\n\n // Check for an error with the database code, and if so set an\n // appropriate error message and return\n if ($result != 2) {\n pnSessionSetVar('errormsg', _CREATETABLEFAILED);\n return false;\n }\n\n // Create any default for this module\n\tpermissions_defaultdata();\n\n // Initialisation successful\n return true;\n}", "private function add_company()\n {\n \t$helperPluginManager = $this->getServiceLocator();\n \t$serviceManager = $helperPluginManager->getServiceLocator();\n \t$company = $serviceManager->get('PM/Model/Companies');\n \t\n \t$result = $company->getCompanyById($this->pk);\t\n \tif($result)\n \t{\n \t\t$company_url = $this->view->url('companies/view', array('company_id' => $result['id']));\n \t\t$this->add_breadcrumb($company_url, $result['name'], TRUE);\n \t} \t\n }", "public function addKanpainaRelKategoria(\\Klikasi\\Model\\Raw\\KanpainaRelKategoria $data)\n {\n $this->_KanpainaRelKategoria[] = $data;\n $this->_setLoaded('KanpainaRelKategoriaIbfk1');\n return $this;\n }", "static public function setRelationCoef() {\n $link_db = Piwidict::getDatabaseConnection();\n \n $rk = array();\n $query = \"SELECT id, name FROM relation_type\";\n $res = $link_db -> query_e($query,\"Query failed in file <b>\".__FILE__.\"</b>, string <b>\".__LINE__.\"</b>\");\n\n while ($row = $res->fetch_object()){\n// if ($row->name == 'synonyms') \n if ($row->name != 'synonyms') \n\t $rk[$row->id] = 1;\n\t else \t\n\t $rk[$row->id] = 0.5;\n } \n return $rk;\n }", "protected function doInsert(PropelPDO $con)\n {\n $modifiedColumns = array();\n $index = 0;\n\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n if (null !== $this->op_prime_id) {\n throw new PropelException('Cannot insert a value for auto-increment primary key (' . OperationPrimesPeer::OP_PRIME_ID . ')');\n }\n\n // check the columns in natural order for more readable SQL queries\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) {\n $modifiedColumns[':p' . $index++] = '`op_prime_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) {\n $modifiedColumns[':p' . $index++] = '`op_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) {\n $modifiedColumns[':p' . $index++] = '`op_prime_libelle`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) {\n $modifiedColumns[':p' . $index++] = '`op_prime_numero`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) {\n $modifiedColumns[':p' . $index++] = '`gdl_art_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_currency_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_type_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_expedition_mode_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_r_reward_transporter_id`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_fixed_amount`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_product_price_pourcentage`';\n }\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) {\n $modifiedColumns[':p' . $index++] = '`operation_prime_maximum_amount`';\n }\n\n $sql = sprintf(\n 'INSERT INTO `operation_primes` (%s) VALUES (%s)',\n implode(', ', $modifiedColumns),\n implode(', ', array_keys($modifiedColumns))\n );\n\n try {\n $stmt = $con->prepare($sql);\n foreach ($modifiedColumns as $identifier => $columnName) {\n switch ($columnName) {\n case '`op_prime_id`':\n $stmt->bindValue($identifier, $this->op_prime_id, PDO::PARAM_INT);\n break;\n case '`op_id`':\n $stmt->bindValue($identifier, $this->op_id, PDO::PARAM_INT);\n break;\n case '`op_prime_libelle`':\n $stmt->bindValue($identifier, $this->op_prime_libelle, PDO::PARAM_STR);\n break;\n case '`op_prime_numero`':\n $stmt->bindValue($identifier, $this->op_prime_numero, PDO::PARAM_INT);\n break;\n case '`gdl_art_id`':\n $stmt->bindValue($identifier, $this->gdl_art_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_currency_id`':\n $stmt->bindValue($identifier, $this->operation_prime_currency_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_r_reward_type_id`':\n $stmt->bindValue($identifier, $this->operation_prime_r_reward_type_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_r_reward_expedition_mode_id`':\n $stmt->bindValue($identifier, $this->operation_prime_r_reward_expedition_mode_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_r_reward_transporter_id`':\n $stmt->bindValue($identifier, $this->operation_prime_r_reward_transporter_id, PDO::PARAM_INT);\n break;\n case '`operation_prime_fixed_amount`':\n $stmt->bindValue($identifier, $this->operation_prime_fixed_amount, PDO::PARAM_INT);\n break;\n case '`operation_prime_product_price_pourcentage`':\n $stmt->bindValue($identifier, $this->operation_prime_product_price_pourcentage, PDO::PARAM_INT);\n break;\n case '`operation_prime_maximum_amount`':\n $stmt->bindValue($identifier, $this->operation_prime_maximum_amount, PDO::PARAM_INT);\n break;\n }\n }\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e);\n }\n\n try {\n $pk = $con->lastInsertId();\n } catch (Exception $e) {\n throw new PropelException('Unable to get autoincrement id.', $e);\n }\n $this->setOpPrimeId($pk);\n\n $this->setNew(false);\n }", "public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }", "public function insertPrivilegeRoleLink($rID, $pID)\n {\n try {\n $this->sdb->query(\"insert into privilege_role_link (rid, pid) values ($1, $2)\",\n array($rID, $pID));\n }\n catch ( \\snac\\exceptions\\SNACDatabaseException $e) {\n // This should only happen if privilege_role_link already exists\n }\n }", "public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_permissies'));\n }", "public function addRIssuesNarrationplugin(ChildRIssuesNarrationplugin $l)\n {\n if ($this->collRIssuesNarrationplugins === null) {\n $this->initRIssuesNarrationplugins();\n $this->collRIssuesNarrationpluginsPartial = true;\n }\n\n if (!$this->collRIssuesNarrationplugins->contains($l)) {\n $this->doAddRIssuesNarrationplugin($l);\n\n if ($this->rIssuesNarrationpluginsScheduledForDeletion and $this->rIssuesNarrationpluginsScheduledForDeletion->contains($l)) {\n $this->rIssuesNarrationpluginsScheduledForDeletion->remove($this->rIssuesNarrationpluginsScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function action_p2p_init_register_connections() {\n\n foreach ( Types::get_post_types() as $post_type ) {\n $this->connection_types_by_post_type[ $post_type ] = [];\n }\n\n foreach ( $this->post_types as $post_type => $settings ) :\n\n $labels = Types::get_post_type_labels( $post_type );\n $sanitized_name = Types::get_post_type_name( $post_type, true, true );\n $geo_fields = [\n 'rel' => [\n 'title' => 'Relation',\n 'type' => 'select',\n 'values' => $this->geospatial_rels,\n 'default' => 'contained_in',\n ],\n ];\n\n // Connect all clusters to entities\n $this->setup_cluster_connection_type( [\n 'name' => 'entities_to_' . $sanitized_name,\n 'from' => Types::get_entity_post_types(),\n 'to' => $post_type,\n 'sortable' => 'from',\n 'admin_box' => [\n 'context' => 'advanced',\n ],\n 'title' => [\n 'from' => $labels['name'],\n 'to' => __( 'Entities', 'pedestal' ),\n ],\n 'from_labels' => [\n 'singular_name' => __( 'Entity', 'pedestal' ),\n 'search_items' => __( 'Search entities', 'pedestal' ),\n 'not_found' => __( 'No entities found.', 'pedestal' ),\n 'create' => __( 'Create Connections', 'pedestal' ),\n ],\n ] );\n\n if ( 'pedestal_story' != $post_type ) {\n // Connect non-story clusters to Stories\n $this->setup_cluster_connection_type( [\n 'name' => 'stories_to_' . $sanitized_name,\n 'from' => 'pedestal_story',\n 'to' => $post_type,\n 'sortable' => 'from',\n 'admin_box' => [\n 'context' => 'advanced',\n ],\n 'title' => [\n 'from' => $labels['name'],\n 'to' => __( 'Stories', 'pedestal' ),\n ],\n ] );\n\n // Connect all non-Story clusters to Topics (including Topics)\n $data_connection_topics_to = [\n 'name' => 'topics_to_' . $sanitized_name,\n 'from' => 'pedestal_topic',\n 'to' => $post_type,\n 'sortable' => 'from',\n 'admin_box' => [\n 'context' => 'advanced',\n ],\n 'title' => [\n 'from' => $labels['name'],\n 'to' => __( 'Topics', 'pedestal' ),\n ],\n ];\n if ( 'pedestal_topic' === $post_type ) {\n $data_connection_topics_to['reciprocal'] = true;\n }\n $this->setup_cluster_connection_type( $data_connection_topics_to );\n }\n\n if ( in_array( $post_type, Types::get_geospace_post_types() ) ) {\n // Connect geospaces to themselves, with metadata\n $this->setup_cluster_connection_type( [\n 'name' => $sanitized_name . '_to_' . $sanitized_name,\n 'from' => $post_type,\n 'to' => $post_type,\n 'admin_box' => [\n 'context' => 'advanced',\n 'show' => 'from',\n ],\n 'title' => [\n 'from' => __( sprintf( 'Connected %s: Active', $labels['name'] ), 'pedestal' ),\n ],\n 'fields' => $geo_fields,\n ] );\n }\n\n endforeach;\n\n // Connect People to Organizations\n $this->setup_cluster_connection_type( [\n 'name' => 'people_to_organizations',\n 'from' => 'pedestal_person',\n 'to' => 'pedestal_org',\n 'sortable' => 'from',\n 'admin_box' => [\n 'context' => 'advanced',\n ],\n 'title' => [\n 'from' => __( 'Organizations', 'pedestal' ),\n 'to' => __( 'People', 'pedestal' ),\n ],\n ] );\n\n // Connect Organizations to Places\n $this->setup_cluster_connection_type( [\n 'name' => 'organizations_to_places',\n 'from' => 'pedestal_org',\n 'to' => 'pedestal_place',\n 'sortable' => 'from',\n 'admin_box' => [\n 'context' => 'advanced',\n ],\n 'title' => [\n 'from' => __( 'Places', 'pedestal' ),\n 'to' => __( 'Organizations', 'pedestal' ),\n ],\n ] );\n\n // Connect Localities to Places with metadata\n $this->setup_cluster_connection_type( [\n 'name' => 'places_to_localities',\n 'from' => 'pedestal_place',\n 'to' => 'pedestal_locality',\n 'sortable' => 'from',\n 'admin_box' => [\n 'context' => 'advanced',\n ],\n 'title' => [\n 'from' => __( 'Localities', 'pedestal' ),\n 'to' => __( 'Places', 'pedestal' ),\n ],\n 'fields' => $geo_fields,\n ] );\n }", "function load($p_id='') {\n global $DB;\n\n parent::load($p_id);\n $this->ifaddrs = $this->getIfaddrsDB();\n $this->ports = $this->getPortsDB();\n\n $query = \"SELECT `ID`\n FROM `glpi_plugin_fusioninventory_networking`\n WHERE `FK_networking` = '\".$this->getValue('ID').\"';\";\n if ($result = $DB->query($query)) {\n if ($DB->numrows($result) != 0) {\n $fusioninventory = $DB->fetch_assoc($result);\n $this->oFusionInventory_networking->load($fusioninventory['ID']);\n $this->ptcdLinkedObjects[]=$this->oFusionInventory_networking;\n }\n }\n }", "public function _construct(int $vl_ref, int $code = 1){ parent::__construct(\"Can't find the register using the PK reference #$vl_ref!\", $code);}", "public function _construct(int $vl_ref, int $code = 1){ parent::__construct(\"Can't find the register using the PK reference #$vl_ref!\", $code);}", "public function addNewJobOpo()\n {\n }", "public function keyPoolRefill();", "public function addFeatureCvtermprop(FeatureCvtermprop $l)\n {\n if ($this->collFeatureCvtermprops === null) {\n $this->initFeatureCvtermprops();\n $this->collFeatureCvtermpropsPartial = true;\n }\n if (!in_array($l, $this->collFeatureCvtermprops->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddFeatureCvtermprop($l);\n }\n\n return $this;\n }", "function admin_add_rp($model = null, $row_id = null) {\r\n if ((empty($model) OR empty($row_id)) AND empty($this->request->data)) {\r\n $this->Session->setFlash(__('NieprawidĹ‚owe wywoĹ‚anie'));\r\n $this->redirect($this->referer());\r\n }\r\n if (!empty($this->request->data)) {\r\n if (!empty($this->request->data['Permission']['name'])) {\r\n //save permission record before saving relation\r\n $permissionRow = $this->Permission->createIfNotExists($this->request->data['Permission']['name']);\r\n if (!empty($permissionRow)) {\r\n $this->request->data['RequestersPermission']['permission_id'] = $permissionRow['Permission']['id'];\r\n }\r\n }\r\n\r\n $this->RequestersPermission->create();\r\n if ($this->RequestersPermission->save(array('RequestersPermission' => $this->request->data['RequestersPermission']))) {\r\n $this->Session->setFlash(__('Uprawnienie zostało zapisane'));\r\n $this->redirect(array(\r\n 'controller' => Inflector::underscore(Inflector::pluralize($this->request->data['RequestersPermission']['model'])),\r\n 'action' => 'view',\r\n $this->request->data['RequestersPermission']['row_id']\r\n ));\r\n } else {\r\n $this->Session->setFlash(__('Zapisywanie nie powiodlo się'));\r\n }\r\n }\r\n if (empty($this->request->data)) {\r\n $this->request->data['RequestersPermission']['model'] = $model;\r\n $this->request->data['RequestersPermission']['row_id'] = $row_id;\r\n }\r\n $record = $this->Permission->{$this->request->data['RequestersPermission']['model']}->find('first', array(\r\n 'conditions' => array($this->request->data['RequestersPermission']['model'] . '.id' => $this->request->data['RequestersPermission']['row_id']),\r\n 'fields' => array($this->request->data['RequestersPermission']['model'] . '.*')\r\n ));\r\n\r\n $this->set('record', $record);\r\n $this->set('permissions', $this->Permission->find('list'));\r\n\r\n $title = 'Nowe uprawnienie dla grupy';\r\n $subtitle = 'Nowe uprawnienie dla grupy';\r\n\r\n $this->set(compact('title', 'subtitle'));\r\n }", "public function setOperations(Operations $v = null)\n {\n if ($v === null) {\n $this->setOpId(NULL);\n } else {\n $this->setOpId($v->getOpId());\n }\n\n $this->aOperations = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the Operations object, it will not be re-added.\n if ($v !== null) {\n $v->addOperationPrimes($this);\n }\n\n\n return $this;\n }", "public function saveModuleResource($resource){\n \n \t\t$module_backend_code = $resource['module_backend_code'];\n \t\t$chk_query = \"SELECT * from pos_modules WHERE module_backend_code = '{$module_backend_code}'\";\n \t\t$res = mysql_query($chk_query);\n \t\tif(mysql_num_rows($res)){\n \t\t\treturn -1;\n \t\t}else{\n \t\t\t$columns = '';\n\t\t $values = '';\n\t\t\tforeach ($resource as $key => $value) {\n\t\t\t\t$columns = $columns . $key . ',';\n\t\t\t\t$values = $values . \"'\" . mysql_real_escape_string($value) . \"',\";\n\t\t\t}\n\t\t\t$query = \"INSERT INTO pos_modules (\" . trim($columns, ',') . \") VALUES(\" . trim($values, ',') . \")\";\n\t\t $result = mysql_query($query);\n\t\t if($result){\n\t\t \treturn TRUE;\n\t\t }else{\n\t\t \treturn FALSE;\n\t\t }\n \t\t}\n \t}", "public function initOperationScenariis($overrideExisting = true)\n {\n if (null !== $this->collOperationScenariis && !$overrideExisting) {\n return;\n }\n $this->collOperationScenariis = new PropelObjectCollection();\n $this->collOperationScenariis->setModel('OperationScenarii');\n }", "function __construct($id, $label, $price, $nbSame, $listProvConcern){\n \n parent::__construct($id, $label, $price);\n $this->nbSame = $nbSame;\n // $this->provInfo = $this->getProvInfo();\n // $this->totalPrice = $this->getTotalPrice();\n \n \n }", "public function addCoresearcher($userId, $isPI = false) {\r\n global $db;\r\n\r\n // remove existing PI's if this is a PU and they already exist\r\n if($isPI == true) {\r\n $this->clearPrincipalInvestigators();\r\n }\r\n\r\n $sql = sprintf(\"INSERT INTO `forms_tracking_coresearchers`\r\n (`form_tracking_coresearcher_id`,`user_id`,`form_tracking_id`, isPI)\r\n VALUES(NULL, %s, %s, %s)\",\r\n $userId, $this->trackingFormId, $isPI ? '1' : '0');\r\n $result = $db->Execute($sql);\r\n if(!$result) {\r\n throw new Exception('Unable to save coresearcher');\r\n }\r\n\r\n $this->coResearchers[] = new Investigator($userId);\r\n }", "public function initRIssuesNarrationplugins($overrideExisting = true)\n {\n if (null !== $this->collRIssuesNarrationplugins && !$overrideExisting) {\n return;\n }\n $this->collRIssuesNarrationplugins = new ObjectCollection();\n $this->collRIssuesNarrationplugins->setModel('\\RIssuesNarrationplugin');\n }", "public function clientToRp(Request $request, $id)\n {\n $PublicRespel = Respel::where('RespelSlug', $id)->first();\n\n $PublicRespel->load('requerimientos');\n // return $PublicRespel;\n $newRespel = $PublicRespel->replicate();\n $newRespel->RespelSlug = hash('sha256', rand().time().$PublicRespel->RespelName);\n $newRespel->RespelPublic = 1;\n $newRespel->FK_SubCategoryRP = 1;\n $newRespel->RespelStatus = 'Evaluado';\n $newRespel->FK_RespelCoti = 1;\n $newRespel->save();\n\n foreach($PublicRespel->requerimientos as $requerimiento)\n {\n if ($requerimiento->forevaluation == 1) {\n $requerimiento->load('pretratamientosSelected');\n $newrequerimiento = $requerimiento->replicate();\n $newrequerimiento->ReqSlug = hash('md5', rand().time().$newRespel->ID_Respel);\n $newrequerimiento->FK_ReqRespel = $newRespel->ID_Respel;\n $newrequerimiento->ofertado = 0;\n $newrequerimiento->save();\n\n foreach($requerimiento->pretratamientosSelected as $pretratamientoSelected)\n {\n $newrequerimiento->pretratamientosSelected()->attach($pretratamientoSelected->ID_PreTrat);\n }\n /*se copian las tarifas y los rangos relacionados*/\n $tarifaparacopiar = Tarifa::with(['rangos'])\n ->where('FK_TarifaReq', $requerimiento->ID_Req)->first();\n $nuevatarifa = $tarifaparacopiar->replicate();\n $nuevatarifa->FK_TarifaReq=$newrequerimiento->ID_Req;\n $nuevatarifa->save();\n\n foreach ($tarifaparacopiar->rangos as $rango) {\n $rangoparacopiar = Rango::find($rango->ID_Rango);\n $nuevarango = $rangoparacopiar->replicate();\n $nuevarango->FK_RangoTarifa = $nuevatarifa->ID_Tarifa;\n $nuevarango->save();\n }\n }\n \n }\n\n $log = new audit();\n $log->AuditTabla=\"respelpublic\";\n $log->AuditType=\"Copiado\";\n $log->AuditRegistro=$newRespel->ID_Respel;\n $log->AuditUser=Auth::user()->email;\n $log->Auditlog=json_encode($newRespel->RespelName);\n $log->save();\n // return $newRespel;\n\n return redirect()->route('respelspublic.edit', [$newRespel->RespelSlug]);\n }", "public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }", "private function upisiPrijavu($idObj, $idKor){\n $db = \\Config\\Database::connect();\n $builder = $db->table('prijavljen');\n $data = [\n \"idKor\"=>$idKor,\n \"idObj\"=>$idObj\n ];\n $builder->insert($data);\n }", "public function initSolicitacaoResgatesRelatedByAprovadorId($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collSolicitacaoResgatesRelatedByAprovadorId && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId = new PropelObjectCollection();\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId->setModel('SolicitacaoResgate');\n\t}", "public function initialize()\n {\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('Cd_produto', 'App\\Models\\Produto', 'cd_produto', array('foreignKey' => true,'alias' => 'Produto'));\n }", "function initCompaniesArray($roo, $data)\n {\n $tn = $this->tableName();\n \n foreach($data as $d){\n $com = DB_DataObject::factory($tn);\n $com->setFrom($d);\n if(!$com->find(true)){\n $com->created_dt = Date('Y-m-d H:i:s');\n $com->updated_dt = Date('Y-m-d H:i:s');\n $com->is_system = 1;// new column.. block the user changing the code and name..\n $com->insert();\n }\n }\n \n \n }", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = serialize(array((string) $obj->getIdRuang(), (string) $obj->getSemesterId()));\n } // if key === null\n RuangLongitudinalPeer::$instances[$key] = $obj;\n }\n }", "public function add_to_pool($data)\n {\n //If the data provided is not an array ~ return false\n if(!is_array($data))\n { return FALSE; }\n\n // Generate a random id\n $id = mt_rand(LOWER_ID_BOUND,UPPER_ID_BOUND); \n \n #TODO: Consider checking if we have run out of ids (We have 99 million possible ids ~ should be enough for a while. Means 99 million hookup attempts)\n \n $this->db->select(TBL_POOL.'.id');\n $this->db->where(TBL_POOL.'.id',$id);\n $pool_entry = $this->db->get(TBL_POOL)->row_object();\n\n //If a pool entry with that id exists ~ try again\n if(isset($pool_entry))\n { \n $this->add_to_pool($data);#Recursively try again\n }\n else //The pool entry does not exist ~ the id is unique\n {\n $data['id'] = $id;\n return $this->db->insert(TBL_POOL,$data);\n }\n }", "public function initPermissaosRelatedByCoUsuarioAlteracao($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPermissaosRelatedByCoUsuarioAlteracao && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = new PropelObjectCollection();\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao->setModel('Permissao');\n\t}", "function addNewprefect (){\n $data = array(\n 'prfct_nom' => $this->input->post('prfct_nom')\n );\n $this->db->insert('prefectures',$data);\n }", "public function addPermissaoRelatedByCoUsuarioAlteracao(Permissao $l)\n\t{\n\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao === null) {\n\t\t\t$this->initPermissaosRelatedByCoUsuarioAlteracao();\n\t\t}\n\t\tif (!$this->collPermissaosRelatedByCoUsuarioAlteracao->contains($l)) { // only add it if the **same** object is not already associated\n\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao[]= $l;\n\t\t\t$l->setUsuarioRelatedByCoUsuarioAlteracao($this);\n\t\t}\n\n\t\treturn $this;\n\t}", "function addRvps()\n {\n $output = new stdClass();\n\n $db = new MySQL(DB_INFO);\n $table = 'ipt_networks';\n $where = 'status=1 AND server_nid='.$_POST['server'];\n $networks = $db->select($table, $where);\n\n $table = 'ipt_servers';\n $where = 'status=1 AND nid='.$_POST['server'];\n $output->res['server'] = $db->selectRow($where, null,$table);\n\n $table = 'fin_plans';\n $output->res['plan'] = $db->selectId($_POST['plan'],'*',$table);\n\n $table = 'fin_plan_limits';\n $where = \"plan_name='\".$output->res['plan']['plan_name'].\"'\";\n $output->res['limits'] = $db->selectRow($where, null,$table);\n\n $table = 'ipt_os';\n $plan_cpu = $output->res['plan']['cpu_core'];\n $plan_ram = $output->res['plan']['ram'];\n $where = 'min_ram<='.$plan_ram.' AND min_cpu<='.$plan_cpu;\n $output->res['os'] = $db->select($table, $where);\n\n $ip = false;\n foreach ($networks as $network) {\n $output->res['network'] = $network;\n $table = 'ipt_ips';\n $where = 'status=1 AND network_id='.$network['id'];\n $order = 'network_id';\n $ip = $db->selectRow($where, $order,$table);\n if ($ip) break;\n }\n $output->res['ip'] = $ip;\n $output->e = ($ip) ? false : true;\n echo json_encode($output);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getProdId();\n\n $validPrimaryKeyFKs = 3;\n $primaryKeyFKs = [];\n\n //relation tbl_prod_info_fk_c95266 to table tbl_prod_photos\n if ($this->aTblProdPhotos && $hash = spl_object_hash($this->aTblProdPhotos)) {\n $primaryKeyFKs[] = $hash;\n } else {\n $validPrimaryKeyFKs = false;\n }\n\n //relation tbl_prod_info_fk_55d783 to table tbl_prod_prices\n if ($this->aTblProdPrices && $hash = spl_object_hash($this->aTblProdPrices)) {\n $primaryKeyFKs[] = $hash;\n } else {\n $validPrimaryKeyFKs = false;\n }\n\n //relation tbl_prod_info_fk_937b39 to table tbl_prod_smaller\n if ($this->aTblProdSmaller && $hash = spl_object_hash($this->aTblProdSmaller)) {\n $primaryKeyFKs[] = $hash;\n } else {\n $validPrimaryKeyFKs = false;\n }\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function add_kelas($nip,$nama_kelas)\n {\n $response = $this->db->query(\"call group_kelas('add','{$nip}','{$nama_kelas}','')\");\n $this->set_response($response, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code\n }", "public function resetPartialLnkOperationPrimeRCountriess($v = true)\n {\n $this->collLnkOperationPrimeRCountriessPartial = $v;\n }", "public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_id !== $v) {\n $this->op_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_ID;\n }\n\n if ($this->aOperations !== null && $this->aOperations->getOpId() !== $v) {\n $this->aOperations = null;\n }\n\n\n return $this;\n }", "public function insert($loyPrg);", "protected function init()\r\n {\r\n $this->table_name = 'libelles';\r\n $this->table_type = 'system';\r\n $this->table_gateway_alias = 'Sbm\\Db\\SysTableGateway\\Libelles';\r\n $this->id_name = array(\r\n 'nature',\r\n 'code'\r\n );\r\n }", "protected function _construct()\n {\n $this->_init('commercers_profilers_rule', 'rule_id');\n }", "public static function statsticsPigeonsCountry()\n\t{\n\t\t$pigeonTable=Pigeon::getTableSchema();\n\t\t$pigeonCountryTable=PigeonCountry::getTableSchema();\n\t\t$query = (new Query())\n\t\t\t\t->select([\"COUNT(*) as count\", \"IDcountry\", \"country\"])\n\t\t\t\t->from($pigeonTable->name)\n\t\t\t\t->leftJoin($pigeonCountryTable->name, \"$pigeonCountryTable->name.ID=$pigeonTable->name.IDcountry\", $params = [] )\n\t\t\t\t->where(['IDuser'=>Yii::$app->user->getId()])\n\t\t\t\t->groupBy('IDcountry');\n\t\t$command = $query->createCommand();\n\t\t$rows = $command->queryAll();\n\n\t\tforeach($rows as $value)\n\t\t{\n\t\t\t$countryCount[$value[\"IDcountry\"]]=$value[\"count\"];\n\t\t\t$countryLabel[$value[\"IDcountry\"]]=$value[\"country\"];\n\t\t}\n\n\t\t /* Create and populate the pData object */ \n\t\t$MyData = new \\pData(); \n\t\t$MyData->loadPalette(Yii::getAlias(\"@common\").\"/pchart/palettes/light.color\", TRUE);\n\t\t$MyData->addPoints($countryCount, \"Countries\"); \n\t\t$MyData->setAxisName(0,Yii::t('default', 'Number of pigeons')); \n\t\t$MyData->addPoints($countryLabel,\"Country Name\"); \n\t\t//$MyData->setSerieDescription(\"Country Name\", \"\"); \n\t\t$MyData->setAbscissa(\"Country Name\"); \n\t\t\n\t\t/* Create the pChart object */ \n\t\t$myPicture = new \\pImage(800,230,$MyData); \n\t\t\n\t\t/* Turn of Antialiasing */ \n\t\t$myPicture->Antialias = FALSE; \n\t\t\n\t\t/* Set the default font */ \n\t\t$myPicture->setFontProperties(array(\"FontName\"=>Yii::getAlias(\"@common\").\"/pchart/fonts/verdana.ttf\",\"FontSize\"=>10)); \n\t\t\n\t\t/* Define the chart area */ \n\t\t$myPicture->setGraphArea(60,40,650,200); \n\t\t\n\t\t/* Draw the scale */ \n\t\t$scaleSettings = array(\"GridR\"=>200,\"GridG\"=>200,\"GridB\"=>200,\"DrawSubTicks\"=>TRUE,\"CycleBackground\"=>TRUE, \"Mode\"=>SCALE_MODE_START0); \n\t\t$myPicture->drawScale($scaleSettings); \n\t\t\n\t\t/* Write the chart legend */ \n\t\t$myPicture->drawLegend(480,12,array(\"Style\"=>LEGEND_NOBORDER,\"Mode\"=>LEGEND_HORIZONTAL)); \n\t\t\n\t\t\n\t\t/* Draw the chart */ \n\t\t$myPicture->drawBarChart(); \n\t\t\n\t\t/* Render the picture (choose the best way) */ \n\t\t$myPicture->autoOutput(Yii::getAlias(\"@webroot\").\"/temp/example.drawBarChartCountry.png\"); \n\n\t}", "public function set_ville_fk($_ville_fk){\n $this->_ville_fk = $_ville_fk;\n\n return $this;\n }", "function init()\n {\n foreach ($GLOBALS['_PX_models'] as $model=>$val) {\n if (isset($val['relate_to'])) {\n foreach ($val['relate_to'] as $related) {\n if ($this->_model == $related) {\n // The current model is related to $model\n // through one or more foreign key. We load\n // the $model to check on which fields the\n // foreign keys are set, as it is possible in\n // one model to have several foreign keys to\n // the same other model.\n if ($model != $this->_model) {\n $_m = new $model();\n $_fkeys = $_m->getForeignKeysToModel($this->_model);\n } else {\n $_fkeys = $this->getForeignKeysToModel($this->_model);\n }\n foreach ($_fkeys as $_fkey=>$_fkeyval) {\n //For each foreign key, we add the\n //get_xx_list method that can have a\n //custom name through the relate_name\n //value.\n if (isset($_fkeyval['relate_name'])) {\n $mname = $_fkeyval['relate_name'];\n } else {\n $mname = strtolower($model);\n }\n $this->_methods_list['get_'.$mname.'_list'] = array($model, $_fkey);\n }\n break;\n }\n }\n }\n if (isset($val['relate_to_many']) && \n in_array($this->_model, $val['relate_to_many'])) {\n $this->_methods_list['get_'.strtolower($model).'_list'] = $model;\n $this->_manytomany[$model] = 'manytomany';\n }\n }\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']($col);\n if ($field->type == 'foreignkey') {\n $this->_methods_get['get_'.strtolower($col)] = array($val['model'], $col);\n $this->_fk[$col] = 'foreignkey';\n }\n if ($field->type == 'manytomany') {\n $this->_methods_list['get_'.strtolower($col).'_list'] = $val['model'];\n $this->_manytomany[$val['model']] = 'manytomany';\n }\n foreach ($field->add_methods as $method) {\n $this->_methods_extra[$method[0]] = array(strtolower($col), $method[1]);\n }\n }\n }", "public function associateLTIUser(Interface_LTIUser $ltiUser);", "protected function registerPOReconciliation()\n {\n $this->app->bindShared('poReconciliation', function($app)\n {\n return $this->app->make('App\\vital40\\Receive\\POReconciliationFlow');\n });\n }", "public function initPruebas($K,$calculoSimilitud, $algPredicion ){\n\t\t//cargamos y recogemos las valoraciones\n\t\t$this->modelo->cargaRatings();\n\t\t$ratings=$this->modelo->dameRatings();\t\n\t\t//y un vector que es un indice con las posiciones a los item en el vector $ratings\t\n\t\t$indiceItem=$this->modelo->dameIndiceRatingIdItem();\n\t\t//funcion para calcular el tiempo\n\t\t$time=time();\n //Configuracion de los parametros del KNN\n\t\t$PCC=0;\n\t\t$SC=0;\n\t\tif($calculoSimilitud=='PCC')\n\t\t\t$PCC=1;\n\t\telse\n\t\t\t$SC=1;\n $IA=0;\n\t\t$WS=0;\n\t\tif($algPredicion=='IA')\n\t\t\t$IA=1;\n\t\telse\n\t\t\t$WS=1;\n\t\t//creamos la clase KNN que es donde se van a realizar todos los calculos\n\t\t$this->KNN=new KNN($ratings,$indiceItem,$K, $PCC, $SC, $IA, $WS);\n\t\t//empezamos con el calculo del modelo intermedio \n\t\t$desde=0;\n\t\t$hasta=10;\n\t\t$nombre='modelo_'.$K.'_'.$calculoSimilitud.'_'.$desde.'_'.$hasta;\n\t\tif($this->modelo->getVariable($nombre)!=null) {\n\t\t\t//\n\t\t}else{\n $this->KNN->calculoVecinos($desde, $hasta);\n $tablaModeloIntermedio=$this->KNN->dameModeloIntermedio();\n //lo serializo el resultado para almacenarlo en la BD y tner el modelo guardado\n $tablaModeloIntermedio=serialize($tablaModeloIntermedio);\n $this->modelo->setVariable($nombre, $tablaModeloIntermedio);\n\t\t}\n\t\t$time2=time();\n\t\t\n\t\t\n\t\techo ($time2-$time).'####';\n\t\t//printf de un vector\n\t\t//var_dump($this->KNN->dameSimilitudVecinos());\n\t\t\n\t\t\n\t\t\n\t}", "public function getIdpeliculas()\n {\n return $this->hasMany(Pelicula::className(), ['id' => 'idpelicula'])->viaTable('actores_por_pelicula', ['idactor' => 'id']);\n }", "public function hashCode()\n {\n $validPk = null !== $this->getPothnbr();\n\n $validPrimaryKeyFKs = 1;\n $primaryKeyFKs = [];\n\n //relation purchaseorder to table po_head\n if ($this->aPurchaseOrder && $hash = spl_object_hash($this->aPurchaseOrder)) {\n $primaryKeyFKs[] = $hash;\n } else {\n $validPrimaryKeyFKs = false;\n }\n\n if ($validPk) {\n return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));\n } elseif ($validPrimaryKeyFKs) {\n return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));\n }\n\n return spl_object_hash($this);\n }", "public function __construct() {\n parent::__construct();\n\t\t$this->defineName(\"candidates\");\n }", "public function setPrciAccion($prciAccion)\n {\n $this->prciAccion = $prciAccion;\n\n return $this;\n }", "public static function addInstanceToPool(Tbprofessor $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getMatriculaProf();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "public function __construct($_oprL = null,$_oprType = null,$_label = null,$_name = null,$_oper = null,$_debit = null,$_credit = null)\n {\n parent::__construct(array('oprL'=>$_oprL,'oprType'=>$_oprType,'Label'=>$_label,'Name'=>$_name,'oper'=>$_oper,'Debit'=>$_debit,'Credit'=>$_credit), false);\n }", "public function setPrimaryKey($key)\n {\n $this->setOpPrimeId($key);\n }", "protected function getRankKey()\n {\n return $this->prefix . ':' . $this->getRankingName() . '_' . 'rank';\n }", "public function setRole() {\n\n $res= $_POST['link']->query(\"SELECT t2.perm_name FROM role_perm as t1\n JOIN permissions as t2 ON t1.perm_id = t2.perm_id\n WHERE t1.role_id = $this->rol_id\");\n\n\n foreach($res as $item)\n $this->role_perm[]= $item['perm_name'];\n }", "function tilPenalties()\n {\n return $this->hasMany('App\\TilPenalties');\n }", "public function getOperationPrimeRRewardTypeId()\n {\n\n return $this->operation_prime_r_reward_type_id;\n }", "public function copyInto($copyObj, $deepCopy = false, $makeNew = true)\n {\n $copyObj->setOpId($this->getOpId());\n $copyObj->setOpPrimeLibelle($this->getOpPrimeLibelle());\n $copyObj->setOpPrimeNumero($this->getOpPrimeNumero());\n $copyObj->setGdlArtId($this->getGdlArtId());\n $copyObj->setOperationPrimeCurrencyId($this->getOperationPrimeCurrencyId());\n $copyObj->setOperationPrimeRRewardTypeId($this->getOperationPrimeRRewardTypeId());\n $copyObj->setOperationPrimeRRewardExpeditionModeId($this->getOperationPrimeRRewardExpeditionModeId());\n $copyObj->setOperationPrimeRRewardTransporterId($this->getOperationPrimeRRewardTransporterId());\n $copyObj->setOperationPrimeFixedAmount($this->getOperationPrimeFixedAmount());\n $copyObj->setOperationPrimeProductPricePourcentage($this->getOperationPrimeProductPricePourcentage());\n $copyObj->setOperationPrimeMaximumAmount($this->getOperationPrimeMaximumAmount());\n\n if ($deepCopy && !$this->startCopy) {\n // important: temporarily setNew(false) because this affects the behavior of\n // the getter/setter methods for fkey referrer objects.\n $copyObj->setNew(false);\n // store object hash to prevent cycle\n $this->startCopy = true;\n\n foreach ($this->getOperationPrestationss() as $relObj) {\n if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves\n $copyObj->addOperationPrestations($relObj->copy($deepCopy));\n }\n }\n\n foreach ($this->getOperationScenariis() as $relObj) {\n if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves\n $copyObj->addOperationScenarii($relObj->copy($deepCopy));\n }\n }\n\n foreach ($this->getLnkOperationPrimeRCountriess() as $relObj) {\n if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves\n $copyObj->addLnkOperationPrimeRCountries($relObj->copy($deepCopy));\n }\n }\n\n //unflag object copy\n $this->startCopy = false;\n } // if ($deepCopy)\n\n if ($makeNew) {\n $copyObj->setNew(true);\n $copyObj->setOpPrimeId(NULL); // this is a auto-increment column, so set to default value\n }\n }", "function insertarProcesoCompra(){\n\t\t$this->procedimiento='adq.f_proceso_compra_ime';\n\t\t$this->transaccion='ADQ_PROC_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_depto','id_depto','int4');\n\t\t$this->setParametro('num_convocatoria','num_convocatoria','varchar');\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_ini_proc','fecha_ini_proc','date');\n\t\t$this->setParametro('obs_proceso','obs_proceso','varchar');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('num_tramite','num_tramite','varchar');\n\t\t$this->setParametro('codigo_proceso','codigo_proceso','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('num_cotizacion','num_cotizacion','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function initPermissaosRelatedByCoUsuarioCadastro($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPermissaosRelatedByCoUsuarioCadastro && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = new PropelObjectCollection();\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro->setModel('Permissao');\n\t}", "function addClassURI(){\n\t\t$classURIs = $this->classArray;\n\t\t$output = \"\";\n\t\t$db = $this->startDB();\n\t\t$sql = \"SELECT class_uuid, class_label\n\t\tFROM sp_classes\n\t\tWHERE 1\n\t\t\";\n\t\t$result = $db->fetchAll($sql);\n\t\tforeach($result as $row){\n\t\t\t$uuid = $row[\"class_uuid\"];\n\t\t\t$label = $row[\"class_label\"];\n\t\t\t$lcLabel = strtolower($label);\n\t\t\tforeach($classURIs as $lkey => $luri){\n\t\t\t\t$lclkey = strtolower($lkey);\n\t\t\t\tif($lclkey == $lcLabel){\n\t\t\t\t\t$uriex = explode(\"/\", $luri);\n\t\t\t\t\t$suffix = $uriex[count($uriex)-1];\n\t\t\t\t\t$prefURI = \"oc-gen:\".$suffix;\n\t\t\t\t\t$where = \"class_uuid = '$uuid' \";\n\t\t\t\t\t$data = array(\"class_uri\" => $prefURI);\n\t\t\t\t\t$db->update(\"sp_classes\", $data, $where);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public function woo_slg_initialize_linkedin() {\n\t\t\t\n\t\t\tglobal $woo_slg_options;\n\t\t\t\n\t\t\t//check enable linkedin & linkedin application id & linkedin application secret are not empty\n\t\t\tif( !empty( $woo_slg_options['woo_slg_enable_linkedin'] ) && !empty( $woo_slg_options['woo_slg_li_app_id'] )\n\t\t\t\t && !empty( $woo_slg_options['woo_slg_li_app_secret'] ) ) {\n\t\t\t\t\n\t\t\t \t//check $_GET['wooslg'] equals to linkedin\n\t\t\t\tif( isset( $_GET['wooslg'] ) && $_GET['wooslg'] == 'linkedin' \n\t\t\t\t\t&& !empty( $_GET['code'] ) && !empty( $_GET['state'] ) ) {\n\t\t\t\t\t\n\t\t\t\t\t//load linkedin class\n\t\t\t\t\t$linkedin\t= $this->woo_slg_load_linkedin();\n\t\t\t\t\t$config\t\t= $this->linkedinconfig;\n\t\t\t\t\t\n\t\t\t\t\t//check linkedin loaded or not\n\t\t\t\t\tif( !$linkedin ) return false;\n\t\t\t\t\t\n\t\t\t\t\t//Get Access token\n\t\t\t\t\t$arr_access_token\t= $this->linkedin->getAccessToken( $config['appKey'], $config['appSecret'], $config['callbackUrl']);\n\n\t\t\t\t\t// code will excute when user does connect with linked in\n\t\t\t\t\tif( !empty( $arr_access_token['access_token'] ) ) { // if user allows access to linkedin\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Get User Profiles\n\t\t\t\t\t\t$resultdata\t\t\t= $this->linkedin->getProfile();\n\n\t\t\t\t\t\t$resultdata \t\t= $this->woo_slg_get_li_processed_profile_data($resultdata);\n\n\t\t\t\t\t\t$emailData = $this->linkedin->getProfileEmail( $arr_access_token['access_token']);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( !empty( $emailData ) && isset( $emailData['elements'] ) && !empty( $emailData['elements'] ) ){\n\t\t\t\t\t\t\t$resultdata['emailAddress'] = $emailData['elements'][0]['handle~']['emailAddress'];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$imageData = $this->linkedin->getProfileImage( $arr_access_token['access_token']);\n\n\t\t\t\t\t\tif( !empty( $imageData ) && isset( $imageData['profilePicture'] ) ){\n\t\t\t\t\t\t\t$resultdata['pictureUrl'] = $imageData['profilePicture']['displayImage~']['elements'][0]['identifiers'][0]['identifier'];\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t//set user data to sesssion for further use\n\n\t\t\t\t\t\t\\WSL\\Persistent\\WOOSLGPersistent::set('woo_slg_linkedin_user_cache', $resultdata);\n\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// bad token access\n\t\t\t\t\t\techo esc_html__( 'Access token retrieval failed', 'wooslg' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function insertarRelacionProceso(){\n\n $this->objFunc=$this->create('MODObligacionPago');\n if($this->objParam->insertar('id_relacion_proceso_pago')){\n $this->res=$this->objFunc->insertarRelacionProceso($this->objParam);\n } else{\n $this->res=$this->objFunc->modificarRelacionProceso($this->objParam);\n }\n $this->res->imprimirRespuesta($this->res->generarJson());\n }", "public function createNewPoiCollection($pid, RadiusResult $position, array $overrideFieldValues = [])\n {\n $geometry = $position->getGeometry();\n if (\n $geometry instanceof RadiusResult\\Geometry\n && $geometry->getLocation() instanceof Location\n ) {\n $latitude = $geometry->getLocation()->getLat();\n $longitude = $geometry->getLocation()->getLng();\n } else {\n $this->addMessage(\n 'The domain model RadiusResult seems to be broken after processing in DataMapper. Can not find Latitude and Longitude.',\n 'RadiusResult broken',\n FlashMessage::ERROR\n );\n return 0;\n }\n\n $fieldValues = [];\n $fieldValues['pid'] = (int)$pid;\n $fieldValues['tstamp'] = time();\n $fieldValues['crdate'] = time();\n $fieldValues['cruser_id'] = $GLOBALS['BE_USER']->user['uid'];\n $fieldValues['hidden'] = 0;\n $fieldValues['deleted'] = 0;\n $fieldValues['latitude'] = $latitude;\n $fieldValues['longitude'] = $longitude;\n $fieldValues['collection_type'] = 'Point'; // currently only Point is allowed. If you want more: It's your turn\n $fieldValues['title'] = $position->getFormattedAddress(); // it's up to you to override this value\n $fieldValues['address'] = $position->getFormattedAddress();\n\n // you don't like the current fieldValues? Override them with $overrideFieldValues\n ArrayUtility::mergeRecursiveWithOverrule($fieldValues, $overrideFieldValues);\n\n // remove all fields, which are not set in DB\n $tableFieldSchema = $this\n ->getDatabaseConnection()\n ->admin_get_fields('tx_maps2_domain_model_poicollection');\n $fieldValues = array_intersect_key($fieldValues, $tableFieldSchema);\n\n $this->getDatabaseConnection()->exec_INSERTquery(\n 'tx_maps2_domain_model_poicollection',\n $fieldValues\n );\n\n return $this->getDatabaseConnection()->sql_insert_id();\n }", "public function initialize()\n {\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('alias' => 'Datospersonales'));\n $this->belongsTo('nu_cedula', 'Datospersonales', 'nu_cedula', array('foreignKey' => true));\n }", "public function initialize()\n {\n $this->belongsTo('posicao_id', 'Ecommerce\\Admin\\Models\\Posicao', 'id', array('alias' => 'Posicao'));\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }" ]
[ "0.64621097", "0.61786366", "0.5385901", "0.529308", "0.4904457", "0.48280057", "0.46794182", "0.46335077", "0.45321354", "0.43928742", "0.43161535", "0.42277503", "0.4221812", "0.42072904", "0.41790408", "0.41401613", "0.411474", "0.41056487", "0.40210992", "0.39886558", "0.39811763", "0.39656046", "0.39571863", "0.39270195", "0.39242202", "0.39157328", "0.39071283", "0.3891716", "0.38831654", "0.38500628", "0.38469672", "0.38234293", "0.38234234", "0.38170433", "0.37919977", "0.3790111", "0.37854153", "0.3782638", "0.3769413", "0.3763911", "0.37489143", "0.37396532", "0.3708464", "0.3708464", "0.3694449", "0.3687654", "0.36783898", "0.36717874", "0.36717072", "0.36706135", "0.36674035", "0.36591005", "0.36562407", "0.3655345", "0.3645527", "0.36439517", "0.36417824", "0.36412293", "0.36373767", "0.36250576", "0.361625", "0.36128634", "0.3610367", "0.36016455", "0.35978195", "0.35848325", "0.3584263", "0.35815597", "0.35793468", "0.35764965", "0.357103", "0.35639793", "0.35580888", "0.355345", "0.35507882", "0.35496014", "0.35489893", "0.35479477", "0.35469988", "0.35364005", "0.3533301", "0.3530188", "0.35215238", "0.3520929", "0.3519072", "0.3517533", "0.35159212", "0.35152292", "0.35136798", "0.35115817", "0.3510879", "0.35064563", "0.35052782", "0.3503845", "0.3503577", "0.34943902", "0.34937114", "0.34914875", "0.34909657", "0.34897962" ]
0.7390084
0
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this OperationPrimes is new, it will return an empty collection; or if this OperationPrimes has previously been saved, it will retrieve related LnkOperationPrimeRCountriess from storage. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in OperationPrimes.
public function getLnkOperationPrimeRCountriessJoinRCountries($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria); $query->joinWith('RCountries', $join_behavior); return $this->getLnkOperationPrimeRCountriess($query, $con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n // return empty collection\n $this->initLnkOperationPrimeRCountriess();\n } else {\n $collLnkOperationPrimeRCountriess = LnkOperationPrimeRCountriesQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLnkOperationPrimeRCountriessPartial && count($collLnkOperationPrimeRCountriess)) {\n $this->initLnkOperationPrimeRCountriess(false);\n\n foreach ($collLnkOperationPrimeRCountriess as $obj) {\n if (false == $this->collLnkOperationPrimeRCountriess->contains($obj)) {\n $this->collLnkOperationPrimeRCountriess->append($obj);\n }\n }\n\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n $collLnkOperationPrimeRCountriess->getInternalIterator()->rewind();\n\n return $collLnkOperationPrimeRCountriess;\n }\n\n if ($partial && $this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $obj) {\n if ($obj->isNew()) {\n $collLnkOperationPrimeRCountriess[] = $obj;\n }\n }\n }\n\n $this->collLnkOperationPrimeRCountriess = $collLnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n }\n }\n\n return $this->collLnkOperationPrimeRCountriess;\n }", "public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCountriessScheduledForDeletion = $lnkOperationPrimeRCountriessToDelete;\n\n foreach ($lnkOperationPrimeRCountriessToDelete as $lnkOperationPrimeRCountriesRemoved) {\n $lnkOperationPrimeRCountriesRemoved->setOperationPrimes(null);\n }\n\n $this->collLnkOperationPrimeRCountriess = null;\n foreach ($lnkOperationPrimeRCountriess as $lnkOperationPrimeRCountries) {\n $this->addLnkOperationPrimeRCountries($lnkOperationPrimeRCountries);\n }\n\n $this->collLnkOperationPrimeRCountriess = $lnkOperationPrimeRCountriess;\n $this->collLnkOperationPrimeRCountriessPartial = false;\n\n return $this;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }", "public function clearLnkOperationPrimeRCountriess()\n {\n $this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized\n $this->collLnkOperationPrimeRCountriessPartial = null;\n\n return $this;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationPrimeRCountriess->setModel('LnkOperationPrimeRCountries');\n }", "public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationScenariis) {\n // return empty collection\n $this->initOperationScenariis();\n } else {\n $collOperationScenariis = OperationScenariiQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationScenariisPartial && count($collOperationScenariis)) {\n $this->initOperationScenariis(false);\n\n foreach ($collOperationScenariis as $obj) {\n if (false == $this->collOperationScenariis->contains($obj)) {\n $this->collOperationScenariis->append($obj);\n }\n }\n\n $this->collOperationScenariisPartial = true;\n }\n\n $collOperationScenariis->getInternalIterator()->rewind();\n\n return $collOperationScenariis;\n }\n\n if ($partial && $this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $obj) {\n if ($obj->isNew()) {\n $collOperationScenariis[] = $obj;\n }\n }\n }\n\n $this->collOperationScenariis = $collOperationScenariis;\n $this->collOperationScenariisPartial = false;\n }\n }\n\n return $this->collOperationScenariis;\n }", "public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)\n {\n if ($this->collLnkOperationPrimeRCountriess === null) {\n $this->initLnkOperationPrimeRCountriess();\n $this->collLnkOperationPrimeRCountriessPartial = true;\n }\n\n if (!in_array($l, $this->collLnkOperationPrimeRCountriess->getArrayCopy(), true)) { // only add it if the **same** object is not already associated\n $this->doAddLnkOperationPrimeRCountries($l);\n\n if ($this->lnkOperationPrimeRCountriessScheduledForDeletion and $this->lnkOperationPrimeRCountriessScheduledForDeletion->contains($l)) {\n $this->lnkOperationPrimeRCountriessScheduledForDeletion->remove($this->lnkOperationPrimeRCountriessScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "public function getOperationPrestationss($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationPrestationssPartial && !$this->isNew();\n if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperationPrestationss) {\n // return empty collection\n $this->initOperationPrestationss();\n } else {\n $collOperationPrestationss = OperationPrestationsQuery::create(null, $criteria)\n ->filterByOperationPrimes($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collOperationPrestationssPartial && count($collOperationPrestationss)) {\n $this->initOperationPrestationss(false);\n\n foreach ($collOperationPrestationss as $obj) {\n if (false == $this->collOperationPrestationss->contains($obj)) {\n $this->collOperationPrestationss->append($obj);\n }\n }\n\n $this->collOperationPrestationssPartial = true;\n }\n\n $collOperationPrestationss->getInternalIterator()->rewind();\n\n return $collOperationPrestationss;\n }\n\n if ($partial && $this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $obj) {\n if ($obj->isNew()) {\n $collOperationPrestationss[] = $obj;\n }\n }\n }\n\n $this->collOperationPrestationss = $collOperationPrestationss;\n $this->collOperationPrestationssPartial = false;\n }\n }\n\n return $this->collOperationPrestationss;\n }", "public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new OperationPrimesPeer();\n }\n\n return self::$peer;\n }", "public function getFeatureCvtermprops($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collFeatureCvtermpropsPartial && !$this->isNew();\n if (null === $this->collFeatureCvtermprops || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFeatureCvtermprops) {\n // return empty collection\n $this->initFeatureCvtermprops();\n } else {\n $collFeatureCvtermprops = FeatureCvtermpropQuery::create(null, $criteria)\n ->filterByFeatureCvterm($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collFeatureCvtermpropsPartial && count($collFeatureCvtermprops)) {\n $this->initFeatureCvtermprops(false);\n\n foreach($collFeatureCvtermprops as $obj) {\n if (false == $this->collFeatureCvtermprops->contains($obj)) {\n $this->collFeatureCvtermprops->append($obj);\n }\n }\n\n $this->collFeatureCvtermpropsPartial = true;\n }\n\n $collFeatureCvtermprops->getInternalIterator()->rewind();\n return $collFeatureCvtermprops;\n }\n\n if($partial && $this->collFeatureCvtermprops) {\n foreach($this->collFeatureCvtermprops as $obj) {\n if($obj->isNew()) {\n $collFeatureCvtermprops[] = $obj;\n }\n }\n }\n\n $this->collFeatureCvtermprops = $collFeatureCvtermprops;\n $this->collFeatureCvtermpropsPartial = false;\n }\n }\n\n return $this->collFeatureCvtermprops;\n }", "public function getContributionss(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collContributionssPartial && !$this->isNew();\n if (null === $this->collContributionss || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collContributionss) {\n // return empty collection\n $this->initContributionss();\n } else {\n $collContributionss = ChildContributionsQuery::create(null, $criteria)\n ->filterByIssues($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collContributionssPartial && count($collContributionss)) {\n $this->initContributionss(false);\n\n foreach ($collContributionss as $obj) {\n if (false == $this->collContributionss->contains($obj)) {\n $this->collContributionss->append($obj);\n }\n }\n\n $this->collContributionssPartial = true;\n }\n\n return $collContributionss;\n }\n\n if ($partial && $this->collContributionss) {\n foreach ($this->collContributionss as $obj) {\n if ($obj->isNew()) {\n $collContributionss[] = $obj;\n }\n }\n }\n\n $this->collContributionss = $collContributionss;\n $this->collContributionssPartial = false;\n }\n }\n\n return $this->collContributionss;\n }", "public function countLnkOperationPrimeRCountriess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLnkOperationPrimeRCountriess) {\n return 0;\n }\n\n if ($partial && !$criteria) {\n return count($this->getLnkOperationPrimeRCountriess());\n }\n $query = LnkOperationPrimeRCountriesQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByOperationPrimes($this)\n ->count($con);\n }\n\n return count($this->collLnkOperationPrimeRCountriess);\n }", "protected function _initProductCollection()\n {\n $client = Mage::helper('catalogsearch')->getEngine()->getClient();\n $baseQuery = $this->_getBaseSearchQuery();\n $optimizedQuery = $this->_getOptimizedQuery($baseQuery);\n $baseProductIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n $optimizeProductIds = $this->_getProductIdsFromSearchQuery($optimizedQuery);\n\n $this->setBaseProductIds($baseProductIds);\n $this->setOptimizedProductIds($optimizeProductIds);\n\n $allIds = array_merge($baseProductIds, $optimizeProductIds);\n\n if (empty($allIds)) {\n $allIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->setStoreId($this->getStoreId())\n ->addIdFilter($allIds)\n ->addAttributeToSelect($attributes)\n ->load();\n\n $this->setProductCollection($collection);\n\n return $this;\n }", "public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_id !== $v) {\n $this->op_prime_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_ID;\n }\n\n\n return $this;\n }", "public function clearOperationPrestationss()\n {\n $this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized\n $this->collOperationPrestationssPartial = null;\n\n return $this;\n }", "public function __clone() {\n if ($this->_where) {\n $this->_where = clone $this->_where;\n }\n\n if ($this->_having) {\n $this->_having = clone $this->_having;\n }\n }", "public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }", "public function clearFindCriteria()\n {\n $this->findCriteria = [];\n return $this;\n }", "public function cleanCopy()\n {\n $clone = clone $this;\n $clone->setEagerLoader(clone $this->getEagerLoader());\n $clone->triggerBeforeFind();\n $clone->enableAutoFields(false);\n $clone->limit(null);\n $clone->order([], true);\n $clone->offset(null);\n $clone->mapReduce(null, null, true);\n $clone->formatResults(null, true);\n $clone->setSelectTypeMap(new TypeMap());\n $clone->decorateResults(null, true);\n\n return $clone;\n }", "protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function relCooperations() {\n return Job::query()\n ->join('ownership', 'ownership.tobjsid', 'jobs.sId')\n ->select('jobs.*')\n ->where('ownership.fobjsid', parent::__get('sId'))\n ->where('jobs.type', Job::TYPE_COOPERATION)\n ->get();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "public function getRCurrencies(PropelPDO $con = null, $doQuery = true)\n {\n if ($this->aRCurrencies === null && ($this->operation_prime_currency_id !== null) && $doQuery) {\n $this->aRCurrencies = RCurrenciesQuery::create()->findPk($this->operation_prime_currency_id, $con);\n /* The following can be used additionally to\n guarantee the related object contains a reference\n to this object. This level of coupling may, however, be\n undesirable since it could result in an only partially populated collection\n in the referenced object.\n $this->aRCurrencies->addOperationPrimess($this);\n */\n }\n\n return $this->aRCurrencies;\n }", "public function getRIssuesNarrationplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesNarrationpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesNarrationplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesNarrationplugins) {\n // return empty collection\n $this->initRIssuesNarrationplugins();\n } else {\n $collRIssuesNarrationplugins = ChildRIssuesNarrationpluginQuery::create(null, $criteria)\n ->filterByNarrationIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesNarrationpluginsPartial && count($collRIssuesNarrationplugins)) {\n $this->initRIssuesNarrationplugins(false);\n\n foreach ($collRIssuesNarrationplugins as $obj) {\n if (false == $this->collRIssuesNarrationplugins->contains($obj)) {\n $this->collRIssuesNarrationplugins->append($obj);\n }\n }\n\n $this->collRIssuesNarrationpluginsPartial = true;\n }\n\n return $collRIssuesNarrationplugins;\n }\n\n if ($partial && $this->collRIssuesNarrationplugins) {\n foreach ($this->collRIssuesNarrationplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesNarrationplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesNarrationplugins = $collRIssuesNarrationplugins;\n $this->collRIssuesNarrationpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesNarrationplugins;\n }", "protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = Mage::app()->getWebsite()->getId();\n $this->_collection = Mage::getModel('gri_reward/reward_history')->getCollection()\n ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig(Mage::helper('gri_reward')->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder()\n ;\n }\n return $this->_collection;\n }", "public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }", "protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}", "public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)\n {\n $keys = OperationPrimesPeer::getFieldNames($keyType);\n\n if (array_key_exists($keys[0], $arr)) $this->setOpPrimeId($arr[$keys[0]]);\n if (array_key_exists($keys[1], $arr)) $this->setOpId($arr[$keys[1]]);\n if (array_key_exists($keys[2], $arr)) $this->setOpPrimeLibelle($arr[$keys[2]]);\n if (array_key_exists($keys[3], $arr)) $this->setOpPrimeNumero($arr[$keys[3]]);\n if (array_key_exists($keys[4], $arr)) $this->setGdlArtId($arr[$keys[4]]);\n if (array_key_exists($keys[5], $arr)) $this->setOperationPrimeCurrencyId($arr[$keys[5]]);\n if (array_key_exists($keys[6], $arr)) $this->setOperationPrimeRRewardTypeId($arr[$keys[6]]);\n if (array_key_exists($keys[7], $arr)) $this->setOperationPrimeRRewardExpeditionModeId($arr[$keys[7]]);\n if (array_key_exists($keys[8], $arr)) $this->setOperationPrimeRRewardTransporterId($arr[$keys[8]]);\n if (array_key_exists($keys[9], $arr)) $this->setOperationPrimeFixedAmount($arr[$keys[9]]);\n if (array_key_exists($keys[10], $arr)) $this->setOperationPrimeProductPricePourcentage($arr[$keys[10]]);\n if (array_key_exists($keys[11], $arr)) $this->setOperationPrimeMaximumAmount($arr[$keys[11]]);\n }", "public function setOperationPrimeCurrencyId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_currency_id !== $v) {\n $this->operation_prime_currency_id = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID;\n }\n\n if ($this->aRCurrencies !== null && $this->aRCurrencies->getRCurrencyId() !== $v) {\n $this->aRCurrencies = null;\n }\n\n\n return $this;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(VpoRequestPeer::DATABASE_NAME);\n\n\t\t$criteria->add(VpoRequestPeer::ID, $this->id);\n\n\t\treturn $criteria;\n\t}", "protected function _prepareCollection() {\n $collection = Mage::helper('ProductReturn/SupplierReturn')->getProductsPending();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function reload($deep = false, PropelPDO $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"Cannot reload a deleted object.\");\n }\n\n if ($this->isNew()) {\n throw new PropelException(\"Cannot reload an unsaved object.\");\n }\n\n if ($con === null) {\n $con = Propel::getConnection(OperationPrimesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n // We don't need to alter the object instance pool; we're just modifying this instance\n // already in the pool.\n\n $stmt = OperationPrimesPeer::doSelectStmt($this->buildPkeyCriteria(), $con);\n $row = $stmt->fetch(PDO::FETCH_NUM);\n $stmt->closeCursor();\n if (!$row) {\n throw new PropelException('Cannot find matching row in the database to reload object values.');\n }\n $this->hydrate($row, 0, true); // rehydrate\n\n if ($deep) { // also de-associate any related objects?\n\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n $this->collOperationPrestationss = null;\n\n $this->collOperationScenariis = null;\n\n $this->collLnkOperationPrimeRCountriess = null;\n\n } // if (deep)\n }", "function getComposite()\n {\n return $this;\n }", "public function getConnection(){\n return BaseOperationPrimesPeer::getConnection();\n }", "protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "public static function cooperations() {\n return self::query()\n ->join('ownership', 'ownership.fobjsid', 'vp.sId')\n ->join('jobs', 'ownership.tobjsid', 'jobs.sId')\n ->select('vp.*')\n ->where('jobs.type', Job::TYPE_COOPERATION);\n }", "public function get_criteria() { return $this->criteria_list; }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}", "public function setOpPrimeNumero($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->op_prime_numero !== $v) {\n $this->op_prime_numero = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_NUMERO;\n }\n\n\n return $this;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n\n return $criteria;\n }", "public function getPrimeNumbers()\n {\n $this->action = isset($_GET['action']) ? $_GET['action'] : '';\n $this->limit = isset($_GET['limit']) ? $_GET['limit'] : 1000;\n $primeNumber = 2;\n $primeNumbers = array();\n $primeNumbers[] = $primeNumber;\n if ($this->limit == 1) {\n return $primeNumbers;\n }\n $primeNumber += 1;\n $primeNumbers[] = $primeNumber;\n // Generate array of prime numbers until we reach the limitation (defined in variale 'limit')\n while (count($primeNumbers) < $this->limit) {\n $primeNumber += 2;\n $flag = true;\n $sqrtPrimeNumber = sqrt($primeNumber);\n foreach ($primeNumbers as $p) {\n if ($p > $sqrtPrimeNumber) {\n break;\n }\n if ($primeNumber % $p == 0) {\n $flag = false;\n break;\n }\n }\n if ($flag) {\n $primeNumbers[] = $primeNumber;\n }\n }\n return $primeNumbers;\n }", "public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('OperationPrestations');\n }", "public function getRIssuesAllplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesAllpluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesAllplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesAllplugins) {\n // return empty collection\n $this->initRIssuesAllplugins();\n } else {\n $collRIssuesAllplugins = ChildRIssuesAllpluginQuery::create(null, $criteria)\n ->filterByAllIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesAllpluginsPartial && count($collRIssuesAllplugins)) {\n $this->initRIssuesAllplugins(false);\n\n foreach ($collRIssuesAllplugins as $obj) {\n if (false == $this->collRIssuesAllplugins->contains($obj)) {\n $this->collRIssuesAllplugins->append($obj);\n }\n }\n\n $this->collRIssuesAllpluginsPartial = true;\n }\n\n return $collRIssuesAllplugins;\n }\n\n if ($partial && $this->collRIssuesAllplugins) {\n foreach ($this->collRIssuesAllplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesAllplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesAllplugins = $collRIssuesAllplugins;\n $this->collRIssuesAllpluginsPartial = false;\n }\n }\n\n return $this->collRIssuesAllplugins;\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n\n return $criteria;\n }", "public function setOpPrimeLibelle($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->op_prime_libelle !== $v) {\n $this->op_prime_libelle = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OP_PRIME_LIBELLE;\n }\n\n\n return $this;\n }", "protected function getCmsPageCollection()\n {\n /** @var \\Magento\\Cms\\Model\\ResourceModel\\Page\\Collection $cmsPageCollection */\n $cmsPageCollection = $this->cmsPageCollectionFactory->create();\n $cmsPageCollection->load();\n return $cmsPageCollection;\n }", "public function getRIssuesSingleplugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collRIssuesSinglepluginsPartial && !$this->isNew();\n if (null === $this->collRIssuesSingleplugins || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collRIssuesSingleplugins) {\n // return empty collection\n $this->initRIssuesSingleplugins();\n } else {\n $collRIssuesSingleplugins = ChildRIssuesSinglepluginQuery::create(null, $criteria)\n ->filterBySingleIssue($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collRIssuesSinglepluginsPartial && count($collRIssuesSingleplugins)) {\n $this->initRIssuesSingleplugins(false);\n\n foreach ($collRIssuesSingleplugins as $obj) {\n if (false == $this->collRIssuesSingleplugins->contains($obj)) {\n $this->collRIssuesSingleplugins->append($obj);\n }\n }\n\n $this->collRIssuesSinglepluginsPartial = true;\n }\n\n return $collRIssuesSingleplugins;\n }\n\n if ($partial && $this->collRIssuesSingleplugins) {\n foreach ($this->collRIssuesSingleplugins as $obj) {\n if ($obj->isNew()) {\n $collRIssuesSingleplugins[] = $obj;\n }\n }\n }\n\n $this->collRIssuesSingleplugins = $collRIssuesSingleplugins;\n $this->collRIssuesSinglepluginsPartial = false;\n }\n }\n\n return $this->collRIssuesSingleplugins;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n\n return $criteria;\n }", "public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "protected function _getProductCollection()\n {\n if (!Mage::helper('integernet_solr')->module()->isActive()) {\n return parent::_getProductCollection();\n }\n\n if (!Mage::helper('integernet_solr')->page()->isSolrResultPage()) {\n parent::_getProductCollection();\n }\n\n if (Mage::getStoreConfig('integernet_solr/results/use_html_from_solr')) {\n return Mage::getSingleton('integernet_solr/result_collection');\n }\n\n if (is_null($this->_productCollection) || !($this->_productCollection instanceof IntegerNet_Solr_Model_Resource_Catalog_Product_Collection)) {\n\n /** @var $productCollection IntegerNet_Solr_Model_Resource_Catalog_Product_Collection */\n $productCollection = Mage::getResourceModel('integernet_solr/catalog_product_collection')\n ->setStoreId(Mage::app()->getStore()->getId())\n ->addMinimalPrice()\n ->addFinalPrice()\n ->addTaxPercents()\n ->addUrlRewrite()\n ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())\n ->addAttributeToSelect(array('url_key'));\n\n Mage::dispatchEvent('catalog_block_product_list_collection', array(\n 'collection' => $productCollection\n ));\n\n $this->_productCollection = $productCollection;\n\n /* @var $layer Mage_Catalog_Model_Layer */\n $layer = $this->getLayer();\n $this->prepareSortableFieldsByCategory($layer->getCurrentCategory());\n }\n\n return $this->_productCollection;\n }", "public function getCMDPieces(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collCMDPiecesPartial && !$this->isNew();\n if (null === $this->collCMDPieces || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collCMDPieces) {\n // return empty collection\n $this->initCMDPieces();\n } else {\n $collCMDPieces = ChildCMDPieceQuery::create(null, $criteria)\n ->filterByCommande($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collCMDPiecesPartial && count($collCMDPieces)) {\n $this->initCMDPieces(false);\n\n foreach ($collCMDPieces as $obj) {\n if (false == $this->collCMDPieces->contains($obj)) {\n $this->collCMDPieces->append($obj);\n }\n }\n\n $this->collCMDPiecesPartial = true;\n }\n\n return $collCMDPieces;\n }\n\n if ($partial && $this->collCMDPieces) {\n foreach ($this->collCMDPieces as $obj) {\n if ($obj->isNew()) {\n $collCMDPieces[] = $obj;\n }\n }\n }\n\n $this->collCMDPieces = $collCMDPieces;\n $this->collCMDPiecesPartial = false;\n }\n }\n\n return $this->collCMDPieces;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}", "public function getInappropriates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collInappropriates === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collInappropriates = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(InappropriatePeer::POST_ID, $this->id);\n\n\t\t\t\tInappropriatePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastInappropriateCriteria) || !$this->lastInappropriateCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collInappropriates = InappropriatePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastInappropriateCriteria = $criteria;\n\t\treturn $this->collInappropriates;\n\t}", "public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }", "public function load()\n {\n // Execute the query, add query to any thrown exceptions\n try\n {\n $this->_cursor = $this->collection()->find($this->_query, $this->_fields);\n }\n catch(MongoCursorException $e) {\n throw new MongoCursorException(\"{$e->getMessage()}: {$this->inspect()}\", $e->getCode());\n }\n catch(MongoException $e) {\n throw new MongoException(\"{$e->getMessage()}: {$this->inspect()}\", $e->getCode());\n }\n\n // Add cursor options\n foreach($this->_options as $key => $value)\n {\n if($value === NULL) $this->_cursor->$key();\n else $this->_cursor->$key($value);\n }\n\n return $this;\n }", "public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}", "function getCommonProvisions();", "public function buildPkeyCriteria()\n {\n $criteria = ChildBiblioQuery::create();\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n\n return $criteria;\n }", "public function getProductCollection()\n {\n\n if (is_null($this->_productCollection)) {\n $collection = $this->_engine->getAdvancedResultCollection();\n $this->prepareProductCollection($collection);\n if (!$collection) {\n return $collection;\n }\n $this->_productCollection = $collection;\n }\n\n return $this->_productCollection;\n }", "public function getPrimal()\n {\n return $this->primal;\n }", "protected function getPagerCollectionInstance()\n {\n $pagerCollection = $this->dataBackend->getPagerCollection();\n $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount());\n return $pagerCollection;\n }", "public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }", "public function getCriteria(){\n return $this->criteria;\n }", "protected function getPluginCollection() {\n if (!$this->pluginCollection) {\n $plugin_manager = \\Drupal::service('plugin.manager.commerce_installment_plan_methods');\n $this->pluginCollection = new InstallmentPlanMethodPluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);\n }\n return $this->pluginCollection;\n }", "public function getCriteria()\n {\n if (!isset($this->currentCriteria)) {\n throw new CollectionDriverException('Criteria is accessible only during preGetResult event.');\n }\n\n return $this->currentCriteria;\n }", "public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(C060InventarioPeer::DATABASE_NAME);\n\n\t\t$criteria->add(C060InventarioPeer::CO_NUM_INVENTARIO, $this->co_num_inventario);\n\n\t\treturn $criteria;\n\t}", "public function initContributionss($overrideExisting = true)\n {\n if (null !== $this->collContributionss && !$overrideExisting) {\n return;\n }\n $this->collContributionss = new ObjectCollection();\n $this->collContributionss->setModel('\\Contributions');\n }", "public function __clone()\n {\n $this->query = clone $this->query;\n }", "public function __clone() {\n foreach ($this->conditions as $i => $condition) {\n $this->conditions[$i] = clone $condition;\n }\n }", "public function getResultsCollections()\n\t {\n\t \tif ( is_array($this->results) && $this->isMulti() ) {\n\n\t \t\treturn new MagentoObjectCollection($this->results);\n\n\t \t} elseif( is_array($this->results) && !$this->isMulti() ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} elseif( is_object($this->results) ) {\n\n\t \t\treturn new MagentoObject($this->results);\n\n\t \t} else {\n\n\t \t\treturn $this->results;\n\t \t}\n\t }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n\n return $criteria;\n }", "function getClone(){\n\t\t\treturn clone($this);\n\t\t}", "public function getCompetitionsWithReload() {\n $this->competitionsLoaded = false;\n return $this->getCompetitions();\n }", "public function getPostPollVotes($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PostPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collPostPollVotes === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collPostPollVotes = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(PostPollVotePeer::POST_ID, $this->id);\n\n\t\t\t\tPostPollVotePeer::addSelectColumns($criteria);\n\t\t\t\t$this->collPostPollVotes = PostPollVotePeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(PostPollVotePeer::POST_ID, $this->id);\n\n\t\t\t\tPostPollVotePeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastPostPollVoteCriteria) || !$this->lastPostPollVoteCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collPostPollVotes = PostPollVotePeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastPostPollVoteCriteria = $criteria;\n\t\treturn $this->collPostPollVotes;\n\t}", "public function initPesquisas($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPesquisas && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPesquisas = new PropelObjectCollection();\n\t\t$this->collPesquisas->setModel('Pesquisa');\n\t}", "protected function _getCollection()\n {\n if (!$this->_collection) {\n $websiteId = $this->_storeManager->getWebsite()->getId();\n $this->_collection = $this->_historyFactory->create()\n ->addCustomerFilter($this->currentCustomer->getCustomerId())\n ->addWebsiteFilter($websiteId)\n ->setExpiryConfig($this->_rewardData->getExpiryConfig())\n ->addExpirationDate($websiteId)\n ->skipExpiredDuplicates()\n ->setDefaultOrder();\n }\n return $this->_collection;\n }", "public function getProductCollection()\n {\n $this->_basketProducts = $this->_getCartProductIds();\n $products = $this->_complementaryEngine->sendQuery($this->_basketProducts);\n\n if ($products['rules']) {\n return $this->_getPredictedProducts($products['rules']);\n }\n\n return false;\n }", "public function paginator()\r\n\t{\r\n\t\treturn $this;\r\n\t}", "protected function getProductResultCollection()\n {\n $collection = Mage::registry('recommendation_collection');\n\n if (empty($collection)) {\n $collection = array();\n }\n\n return $collection;\n }", "public function getNarrationPlugins(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collNarrationPluginsPartial && !$this->isNew();\n if (null === $this->collNarrationPlugins || null !== $criteria || $partial) {\n if ($this->isNew()) {\n // return empty collection\n if (null === $this->collNarrationPlugins) {\n $this->initNarrationPlugins();\n }\n } else {\n\n $query = ChildPluginsQuery::create(null, $criteria)\n ->filterByNarrationIssue($this);\n $collNarrationPlugins = $query->find($con);\n if (null !== $criteria) {\n return $collNarrationPlugins;\n }\n\n if ($partial && $this->collNarrationPlugins) {\n //make sure that already added objects gets added to the list of the database.\n foreach ($this->collNarrationPlugins as $obj) {\n if (!$collNarrationPlugins->contains($obj)) {\n $collNarrationPlugins[] = $obj;\n }\n }\n }\n\n $this->collNarrationPlugins = $collNarrationPlugins;\n $this->collNarrationPluginsPartial = false;\n }\n }\n\n return $this->collNarrationPlugins;\n }", "function productCollection()\n {\n return eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n }", "private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }", "function create() {\n\t\t$this->rs[$this->ckname] = 1; // start the concurrency counter at 1\n\t\treturn parent::create();\n\t}", "public function getCriteriaCollection(): CriteriaCollection;", "private function initialiseChoices()\n {\n // Fetch a vendor key if possible, to cache against\n try {\n $vendorKey = $this->systemBrandService->getVendorCredentials()['vendorKey'];\n }\n catch (\\Exception $e) {\n $vendorKey = 'defaultVendor';\n }\n\n if (null !== $this->rentGuaranteeOfferingType && null !== $this->propertyLettingType && ! $this->isInitialised) {\n\n $cacheKey = sprintf(\n 'Lookup-Product-Collection-%s-%s-%s',\n $this->rentGuaranteeOfferingType,\n $this->propertyLettingType,\n $vendorKey\n );\n $productCollection = $this->cache->fetch($cacheKey);\n\n $this->values = array();\n $this->choices = array();\n\n if ( ! $productCollection) {\n $productCollection = $this->entityManager->find(new ProductCollection(), array(\n 'rentGuaranteeOfferingType' => $this->rentGuaranteeOfferingType,\n 'propertyLettingType' => $this->propertyLettingType,\n ));\n\n $this->cache->save($cacheKey, $productCollection);\n }\n\n /** @var \\Barbon\\HostedApi\\AppBundle\\Form\\Common\\Model\\Product $product */\n foreach ($productCollection as $product) {\n $this->values[] = (string) $product->getProductId();\n $this->choices[] = (string) $product->getProductId(); //$product->getName();\n $this->labels[] = (string) $product->getName();\n }\n\n $this->isInitialised = true;\n return $productCollection;\n }\n \n return null;\n }", "protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "private function limpiarHistorial()\n {\n $this->historial->unsetAll();\n return $this;\n }", "public function getProcessorsCollection();", "public function getCriteria()\n {\n return $this->criteria;\n }", "public function getCriteria()\n {\n return $this->criteria;\n }", "public function copy(): Collection\n {\n return clone $this;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildKluBillQuery::create();\n $criteria->add(KluBillTableMap::COL_ID, $this->id);\n\n return $criteria;\n }", "public function __clone() {\n $this->name = clone $this->name;\n $this->type = clone $this->type;\n $this->op = clone $this->op;\n\n $this->currentPeriod = clone $this->currentPeriod;\n $this->previousPeriod = clone $this->previousPeriod;\n\n $products = array();\n foreach ($this->products as $idx=>$product) {\n $products[] = clone $product;\n }\n $this->products = $products;\n }", "protected function _prepareCollection()\n {\n $baseQuery = $this->_getBaseSearchQuery();\n $productIds = $this->_getProductIdsFromSearchQuery($baseQuery);\n\n if (empty($productIds)) {\n $productIds = array(0);\n }\n\n $attributes = Mage::getModel('catalog/config')->getProductCollectionAttributes();\n\n /** @var Mage_Catalog_Model_Resource_Product_Collection $collection */\n $collection = Mage::getResourceModel('catalog/product_collection')\n ->addIdFilter($productIds)\n ->addAttributeToSelect($attributes);\n\n $storeIds = implode(\",\", array_unique(array_map(\"intval\", array(Mage_Core_Model_App::ADMIN_STORE_ID, $this->getStoreId()))));\n\n if ($this->getStoreId() != Mage_Core_Model_App::ADMIN_STORE_ID) {\n $collection->setStoreId($this->getStoreId());\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id = {$this->getStoreId()}\";\n } else {\n $joinCond = \"category_id = \" . (int) $this->getCategory()->getId() . \" AND store_id IN ({$storeIds})\";\n }\n\n $collection->joinField(\n 'position',\n 'smile_virtualcategories/category_product_position',\n 'position',\n 'product_id = entity_id',\n $joinCond,\n 'left'\n );\n\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"- position DESC\") // mimic a \"SORT BY #field NULL LAST\n );\n\n $entityIds = implode(\",\", $productIds);\n $collection->getSelect()->order(\n new Zend_Db_Expr(\"FIELD(e.entity_id, {$entityIds})\") // restore sort order given by ES\n );\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function getCollection() {\n return $this->gateway->find(\n $this->getFilter(),\n $this->order,\n $this->relations,\n $this->pager,\n !$this->excludeRepo\n );\n }" ]
[ "0.70344776", "0.6491407", "0.6484084", "0.6329467", "0.6279917", "0.5879446", "0.57158923", "0.5522799", "0.5406059", "0.5226954", "0.4964488", "0.49532357", "0.48859155", "0.4834041", "0.47766906", "0.46790275", "0.46589643", "0.4619326", "0.4609589", "0.45965058", "0.45824116", "0.45804632", "0.45759043", "0.45640925", "0.45636034", "0.45516768", "0.45465747", "0.4541374", "0.4526792", "0.4524179", "0.4522806", "0.45202512", "0.45176446", "0.45100638", "0.45099038", "0.4507068", "0.45054698", "0.44937536", "0.4492777", "0.44926736", "0.44877148", "0.44866532", "0.4485032", "0.4483133", "0.44830924", "0.4482571", "0.4480728", "0.44777784", "0.44754437", "0.4471758", "0.4468789", "0.44581294", "0.4454503", "0.4437318", "0.44356105", "0.44344488", "0.4426976", "0.44262937", "0.44245008", "0.44173354", "0.44052964", "0.44040993", "0.44040835", "0.44027823", "0.43959376", "0.43947425", "0.4377001", "0.43714976", "0.43696818", "0.43682003", "0.43657842", "0.4364106", "0.43589875", "0.43443352", "0.43391746", "0.43315515", "0.43307835", "0.43283316", "0.43235657", "0.43227392", "0.43190438", "0.4310212", "0.4307685", "0.43065867", "0.43032938", "0.4299594", "0.42966726", "0.4292612", "0.4291432", "0.4290273", "0.4289984", "0.42821798", "0.42800102", "0.42785966", "0.427603", "0.427603", "0.4275146", "0.42693233", "0.4263827", "0.42559308", "0.42530984" ]
0.0
-1
Clears the current object and sets all attributes to their default values
public function clear() { $this->op_prime_id = null; $this->op_id = null; $this->op_prime_libelle = null; $this->op_prime_numero = null; $this->gdl_art_id = null; $this->operation_prime_currency_id = null; $this->operation_prime_r_reward_type_id = null; $this->operation_prime_r_reward_expedition_mode_id = null; $this->operation_prime_r_reward_transporter_id = null; $this->operation_prime_fixed_amount = null; $this->operation_prime_product_price_pourcentage = null; $this->operation_prime_maximum_amount = null; $this->alreadyInSave = false; $this->alreadyInValidation = false; $this->alreadyInClearAllReferencesDeep = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n {\n $this->id = null;\n $this->attributes = array();\n }", "public function clear() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $val) {\n\t\t\t$this->$key = null;\n\t\t}\n\t}", "public function reset() {\n\t\t// Get the default values for the class from the table.\n\t\tforeach ($this->getFields() as $k => $v) {\n\t\t\t// If the property is not private, reset it.\n\t\t\tif (strpos($k, '_') !== 0) {\n\t\t\t\t$this->$k = NULL;\n\t\t\t}\n\t\t}\n\t}", "public function clearAttributes ()\n {\n\n $this->attributes = null;\n $this->attributes = array();\n\n }", "public function clear()\n {\n $this->_id = null;\n $this->_title = null;\n $this->_positions = [];\n $this->_isDefault = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_ICON] = null;\n $this->values[self::_TIME] = null;\n $this->values[self::_NAME] = null;\n }", "public function reset()\n {\n $this->values[self::ID] = null;\n $this->values[self::NAME] = null;\n $this->values[self::PERMISSIONS] = null;\n $this->values[self::POSITION] = null;\n }", "public function reset()\n {\n $this->values[self::_AVATAR] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_VIP] = null;\n $this->values[self::_LEVEL] = null;\n $this->values[self::_GUILD_NAME] = null;\n $this->values[self::_USER_ID] = null;\n }", "function clear()\n {\n $this->meta_name = \"\";\n $this->vocab = \"\";\n $this->text = \"\";\n $this->lang = \"\";\n $this->attrs = array();\n }", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_HERO] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_AVATAR] = null;\n $this->values[self::_SLOGAN] = null;\n $this->values[self::_JOIN_TYPE] = null;\n $this->values[self::_JOIN_LIMIT] = null;\n $this->values[self::_MEMBER_CNT] = null;\n $this->values[self::_PRESIDENT] = null;\n $this->values[self::_LIVENESS] = null;\n $this->values[self::_CAN_JUMP] = null;\n }", "public function reset() {\n $this->_property = false;\n $this->_interface = false;\n $this->_variable = false;\n }", "public function reset() {\n $this->_property = false;\n $this->_interface = false;\n $this->_variable = false;\n }", "public function reset()\n {\n $this->values[self::_DIAMOND] = null;\n $this->values[self::_GUILDPOINT] = null;\n $this->values[self::_DPS] = null;\n $this->values[self::_OLD_DPS] = null;\n $this->values[self::_OLD_SUMMARY] = null;\n }", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_LEVEL] = null;\n $this->values[self::_AVATAR] = null;\n $this->values[self::_HEROES] = array();\n }", "public function clear() {\n foreach ($this->Fields as $key => $item) {\n $this->$key = null;\n }\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_TYPE] = null;\n $this->values[self::_PRICE] = null;\n $this->values[self::_IS_SALE] = null;\n }", "public function reset()\n {\n $this->values[self::_OWNER] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_TYPE_ID] = null;\n $this->values[self::_TEAM] = array();\n $this->values[self::_STATE] = null;\n $this->values[self::_STATE_END_TS] = null;\n $this->values[self::_PRODUCE_SPEED] = null;\n $this->values[self::_STORAGE] = null;\n }", "public function reset()\n\t{\n\t\t$this->_id \t\t= '';\n\t\t$this->_label\t= '';\n\t}", "protected function reset(): void\n {\n $this->bot = null;\n $this->client = null;\n $this->device = null;\n $this->os = null;\n $this->brand = '';\n $this->model = '';\n $this->parsed = false;\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_AMOUNT] = null;\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_ID] = null;\n $this->values[self::_AMOUNT] = null;\n }", "public function reset()\n {\n $this->values[self::_HERO_ID] = null;\n $this->values[self::_DYNA] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_STAR_GOODS] = array();\n }", "public function reset()\n {\n $this->values[self::TEXT] = null;\n $this->values[self::MATCHEDTEXT] = null;\n $this->values[self::CANONICALURL] = null;\n $this->values[self::DESCRIPTION] = null;\n $this->values[self::TITLE] = null;\n $this->values[self::THUMBNAIL] = null;\n }", "public function reset()\n {\n $this->values[self::_NAME] = null;\n $this->values[self::_LAST_SET_NAME_TIME] = null;\n $this->values[self::_AVATAR] = null;\n }", "public function reset() {\n $this->setEntities([]);\n $this->setLinks([]);\n $this->setMetadata([]);\n $this->setIncludes([]);\n $this->setDynamic();\n $this->setCacheability(new CacheableMetadata());\n }", "function clear()\n {\n $this->id = \"\";\n $this->offset = \"\";\n $this->title = \"\";\n $this->description = \"\";\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_BINARY] = null;\n $this->values[self::_REPLAY] = null;\n }", "public function clear()\n {\n $this->id = null;\n $this->name = null;\n $this->is_active = null;\n $this->is_closed = null;\n $this->from_date = null;\n $this->to_date = null;\n $this->sortable_rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function reset()\n {\n $this->values[self::system] = null;\n $this->values[self::platform] = null;\n $this->values[self::channel] = null;\n $this->values[self::version] = null;\n }", "public function reset()\n {\n $this->values[self::product_id] = null;\n $this->values[self::product_num] = null;\n $this->values[self::deal_price] = null;\n $this->values[self::new_user_price] = null;\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_MONEY] = null;\n }", "public function reset()\n {\n $this->values[self::ID] = null;\n $this->values[self::LEVELUP_TIME] = null;\n $this->values[self::BEHELPED_TIMES] = null;\n $this->values[self::HELP_ASKED] = self::$fields[self::HELP_ASKED]['default'];\n $this->values[self::TOTAL_TIME] = null;\n }", "public function reset()\n {\n $this->values[self::_CHANNEL] = null;\n $this->values[self::_CHAT_ID] = null;\n $this->values[self::_ACCESSORY] = null;\n }", "public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_MEMBERS] = array();\n $this->values[self::_APPLIERS] = array();\n $this->values[self::_VITALITY] = null;\n $this->values[self::_SELF_VITALITY] = null;\n $this->values[self::_LEFT_DISTRIBUTE_TIME] = null;\n }", "public function reset()\n {\n $this->values[self::_HERO] = null;\n $this->values[self::_COST] = null;\n $this->values[self::_INCOME] = null;\n $this->values[self::_HIRE_TS] = null;\n }", "public function reset()\n {\n $this->values[self::customer_id] = null;\n $this->values[self::auth_token] = null;\n $this->values[self::wholesaler_id] = null;\n $this->values[self::order_id] = null;\n $this->values[self::quality] = null;\n $this->values[self::delivery] = null;\n $this->values[self::comment] = null;\n }", "public function reset()\n {\n $this->values[self::_INFO] = null;\n $this->values[self::_WORSHIP] = null;\n $this->values[self::_DROP_INFO] = null;\n $this->values[self::_TO_CHAIRMAN] = null;\n }", "public function reset()\n {\n $this->values[self::LATITUDE] = null;\n $this->values[self::LONGITUDE] = null;\n $this->values[self::NAME] = null;\n $this->values[self::DESCRIPTION] = null;\n $this->values[self::URL] = null;\n $this->values[self::THUMBNAIL] = null;\n }", "private function resetAll()\n {\n $this->title = null;\n $this->caption = null;\n $this->categories = null;\n $this->image = null;\n $this->tags = null;\n $this->imagePath = null;\n $this->postId = null;\n }", "public function reset()\n {\n $this->values[self::CONVERSATION] = null;\n $this->values[self::SKMSG] = null;\n $this->values[self::IMAGE] = null;\n $this->values[self::CONTACT] = null;\n $this->values[self::LOCATION] = null;\n $this->values[self::URLMSG] = null;\n $this->values[self::DOCUMENT] = null;\n $this->values[self::AUDIO] = null;\n $this->values[self::VIDEO] = null;\n $this->values[self::CALL] = null;\n $this->values[self::CHAT] = null;\n }", "public function reset()\n {\n $this->values[self::_MONEY] = null;\n $this->values[self::_DIAMOND] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_HEROES] = array();\n $this->values[self::_MONTH_CARD] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_STATUS] = null;\n $this->values[self::_MAIL_TIME] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_CONTENT] = null;\n $this->values[self::_MONEY] = null;\n $this->values[self::_DIAMONDS] = null;\n $this->values[self::_SKILL_POINT] = null;\n $this->values[self::_ITEMS] = array();\n $this->values[self::_POINTS] = array();\n }", "public function reset() {\n $this->values[self::NAME] = null;\n $this->values[self::ISMONTICKET] = null;\n $this->values[self::MAXPRICE] = null;\n $this->values[self::KINDTYPE] = null;\n $this->values[self::STARTTIME] = null;\n $this->values[self::ENDTIME] = null;\n $this->values[self::TICKETPRICE] = null;\n $this->values[self::UID] = null;\n $this->values[self::PRIMARY_UID] = null;\n $this->values[self::HAS_RTBUS] = null;\n $this->values[self::RTBUS_UPDATE_TIME] = null;\n $this->values[self::NEAREST_STATION] = null;\n }", "public function reset()\n {\n $this->setValue($this->getDefaultValue());\n }", "public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_PARAMS] = array();\n $this->values[self::_TIME] = null;\n }", "function clear()\n {\n $this->id = \"\";\n $this->offset = \"\";\n $this->title = \"\";\n $this->description = \"\";\n $this->author = \"\";\n $this->type = \"\";\n $this->updated = \"\";\n $this->published = \"\";\n $this->publish_time = \"\";\n $this->insert_time = \"\";\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_VALUE] = null;\n }", "public function reset()\n {\n $this->values[self::URL] = null;\n $this->values[self::MIMETYPE] = null;\n $this->values[self::SHA256] = null;\n $this->values[self::LENGTH] = null;\n $this->values[self::SECONDS] = null;\n $this->values[self::REFKEY] = null;\n $this->values[self::THUMBNAIL] = null;\n $this->values[self::CAPTION] = null;\n }", "public function reset()\n {\n $this->values[self::NAME] = null;\n $this->values[self::EMAIL] = null;\n $this->values[self::PHONEDA] = array();\n }", "public function reset()\n {\n $this->values[self::_BASE] = null;\n $this->values[self::_DYNA] = null;\n }", "public function reset()\n {\n $this->values[self::_BASE] = null;\n $this->values[self::_DYNA] = null;\n }", "public function reset()\n {\n $this->values[self::_BASE] = null;\n $this->values[self::_DYNA] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_JOB] = Down_GuildJobT::member;\n $this->values[self::_REQ_GUILD_ID] = null;\n $this->values[self::_HIRE_HERO] = array();\n }", "public function reset()\n {\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_DAILYJOB] = null;\n }", "public function reset()\n {\n $this->values[self::URL] = null;\n $this->values[self::MIMETYPE] = null;\n $this->values[self::CAPTION] = null;\n $this->values[self::SHA256] = null;\n $this->values[self::LENGTH] = null;\n $this->values[self::HEIGHT] = null;\n $this->values[self::WIDTH] = null;\n $this->values[self::REFKEY] = null;\n $this->values[self::THUMBNAIL] = null;\n }", "public function clear()\n\t{\n\t\t$this->venueid = null;\n\t\t$this->address = null;\n\t\t$this->address2 = null;\n\t\t$this->city = null;\n\t\t$this->province = null;\n\t\t$this->country = null;\n\t\t$this->latitude = null;\n\t\t$this->longitude = null;\n\t\t$this->phone = null;\n\t\t$this->name = null;\n\t\t$this->description = null;\n\t\t$this->website = null;\n\t\t$this->twitter = null;\n\t\t$this->facebook = null;\n\t\t$this->rssfeed = null;\n\t\t$this->closed = null;\n\t\t$this->lastfmid = null;\n\t\t$this->slug = null;\n\t\t$this->hasphotos = null;\n\t\t$this->submittedbyuser = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}", "public function reset()\n {\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_OPPOS] = array();\n $this->values[self::_IS_ROBOT] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n }", "public function reset()\n {\n $this->values[self::OPERATIONINFO] = null;\n $this->values[self::TRANSFERDATE] = null;\n $this->values[self::CREATEDTHINGTRANSFERDATE] = null;\n $this->values[self::CREATEDTHINGINFO] = null;\n $this->values[self::ADDITIONALINFOS] = array();\n }", "public function reset()\n {\n $this->values[self::_MONEY] = null;\n $this->values[self::_RMB] = null;\n $this->values[self::_HEROES] = array();\n $this->values[self::_ITEMS] = array();\n }", "public function reset() {\n $this->values[self::NAME] = null;\n $this->values[self::TIP_RTBUS] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_STAGE_ID] = null;\n $this->values[self::_LEFT_TIME] = null;\n $this->values[self::_START_TIME] = null;\n $this->values[self::_PROGRESS] = null;\n $this->values[self::_STAGE_PROGRESS] = null;\n $this->values[self::_BATTLE_USER_ID] = null;\n }", "public function reset()\n {\n $this->values[self::INIT_BU] = null;\n $this->values[self::BU] = null;\n $this->values[self::GOLD] = null;\n $this->values[self::VIGOUR] = null;\n }", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_JOB] = null;\n $this->values[self::_LAST_LOGIN] = null;\n $this->values[self::_ACTIVE] = null;\n $this->values[self::_JOIN_INSTANCE_TIME] = null;\n }", "public function clear()\n {\n $this->id = null;\n $this->code = null;\n $this->category = null;\n $this->address = null;\n $this->address2 = null;\n $this->zipcode = null;\n $this->city = null;\n $this->geo_coordinate_x = null;\n $this->geo_coordinate_y = null;\n $this->distance_camping = null;\n $this->image = null;\n $this->priority = null;\n $this->tel = null;\n $this->fax = null;\n $this->email = null;\n $this->website = null;\n $this->created_at = null;\n $this->updated_at = null;\n $this->active = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function reset()\n {\n $this->values[self::_TYPE] = null;\n $this->values[self::_AMOUNT] = null;\n $this->values[self::_STONE_ID] = null;\n $this->values[self::_STONE_AMOUNT] = null;\n }", "function clear()\n {\n $this->tags = [];\n $this->extra = [];\n $this->user = null;\n }", "public function reset()\n {\n $this->values[self::TIME] = null;\n $this->values[self::TYPE] = null;\n $this->values[self::GAMER_ID] = null;\n $this->values[self::GAMER_NAME] = null;\n $this->values[self::RELATER_ID] = null;\n $this->values[self::RELATER_NAME] = null;\n }", "public function reset()\n {\n $this->values[self::_INSTANCE_INFO] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_LOOTS] = array();\n $this->values[self::_HP_DROP] = array();\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_TYPE] = null;\n $this->values[self::_START_TIME] = null;\n $this->values[self::_END_TIME] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_TITLE] = null;\n $this->values[self::_DESC] = null;\n $this->values[self::_RULES] = null;\n }", "public function reset()\n {\n $this->values[self::_SERIAL_ID] = null;\n $this->values[self::_CHARGE_ID] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_LAST_AUTO_REFRESH_TIME] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_LAST_MANUAL_REFRESH_TIME] = null;\n $this->values[self::_TODAY_TIMES] = null;\n $this->values[self::_CURRENT_GOODS] = array();\n }", "public function reset()\n {\n $this->values[self::NAME] = null;\n $this->values[self::VALUE] = array();\n $this->values[self::OPTIONS] = null;\n $this->values[self::RESERVED_RANGE] = array();\n $this->values[self::RESERVED_NAME] = array();\n }", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_DPS] = null;\n }", "public function reset(): void\n {\n $this->activationKey = null;\n $this->dateOfBirth = null;\n $this->lpaReferenceNumber = null;\n }", "public function reset()\n {\n $this->values[self::_PLAYER] = null;\n $this->values[self::_HERO] = array();\n }", "private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}", "public function reset()\n {\n $this->values[self::_BOX_TYPE] = null;\n $this->values[self::_LEFT_CNT] = null;\n $this->values[self::_LAST_GET_TIME] = null;\n $this->values[self::_HAS_FIRST_DRAW] = null;\n }", "public function reset()\n {\n $this->values[self::NAME] = null;\n $this->values[self::VCARD] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_FREQUENCY] = null;\n $this->values[self::_LAST_CHANGE] = null;\n }", "public function reset()\n {\n $this->values[self::_GOLD] = null;\n $this->values[self::_DIAMOND] = null;\n }", "public function reset()\n {\n $this->values[self::ITEM] = null;\n $this->values[self::COUNT] = null;\n $this->values[self::USE_TYPE] = null;\n $this->values[self::TARGET] = null;\n $this->values[self::NAME] = null;\n $this->values[self::PARAMS_INT] = array();\n }", "public function reset()\n {\n $this->values[self::user_id] = null;\n $this->values[self::list_type] = null;\n $this->values[self::page] = null;\n $this->values[self::page_size] = null;\n }", "public function reset()\n {\n $this->values[self::_USER_ID] = null;\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_RANK] = null;\n $this->values[self::_WIN_CNT] = null;\n $this->values[self::_GS] = null;\n $this->values[self::_IS_ROBOT] = null;\n $this->values[self::_HEROS] = array();\n }", "public function reset()\n {\n $this->values[self::GID] = null;\n $this->values[self::ID] = null;\n $this->values[self::LID] = null;\n $this->values[self::HP] = null;\n $this->values[self::STATE] = null;\n $this->values[self::LEVEL] = self::$fields[self::LEVEL]['default'];\n $this->values[self::ENEMY] = null;\n $this->values[self::TIME] = null;\n $this->values[self::ACTION] = null;\n $this->values[self::TOKEN] = null;\n $this->values[self::CINDEX] = null;\n $this->values[self::LOOKAT] = null;\n $this->values[self::MOVETO] = null;\n $this->values[self::POSITION] = null;\n $this->values[self::ATTACK] = array();\n }", "public function reset()\n {\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_STAGE_INDEX] = null;\n $this->values[self::_WAVE_INDEX] = null;\n $this->values[self::_HP_INFO] = array();\n }", "public function reset()\n {\n $this->values[self::NAME] = null;\n $this->values[self::START_TIME] = null;\n $this->values[self::RUNNING_SECOND] = null;\n }", "public function reset()\n {\n $this->values[self::LAT] = null;\n $this->values[self::LON] = null;\n }", "public function reset()\n {\n $this->values[self::_CHAT_ID] = null;\n $this->values[self::_SPEAKER_UID] = null;\n $this->values[self::_SPEAKER_SUMMARY] = null;\n $this->values[self::_TARGET_UID] = null;\n $this->values[self::_TARGET_SUMMARY] = null;\n $this->values[self::_SPEAKER_POST] = null;\n $this->values[self::_SPEAK_TIME] = null;\n $this->values[self::_CONTENT_TYPE] = null;\n $this->values[self::_CONTENT] = null;\n }", "function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Clear this objects properties and set blank error messages in case they are accessed\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->{$field} = NULL;\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has many\" related objects\r\n\t\tforeach ($this->has_many as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has one\" related objects\r\n\t\tforeach ($this->has_one as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear the query related list\r\n\t\t$this->query_related = array();\r\n\r\n\t\t// Clear and refresh stored values\r\n\t\t$this->stored = new stdClass();\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}", "public function reset() {\n $this->values[self::FROM_TIME] = null;\n $this->values[self::PRICE] = array();\n $this->values[self::MILEAGE] = null;\n $this->values[self::GEO] = null;\n }", "public function reset()\n {\n $this->values[self::BOXID] = null;\n $this->values[self::DRAFTID] = null;\n $this->values[self::TOBOXID] = null;\n $this->values[self::TODEPARTMENTID] = null;\n $this->values[self::DOCUMENTSIGNATURES] = array();\n $this->values[self::PROXYBOXID] = null;\n $this->values[self::PROXYDEPARTMENTID] = null;\n }", "public function reset()\n {\n $this->values[self::_TEAM_ID] = null;\n $this->values[self::_PLAYER] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n $this->values[self::_RES_GOT] = null;\n $this->values[self::_SVR_ID] = null;\n $this->values[self::_DISPLAY_SVR_ID] = null;\n $this->values[self::_SVR_NAME] = null;\n }", "public function reset()\n {\n $this->values[self::_GUILDS] = null;\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }", "public function reset()\n {\n $this->values[self::_IDX] = null;\n $this->values[self::_TYPE] = null;\n $this->values[self::_VALUE] = null;\n }", "public function clearProperties();", "protected function resetProperties() {}", "public function clearVariables(): self\n {\n $attributes = get_object_vars($this);\n foreach ($attributes as $attributeName => $attributeValue) {\n $this->$attributeName = null;\n }\n return $this;\n }" ]
[ "0.7934973", "0.7742796", "0.7719033", "0.7560898", "0.7540498", "0.7524002", "0.7497178", "0.7460875", "0.74505615", "0.7401953", "0.73845804", "0.7372289", "0.7372289", "0.7359527", "0.7358744", "0.73455524", "0.7341694", "0.7333127", "0.73080325", "0.730508", "0.7272196", "0.7272196", "0.7254208", "0.725388", "0.7252374", "0.72512114", "0.7249127", "0.7248691", "0.72390413", "0.7237435", "0.72264874", "0.7221316", "0.72212666", "0.7217069", "0.7216604", "0.7204744", "0.7197228", "0.71968025", "0.71967596", "0.7196319", "0.7189136", "0.71830493", "0.71800995", "0.7175557", "0.71682924", "0.7162994", "0.7160275", "0.7156914", "0.71467304", "0.7140387", "0.71376306", "0.7137087", "0.711749", "0.711749", "0.711749", "0.71169966", "0.71129036", "0.7110324", "0.7109668", "0.7105529", "0.7099319", "0.709931", "0.70990443", "0.70981", "0.70962954", "0.7094254", "0.70938677", "0.70937335", "0.7092746", "0.70926845", "0.7087539", "0.70854807", "0.70804745", "0.7075281", "0.70719963", "0.706767", "0.7049955", "0.70469064", "0.70423496", "0.7039965", "0.70331436", "0.70322883", "0.70267373", "0.70224875", "0.7020515", "0.7013718", "0.701087", "0.7005988", "0.69997984", "0.6998137", "0.69962496", "0.6993069", "0.69910264", "0.69896907", "0.69859725", "0.69780207", "0.69769716", "0.6973876", "0.6972742", "0.6969301", "0.69672805" ]
0.0
-1
Resets all references to other model objects or collections of model objects. This method is a userspace workaround for PHP's inability to garbage collect objects with circular references (even in PHP 5.3). This is currently necessary when using Propel in certain daemon or largevolume/highmemory operations.
public function clearAllReferences($deep = false) { if ($deep && !$this->alreadyInClearAllReferencesDeep) { $this->alreadyInClearAllReferencesDeep = true; if ($this->collOperationPrestationss) { foreach ($this->collOperationPrestationss as $o) { $o->clearAllReferences($deep); } } if ($this->collOperationScenariis) { foreach ($this->collOperationScenariis as $o) { $o->clearAllReferences($deep); } } if ($this->collLnkOperationPrimeRCountriess) { foreach ($this->collLnkOperationPrimeRCountriess as $o) { $o->clearAllReferences($deep); } } if ($this->aOperations instanceof Persistent) { $this->aOperations->clearAllReferences($deep); } if ($this->aRCurrencies instanceof Persistent) { $this->aRCurrencies->clearAllReferences($deep); } if ($this->aRRewardTypes instanceof Persistent) { $this->aRRewardTypes->clearAllReferences($deep); } if ($this->aRRewardExpeditionModes instanceof Persistent) { $this->aRRewardExpeditionModes->clearAllReferences($deep); } if ($this->aRRewardTransporters instanceof Persistent) { $this->aRRewardTransporters->clearAllReferences($deep); } $this->alreadyInClearAllReferencesDeep = false; } // if ($deep) if ($this->collOperationPrestationss instanceof PropelCollection) { $this->collOperationPrestationss->clearIterator(); } $this->collOperationPrestationss = null; if ($this->collOperationScenariis instanceof PropelCollection) { $this->collOperationScenariis->clearIterator(); } $this->collOperationScenariis = null; if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) { $this->collLnkOperationPrimeRCountriess->clearIterator(); } $this->collLnkOperationPrimeRCountriess = null; $this->aOperations = null; $this->aRCurrencies = null; $this->aRRewardTypes = null; $this->aRRewardExpeditionModes = null; $this->aRRewardTransporters = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "public function reset() {\n $this->cache = array();\n $this->parent()->reset();\n }", "public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }", "public static function reset() {\n\t\tself::$objects = array();\n\t}", "public function resetDirty()\n {\n $this->dirty = false;\n $this->dirtyOne = false;\n $this->dirtyMany = false;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collMonths) {\n foreach ($this->collMonths as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFileCats) {\n foreach ($this->collFileCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collDocCats) {\n foreach ($this->collDocCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBookks) {\n foreach ($this->collBookks as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAccounts) {\n foreach ($this->collAccounts as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collReports) {\n foreach ($this->collReports as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collProjects) {\n foreach ($this->collProjects as $o) {\n $o->clearAllReferences($deep);\n }\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collMonths instanceof PropelCollection) {\n $this->collMonths->clearIterator();\n }\n $this->collMonths = null;\n if ($this->collFileCats instanceof PropelCollection) {\n $this->collFileCats->clearIterator();\n }\n $this->collFileCats = null;\n if ($this->collDocCats instanceof PropelCollection) {\n $this->collDocCats->clearIterator();\n }\n $this->collDocCats = null;\n if ($this->collBookks instanceof PropelCollection) {\n $this->collBookks->clearIterator();\n }\n $this->collBookks = null;\n if ($this->collAccounts instanceof PropelCollection) {\n $this->collAccounts->clearIterator();\n }\n $this->collAccounts = null;\n if ($this->collReports instanceof PropelCollection) {\n $this->collReports->clearIterator();\n }\n $this->collReports = null;\n if ($this->collProjects instanceof PropelCollection) {\n $this->collProjects->clearIterator();\n }\n $this->collProjects = null;\n }", "public function reset(): void\n {\n $this->data = [];\n $this->relationships = [];\n }", "public function reset() {\n $this->setEntities([]);\n $this->setLinks([]);\n $this->setMetadata([]);\n $this->setIncludes([]);\n $this->setDynamic();\n $this->setCacheability(new CacheableMetadata());\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collAssignedPrayersRelatedByAgentId) {\n foreach ($this->collAssignedPrayersRelatedByAgentId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAssignedPrayersRelatedByPatientId) {\n foreach ($this->collAssignedPrayersRelatedByPatientId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPartnerssRelatedByAgentId) {\n foreach ($this->collPartnerssRelatedByAgentId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPartnerssRelatedByPatientId) {\n foreach ($this->collPartnerssRelatedByPatientId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPainRatings) {\n foreach ($this->collPainRatings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collUserDemoss) {\n foreach ($this->collUserDemoss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPatients) {\n foreach ($this->collPatients as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAgents) {\n foreach ($this->collAgents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collAssignedPrayersRelatedByAgentId = null;\n $this->collAssignedPrayersRelatedByPatientId = null;\n $this->collPartnerssRelatedByAgentId = null;\n $this->collPartnerssRelatedByPatientId = null;\n $this->collPainRatings = null;\n $this->collUserDemoss = null;\n $this->collPatients = null;\n $this->collAgents = null;\n $this->aUserAge = null;\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collPostBadges) {\n\t\t\t\tforeach ((array) $this->collPostBadges as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collInappropriates) {\n\t\t\t\tforeach ((array) $this->collInappropriates as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostsRelatedByReplicaPostId) {\n\t\t\t\tforeach ((array) $this->collPostsRelatedByReplicaPostId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostPollAnswers) {\n\t\t\t\tforeach ((array) $this->collPostPollAnswers as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostPollVotes) {\n\t\t\t\tforeach ((array) $this->collPostPollVotes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostVisitss) {\n\t\t\t\tforeach ((array) $this->collPostVisitss as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostDailyStatss) {\n\t\t\t\tforeach ((array) $this->collPostDailyStatss as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostIndexs) {\n\t\t\t\tforeach ((array) $this->collPostIndexs as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collPostBadges = null;\n\t\t$this->collInappropriates = null;\n\t\t$this->collPostsRelatedByReplicaPostId = null;\n\t\t$this->collPostPollAnswers = null;\n\t\t$this->collPostPollVotes = null;\n\t\t$this->collPostVisitss = null;\n\t\t$this->collPostDailyStatss = null;\n\t\t$this->collPostIndexs = null;\n\t\t\t$this->aPartie = null;\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t}", "public function reset()\r\n\t{\r\n\t\t$this->first = null;\r\n\t\t$this->alreadyIncluded = array();\r\n\t\t$this->depths = array();\r\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collArticleHasIngredients) {\n foreach ($this->collArticleHasIngredients as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOrderHasArticless) {\n foreach ($this->collOrderHasArticless as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPackageHasArticless) {\n foreach ($this->collPackageHasArticless as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRatings) {\n foreach ($this->collRatings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collArticleHasIngredients = null;\n $this->collOrderHasArticless = null;\n $this->collPackageHasArticless = null;\n $this->collRatings = null;\n $this->aCakeType = null;\n $this->aShape = null;\n }", "public function reset()\n {\n $this->_contacts = [];\n $this->_lists = [];\n }", "public function reset() {\n $this->num_aliases = 0;\n $this->alias2class = array();\n $this->alias2table = array();\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collUserExperiences) {\n\t\t\t\tforeach ((array) $this->collUserExperiences as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collOpenids) {\n\t\t\t\tforeach ((array) $this->collOpenids as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collrpxAuths) {\n\t\t\t\tforeach ((array) $this->collrpxAuths as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestions) {\n\t\t\t\tforeach ((array) $this->collQuestions as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestionComments) {\n\t\t\t\tforeach ((array) $this->collQuestionComments as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswers) {\n\t\t\t\tforeach ((array) $this->collAnswers as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswerComments) {\n\t\t\t\tforeach ((array) $this->collAnswerComments as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestionVotes) {\n\t\t\t\tforeach ((array) $this->collQuestionVotes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswerVotes) {\n\t\t\t\tforeach ((array) $this->collAnswerVotes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserFavorites) {\n\t\t\t\tforeach ((array) $this->collUserFavorites as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserTags) {\n\t\t\t\tforeach ((array) $this->collUserTags as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCheckInformations) {\n\t\t\t\tforeach ((array) $this->collCheckInformations as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswerOffensives) {\n\t\t\t\tforeach ((array) $this->collAnswerOffensives as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestionOffensives) {\n\t\t\t\tforeach ((array) $this->collQuestionOffensives as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserAwards) {\n\t\t\t\tforeach ((array) $this->collUserAwards as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMemberReferrals) {\n\t\t\t\tforeach ((array) $this->collMemberReferrals as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGearCompanyInfos) {\n\t\t\t\tforeach ((array) $this->collGearCompanyInfos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGearInfos) {\n\t\t\t\tforeach ((array) $this->collGearInfos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGearReviews) {\n\t\t\t\tforeach ((array) $this->collGearReviews as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserGears) {\n\t\t\t\tforeach ((array) $this->collUserGears as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collOffensives) {\n\t\t\t\tforeach ((array) $this->collOffensives as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRecentActivitys) {\n\t\t\t\tforeach ((array) $this->collRecentActivitys as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collUserExperiences = null;\n\t\t$this->collOpenids = null;\n\t\t$this->collrpxAuths = null;\n\t\t$this->collQuestions = null;\n\t\t$this->collQuestionComments = null;\n\t\t$this->collAnswers = null;\n\t\t$this->collAnswerComments = null;\n\t\t$this->collQuestionVotes = null;\n\t\t$this->collAnswerVotes = null;\n\t\t$this->collUserFavorites = null;\n\t\t$this->collUserTags = null;\n\t\t$this->collCheckInformations = null;\n\t\t$this->collAnswerOffensives = null;\n\t\t$this->collQuestionOffensives = null;\n\t\t$this->collUserAwards = null;\n\t\t$this->collMemberReferrals = null;\n\t\t$this->collGearCompanyInfos = null;\n\t\t$this->collGearInfos = null;\n\t\t$this->collGearReviews = null;\n\t\t$this->collUserGears = null;\n\t\t$this->collOffensives = null;\n\t\t$this->collRecentActivitys = null;\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collEnderecos) {\n\t\t\t\tforeach ($this->collEnderecos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMembros) {\n\t\t\t\tforeach ($this->collMembros as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collEnderecos instanceof PropelCollection) {\n\t\t\t$this->collEnderecos->clearIterator();\n\t\t}\n\t\t$this->collEnderecos = null;\n\t\tif ($this->collMembros instanceof PropelCollection) {\n\t\t\t$this->collMembros->clearIterator();\n\t\t}\n\t\t$this->collMembros = null;\n\t\t$this->aUf = null;\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao) {\n\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioAlteracao as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro) {\n\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioCadastro as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRlUsuarioOrgaos) {\n\t\t\t\tforeach ($this->collRlUsuarioOrgaos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collTbDescricaoChamados) {\n\t\t\t\tforeach ($this->collTbDescricaoChamados as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUsuarioCategorias) {\n\t\t\t\tforeach ($this->collUsuarioCategorias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUsuarioTarefas) {\n\t\t\t\tforeach ($this->collUsuarioTarefas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao instanceof PropelCollection) {\n\t\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao->clearIterator();\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioAlteracao = null;\n\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro instanceof PropelCollection) {\n\t\t\t$this->collPermissaosRelatedByCoUsuarioCadastro->clearIterator();\n\t\t}\n\t\t$this->collPermissaosRelatedByCoUsuarioCadastro = null;\n\t\tif ($this->collRlUsuarioOrgaos instanceof PropelCollection) {\n\t\t\t$this->collRlUsuarioOrgaos->clearIterator();\n\t\t}\n\t\t$this->collRlUsuarioOrgaos = null;\n\t\tif ($this->collTbDescricaoChamados instanceof PropelCollection) {\n\t\t\t$this->collTbDescricaoChamados->clearIterator();\n\t\t}\n\t\t$this->collTbDescricaoChamados = null;\n\t\tif ($this->collUsuarioCategorias instanceof PropelCollection) {\n\t\t\t$this->collUsuarioCategorias->clearIterator();\n\t\t}\n\t\t$this->collUsuarioCategorias = null;\n\t\tif ($this->collUsuarioTarefas instanceof PropelCollection) {\n\t\t\t$this->collUsuarioTarefas->clearIterator();\n\t\t}\n\t\t$this->collUsuarioTarefas = null;\n\t\t$this->aPerfil = null;\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n $this->aTblEra = null;\n $this->aTblGeneral = null;\n $this->aTblMenus = null;\n $this->aTblProdPhotos = null;\n $this->aTblProdPrices = null;\n $this->aTblProdPricing = null;\n $this->aTblProdSmaller = null;\n $this->aTblShippingCategories = null;\n }", "public function reset()\n {\n $this->id = null;\n $this->attributes = array();\n }", "public function reset()\n\t{\n\t\t$this->queries = [];\n\t\t$this->count = [\n\t\t\t'total' => 0, 'slow' => 0, 'select' => 0, 'insert' => 0, 'update' => 0, 'delete' => 0, 'other' => 0\n\t\t];\n\n\t\t$this->modelsActions = [];\n\t\t$this->modelsCount = [\n\t\t\t'retrieved' => [], 'created' => [], 'updated' => [], 'deleted' => []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collBiblioAuthors) {\n foreach ($this->collBiblioAuthors as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBiblioTopics) {\n foreach ($this->collBiblioTopics as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collItems) {\n foreach ($this->collItems as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAuthors) {\n foreach ($this->collAuthors as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collTopics) {\n foreach ($this->collTopics as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collBiblioAuthors = null;\n $this->collBiblioTopics = null;\n $this->collItems = null;\n $this->collAuthors = null;\n $this->collTopics = null;\n $this->aPublisher = null;\n $this->aLanguage = null;\n $this->aPlace = null;\n $this->aFrequency = null;\n $this->aUser = null;\n }", "private function nuke()\n {\n \\lib\\Model\\ModelCache::clear($this);\n $this->__new=true;\n $this->__fields=array();\n $this->__isDirty=false;\n $this->__dirtyFields=array();\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collCampaignContactGroups) {\n\t\t\t\tforeach ((array) $this->collCampaignContactGroups as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCampaignContacts) {\n\t\t\t\tforeach ((array) $this->collCampaignContacts as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCampaignContactElements) {\n\t\t\t\tforeach ((array) $this->collCampaignContactElements as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCampaignLinks) {\n\t\t\t\tforeach ((array) $this->collCampaignLinks as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collCampaignContactGroups = null;\n\t\t$this->collCampaignContacts = null;\n\t\t$this->collCampaignContactElements = null;\n\t\t$this->collCampaignLinks = null;\n\t\t\t$this->aCampaignTemplate = null;\n\t\t\t$this->asfGuardUserProfile = null;\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->aSekolah instanceof Persistent) {\n $this->aSekolah->clearAllReferences($deep);\n }\n if ($this->aSemester instanceof Persistent) {\n $this->aSemester->clearAllReferences($deep);\n }\n if ($this->aSumberAirRelatedBySumberAirId instanceof Persistent) {\n $this->aSumberAirRelatedBySumberAirId->clearAllReferences($deep);\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId instanceof Persistent) {\n $this->aSumberAirRelatedBySumberAirMinumId->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n $this->aSekolah = null;\n $this->aSemester = null;\n $this->aSumberAirRelatedBySumberAirId = null;\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collExperts) {\n\t\t\t\tforeach ((array) $this->collExperts as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collExpertCategorys) {\n\t\t\t\tforeach ((array) $this->collExpertCategorys as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collHistorys) {\n\t\t\t\tforeach ((array) $this->collHistorys as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collItemRatings) {\n\t\t\t\tforeach ((array) $this->collItemRatings as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collOfferVoucher1s) {\n\t\t\t\tforeach ((array) $this->collOfferVoucher1s as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPurchaseDetails) {\n\t\t\t\tforeach ((array) $this->collPurchaseDetails as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collShoppingCarts) {\n\t\t\t\tforeach ((array) $this->collShoppingCarts as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collShoutsRelatedByPosterId) {\n\t\t\t\tforeach ((array) $this->collShoutsRelatedByPosterId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collShoutsRelatedByRecipientId) {\n\t\t\t\tforeach ((array) $this->collShoutsRelatedByRecipientId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserAwardss) {\n\t\t\t\tforeach ((array) $this->collUserAwardss as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->singleUserGtalk) {\n\t\t\t\t$this->singleUserGtalk->clearAllReferences($deep);\n\t\t\t}\n\t\t\tif ($this->singleUserFb) {\n\t\t\t\t$this->singleUserFb->clearAllReferences($deep);\n\t\t\t}\n\t\t\tif ($this->collUserRates) {\n\t\t\t\tforeach ((array) $this->collUserRates as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->singleUserTutor) {\n\t\t\t\t$this->singleUserTutor->clearAllReferences($deep);\n\t\t\t}\n\t\t\tif ($this->collUserQuestionTags) {\n\t\t\t\tforeach ((array) $this->collUserQuestionTags as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collStudentQuestionsRelatedByStudentId) {\n\t\t\t\tforeach ((array) $this->collStudentQuestionsRelatedByStudentId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collStudentQuestionsRelatedByTutorId) {\n\t\t\t\tforeach ((array) $this->collStudentQuestionsRelatedByTutorId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collWhiteboardSessions) {\n\t\t\t\tforeach ((array) $this->collWhiteboardSessions as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collExperts = null;\n\t\t$this->collExpertCategorys = null;\n\t\t$this->collHistorys = null;\n\t\t$this->collItemRatings = null;\n\t\t$this->collOfferVoucher1s = null;\n\t\t$this->collPurchaseDetails = null;\n\t\t$this->collShoppingCarts = null;\n\t\t$this->collShoutsRelatedByPosterId = null;\n\t\t$this->collShoutsRelatedByRecipientId = null;\n\t\t$this->collUserAwardss = null;\n\t\t$this->singleUserGtalk = null;\n\t\t$this->singleUserFb = null;\n\t\t$this->collUserRates = null;\n\t\t$this->singleUserTutor = null;\n\t\t$this->collUserQuestionTags = null;\n\t\t$this->collStudentQuestionsRelatedByStudentId = null;\n\t\t$this->collStudentQuestionsRelatedByTutorId = null;\n\t\t$this->collWhiteboardSessions = null;\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collCOMConditions) {\n foreach ($this->collCOMConditions as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collCOMVendeurs) {\n foreach ($this->collCOMVendeurs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collCMDPieces) {\n foreach ($this->collCMDPieces as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collCOMEndusers) {\n foreach ($this->collCOMEndusers as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collCMDTDocs) {\n foreach ($this->collCMDTDocs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collCMDTAppareils) {\n foreach ($this->collCMDTAppareils as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collCOMConditions = null;\n $this->collCOMVendeurs = null;\n $this->collCMDPieces = null;\n $this->collCOMEndusers = null;\n $this->collCMDTDocs = null;\n $this->collCMDTAppareils = null;\n $this->aSociete = null;\n $this->aMTransport = null;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collDeshabilitamcs) {\n foreach ($this->collDeshabilitamcs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collMontacargasBateriass) {\n foreach ($this->collMontacargasBateriass as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collUsoBateriasMontacargass) {\n foreach ($this->collUsoBateriasMontacargass as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aSucursal instanceof Persistent) {\n $this->aSucursal->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collDeshabilitamcs instanceof PropelCollection) {\n $this->collDeshabilitamcs->clearIterator();\n }\n $this->collDeshabilitamcs = null;\n if ($this->collMontacargasBateriass instanceof PropelCollection) {\n $this->collMontacargasBateriass->clearIterator();\n }\n $this->collMontacargasBateriass = null;\n if ($this->collUsoBateriasMontacargass instanceof PropelCollection) {\n $this->collUsoBateriasMontacargass->clearIterator();\n }\n $this->collUsoBateriasMontacargass = null;\n $this->aSucursal = null;\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collMmI18ns) {\n\t\t\t\tforeach ((array) $this->collMmI18ns as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collFiles) {\n\t\t\t\tforeach ((array) $this->collFiles as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collLinks) {\n\t\t\t\tforeach ((array) $this->collLinks as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMmPersons) {\n\t\t\t\tforeach ((array) $this->collMmPersons as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPicMms) {\n\t\t\t\tforeach ((array) $this->collPicMms as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGroundMms) {\n\t\t\t\tforeach ((array) $this->collGroundMms as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMaterials) {\n\t\t\t\tforeach ((array) $this->collMaterials as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collLogTranscodings) {\n\t\t\t\tforeach ((array) $this->collLogTranscodings as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collTranscodings) {\n\t\t\t\tforeach ((array) $this->collTranscodings as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPubChannelMms) {\n\t\t\t\tforeach ((array) $this->collPubChannelMms as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnnounceChannelMms) {\n\t\t\t\tforeach ((array) $this->collAnnounceChannelMms as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMmMatterhorns) {\n\t\t\t\tforeach ((array) $this->collMmMatterhorns as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCategoryMms) {\n\t\t\t\tforeach ((array) $this->collCategoryMms as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCategoryMmTimeframes) {\n\t\t\t\tforeach ((array) $this->collCategoryMmTimeframes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collMmI18ns = null;\n\t\t$this->collFiles = null;\n\t\t$this->collLinks = null;\n\t\t$this->collMmPersons = null;\n\t\t$this->collPicMms = null;\n\t\t$this->collGroundMms = null;\n\t\t$this->collMaterials = null;\n\t\t$this->collLogTranscodings = null;\n\t\t$this->collTranscodings = null;\n\t\t$this->collPubChannelMms = null;\n\t\t$this->collAnnounceChannelMms = null;\n\t\t$this->collMmMatterhorns = null;\n\t\t$this->collCategoryMms = null;\n\t\t$this->collCategoryMmTimeframes = null;\n\t\t$this->aSerial = null;\n\t\t$this->aPrecinct = null;\n\t\t$this->aGenre = null;\n\t\t$this->aBroadcast = null;\n\t}", "public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }", "public function resetCollectionsForPersist()\n {\n $this->containers = new ArrayCollection();\n $this->functions = new ArrayCollection();\n $this->constants = new ArrayCollection();\n }", "function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Clear this objects properties and set blank error messages in case they are accessed\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->{$field} = NULL;\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has many\" related objects\r\n\t\tforeach ($this->has_many as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has one\" related objects\r\n\t\tforeach ($this->has_one as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear the query related list\r\n\t\t$this->query_related = array();\r\n\r\n\t\t// Clear and refresh stored values\r\n\t\t$this->stored = new stdClass();\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collFeatureCvtermDbxrefs) {\n foreach ($this->collFeatureCvtermDbxrefs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFeatureCvtermPubs) {\n foreach ($this->collFeatureCvtermPubs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFeatureCvtermprops) {\n foreach ($this->collFeatureCvtermprops as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aCvterm instanceof Persistent) {\n $this->aCvterm->clearAllReferences($deep);\n }\n if ($this->aFeature instanceof Persistent) {\n $this->aFeature->clearAllReferences($deep);\n }\n if ($this->aPub instanceof Persistent) {\n $this->aPub->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collFeatureCvtermDbxrefs instanceof PropelCollection) {\n $this->collFeatureCvtermDbxrefs->clearIterator();\n }\n $this->collFeatureCvtermDbxrefs = null;\n if ($this->collFeatureCvtermPubs instanceof PropelCollection) {\n $this->collFeatureCvtermPubs->clearIterator();\n }\n $this->collFeatureCvtermPubs = null;\n if ($this->collFeatureCvtermprops instanceof PropelCollection) {\n $this->collFeatureCvtermprops->clearIterator();\n }\n $this->collFeatureCvtermprops = null;\n $this->aCvterm = null;\n $this->aFeature = null;\n $this->aPub = null;\n }", "private function reset()\n\t{\t\t\n\t\t$this->limit = null;\n\t\t\n\t\t$this->table = null;\n\t\t\n\t\t$this->offset = null;\n\t\t\n\t\t$this->data = [];\n\t\t\n\t\t$this->joins = [];\n\t\t\n\t\t$this->wheres = [];\n\t\t\n\t\t$this->orderBy = [];\n\t\t\n\t\t$this->selects = [];\n\t\t\n\t\t$this->bindings = [];\n\t\t\t\n\t}", "public static function resetAll(): void\n {\n static::getFacadeRoot()->resetAll();\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collEvents) {\n\t\t\t\tforeach ((array) $this->collEvents as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collVenueratings) {\n\t\t\t\tforeach ((array) $this->collVenueratings as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collEvents = null;\n\t\t$this->collVenueratings = null;\n\t\t$this->aUser = null;\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collVpoRequestAnimals) {\n\t\t\t\tforeach ((array) $this->collVpoRequestAnimals as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collVpoRequestCargos) {\n\t\t\t\tforeach ((array) $this->collVpoRequestCargos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collVpoRequestPassengers) {\n\t\t\t\tforeach ((array) $this->collVpoRequestPassengers as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collVpoRequestAnimals = null;\n\t\t$this->collVpoRequestCargos = null;\n\t\t$this->collVpoRequestPassengers = null;\n\t}", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collEtablissementEvents) {\n foreach ($this->collEtablissementEvents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRegionEvents) {\n foreach ($this->collRegionEvents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collEventI18ns) {\n foreach ($this->collEventI18ns as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collEtablissements) {\n foreach ($this->collEtablissements as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRegions) {\n foreach ($this->collRegions as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n // i18n behavior\n $this->currentLocale = 'fr';\n $this->currentTranslations = null;\n\n if ($this->collEtablissementEvents instanceof PropelCollection) {\n $this->collEtablissementEvents->clearIterator();\n }\n $this->collEtablissementEvents = null;\n if ($this->collRegionEvents instanceof PropelCollection) {\n $this->collRegionEvents->clearIterator();\n }\n $this->collRegionEvents = null;\n if ($this->collEventI18ns instanceof PropelCollection) {\n $this->collEventI18ns->clearIterator();\n }\n $this->collEventI18ns = null;\n if ($this->collEtablissements instanceof PropelCollection) {\n $this->collEtablissements->clearIterator();\n }\n $this->collEtablissements = null;\n if ($this->collRegions instanceof PropelCollection) {\n $this->collRegions->clearIterator();\n }\n $this->collRegions = null;\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collAuditorias) {\n\t\t\t\tforeach ($this->collAuditorias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAvaliacaoRespostaForums) {\n\t\t\t\tforeach ($this->collAvaliacaoRespostaForums as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collColetaPesquisas) {\n\t\t\t\tforeach ($this->collColetaPesquisas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collComentarioNoticias) {\n\t\t\t\tforeach ($this->collComentarioNoticias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCurtidaForums) {\n\t\t\t\tforeach ($this->collCurtidaForums as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collNoticias) {\n\t\t\t\tforeach ($this->collNoticias as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPesquisas) {\n\t\t\t\tforeach ($this->collPesquisas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPesquisaHabilitadas) {\n\t\t\t\tforeach ($this->collPesquisaHabilitadas as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPremios) {\n\t\t\t\tforeach ($this->collPremios as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRespostaForums) {\n\t\t\t\tforeach ($this->collRespostaForums as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collSolicitacaoResgatesRelatedByAprovadorId) {\n\t\t\t\tforeach ($this->collSolicitacaoResgatesRelatedByAprovadorId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collSolicitacaoResgatesRelatedBySolicitanteId) {\n\t\t\t\tforeach ($this->collSolicitacaoResgatesRelatedBySolicitanteId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collAuditorias instanceof PropelCollection) {\n\t\t\t$this->collAuditorias->clearIterator();\n\t\t}\n\t\t$this->collAuditorias = null;\n\t\tif ($this->collAvaliacaoRespostaForums instanceof PropelCollection) {\n\t\t\t$this->collAvaliacaoRespostaForums->clearIterator();\n\t\t}\n\t\t$this->collAvaliacaoRespostaForums = null;\n\t\tif ($this->collColetaPesquisas instanceof PropelCollection) {\n\t\t\t$this->collColetaPesquisas->clearIterator();\n\t\t}\n\t\t$this->collColetaPesquisas = null;\n\t\tif ($this->collComentarioNoticias instanceof PropelCollection) {\n\t\t\t$this->collComentarioNoticias->clearIterator();\n\t\t}\n\t\t$this->collComentarioNoticias = null;\n\t\tif ($this->collCurtidaForums instanceof PropelCollection) {\n\t\t\t$this->collCurtidaForums->clearIterator();\n\t\t}\n\t\t$this->collCurtidaForums = null;\n\t\tif ($this->collNoticias instanceof PropelCollection) {\n\t\t\t$this->collNoticias->clearIterator();\n\t\t}\n\t\t$this->collNoticias = null;\n\t\tif ($this->collPesquisas instanceof PropelCollection) {\n\t\t\t$this->collPesquisas->clearIterator();\n\t\t}\n\t\t$this->collPesquisas = null;\n\t\tif ($this->collPesquisaHabilitadas instanceof PropelCollection) {\n\t\t\t$this->collPesquisaHabilitadas->clearIterator();\n\t\t}\n\t\t$this->collPesquisaHabilitadas = null;\n\t\tif ($this->collPremios instanceof PropelCollection) {\n\t\t\t$this->collPremios->clearIterator();\n\t\t}\n\t\t$this->collPremios = null;\n\t\tif ($this->collRespostaForums instanceof PropelCollection) {\n\t\t\t$this->collRespostaForums->clearIterator();\n\t\t}\n\t\t$this->collRespostaForums = null;\n\t\tif ($this->collSolicitacaoResgatesRelatedByAprovadorId instanceof PropelCollection) {\n\t\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId->clearIterator();\n\t\t}\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId = null;\n\t\tif ($this->collSolicitacaoResgatesRelatedBySolicitanteId instanceof PropelCollection) {\n\t\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId->clearIterator();\n\t\t}\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = null;\n\t\t$this->aCargo = null;\n\t\t$this->aDepartamento = null;\n\t\t$this->aEndereco = null;\n\t\t$this->aPerfil = null;\n\t}", "public function resetLookupCollections()\n\t{\n\t\t$this->lookupCollections[] = null;\n\t}", "public function unsetAll() {\n\t\tparent::unsetAll();\n\t}", "function unbindAll() {\n foreach (array(\n 'hasOne' => array_keys($this->hasOne),\n 'hasMany' => array_keys($this->hasMany),\n 'belongsTo' => array_keys($this->belongsTo),\n 'hasAndBelongsToMany' => array_keys($this->hasAndBelongsToMany)\n ) as $relation => $model) {\n $this->unbindModel(array($relation => $model));\n }\n }", "public function reset()\n {\n $this->models = null;\n return $this;\n }", "public static function reset($destroyObjects = TRUE) {\n foreach (self::$connections as $object) {\n if ($destroyObjects) $object->destroy();\n self::unregisterObject($object);\n }\n self::$drivers = array();\n self::$connections = array();\n }", "public function clear()\n {\n foreach ($this->objectsRepository as $repository) {\n if ($repository instanceof Repository) {\n $repository->clear();\n }\n }\n parent::clear();\n $this->objectsRepository = [];\n }", "public function unload()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->orm = null;\n\n $this->multiRef = [];\n $this->i18n = null;\n\n }", "public static function reset()\n {\n self::resetDefault();\n self::$instances = array();\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collPurchaseOrderDetailReceivings) {\n foreach ($this->collPurchaseOrderDetailReceivings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPurchaseOrderDetailLotReceivings) {\n foreach ($this->collPurchaseOrderDetailLotReceivings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collPurchaseOrderDetailReceivings = null;\n $this->collPurchaseOrderDetailLotReceivings = null;\n $this->aPurchaseOrder = null;\n $this->aWarehouse = null;\n }", "public function clear() {\n\t\t$this->_where\t\t= array();\n\t\t$this->_order\t\t= array();\n\t\t$this->_isAddingNew\t= false;\n\t\t$this->_currentRow\t= 0;\n\t\t$this->_relationship\t= array();\n\t\t$this->_recordset\t= array();\n\t\t$this->_updateBuffer\t= array();\n\t\t$this->_limit\t\t= NULL;\n\t\t$this->_offset\t\t= NULL;\n\t\t$this->isDirty( false );\n\t}", "public function clearRelations(): DataObject\n {\n foreach ($this::RELATIONS as $relationKey => $relation) {\n unset($this->{$relationKey});\n }\n\n return $this;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collActions) {\n foreach ($this->collActions as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collActionPropertyTypesRelatedByactionTypeId) {\n foreach ($this->collActionPropertyTypesRelatedByactionTypeId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aActionPropertyTypeRelatedByid instanceof Persistent) {\n $this->aActionPropertyTypeRelatedByid->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collActions instanceof PropelCollection) {\n $this->collActions->clearIterator();\n }\n $this->collActions = null;\n if ($this->collActionPropertyTypesRelatedByactionTypeId instanceof PropelCollection) {\n $this->collActionPropertyTypesRelatedByactionTypeId->clearIterator();\n }\n $this->collActionPropertyTypesRelatedByactionTypeId = null;\n $this->aActionPropertyTypeRelatedByid = null;\n }", "private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}", "public function reset()\n {\n $this->_metaData = array();\n $this->_columnMap = array();\n }", "public function reset() {\n\t\t// Get the default values for the class from the table.\n\t\tforeach ($this->getFields() as $k => $v) {\n\t\t\t// If the property is not private, reset it.\n\t\t\tif (strpos($k, '_') !== 0) {\n\t\t\t\t$this->$k = NULL;\n\t\t\t}\n\t\t}\n\t}", "function reset()\n {\n $this->mBlockHandles = array();\n $this->mBlockKeys = array();\n $this->mGlobalAssignArray = array();\n }", "public function reset() : void\n {\n $this->_modified = [];\n $this->_errors = [];\n }", "public function resetDataModel() {\r\n $this->arrModel = array();\r\n $intPackageId = NULL;\r\n }", "public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }", "protected function reset() {\n //query builder reset\n $this->queryBuilder->reset();\n $this->numRows = 0;\n $this->insertId = null;\n $this->query = null;\n $this->result = array();\n $this->data = array();\n $this->queryCount = 0;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collBangunanDariBlockgrants) {\n foreach ($this->collBangunanDariBlockgrants as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBangunanLongitudinals) {\n foreach ($this->collBangunanLongitudinals as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRuangs) {\n foreach ($this->collRuangs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collVldBangunans) {\n foreach ($this->collVldBangunans as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aPtk instanceof Persistent) {\n $this->aPtk->clearAllReferences($deep);\n }\n if ($this->aJenisHapusBuku instanceof Persistent) {\n $this->aJenisHapusBuku->clearAllReferences($deep);\n }\n if ($this->aTanah instanceof Persistent) {\n $this->aTanah->clearAllReferences($deep);\n }\n if ($this->aJenisPrasarana instanceof Persistent) {\n $this->aJenisPrasarana->clearAllReferences($deep);\n }\n if ($this->aSekolah instanceof Persistent) {\n $this->aSekolah->clearAllReferences($deep);\n }\n if ($this->aStatusKepemilikanSarpras instanceof Persistent) {\n $this->aStatusKepemilikanSarpras->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collBangunanDariBlockgrants instanceof PropelCollection) {\n $this->collBangunanDariBlockgrants->clearIterator();\n }\n $this->collBangunanDariBlockgrants = null;\n if ($this->collBangunanLongitudinals instanceof PropelCollection) {\n $this->collBangunanLongitudinals->clearIterator();\n }\n $this->collBangunanLongitudinals = null;\n if ($this->collRuangs instanceof PropelCollection) {\n $this->collRuangs->clearIterator();\n }\n $this->collRuangs = null;\n if ($this->collVldBangunans instanceof PropelCollection) {\n $this->collVldBangunans->clearIterator();\n }\n $this->collVldBangunans = null;\n $this->aPtk = null;\n $this->aJenisHapusBuku = null;\n $this->aTanah = null;\n $this->aJenisPrasarana = null;\n $this->aSekolah = null;\n $this->aStatusKepemilikanSarpras = null;\n }", "public function free()\n {\n if ($this->freed) {\n return;\n }\n $this->freed = true;\n\n $this->where = null;\n $this->orderBy = null;\n $this->groupBy = null;\n $this->innerJoins = [];\n $this->data = null;\n $this->joinedData = [];\n $this->vFieldCallbacks = [];\n $this->options = [];\n }", "function reset() {\n\t\tparent::_resetSet();\n\t}", "public function detachAll() {}", "private function resetAll()\n {\n $this->title = null;\n $this->caption = null;\n $this->categories = null;\n $this->image = null;\n $this->tags = null;\n $this->imagePath = null;\n $this->postId = null;\n }", "public function reset() {\n $this->_property = false;\n $this->_interface = false;\n $this->_variable = false;\n }", "public function reset() {\n $this->_property = false;\n $this->_interface = false;\n $this->_variable = false;\n }", "public function clearMemberReferrals()\n\t{\n\t\t$this->collMemberReferrals = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }", "public static function reset()\n {\n $container = static::getInstance();\n $container->values = array();\n $container->factories = array();\n $container->raw = array();\n }", "public function reset() : void {\n\t\tforeach ($this->propertyMap as $propertyName => $dbName) {\n\t\t\t$this->{$propertyName} = null;\n\t\t}\n\t}", "protected static function reset()\n {\n self::$dbm = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n }", "public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}", "public function reset() {\n $this->databasefieldcount = 0;\n $this->databaserecordcount = 0;\n\n parent::reset();\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->aRuang instanceof Persistent) {\n $this->aRuang->clearAllReferences($deep);\n }\n if ($this->aSekolahLongitudinal instanceof Persistent) {\n $this->aSekolahLongitudinal->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe01 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe01->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe02 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe02->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe03 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe03->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe04 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe04->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe05 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe05->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe06 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe06->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe07 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe07->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe08 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe08->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe09 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe09->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe10 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe10->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe11 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe11->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe12 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe12->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe13 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe13->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe14 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe14->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe15 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe15->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe16 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe16->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe17 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe17->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe18 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe18->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe19 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe19->clearAllReferences($deep);\n }\n if ($this->aPembelajaranRelatedByBelKe20 instanceof Persistent) {\n $this->aPembelajaranRelatedByBelKe20->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n $this->aRuang = null;\n $this->aSekolahLongitudinal = null;\n $this->aPembelajaranRelatedByBelKe01 = null;\n $this->aPembelajaranRelatedByBelKe02 = null;\n $this->aPembelajaranRelatedByBelKe03 = null;\n $this->aPembelajaranRelatedByBelKe04 = null;\n $this->aPembelajaranRelatedByBelKe05 = null;\n $this->aPembelajaranRelatedByBelKe06 = null;\n $this->aPembelajaranRelatedByBelKe07 = null;\n $this->aPembelajaranRelatedByBelKe08 = null;\n $this->aPembelajaranRelatedByBelKe09 = null;\n $this->aPembelajaranRelatedByBelKe10 = null;\n $this->aPembelajaranRelatedByBelKe11 = null;\n $this->aPembelajaranRelatedByBelKe12 = null;\n $this->aPembelajaranRelatedByBelKe13 = null;\n $this->aPembelajaranRelatedByBelKe14 = null;\n $this->aPembelajaranRelatedByBelKe15 = null;\n $this->aPembelajaranRelatedByBelKe16 = null;\n $this->aPembelajaranRelatedByBelKe17 = null;\n $this->aPembelajaranRelatedByBelKe18 = null;\n $this->aPembelajaranRelatedByBelKe19 = null;\n $this->aPembelajaranRelatedByBelKe20 = null;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t} // if ($deep)\n\n\t\t\t$this->aJ002tUsuario = null;\n\t\t\t$this->aJ016tForense = null;\n\t\t\t$this->aJ018tInformeForense = null;\n\t}", "public function resetCaches() {\n $this->datasource = NULL;\n $this->server_object = NULL;\n $this->callbacks = NULL;\n $this->processors = NULL;\n $this->added_properties = NULL;\n $this->fields = array();\n $this->fulltext_fields = array();\n }", "protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}", "private function resetQuery() {\r\n\t\tunset($this->query);\r\n\t\t$this->query = $this->createQuery();\r\n\t\tunset($this->queryConstraints);\r\n\t\t$this->queryConstraints = array();\r\n\t}", "public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}", "public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}", "protected function reset() {}", "protected function reset() {}", "public function clear() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $val) {\n\t\t\t$this->$key = null;\n\t\t}\n\t}", "protected function reset() {}", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->aBentukLembaga instanceof Persistent) {\n $this->aBentukLembaga->clearAllReferences($deep);\n }\n if ($this->aFasilitasLayanan instanceof Persistent) {\n $this->aFasilitasLayanan->clearAllReferences($deep);\n }\n if ($this->aJadwalPaudRelatedByFreqParenting instanceof Persistent) {\n $this->aJadwalPaudRelatedByFreqParenting->clearAllReferences($deep);\n }\n if ($this->aJadwalPaudRelatedByJadwalDdtk instanceof Persistent) {\n $this->aJadwalPaudRelatedByJadwalDdtk->clearAllReferences($deep);\n }\n if ($this->aJadwalPaudRelatedByJadwalKesehatan instanceof Persistent) {\n $this->aJadwalPaudRelatedByJadwalKesehatan->clearAllReferences($deep);\n }\n if ($this->aJadwalPaudRelatedByJadwalPmtas instanceof Persistent) {\n $this->aJadwalPaudRelatedByJadwalPmtas->clearAllReferences($deep);\n }\n if ($this->aKategoriTk instanceof Persistent) {\n $this->aKategoriTk->clearAllReferences($deep);\n }\n if ($this->aKlasifikasiLembaga instanceof Persistent) {\n $this->aKlasifikasiLembaga->clearAllReferences($deep);\n }\n if ($this->aLembagaPengangkat instanceof Persistent) {\n $this->aLembagaPengangkat->clearAllReferences($deep);\n }\n if ($this->aSekolah instanceof Persistent) {\n $this->aSekolah->clearAllReferences($deep);\n }\n if ($this->aSumberDanaSekolah instanceof Persistent) {\n $this->aSumberDanaSekolah->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n $this->aBentukLembaga = null;\n $this->aFasilitasLayanan = null;\n $this->aJadwalPaudRelatedByFreqParenting = null;\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n $this->aJadwalPaudRelatedByJadwalKesehatan = null;\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n $this->aKategoriTk = null;\n $this->aKlasifikasiLembaga = null;\n $this->aLembagaPengangkat = null;\n $this->aSekolah = null;\n $this->aSumberDanaSekolah = null;\n }", "public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }", "public function resetModelMocks()\n {\n $this->_registeredModelMocks = array();\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references) {\n foreach (GsDailyDefinedDosePeer::$instances as $instance) {\n $instance->clearAllReferences(true);\n }\n }\n GsDailyDefinedDosePeer::$instances = array();\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t} // if ($deep)\n\n\t}", "public static function pruneInstance()\n {\n self::$instance = null;\n self::$refIdList = array();\n self::$refIdDefinitions = array();\n }", "public function reset() {\n $this->folders = NULL;\n }", "public static function reset() {\n\t\t\tself::$instance = null;\n\t\t}", "public static function reset() {\n\t\t\tself::$instance = null;\n\t\t}", "public static function reset()\n\t{\n\t\tself::engine()->reset();\n\t}", "abstract public function reset();" ]
[ "0.73751575", "0.7075585", "0.7070103", "0.69268966", "0.69253993", "0.69054973", "0.6833247", "0.68202984", "0.6730608", "0.6672259", "0.6616799", "0.6609049", "0.65902245", "0.6580803", "0.6573979", "0.6570683", "0.6544556", "0.65250957", "0.6510706", "0.6475944", "0.64742506", "0.64571774", "0.64483464", "0.6447256", "0.6439561", "0.6438006", "0.6437437", "0.6427112", "0.64085007", "0.63940436", "0.63897574", "0.6379616", "0.63410187", "0.6327528", "0.63264084", "0.632485", "0.63235897", "0.6309167", "0.6303581", "0.6294068", "0.6274601", "0.62639314", "0.625885", "0.62267244", "0.6213873", "0.6211317", "0.6203061", "0.61883354", "0.6171763", "0.61669457", "0.61345935", "0.6129795", "0.61285865", "0.6114991", "0.61009324", "0.60902196", "0.60847104", "0.6081312", "0.6059995", "0.6053019", "0.60487854", "0.60443884", "0.6039796", "0.6037295", "0.6037295", "0.6037082", "0.60266566", "0.60073537", "0.60063255", "0.6002509", "0.60011405", "0.5998395", "0.599721", "0.5997184", "0.5979896", "0.5979896", "0.5979896", "0.5979896", "0.5979896", "0.5979605", "0.59727126", "0.59698826", "0.596791", "0.5952774", "0.5952774", "0.59488153", "0.59482676", "0.5947635", "0.594746", "0.59444153", "0.5942199", "0.5935086", "0.5933505", "0.59128237", "0.5912624", "0.5912148", "0.59041214", "0.59041214", "0.58958584", "0.5892692" ]
0.6851384
6
return the string representation of this object
public function __toString() { return (string) $this->exportTo(OperationPrimesPeer::DEFAULT_STRING_FORMAT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function to_string() { return $this->__toString(); }", "public function toString()\n {\n return $this->__toString();\n }", "public function __toString()\n\t{\n\t\treturn $this->serialize();\n\t}", "public function __toString() {\n \n return $this->toString();\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString() {\r\n return $this->toString();\r\n }", "public function __toString()\n {\n return $this->formatAsString();\n }", "public function toString()\n {\n return serialize($this->getData());\n }", "public function toString()\n {\n return $this->cast('string');\n }", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() { return $this->as_string(); }", "public function __toString()\n\t{\n\t\treturn $this->dump();\n\t}", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function toString()\n {\n return json_encode($this->obj);\n }", "public function __toString()\n\t{\n\t\treturn $this->_toString();\n\t}", "public function toString()\n\t{\n\t\treturn (string) $this;\n\t}", "public function toString()\n\t{\n\t\treturn (string) $this;\n\t}", "public function __toString(): string\n {\n return $this->toJSON();\n }", "public function __toString(): string\n {\n return $this->toJson();\n }", "public function getToString()\n {\n return $this->toString();\n }", "public function __toString() {\n return $this->as_string();\n }", "public function __toString()\n {\n return $this->toFormattedString();\n }", "public function __toString() {\n\t\treturn $this->build ();\n\t}", "public function __toString() : string\n {\n return $this->toString();\n }", "public function toString() {\n\t\treturn serialize($this->_value);\n\t}", "public function __toString() {\n return $this->toJson($this->data);\n }", "public function __toString(): string\n {\n return serialize($this->toArray());\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString () {\n return $this->encode();\n }", "public function toString() : void\n {\n $out = serialize($this);\n \n }", "public function __toString()\n\t{\n\t\treturn $this->get();\n\t}", "public function __toString()\n {\n return $this->build();\n }", "public function __toString()\n {\n return (string) $this->exportTo(JadwalPeer::DEFAULT_STRING_FORMAT);\n }", "public function __toString()\n {\n try {\n return $this->toString();\n } catch (\\Exception $e) {\n return '';\n }\n }", "public function __toString()\r\n {\r\n return $this->getFormattedString();\r\n }", "public function __toString(): string\n {\n return $this->toString();\n }", "public function __toString(): string\n {\n return $this->toString();\n }", "public function __toString(): string\n {\n return $this->toString();\n }", "public function __toString()\n\t{\n\t\treturn \"{$this->data}\";\n\t}", "public function __toString()\n {\n return $this->toNative();\n }", "public function __tostring() {\n\n\t\t\t//convet to string\n\t\t\treturn \"{\".\n\t\t\t\t\t\t\"id:\".$this->_id.\n\t\t\t\t\t\t\"type:\".$this->_type.\n\t\t\t\t\t\t\"path:\".$this->_path.\n\t\t\t\t\t\t\"name:\".$this->_name.\n\t\t\t\t\t\"}\";\n\n\t\t}", "public function __toString(): string\n {\n return $this->to_string();\n }", "public function __toString() {\n\t\t\treturn Core\\Convert::toString($this->value);\n\t\t}", "public function __toString()\n {\n return (string) $this->getContents();\n }", "public function __tostring()\n {\n if ($this->isEmpty()) {\n return '';\n }\n\n return json_encode($this);\n }", "public function __toString()\n {\n return $this->make()->toString();\n }", "public function __toString()\r\n {\r\n return var_export($this, true);\r\n }", "public function __toString() {\n\t\t\treturn Core\\Convert::toString($this->render());\n\t\t}", "function toString() {\n\n\t\t\t}", "public function __toString()\n {\n return $this->assemble();\n }", "public function __toString()\n\t{\n\t\treturn '';\n\t}", "public function __toString()\n\t{\n\t\treturn $this->value();\n\t}", "public function __toString()\n {\n return $this->toJson(['pretty' => true]);\n }", "public function __toString()\n {\n return (string) $this->getValue();\n }", "public function __toString()\n {\n return (string) $this->getValue();\n }", "public function __toString()\n {\n return (string) $this->getValue();\n }", "public function __toString()\n {\n return strval($this->_data);\n }", "public function toString()\n {\n $data = $this->getProperties();\n $out = get_class($this).' ('.CRLF;\n foreach ($data as $key => $value) {\n $type = gettype($value);\n $value = is_bool($value) ? (int) $value : $value;\n $value = is_string($value) ? '\"'.$value.'\"' : $value;\n $value = is_object($value) ? implode(CRLF.TAB, explode(CRLF, (string) $value)) : $value;\n $value = is_array($value) ? print_r($value, true) : $value;\n $out .= TAB.$key.' ('.$type.')';\n $out .= ': '.$value.CRLF;\n }\n\n return $out.');';\n }", "public function __toString() {\n return $this->assemble();\n }", "public function __toString(): string\n {\n return var_export($this->toArray(), true);\n }", "public function __toString()\n {\n return $this->dataString;\n }", "public function __toString()\n {\n return $this->str;\n }", "public function __toString () {\r\n\t\treturn '';\r\n\t}", "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }" ]
[ "0.881343", "0.8804064", "0.87396216", "0.8638188", "0.8627505", "0.8627505", "0.86221105", "0.8610754", "0.86016625", "0.85770637", "0.8571491", "0.8571491", "0.85487986", "0.8547729", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8547249", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.8531042", "0.85253066", "0.85207015", "0.850946", "0.850946", "0.84545404", "0.84543693", "0.84527946", "0.8449807", "0.8446281", "0.8446054", "0.843513", "0.8412043", "0.8409727", "0.8409542", "0.83999884", "0.8398622", "0.8398622", "0.8398622", "0.83948946", "0.8372513", "0.836132", "0.83532333", "0.8352077", "0.83490586", "0.83433974", "0.83430433", "0.83430433", "0.83430433", "0.83423704", "0.8327877", "0.8319614", "0.8313418", "0.8306735", "0.8284417", "0.8283763", "0.8283188", "0.8281073", "0.82721907", "0.8263797", "0.82486093", "0.82462186", "0.82362366", "0.8225633", "0.82151204", "0.82151204", "0.82151204", "0.8207636", "0.82059395", "0.8193693", "0.81896234", "0.81864035", "0.8184897", "0.8174617", "0.8169133" ]
0.0
-1
return true is the object is in saving state
public function isAlreadyInSave() { return $this->alreadyInSave; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canSave()\n {\n return $this->save;\n }", "protected abstract function canSave();", "public function is_saved()\n\t\t{\n\t\t\treturn $this->hash && file_exists($this->get_path_hashed()) || $this->saved;\n\t\t}", "public function isPersisted() {}", "public function isPersisted();", "public function isPersisted();", "public function isPersisted();", "public function isAlreadySaved()\n\t\t{\n\t\t\treturn $this->_alreadySaved == true;\n\t\t}", "public function getNeedsSaving ()\n {\n return $this->needsSaving;\n }", "function beforesave(){\n\t\t// if it returns true, the item will be saved; if it returns false, it won't\n\t\treturn true;\n\t}", "protected function onSaving()\n {\n return true;\n }", "function isSaveAllowed() {\n\t\t\treturn $this->isAllowedAction( 'save' );\n\t\t}", "protected function onSaved()\n {\n return true;\n }", "public function save()\n {\n return FALSE;\n }", "protected function canSave()\n {\n if( $this->ticket != null and\n $this->filename != null)\n {\n return true;\n }\n else\n return false;\n }", "public function isDirty();", "public function save()\n {\n try {\n $instanceState = $this->toArray();\n if (empty($instanceState['id'])) {\n unset($instanceState['id']);\n Db::getInstance()->insert($this->getTableName(), $instanceState);\n } else {\n Db::getInstance()->update($this->getTableName(), $instanceState, ['id' => $instanceState['id']]);\n }\n\n return true;\n } catch (DbException $e) {\n return false;\n }\n }", "public function save(): bool;", "public function save(): bool;", "function save()\n {\n $save = false;\n if ( $this->lastActivity === NULL )\n return false;\n foreach ( $this->dataInterfaces as $data )\n {\n if ( $data->save() )\n $save = true;\n }\n return $save;\n }", "public function isDirty(): bool;", "public function save(): bool\n {\n return $this->id > 0\n ? $this->actionHandler->update()\n : $this->actionHandler->insert();\n }", "public function checkIsSaved()\n {\n if (isset($this->owner->primaryKey) == false) {\n throw new ModelIsUnsaved();\n }\n }", "public function save(): bool\n {\n $data = [\n 'date' => $this->getDate(),\n 'type' => $this->getType(),\n 'recorded' => $this->getRecorded(),\n 'route' => $this->getRoute(),\n 'place' => $this->getPlace(),\n 'mileage' => $this->getMileage(),\n 'place_manual' => $this->getPlaceManual(),\n 'description' => $this->getDescription()\n ];\n if ($this->getId()) {\n if ((new db\\Update('event', $data, $this->getId()))->run() !== false) {\n return true;\n }\n } else {\n if ($newId = (new db\\Insert('event', $data))->run()) {\n $this->setId($newId);\n return true;\n }\n }\n return false;\n }", "public function save()\n {\n $rc = true;\n $ak = array_keys($this->_objData);\n if (isset($this->_objData[$ak[0]][$this->_objField]) && $this->_objData[$ak[0]][$this->_objField]) {\n $rc = $this->update();\n } else {\n $rc = $this->insert();\n }\n return $rc;\n }", "public function save()\n {\n return false;\n }", "protected function save(): bool\n\t{\n\t\t$res = JobTable::update(\n\t\t\t$this->id,\n\t\t\t[\n\t\t\t\t'STATUS' => $this->status,\n\t\t\t\t'STATUS_MESSAGE' => $this->statusMessage,\n\t\t\t\t'STATE' => $this->state,\n\t\t\t\t'STEP' => $this->step,\n\t\t\t]\n\t\t);\n\n\t\treturn $res->isSuccess();\n\t}", "public function save()\n {\n $temp = [];\n foreach ($this as $prop => $value) {\n $temp[$prop] = $value;\n }\n\n self::update($temp);\n if (isset($temp[(new static)->key])) {\n self::where((new static)->key, '=', $temp[(new static)->key]);\n }\n if (self::execute()->errno == 0) {\n return true;\n }\n return false;\n }", "public function isStorable()\n {\n return ((int)$this->storable === 1);\n }", "public function save()\n {\n Logger::getInstance()->po_log(\"PO:save \" . get_class($this));\n\n if (!$this->validate(true)) return false;\n \n //Logger::getInstance()->po_log(\"PO:save post validate\");\n\n $this->executeBeforeSave();\n\n //Logger::getInstance()->on();\n try\n {\n //Logger::getInstance()->po_log(\"PO:save BEGIN\");\n $pm = PersistentManager::getInstance();\n $pm->withTransaction();\n $pm->save($this);\n $pm->commitTransaction();\n //Logger::getInstance()->po_log(\"PO:save COMMIT\");\n }\n catch(Exception $e)\n {\n // TODO: log de $e\n Logger::getInstance()->po_log(\"PO:save ROLLBACK \". $e->getMessage() .\" <pre>\". $e->getTraceAsString() .\"</pre>\");\n \n $pm->rollbackTransaction();\n return false;\n }\n //Logger::getInstance()->off();\n\n $this->executeAfterSave();\n \n // Validacion\n return true;\n }", "function isDirty() : bool;", "public function onSave()\n\t{\n\t\t$value = $this->getValue();\n\t\tif(!empty( $value ))\n\t\t{\n\t\t\treturn $this->getLookupTable()->set(\n\t\t\t\t $this->getValue(),\n\t\t\t\t $this->getValueObject()->getKey()\n\t\t\t ) > 0;\n\t\t}\n\t\treturn false;\n\t}", "public function Save()\r\n {\r\n return false;\r\n }", "public function save()\n\t{\n\t\treturn false;\n\t}", "public function isPersistent(): bool;", "public function persist(): bool\n {\n // No caching for now and no extra call needed because of that.\n return true;\n }", "public function save()\n {\n $this->setData(array(\n 'modified' => time(),\n 'modifiedReadable' => Zend_Date::now()->get(Zend_Date::ISO_8601)\n ));\n \n $unmappedData = $this->getBean()->asDeepArray(true);\n if(key_exists('_id', $unmappedData)) {\n unset($unmappedData['_id']);\n }\n\n if (!($id = $this->_save($unmappedData, $this->getId()))) {\n return false;\n }\n\n $this->_setId($id);\n \n return true;\n }", "public function saved()\n\t{\t\n\t\treturn $this->_saved;\n\t}", "public function save()\n\t{\n\n\t\tif (!$this->saveAttributeGroup()) return false;\n\n\t\tif (!$this->saveAttributes()) return false;\n\n\t\treturn true;\n\t}", "public function save() {\t\t\t\t\n\t\tif (file_put_contents($this->filename, $this->objects)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isDirty()\n {\n return $this->isModified;\n }", "protected function _isPersistent(){\n\t\treturn (bool) false;\n\t}", "public function isDirty()\r\n {\r\n if (!$this->id)\r\n return true;\r\n \r\n return $this->dirty;\r\n }", "protected function afterSave()\n {\n return true;\n }", "protected function preSave() {\n return TRUE;\n }", "public function save()\n {\n $success = $this->obj->save();\n\n if (! $success)\n {\n if ($this->obj->valid)\n {\n $this->_set_error('Failed to save data!');\n }\n else\n {\n //Validation error\n $this->_set_error();\n }\n }\n\n return $success;\n }", "public function get_saved_status() {\n\t\treturn $this->successfully_saved;\n\t}", "public function save()\n\t{\n\t\tif ($this->loaded === FALSE)\n\t\t{\n\n\t\t}\n\t\treturn parent::save();\n\t}", "public function saveObjectState() {\n $this->objectState = base64_encode(serialize($this));\n $this->isNewRecord = false;\n $this->update();\n $this->reconstructCombatants();\n }", "public function getWillSave() {}", "public function isAfterSaveActionsEnabled(): bool\n\t{\n\t\treturn $this->isAfterSaveActionsEnabled;\n\t}", "protected function postSave() {\n\t\treturn true;\n\t}", "protected function autosave_check() {\n\t\t\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "public function persist(): bool\n {\n return $this->repository->persist();\n }", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public function hasChanges () {\n return !!$this->dirty;\n }", "public function save()\n {\n $saved = true;\n\n foreach ($this->_relationsToSave as $model) {\n $model->{$this->relPrimaryKey} = $this->owner->primaryKey;\n\n if (!$model->save()) {\n $this->owner->addErrors($model->getErrors());\n\n $saved = false;\n }\n }\n\n return $saved;\n }", "public function save()\n {\n if(!parent::save()) {\n return false;\n }\n \n if($this->_rebuildSearchIndex) {\n $this->_rebuildSearchIndex = false;\n MazelabVpopqmail_Model_DiFactory::getIndexManager()->setRobot($this->getId());\n }\n \n return true;\n }", "public function save($state) {\n $data = serialize($state);\n try {\n $db = $this->getDbConnection();\n $sql = \"SELECT id FROM {$this->persisterTableName} WHERE id=1\";\n if ($db->createCommand($sql)->queryScalar() === false)\n $sql = \"INSERT INTO {$this->persisterTableName} (id, data) VALUES (1, :data)\";\n else\n $sql = \"UPDATE {$this->persisterTableName} SET data=:data WHERE id=1\";\n $db->createCommand($sql)->bindValue(':data', $data)->execute();\n }\n catch (Exception $e) {\n if (YII_DEBUG)\n echo $e->getMessage();\n return false;\n }\n return true;\n }", "public function isPersistent()\n {\n }", "public function dirty() {\n\t\treturn ! $this->exists or count($this->get_dirty()) > 0;\n\t}", "protected function isRestoring()\n {\n return $this->option('restore') == 'true';\n }", "function save() {\n $id = (int)$this->getId();\n $fields = array();\n foreach ($this->_data as $col => &$value) {\n if (($value->flags & DATAFLAG_CHANGED)) // only save/update values that have been changed\n {\n $fields[] = new ColVal($col, $value->dataType, $value->value);\n }\n }\n if (sizeof($fields) == 0) {\n if ($id == 0) {\n return false;\n }\n return true;\n }\n\n if ($id != 0) {\n // update\n if (!App::getDBO()->update($this->getTableName(), $fields, \"id=$id\")) {\n return false;\n }\n } else {\n // save new (insert)\n if ($id = App::getDBO()->insert($this->getTableName(), $fields)) {\n $this->_data['id']->value = $id;\n $this->_data['id']->flags = DATAFLAG_LOADED;\n } else {\n return false;\n }\n }\n\n // if we got here, the save was successful\n\n foreach ($this->_data as $col => &$value) {\n if (($value->flags & DATAFLAG_CHANGED)) // we just saved/updated values that were changed\n {\n $value->flags &= ~DATAFLAG_CHANGED;\n } // remove changed flag\n }\n\n return true;\n }", "public function isDirty()\n\t{\n\t\treturn (bool)count($this->dirtyFields);\n\t}", "public function save()\r\n {\r\n if( empty($this->dirty) ) return true;\r\n \r\n $pkName = $this->pkName();\r\n //is it an update?\r\n if( isset($this->data[$pkName]) ){\r\n $this->table->update($this->dirty, \"{$pkName}=?\", array($this->data[$pkName]) );\r\n $merged_data[$pkName] = $this->data[$pkName];\r\n } else {\r\n //it's an insert\r\n $merged_data = array_merge(\r\n $this->array_diff_schema($this->dirty),\r\n $this->array_diff_schema($this->data)\r\n );\r\n $this->table->insert($merged_data);\r\n $pk = $this->pkName();\r\n if( !isset($merged_data[$pk]) )\r\n $merged_data[$pk] = $this->table->lastInsertId();\r\n }\r\n $this->reset($merged_data);\r\n return true;\r\n }", "public function getSaveDoc(): bool\n {\n return $this->saveDoc;\n }", "public function save(): bool\n {\n\n $bytes_written = file_put_contents($this->file_name, json_encode($this->getData()));\n\n if ($bytes_written === FALSE) {\n return false;\n }\n\n return true;\n }", "protected function will_change_to_db(){\n\t\t$pdo = DB::connection( $this->get_database_name() )->getPdo();\n\t\t$pdo->beginTransaction();\n\t\t//DB::beginTransaction();\n\t\t$status = false;\n\t\ttry {\n\t\t\t//! for saving\n\t\t\tforeach( $this->get_obj_save_db() as $obj){\n\t\t\t\tif($obj == null) {\n\t\t\t\t\tthrow new Exception(\"There are non object\");\n\t\t\t\t}\n\t\t\t\t$obj->save();\n\t\t\t}\n\t\t\tforeach( $this->get_obj_dele_db() as $obj){\n\t\t\t\tif($obj == null) {\n\t\t\t\t\tthrow new Exception(\"There are non object\");\n\t\t\t\t}\n\t\t\t\t$obj->delete();\n\t\t\t}\t\t \n\t\t //DB::commit();\n\t\t\t$pdo->commit();\n\t\t\t$status = true;\n\t\t // all good\n\t\t}\n\t\tcatch (\\Exception $e) {\n\t\t\t$this->set_pdo_exception($e);\n\t\t\t$this->set_error_message($e->getMessage()) ;\n\t\t //DB::rollback();\n\t\t\t$pdo->rollback();\n\t\t}\n\t\treturn $status;\n\t}", "public function isSaveToHistoryEnabled(): bool\n\t{\n\t\treturn $this->isSaveToHistoryEnabled;\n\t}", "protected function beforeSave()\n\t{\n\t\tif ( parent::beforeSave() )\n\t\t{\n\t\t\tif ( $this->isNewRecord )\n\t\t\t{\n\t\t\t\t$this->create_time = $this->update_time = time();\n\t\t\t\t$this->author_id = Yii::app()->user->id;\n\t\t\t\tif($_POST['Howto']['status'] == 1){\n\t\t\t\t\t$this->status = 1;\n\t\t\t\t}else{$this->status = 2;}\n\t\t\t}\n\t\t\telse\n\t\t\t\t$this->update_time = time();\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public function isDirty()\r\n\t{\r\n\t\treturn (count($this->changelog)>0) ? true : false;\r\n\t}", "protected function preSave() {\n\t\treturn true;\n\t}", "public function isPersistent() {\n\t\treturn false;\n\t}", "public function isPersistent() {\n\t\treturn false;\n\t}", "public function isDirty() {\n\t\treturn count($this->_modified);\n\t}", "public function save()\n {\n $is_new = $this->getId() == 0 ? true : false;\n\n # Save the core application data using the parent class\n if(!parent::save()){\n return false;\n }\n\n # Save the application-specific data\n $db = new PHPWS_DB('hms_summer_application');\n\n /* If this is a new object, call saveObject with the third parameter as 'false' so\n * the database class will insert the object with the ID set by the parent::save() call.\n * Otherwise, call save object as normal so that the database class will detect the ID and\n * update the object.\n */\n if($is_new){\n $result = $db->saveObject($this, false, false);\n }else{\n $result = $db->saveObject($this);\n }\n\n if(PHPWS_Error::logIfError($result)){\n throw new DatabaseException($result->toString());\n }\n\n return true;\n }", "function onsave(){\n\t\treturn true;\n\t}", "public function save()\n {\n try {\n $testRunCache = new CTM_Test_Run_Cache();\n $testRun = $testRunCache->getById($this->testRunId);\n\n if ( $testRun->testRunStateId == $this->testRunStateId ) {\n // if the state is already set save the trouble of the save()\n } else if ( $testRun->testRunStateId == 5 ) {\n // If the test run has failed we cannot undo a failure.\n } else {\n $testRun->testRunStateId = $this->testRunStateId;\n $testRun->save();\n }\n\n } catch ( Exception $e ) {\n }\n\n // do the default save method.\n return parent::save();\n }", "private function _isCardSaved() {\n\t $tokenId = (int) $this->getInfoInstance()->getAdditionalInformation('token_id');\n\t return (boolean)($this->getInfoInstance()->getAdditionalInformation('create_token') === 'true') &&\n\t !($tokenId && ($tokenId > 0));\n\t}", "function user_can_save( $post_id ) {\n\n\t\t$is_autosave = wp_is_post_autosave( $post_id );\n\t\t$is_revision = wp_is_post_revision( $post_id );\n\n\t\t// Return true if the user is able to save; otherwise, false.\n\t\treturn ! ( $is_autosave || $is_revision );\n\n\t}", "public function areDirty()\n {\n return !empty($this->current) || !empty($this->remove);\n }", "public function save()\n {\n if(!$this->validate()) {\n return false;\n }\n\n return CustomGallery::getDb()->transaction(function() {\n $this->updateVisibility();\n return $this->instance->save();\n });\n }", "protected function beforeSave()\n\t{\n\t\tif(parent::beforeSave())\n\t\t{\n\t\t\tif($this->isNewRecord)\n\t\t\t{\n\t\t\t\t$this->created = $this->modified = date('Y-m-d H:i:s');\n\t\t\t\t$this->user_id=1;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t//\t$this->update_time=time();\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public function save() {\n // If this object hasn't had its values changed, then abort.\n if(!$this->isModified()) {\n return false;\n }\n\n // Discard cached objects\n $this->invalidateCache();\n\n foreach($this->modifiedAttributes as $a) {\n $this->payload[$a] = $this->values[$a];\n }\n\n // Set request method to POST\n $this->method = \"POST\";\n\n // Run the request\n // TODO This should return the modified object - use it\n $this->get();\n return true;\n }", "public function _isDirty() {}", "public function save()\n {\n if(!$this->canSave())\n return false;\n\n try\n {\n if ($this->id == null) //new object\n {\n $stmt = $this->connection->prepare(\"insert into \" . self::$table_name . \"(ticketID, filename) values(?, ?)\");\n $stmt->execute([$this->ticket->id, $this->filename]);\n $this->id = $this->connection->lastInsertId();\n }\n else //updating is not possible\n {\n return false;\n }\n\n return true;\n }\n catch (\\PDOException $e)\n {\n print_r($e->errorInfo);\n return false;\n }\n }", "public function have_settings_been_saved() {\n\t\treturn self::$settings_saved;\n\t}", "public function isDirty(): bool\n {\n return count($this->changedAttributesName()) > 0;\n }", "public function isSavable(): bool\n {\n return true;\n }", "public function persisted()\n {\n return $this->_persisted;\n }" ]
[ "0.78017664", "0.77273244", "0.757228", "0.75603664", "0.7529165", "0.7529165", "0.7529165", "0.74971557", "0.7495214", "0.74183434", "0.7392338", "0.73065156", "0.7267914", "0.7264964", "0.7218154", "0.72104543", "0.72013205", "0.7164965", "0.7164965", "0.7162645", "0.71078277", "0.710024", "0.7052396", "0.70466346", "0.6950455", "0.6947186", "0.69079936", "0.6904378", "0.68997943", "0.68781483", "0.68698376", "0.6854775", "0.68533605", "0.68250245", "0.68143886", "0.6767604", "0.6753279", "0.67523074", "0.6739109", "0.6735066", "0.66793305", "0.667215", "0.6664709", "0.66374207", "0.6632996", "0.663261", "0.66267204", "0.6619312", "0.66104746", "0.6605622", "0.6596572", "0.6593998", "0.6592774", "0.6578608", "0.6573431", "0.6563489", "0.65368885", "0.651561", "0.6513697", "0.6512614", "0.649697", "0.6485853", "0.64711636", "0.64702827", "0.64638776", "0.6452436", "0.64517343", "0.64417183", "0.64298123", "0.63887906", "0.63720363", "0.63654065", "0.6365023", "0.63633555", "0.63633555", "0.63320875", "0.63238764", "0.63168555", "0.63158476", "0.63078636", "0.6307338", "0.6304981", "0.63045686", "0.6300845", "0.6295519", "0.6282417", "0.6282263", "0.62769914", "0.6272355", "0.6270772", "0.62646425" ]
0.7470844
18
utils behavior Return connection object
public function getConnection(){ return BaseOperationPrimesPeer::getConnection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function get_connection()\n {\n }", "abstract public function getConnection();", "public function getConnection(): Connection;", "public function get_connection()\n {\n return $this->connection();\n }", "public function _getConnection(){\n return $this->_connection;\n }", "public function getConnection() {\n return $this->connection;\n }", "public function getConnection()\n {\n return($this->connx);\n }", "public function getConnection(){\n\t\treturn $this->connection;\n\t}", "public function get_connection()\n {\n return $this->connection;\n }", "protected function getConnection()\n {\n return $this->connection;\n }", "protected function getConnection()\n {\n return $this->connection;\n }", "function getConnection();", "public function getConnection(){\n\t\treturn $this->_connection;\n\t}", "public function getConn(){\n return $this->conn;\n }", "public function connection(){ return $this->connection; }", "public function getConnection()\n {\n return $this->conn;\n }", "public function getConnection()\n {\n return $this->conn;\n }", "public function getConnection() {\n return $this->connection;\n }", "public function getConnection() {\n return $this->connection;\n }", "public function getConn(){\n\t\treturn $this->conn;\n\t}", "function getConnection() {\r\n\r\n\t\treturn $this->connection;\r\n\r\n\t}", "public function getConnection(){\n\t\tif(!isset($this->connection)){\n\t\t\t$this->connection = $this->connect($this->connectionParams);\n\t\t}\n\n\t\treturn $this->connection;\n\t}", "public function getConn()\n {\n return $this->conn;\n }", "public function getConn()\n {\n return $this->conn;\n }", "protected function getConnection()\n {\n return $this->_connection;\n }", "public function getConnection()\r\n\t{\r\n\t\treturn $this->connection;\r\n\t}", "public function connection()\n {\n return $this->connection;\n }", "public function connection()\n {\n return $this->connection;\n }", "public function connection()\n {\n return $this->connection;\n }", "public function get_connection() {\n return $this->_connection;\n }", "public function get_connection() {\n return $this->_connection;\n }", "public function getConnection()\n {\n return $this->_connection;\n }", "public function getConnection()\n\t{\n\t\treturn $this->connection;\n\t}", "public function getConnection()\n\t{\n\t\treturn $this->connection;\n\t}", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection()\n {\n return $this->connection;\n }", "public function getConnection() {\n\t\treturn $this->_connection;\n\t}", "public function connection()\n {\n $this->connection or $this->connect();\n\n return $this->connection;\n }", "static public function getConnection()\n {\n return self::call(__FUNCTION__ , func_get_args());\n }", "public function getConn()\n\t{\n\t\treturn $this->conn;\n\t}", "abstract protected function getActiveConnection();", "public function getConnection()\n {\n return $this->__connection;\n }", "public function getConn()\n {\n return $this->conn;\n }", "public function getConnection() {\n return $this->_connection;\n }", "public function getConnection()\n {\n $this->connection = db($this->connectionName);\n\n return $this->connection;\n }", "public function getConnection()\n {\n return parent::getConnection();\n }", "public function getConnection() {\r\n return $this->_connection;\r\n //return new mysqli( 'localhost', 'root', '', 'sandbox' );\r\n }", "private static function getConnection(){\n\t\tself::$cnx = Connect::conn();\n\n\t}", "function connection()\n\t{\n\t\tif (isset($this->conn_name)) {\n\t\t\treturn Db::getConnection($this->conn_name);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public static function conn()\n {\n return (static::inst())::$_db;\n }", "public function getConn() {\n\n return $this->conn;\n }", "public function __construct()\r\n\t{\r\n\t\t$conn= new connection();\r\n return $this->conn;\r\n }", "public function getConnection() {\n return $this->connection;\n }", "protected static function getConn() {\n return self::Conectar();\n }", "public function getConnection()\n {\n if($this->connection === null) {\n $this->connect();\n }\n return parent::getConnection();\n }", "public function getConnection(): Connection\n {\n return $this->_connection;\n }", "public function GetConn(){\r\n\t\tif(! $this->_conn){\r\n\t\t\t $this->SetConn();\r\n\t }\r\n\r\n\t\treturn $this->_conn;\r\n\t}", "private function connection()\n {\n return Database::connection($this->connectionName);\n }", "protected function _initConnection() {\n\t\t$options = $this->getOptions();\n\t\treturn $options['connection'];\n\t}", "public function getConnection(): Connection\n {\n return $this->connection;\n }", "public function get(): ConnectionInterface;", "public function getConn() {\n\t\tif ($this->conn) {\n\t\t\treturn $this->conn;\n\t\t}\n\t}", "public function getConnection(): Client;", "private function getConnection(): Connection\n {\n return $this->databaseConnection;\n }", "public function getConnection() {\n return $this->conexion;\n }", "public function getConnection() {\n\t\t$db = Config::get('librarydirectory::database.default');\n return static::resolveConnection($db);\n }", "private static function getConnection()\n {\n // TODO: i don't like this implementation - it gives config file name explicitly.\n // it should not be done this way. to be fixed later on.\n // TODO: I've found a different syntax for obtaining SQLMap:\n // $this->sqlmap = $this->Application->Modules['sqlmap']->Client;\n // what's the difference?\n $conn=TActiveRecordManager::getInstance()->getDbConnection();\n if($conn===null)\n throw new TInvalidDataValueException(\"unable to create connection object\");\n\n $conn->Active=true; // ensure connection is established\n\n $tzSetup=$conn->createCommand(\"SET TIMEZONE TO UTC;\");\n if($tzSetup===null)\n throw new TInvalidDataValueException(\"cannot create SQL command to change timezone\");\n $tzSetup->execute();\n\n // return properly configured connection\n return $conn;\n }", "public function getConnection(){\n \n $this->conn = null;\n \n if (is_dir($this->db_url)) {\n $this->conn=$this->db_url;\n }\n \n return $this->conn;\n }", "public function getConnection()\n\t{\n\t\treturn empty($this->db_conn) ? Db::getConnection($this->getConnectionName()) : $this->db_conn;\n\t}", "public function getConnection(){\n return $this->dbConnection;\n }", "public function getConnection()\n {\n return $this->resolver->connection();\n }", "public function getConnection()\n\t\t{\n\t\t\tif ($this->connectFail == False)\n\t\t\t{\n\t\t\t\treturn $this->conn;\n\t\t\t}\n\t\t}", "public function getConnection(){\n \n \n $this->db_conn = OCILogon($this->username, $this->password,$this->db_name); \n \n return $this->db_conn;\n }", "public function getConnection(){\n\t\tif($this->con == null){\n\t\t\t$this->connect();\n\t\t\treturn $this->con;\n\t\t}\n\t\treturn $this->con;\n\t}", "public function getConnection()\n {\n return Database::getConnection($this->connection);\n }", "public function getConnection()\n {\n return static::resolveConnection($this->getConnectionName());\n }", "public function getConnection()\n {\n return static::resolveConnection($this->getConnectionName());\n }", "public function getConnection()\n\t{\n\t\treturn static::$instances[$this->_instance];\n\t}", "abstract function getConnect();", "function getCONN(){\n return $this ->CONN;\n }", "public final function getConnection() {\n\t\t//If the connection has not been established yet, create it\n\t\tif($this->connection === null) {\n\t\t\t//connect to mySQL and provide the interface to PHPUnit\n\n\t\t\t$config = readConfig(\"/etc/apache2/capstone-mysql/jpegery.ini\");\n\t\t\t$pdo = connectToEncryptedMySQL(\"/etc/apache2/capstone-mysql/jpegery.ini\");\n\t\t\t$this->connection = $this->createDefaultDBConnection($pdo, $config[\"database\"]);\n\t\t}\n\t\treturn($this->connection);\n\t}" ]
[ "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.8191341", "0.80470276", "0.7972273", "0.7970527", "0.78297186", "0.7822589", "0.7821015", "0.7794633", "0.7770798", "0.7767891", "0.77532923", "0.77532923", "0.7742155", "0.7741445", "0.77057195", "0.7705223", "0.7702153", "0.7702153", "0.76873636", "0.76873636", "0.7664683", "0.76585686", "0.7651152", "0.76498556", "0.76498556", "0.76237214", "0.76221544", "0.7605796", "0.7605796", "0.7605796", "0.7596242", "0.7596242", "0.75880617", "0.758671", "0.758671", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75832903", "0.75816387", "0.75685984", "0.7559646", "0.75568724", "0.7555871", "0.7526641", "0.7521505", "0.7520319", "0.7508778", "0.7446301", "0.7443022", "0.742866", "0.7424391", "0.74217105", "0.7417442", "0.73844975", "0.7383481", "0.7374843", "0.7362621", "0.7354433", "0.7353951", "0.7352013", "0.7346586", "0.7313306", "0.7310347", "0.72867537", "0.72837716", "0.72825503", "0.72756535", "0.72695875", "0.7254165", "0.7241041", "0.724079", "0.7240635", "0.7237963", "0.72319186", "0.7224041", "0.7222877", "0.7210333", "0.718136", "0.718136", "0.7179854", "0.71727914", "0.71625805", "0.71482915" ]
0.0
-1
nasetovani zakladnich hodnot prvku
public function pregenerate($data_orm) { $this->image=isset($this->settings["image"])?$this->settings["image"]:"folder_explore.png"; $this->image_empty=isset($this->settings["image_empty"])?$this->settings["image_empty"]:$this->image; $this->alt=isset($this->settings["alt"])?$this->settings["alt"]:"detail"; $this->alt_empty=isset($this->settings["alt_empty"])?$this->settings["alt_empty"]:$this->alt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function podrskaPotvrdjeno(){\n $this->prikaz('podrskaPotvrdjeno' , []);\n }", "public function uputstvo()\n {\n $this->prikaz(\"uputstvo\", []);\n }", "function UsunZKolejnosci($Nazwa){\n \n //unset( $this->Kolejnosc[$KolejnoscID]);\n array_pop( $this->Kolejnosc );\n //unset( $this->MapaNazw[$Nazwa]);\n \n }", "public static function dodajArtikelVKosarico() {\n $id = $_SESSION[\"uporabnik_id\"];\n $uporabnik = UporabnikiDB::get($id);\n\n $id_artikla = filter_input(INPUT_POST, \"id\", FILTER_SANITIZE_SPECIAL_CHARS);\n $status = \"kosarica\";\n\n // ce narocilo ze obstaja mu samo povecamo kolicino \n // drugace narocilo ustvarimo\n $narocilo = NarocilaDB::getByUporabnikId($id, $status);\n\n if (!$narocilo) {\n\n $id_narocila = NarocilaDB::insert($id, $status);\n PodrobnostiNarocilaDB::insert($id_artikla, 1, $id_narocila);\n\n } else {\n\n $podrobnost_narocila = PodrobnostiNarocilaDB::getByNarociloAndArtikel($narocilo[\"id\"], $id_artikla);\n\n if (!$podrobnost_narocila) {\n PodrobnostiNarocilaDB::insert($id_artikla, 1, $narocilo[\"id\"]);\n } else {\n PodrobnostiNarocilaDB::edit($id_artikla, $podrobnost_narocila[\"kolicina\"] + 1, $narocilo[\"id\"]); \n } \n }\n\n echo ViewHelper::redirect(BASE_URL);\n\n }", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n //a zjisti a zapise kolize ucastnika pro vsechny formulare \r\n $vsechny_kolize_ucastnika_pole = self::Najdi_kolize_vsechny($iducast);\r\n //echo \"<br>**Vsechny kolize_pole v Zapis_vsechny_kolize..... **\";\r\n //var_dump($vsechny_kolize_ucastnika_pole);\r\n \r\n //znevalidneni vsech kolizi pro ucastnika \r\n self::Znevalidni_kolize_ucastnika_vsechny($iducast);\r\n foreach($vsechny_kolize_ucastnika_pole as $jedna_kolize){\r\n if ($jedna_kolize->kolize_nastala) {\r\n $jedna_kolize->Zapis_jednu_kolizi();\r\n } \r\n }\r\n \r\n}", "public function masodik()\n {\n }", "public static function odstraniArtikelIzKosarice() {\n $id = $_SESSION[\"uporabnik_id\"];\n $uporabnik = UporabnikiDB::get($id);\n\n $id_artikla = filter_input(INPUT_POST, \"id\", FILTER_SANITIZE_SPECIAL_CHARS);\n $status = \"kosarica\";\n\n $narocilo = NarocilaDB::getByUporabnikId($id, $status);\n $podrobnost_narocila = PodrobnostiNarocilaDB::getByNarociloAndArtikel($narocilo[\"id\"], $id_artikla);\n\n\n if (PodrobnostiNarocilaDB::delete($podrobnost_narocila[\"id_podrobnosti_narocila\"])) {\n echo ViewHelper::redirect(BASE_URL . \"kosarica\");\n } else {\n echo(\"Napaka\");\n }\n }", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function isplata($iznos){\n\n $stanjesalimitom=$this->stanje+$this->limit;\n\n if($iznos<=$stanjesalimitom){\n // $novostanje=$stanjesalimitom-$iznos;\n //echo \"Vas iznos je isplacen<br>\";\n // echo \"Novo stanje na racunu je: \".$novostanje;\n if($iznos>$this->stanje){\n // ovde je kontrolno logika ako klijent ulazi u minus\n $zaduzenje=$iznos-$this->stanje;\n $this->limit-=$zaduzenje;\n $this->stanje=0;\n echo \"Vas iznos je isplacen<br>\";\n echo \"Usli ste u dozvoljeni minus, Vas limit iznosi jos: \".$this->limit;\n\n }else{\n // ako trazi manji iznos od stanja koje ima na racunu\n $this->stanje-=$iznos;\n echo \"Vas iznos je isplacen, novo stanje je: \".$this->stanje;\n }\n\n }else{\n echo \"Nemate dovoljno sredstava na racunu\";\n }\n\n\n\n}", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "public function nadar()\n {\n }", "private function Zapis_jednu_kolizi() { \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n//echo \"<hr><br>* v Zapis_jednu_kolizi:\";\r\n\r\n //vyberu kolizi z uc_kolize_table pokud jiz existuje\r\n $query= \"SELECT * FROM uc_kolize_table WHERE id_ucastnik =\" . $this->id_ucastnik . \" and id_s_typ_kolize_FK=\" . $this->id_s_typ_kolize_FK ;\r\n //echo \"<br>*dotaz v Zapis_jednu_kolizi: \" . $query;\r\n $data = $dbh->prepare($query)->execute();\r\n //var_dump($data);\r\n \r\n if ($data) {\r\n $zaznam_kolize = $data->fetch() ; //vemu prvni (je predpoklad ze je jen jedna)\r\n if ($zaznam_kolize) {\r\n //echo \"<br>kolize je - budu prepisovat\"; //budu prepisovat\r\n $query1 = \"UPDATE uc_kolize_table set \" .\r\n \"revidovano='\" . $this->revidovano . \"', \" .\r\n \"revidovano_pozn='\" . $this->revidovano_pozn . \"', \" .\r\n \"valid=1 \" . \r\n \"WHERE id_uc_kolize_table =\" . $zaznam_kolize['id_uc_kolize_table'];\r\n //echo \"<br>\" . $query1; \r\n $data1 = $dbh->prepare($query1)->execute(); \r\n \r\n }\r\n else {\r\n //echo \"<br>kolize neni - budu vkladat\"; //budu vkladat\r\n $query1 = \"INSERT uc_kolize_table set \" . \r\n \"id_ucastnik= \" . $this->id_ucastnik . \", \" .\r\n \"id_s_typ_kolize_FK=\" . $this->id_s_typ_kolize_FK . \", \" .\r\n \"revidovano='\" . $this->revidovano . \"', \" .\r\n \"revidovano_pozn='\" . $this->revidovano_pozn . \"', \" .\r\n \"valid=1, date_vzniku=now() \" ;\r\n //echo \"<br>\" . $query1; \r\n $data1 = $dbh->prepare($query1)->execute();\r\n \r\n }\r\n } \r\n\r\n//echo \"<hr>\";\r\n}", "public function nahrajUzivatele(){\t\t\t\n\t\t\t$dotaz = \"SELECT uzivatelID,uzivatelJmeno,uzivatelHeslo FROM `tabUzivatele` WHERE 1 \";\n\t\t\t\n\t\t\t\t\t\t\n\t\t\t$vysledek = mysqli_query($this -> pripojeni,$dotaz);\n\t\t\t$vratit = array();\n\t\t\t\n\t\t\tif($vysledek == false){\n\t\t\t\techo(\"Pri nahravani dat nastala chyba!\" . mysqli_error($this->pripojeni) );\n\t\t\t}\n\t\telse{\n\t\t\t//case result is mysqli_result\n\t\t\t$pole = $vysledek->fetch_all(MYSQLI_ASSOC);\n\t\t\tforeach($pole as $radek ){\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tforeach($radek as $x => $x_value) {\n\t\t\t\t\techo \"Key=\" . $x . \", Value=\" . $x_value;\n\t\t\t\t\techo \"<br>\";\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\t$jmeno = $radek[\"uzivatelJmeno\"];\n\t\t\t\t$heslo = $radek[\"uzivatelHeslo\"];\n\t\t\t\t\n\t\t\t\t$uzivatel = new uzivatelObjekt($jmeno,$heslo);\n\t\t\t\t\n\t\t\t\t$uzivatel->uzivatelID = $radek[\"uzivatelID\"];\n\t\t\t\t\n\t\t\t\tarray_push($vratit,$uzivatel); \n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\treturn\t$vratit;\t\t\n\t\t\n\t}", "public static function Znevalidni_kolize_ucastnika_vsechny($iducast) {\r\n//echo \"<hr><br>*Znevalidnuji vsechny kolize ucastnika , formular=\" . $formular;\r\n \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n //vyberu vsechny ulozene kolize z tabulky uc_kolize_table\r\n $query= \"SELECT * FROM uc_kolize_table \" .\r\n \"WHERE id_ucastnik=\" . $iducast . \" and uc_kolize_table.valid\" ;\r\n\r\n //echo \"<br>*dotaz na kolize v Znevalidni_kolize_ucastnika: \" . $query;\r\n \r\n $sth = $dbh->prepare($query);\r\n $succ = $sth->execute(); \r\n while($zaznam_kolize = $sth->fetch(PDO::FETCH_ASSOC)) {\r\n //echo \"<br>*Znevalidnuji kolizi: \" . $zaznam_kolize[id_uc_kolize_table];\r\n \r\n $query1 = \"UPDATE uc_kolize_table SET \" .\r\n \"valid=0 WHERE uc_kolize_table.id_uc_kolize_table=\" . $zaznam_kolize['id_uc_kolize_table'] ;\r\n $data1= $dbh->prepare($query1)->execute(); \r\n }\r\n \r\n//echo \"<hr>\";\r\n}", "public function testKojiPreskacem()\n {\n $this->markTestSkipped(\"ovaj test je namjerno prekocen\");\n }", "public function sortPredvidjanjeNajteze() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanja=$predvidjanjeModel->dohvati_najteza_predvidjanja(); \n $data['predvidjanja']=$predvidjanja;\n $this->prikaz('pregled_predvidjanja', $data); \n }", "public function zpracuj($parametry) {\r\n $akce = \"new\";\r\n\r\n // bude-li odeslano take z formulare ma _POST prednost pred URL\r\n if (isset($_POST['akce'])&& (!empty($_POST['akce']))) {\r\n $akce = $_POST['akce'];\r\n } else {\r\n if (isset($parametry[0]) and in_array($parametry[0], ObjektKontroler::$typakce))\r\n $akce = $parametry[0];\r\n };\r\n\r\n if ((!isset($_POST['list'])) and isset($parametry[1]))\r\n $_POST['list'] = $parametry[1];\r\n\r\n\t\t//Debug::p($akce);\r\n\r\n $this->pohled = 'nabidka'; // Nastavení implicitni šablony\r\n // Hlavička stránky\r\n $this->hlavicka['titulek'] = 'Editor nabidky';\r\n $nab = new NhlavickaClass();\r\n\t\t$nab->data[\"nazev\"]=\"Nabidka XY\";\r\n\t\t$nab->data[\"id\"] = $nab->insert($nab->data);\r\n\t\t$nab->data[\"nazev\"]=\"Nabidka \".$nab->data[\"id\"] ;\r\n // Byl odeslán formulář\r\n if ($akce == \"new\") {\r\n\t\t\tif ( empty($_POST['list'])){\r\n\r\n\t\t\t}else{\r\n\t\t\t\t//je to seznam objektu oddelenych carkou \"15,12,78\"\r\n\t\t\t\t$polozky = explode(\",\",$_POST['list']);\r\n\t\t\t\tforeach ($polozky as $polID){\r\n\t\t\t\t\t$obj = new ObjektClass();\r\n\t\t\t\t\t$obj->get($polID);\r\n\t\t\t\t\t$pol = new NpolozkaClass();\r\n\t\t\t\t\t$pol->setByObjekt($obj);\r\n\t\t\t\t\t$pol->insert();\r\n\t\t\t\t}\r\n\t\t\t}\r\n $this->data = $nab->data; // Proměnné pro šablonu\r\n $this->data['titulek'] = 'Nová nabídka';\r\n\t\t\t// po odeslani formulare uloz\r\n $this->data['akce'] = 'insert';\r\n\t\t\t// $akce = 'insert'; // po odeslani formulare uloz\r\n }\r\n\r\n if ($akce == \"view\") {\r\n $nab->get($parametry[1]);\r\n $nab->data = array_intersect_key(array_merge(array_flip(NhlavickaClass::$sloupce), $nab->data), $nab->data);\r\n $this->data = $nab->data;\r\n $this->data['akce'] = 'save';\r\n $this->data['titulek'] = 'Detail nabídky ' . $nab->data['nazev'];\r\n Zprava::zobraz('Objekt k detailu byl vybrán');\r\n $this->pohled = 'DetailObjekt';\r\n }\r\n if ($akce == \"ObnovSkryj\") {\r\n DB::proved(\"UPDATE objekt SET status = (- status) WHERE objekt_id = ? \", array($parametry[1]));\r\n Zprava::zobraz('Objekt byl zneplatněn');\r\n $this->presmeruj('/objekt/edit/' . $parametry[1]);\r\n }\r\n if ($akce == \"delete\") {\r\n DB::proved(\"DELETE FROM obr WHERE id_objekt= ? \", array($parametry[1]));\r\n\t\t\tDB::proved(\"DELETE FROM objekt WHERE objekt_id = ? \", array($parametry[1]));\r\n Zprava::zobraz('Objekt byl smazán');\r\n $this->presmeruj('/');\r\n }\r\n\r\n\r\n if ($akce == \"insert\") {\r\n\r\n $nab->data = array_intersect_key($_POST, array_flip(NhlavickaClass::$sloupce));\r\n $nab->data['status'] = 1;\r\n $this->data = $nab->data;\r\n // zaloz noveho\r\n $this->data['objekt_id'] = $nab->insert($nab->data);\r\n $this->data['titulek'] = 'Editace objektu';\r\n // budu ho pak editovat\r\n $this->data['akce'] = 'edit';\r\n Zprava::zobraz('Objekt byl založen');\r\n $this->presmeruj('/nabidka/edit/' . $this->data['id']);\r\n }\r\n\r\n if ($akce == \"edit\") {\r\n //najdu objekt podle objekt_id\r\n $obj->get($_POST['objekt_id']);\r\n $obj->data = array_intersect_key(array_merge(array_flip(NhlavickaClass::$sloupce), $obj->data), $obj->data);\r\n $this->data = $obj->data;\r\n $this->data['akce'] = 'save';\r\n $this->data['titulek'] = 'Editace objektu ' . $obj->data['nazev'];\r\n Zprava::zobraz('Objekt byl vybrán');\r\n }\r\n if ($akce == \"save\") {\r\n\t\t\t//najdu objekt podle objekt_id\r\n\t\t\t// $obj->get($_POST['objekt_id']);\r\n $obj->data = array_intersect_key($_POST, array_flip(NhlavickaClass::$sloupce));\r\n $this->data = $obj->data;\r\n $obj->data['status'] = 2;\r\n $obj->update($obj->data);\r\n $this->data['akce'] = 'edit';\r\n $this->data['titulek'] = 'Editace objektu ' . $obj->data['nazev'];\r\n Zprava::zobraz('Objekt byl upraven');\r\n\t\t\t// //pridam obrazky udelam to pres Ajax\r\n\t\t\t// $img = new ObrClass();\r\n\t\t\t// $img->data['id_objekt'] = $obj->data['objekt_id'];\r\n\t\t\t// $img->insertFILES();\r\n $this->presmeruj('/nabidka/edit/' . $this->data['objekt_id']);\r\n }\r\n\r\n if ($akce == \"seznam\") {\r\n //seznam vsech objektu\r\n $obj->select( ' status >= ? ', Array(0) );\r\n // Debug::p($obj);\r\n $this->data['seznam'] = $obj->data;\r\n $this->data['akce'] = 'seznam';\r\n $this->data['titulek'] = 'Seznam objektů';\r\n Zprava::zobraz('Vybráno ' . count($this->data['seznam']) . ' objektů');\r\n // $this->presmeruj('/objekt');\r\n $this->pohled = 'objekty';\r\n if (isset($parametry[1]) and $parametry[1] === 'T')\r\n $this->pohled = 'objektyTab';\r\n }\r\n }", "abstract public function getPasiekimai();", "public function valorpasaje();", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function sortPredvidjanjeNovo() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanja=$predvidjanjeModel->dohvati_najnovija_predvidjanja(); \n $data['predvidjanja']=$predvidjanja;\n $this->prikaz('pregled_predvidjanja', $data); \n }", "public function pretragaIdeja(){\n $data['kor_ime']=$this->session->get('kor_tip');\n $idejaModel=new IdejaModel();\n $korisnik= $this->request->getVar(\"pretraga\");\n $ideje=$idejaModel->dohvati_ideje_po_korisnickom_imenu($korisnik);\n $data['ideje']=$ideje;\n $this->prikaz('pregled_ideja', $data);\n }", "public static function Najdi_kolize_pro_formular_dosud_nezavolane ($iducast, $formular, $pole_id_volanych ) {\r\n $query= \"SELECT * FROM s_typ_kolize WHERE formular='\" . $formular . \"' and valid\" ;\r\n $kolize_pole = self::Najdi_kolize ($query,$iducast) ; //to jsou vsechny pro formular\r\n \r\n //ty, co uz volal, z pole vypustit\r\n $kolize_pole_redukovane = array();\r\n \r\n foreach ($kolize_pole as $kprvek) {\r\n if ( in_array( $kprvek->id_s_typ_kolize_FK, $pole_id_volanych) ) {\r\n }\r\n else {\r\n array_push ($kolize_pole_redukovane, $kprvek ); //$kprvek->id_s_typ_kolize_FK);\r\n } \r\n }\r\n \r\n return $kolize_pole_redukovane; \r\n}", "function ispisiNotifikaciju($idNovosti){\n\t\t$autorID = nadjiAutora();\n\n\t\t$veza = konekcija();\n\t\t$upit = $veza->prepare(\"SELECT * From novost WHERE id = :id AND autor_id = :idAutora\");\n\t\t$upit->bindValue(':id', $idNovosti);\n\t\t$upit->bindValue(':idAutora', $autorID);\n\t\t$upit->execute();\n\t\t\n\t\t//autor novosti nije korisnik koji je prijavljen\n\t\tif($upit->rowCount() <= 0) return; \n\n\t\t$broj = brojNeprocitanih($idNovosti);\n\t\tif($broj > 0){\n\t\t\tprint \"<p>Broj nepročitanih komentara: \";\n\t\t\tprint $broj;\n\t\t\tprint \"</p>\";\n\t\t}\t\t\n\t}", "function noviKorisnik($data) {\n\t\t// kreiranje konekcije\n\t\t$mysqli = new mysqli(\"localhost\", \"root\", \"\", \"kviz\");\n\n// filtrira i sredjuje string iz json formata\n\t\t$ime = mysqli_real_escape_string($mysqli,$data['imePrezime']);\n\t\t$username = mysqli_real_escape_string($mysqli,$data['username']);\n\t\t$password = mysqli_real_escape_string($mysqli,$data['password']);\n\n\t\t$values = \"('\".$ime.\"','\".$username.\"','\".$password.\"',0)\";\n\n\t\t// upit koji dodaje podatke o novom korisniku\n\t\t$query = 'INSERT into korisnik (imePrezime, username, password, admin) VALUES '.$values;\n\n\t\t// ako je upit vratio true rezultat je true\n\t\tif($mysqli->query($query))\n\t\t{\n\t\t\t$this ->result = true;\n\t\t}\n\t\telse // u suprotnom ako se upit nije lepo izvrsio vrati false\n\t\t{\n\t\t\t$this->result = false;\n\t\t}\n\t\t$mysqli->close(); // zatvaranje konekcije\n\t}", "public static function posodobiKosarico() {\n $id = $_SESSION[\"uporabnik_id\"];\n $uporabnik = UporabnikiDB::get($id);\n\n $id_artikla = filter_input(INPUT_POST, \"id\", FILTER_SANITIZE_SPECIAL_CHARS);\n $status = \"kosarica\";\n\n $narocilo = NarocilaDB::getByUporabnikId($id, $status);\n $podrobnost_narocila = PodrobnostiNarocilaDB::getByNarociloAndArtikel($narocilo[\"id\"], $id_artikla);\n $kolicina = filter_input(INPUT_POST, \"num\", FILTER_SANITIZE_SPECIAL_CHARS);\n\n if ($kolicina < 1) {\n if (PodrobnostiNarocilaDB::delete($podrobnost_narocila[\"id_podrobnosti_narocila\"])) {\n echo ViewHelper::redirect(BASE_URL . \"kosarica\");\n } else {\n echo(\"Napaka\");\n }\n } else {\n\n if (PodrobnostiNarocilaDB::edit($podrobnost_narocila[\"id_podrobnosti_narocila\"], $id_artikla, $kolicina, $narocilo[\"id\"])) {\n echo ViewHelper::redirect(BASE_URL . \"kosarica\");\n } else {\n echo(\"Napaka\");\n }\n }\n }", "public function existujeKolizna()\n {\n // hlada nasledovne kolizne pripady:\n // - existuje zaciatok nejakeho obdobia v nasom\n // - existuje koniec nejakeho obdobia v nasom\n // - nejake obdobie kompletne prekryva nase obbodie\n // pricom vzdy sa ignoruje nase obdobie (kvoli update ktory by bol kolizny so sebou)\n // a zaroven nie su kolizie ak bezi vaicero akcii na viacero inych semestrov\n $sql =\n \"SELECT id, \".\n DateConvert::DBTimestampToSkDateTime(\"zaciatok\"). \" AS zaciatok, \".\n DateConvert::DBTimestampToSkDateTime(\"koniec\"). \" AS koniec\n\t\t\tFROM rozvrhova_akcia\n\t\t\t WHERE \n\t\t\t \t((zaciatok>\".DateConvert::SKDateTime2DBTimestamp(\"$1\").\" AND\n\t\t\t \t zaciatok<\".DateConvert::SKDateTime2DBTimestamp(\"$2\").\") OR\t\n\t\t\t \t(koniec>\".DateConvert::SKDateTime2DBTimestamp(\"$1\").\" AND\n\t\t\t \t koniec<\".DateConvert::SKDateTime2DBTimestamp(\"$2\").\") OR\n\t\t\t \t(zaciatok<=\".DateConvert::SKDateTime2DBTimestamp(\"$1\").\" AND\n\t\t\t \t koniec>=\".DateConvert::SKDateTime2DBTimestamp(\"$2\").\")) AND\n\t\t\t \t id_semester=$3\";\n $params = array($this->zaciatok, $this->koniec, $this->id_semester);\n // ak je edit TREBA aj vylucit koliziu so sebou\n if (!empty($this->id))\n {\n $sql .= \" AND id<>$4\";\n $params[] = $this->id;\n }\n $this->dbh->query($sql, $params);\n\n if ($this->dbh->RowCount()>0)\n {\n $kolizia = $this->dbh->fetch_assoc();\n return \"{$kolizia[\"zaciatok\"]} - {$kolizia[\"koniec\"]}\";\n } else return null;\n }", "public function nahrajObrazky(){\t\t\t\n\t\t\t$dotaz = \"SELECT obrazekID,filepath,tabObrazky.uzivatelID,uzivatelJmeno FROM tabObrazky \n\t\t\t\t\tJOIN tabUzivatele ON tabUzivatele.uzivatelID = tabObrazky.uzivatelID WHERE 1 \";\n\t\t\t\n\t\t\t\t//echo \"X \".$dotaz .\" X\";\n\t\t\t\n\t\t\t$vysledek = mysqli_query($this -> pripojeni,$dotaz);\n\t\t\t$vratit = array();\n\t\t\t\n\t\t\tif($vysledek == false){\n\t\t\t\techo(\"During data upload an error occured!\" . mysqli_error($this->pripojeni) );\n\t\t\t}\n\t\telse{\n\t\t\t//case result is mysqli_result\n\t\t\t$pole = $vysledek->fetch_all(MYSQLI_ASSOC);\n\t\t\tforeach($pole as $radek ){\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tforeach($radek as $x => $x_value) {\n\t\t\t\t\techo \"Key=\" . $x . \", Value=\" . $x_value;\n\t\t\t\t\techo \"<br>\";\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\t$obrazekID = $radek[\"obrazekID\"];\n\t\t\t\t$filePath = $radek[\"filepath\"];\n\t\t\t\t$uzivatelID = $radek[\"uzivatelID\"];\n\t\t\t\t$jmenoUzivateleCoNahral = $radek[\"uzivatelJmeno\"];\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\techo $obrazekID;\n\t\t\t\techo $filePath;\n\t\t\t\techo $uzivatelID;\n\t\t\t\t*/\n\t\t\t\t//echo '*'.$jmenoUzivateleCoNahral.'*';\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$obrazek = new obrazekObjekt($obrazekID, $filePath,$uzivatelID,$jmenoUzivateleCoNahral);\n\t\t\t\t\n\t\t\t\t//echo $obrazek->filePath;\n\t\t\t\t//echo $obrazek->jmenoUzivateleCoNahral;\n\t\t\t\t\n\t\t\t\tarray_push($vratit,$obrazek); \n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\treturn\t$vratit;\t\t\n\t\t\n\t}", "public static function Vypis_kolize_formulare_dosud_nezavolane($iducast, $formular, $pole_id_volanych) {\r\n $kolize_pole = self::Najdi_kolize_pro_formular_dosud_nezavolane($iducast, $formular, $pole_id_volanych);\r\n \r\n // zobrazeni hlaseni a policek kolizi ve formulari\r\n foreach ($kolize_pole as $kprvek) {\r\n //var_dump($kprvek);\r\n if ($kprvek->kolize_nastala) {\r\n self::Vypis_jednu_kolizi_do_formulare($kprvek);\r\n } \r\n } \r\n\r\n}", "function dodajKorisnika(Korisnik $k);", "function Uzasadnienie($dbh, $un, $ud, $up, $roszczenia, $no)\r\n\t\t\t{\r\n\t\t\t\t$uzasadnienie=\"Powodowie prowadzą działalność gospodarczą pod nazwą NETICO Spółka Cywilna M.Borodziuk, M.Pielorz, K.Rogacki. Powodowie dnia $ud zawarli z Pozwanym(ą) umowę abonencką nr $un o świadczenie usług telekomunikacyjnych.\\n Termin płatności został określony w Umowie do $up dnia danego miesiąca. \\n Za świadczone usługi w ramach prowadzonej przez siebie działalności gospodarczej Powodowie wystawili Pozwanemu(ej) następujące faktury VAT:\\n \";\r\n\t\t\t\t\r\n\t\t\t\t$n=1;\r\n\t\t\t\t$suma=0;\r\n\t\t\t\tforeach ($roszczenia as $n => $v)\r\n\t\t\t\t{\r\n\t\t\t\t\t$oznaczenie=$roszczenia[$n][\"oznaczenie\"];\r\n\t\t\t\t\t$kwota=$roszczenia[$n][\"wartosc\"];\r\n\t\t\t\t\t$pozostalo=$roszczenia[$n][\"pozostalo\"];\r\n\t\t\t\t\t$d=$n;\r\n\t\t\t\t $kwota=number_format(round($kwota,2), 2,',','');\r\n\t\t\t\t\tif ( $pozostalo>0)\r\n\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t$suma+=$pozostalo;\r\n\t\t\t\t\t\t\t$pozostalo=number_format($pozostalo, 2,',','');\r\n\t\t\t\t\t\t\t$uzasadnienie.=\"$oznaczenie na kwotę $kwota zł, pozostało do zapłaty $pozostalo zł. \\n\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t$uzasadnienie.=\"$oznaczenie na kwotę $kwota zł; \\n\";\r\n\t\t\t\t\t\t$suma+=$kwota;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/*\t\r\n\t\t\t\tif (!empty($no))\r\n\t\t\t\t{\r\n\t\t\t\t\t$uzasadnienie.=\"W zwiazku z nie regulowaniem przez Pozwanego(ą) płatności wynikających z warunków Umowy Powodowie rozwiązali Umowę i wystawili Pozwanemu(ej) następujące noty obciążaniowe: \";\r\n\t\t\t\t\t$n=1;\r\n\t\t\t\t\tforeach ($no as $n => $v)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$oznaczenie=$no[$n][\"oznaczenie\"];\r\n\t\t\t\t\t\t$kwota=$no[$n][\"wartosc\"];\r\n\t\t\t\t\t\t$d=$n;\r\n\t\t\t\t\t\t$kwota=number_format($kwota,2), 2,',','');\r\n\t\t\t\t\t\t$uzasadnienie.=\"$oznaczenie na kwotę $kwota zł; \\n\";\r\n\t\t\t\t\t\t$suma+=$kwota;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\t$suma=number_format(round($suma,2), 2,',','');\r\n\t\t\t\t$uzasadnienie.=\"Razem $suma zł.\\n\";\r\n\t\t\t\t$uzasadnienie.=\"Pomimo wezwań do zapłaty Pozwany(a) nie uregulował należności.\";\r\n\t\t\t\treturn($uzasadnienie);\r\n\t\t\t}", "public function dohvati_najaktuelnije_ideje()\n {\n $ideje= $this->findAll();\n usort($ideje,function ($i1,$i2)\n {\n //proveriti je l' ovo tranzitivno, idejno jeste, samo da li sam napravio gresku\n $dat1= strtotime($i1->DatumEvaluacije); \n $dat2= strtotime($i2->DatumEvaluacije); \n $danas= strtotime(date(\"Y-m-d H:i:s\"));\n if ($dat1==$dat2)\n {\n return 0;\n }\n if ($dat1>$danas)\n {\n if ($dat2<$danas)//dat2 nije aktuelno, jer je vec proslo, a d1 jeste te ide ispred\n {\n return -1;\n }\n else//oba tek treba da se dogode aktuelnije je ono sto ce pre da se dogodi\n {\n if ($dat1<$dat2)\n {\n return -1;\n }\n else\n {\n return 1;\n }\n }\n }\n else//dat1 nije aktuelno\n {\n if ($dat2>$danas)//dat2 ide ispred\n {\n return 1;\n }\n else//nijedan nije aktuelan zato zelimo da bude ispred onaj sa vecim datumom jer je on blizi sadasnjosti\n {\n if ($dat1<$dat2)\n {\n return 1;\n }\n else \n {\n return -1;\n \n }\n }\n \n }\n });\n return $ideje;\n \n }", "public function sortPredvidjanjePopularno() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanja=$predvidjanjeModel->dohvati_najpopularnija_predvidjanja(); \n $data['predvidjanja']=$predvidjanja;\n $this->prikaz('pregled_predvidjanja', $data); \n }", "public function baseSlajderi()\n {\n \n $this->linija = Slajderi::model()->findAllByAttributes(array('jezik'=>Yii::app()->session[\"lang\"]),array('order'=>'id'));\n $this->nalovSlajderi = $this->linija[0] -> naslov;\n \n \n }", "public function odgovoriNaPitanje($idPitanje = null) {\n $controller = session()->get('controller');\n\n if ($idPitanje == null) {\n return redirect()->to(site_url(\"$controller/\"));\n }\n\n // ako je nepostojeci id treba vratiti korisnika na pocetnu stranu\n $pitanjeModel = new PitanjeModel();\n $pitanje = $pitanjeModel->find($idPitanje);\n if ($pitanje == null) {\n return redirect()->to(site_url(\"$controller/\"));\n }\n\n // koje sve poruke mogu da se prikazu korisniku\n $porukaTekstOdgovora = null;\n $porukaNemaPravaDaOdgovori = null;\n\n // provera da li je unet tekst odgovora posto je obavezno polje\n if (!$this->validate(['TekstOdgovora' => 'required'])) {\n $porukaTekstOdgovora = \"Morate da unesete tekst odgovora - to je obavezno polje!\";\n }\n\n // provera da li korisnik ima pravo da odgovori na izabrano pitanje\n // ako korisnik nije psiholog a na pitanje smeju samo psiholozi da odgovore potrebno je ispisati poruku korisniku\n $pitanjeModel = new PitanjeModel();\n $pitanje = $pitanjeModel->find($idPitanje);\n $moguSviDaOdgovore = $pitanje->moguSviDaOdgovore;\n $korisnikModel = new KorisnikModel();\n $idKategorijaKorisnika = $korisnikModel->find(session()->get('userid'))->tipKorisnika_idTipKorisnika;\n // psiholozi su idKategorijaKorisnika=2 \n if ($moguSviDaOdgovore == 0 && $idKategorijaKorisnika != 2) {\n $porukaNemaPravaDaOdgovori = \"Na ovo pitanje imaju pravo samo registrovani psiholozi da odgovore!\";\n }\n\n // ako nije unet tekst odgovora ili korisnik nema prava da odgovori ispisati mu poruke, odbacuje se unos odgovora\n if ($porukaTekstOdgovora != null || $porukaNemaPravaDaOdgovori != null) {\n echo view(\"odgovori_na_pitanje\", ['pitanje' => $pitanje, 'porukaTekstOdgovora' => $porukaTekstOdgovora, 'porukaNemaPravaDaOdgovori' => $porukaNemaPravaDaOdgovori]);\n return;\n }\n\n $odgovorModel = new OdgovorModel();\n $anonimno = $this->request->getVar('anonimus');\n $odgovorModel->save([\n 'pitanje_idPitanje' => $idPitanje,\n 'korisnik_idKorisnik_odgovorio' => session()->get('userid'),\n 'tekstOdgovora' => $this->request->getVar('TekstOdgovora'),\n 'odgovorenoAnonimno' => $anonimno == \"1\" ? true : false\n ]);\n\n $controller = session()->get('controller');\n // kada se sacuva odgovor na pitanje, redirect korisnika na prikaz svih odgovora na to pitanje\n return redirect()->to(site_url(\"$controller/pregledOdgovora?pretraga=$idPitanje\"));\n }", "public function NonAktif($nik) {\r\n $query = mysql_query(\"UPDATE pemilih SET aktif = '0' where nik = '$nik'\");\r\n if ($query) {\r\n return \"Success\";\r\n } else {\r\n return \"Failed\";\r\n }\r\n }", "private function CsomagHozzaadasa()\r\n {\r\n foreach (Lap::Nevkeszlet() as $nev)\r\n {\r\n foreach (Lap::Szinkeszlet() as $szin)\r\n {\r\n $this->lapok[]=new Lap($szin,$nev);\r\n }\r\n }\r\n }", "function hitungDenda(){\n\n return 0;\n }", "public function jarjesta() {\n usort($this->ravinnon_saannit, \"self::vertaaPvm\");\n }", "public function extra_voor_verp()\n\t{\n\t}", "public function unosPredmeta($skola){\n\t\t\t$data = array(\n\t\t\t\t'ime' => $this->input->post('ime'),\n\t\t\t\t'nastavnik' => $this->input->post('nastavnik'),\n\t\t\t\t'skolskaGodina' => $this->input->post('skolskaGodina'),\n\t\t\t\t'kabineti' => $this->input->post('kabineti'),\n\t\t\t\t'skolaId' => $skola\t\t\t\t\n\t\t\t);\t\t\t\n\t\t\treturn $this->db->insert('predmet', $data);\n\t\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "public function pregledtudjegpredv() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $trenprikaz='prikazprofpredv_admin'; \n $username=$this->request->uri->getSegment(3);\n $korisnikModel=new KorisnikModel();\n $data['user']=$korisnikModel->dohvati_korisnika($username);\n if(($data['user']->Username)==($this->session->get('korisnik')->Username)) {$data['user']=$this->session->get('korisnik'); $trenprikaz='profilkorisnikpredvidjanja'; }\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanja=$predvidjanjeModel->dohvati_predvidjanja_po_korisnickom_imenu($data['user']->Username);\n $data['predvidjanja']=$predvidjanja;\n $this->prikaz($trenprikaz, $data);\n }", "public function sortIdejaAktuelno() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $idejaModel=new IdejaModel();\n $ideje=$idejaModel->dohvati_najaktuelnije_ideje(); \n $data['ideje']=$ideje;\n $this->prikaz('pregled_ideja', $data); \n }", "function brojNeprocitanih($idNovosti){\n\t\t$veza = konekcija();\n\t\t$upit = $veza->prepare(\"SELECT * From KOMENTAR WHERE novost_id = :id AND PROCITAN = 0\");\n\t\t$upit->bindValue(':id', $idNovosti);\n\t\t$upit->execute();\n\t\treturn $upit->rowCount();\n\t}", "function __construct()\n {\n $this->mPoslovniObjekt = new PoslovniObjekt();\n // inicijalizacija varijable, ili davanje vrijednosti varijabli\n if (isset($_GET['JedinicaID']))\n $this->mJedinicaId = (int)$_GET['JedinicaID'];\n }", "function nustatome_kintamuosius ($a, $b, $c){\n $this -> modelis = $a;\n $this -> marke = $b;\n $this -> gamybosMetai = $c;\n $this -> spalva = \"Raudona\";\n $this -> duruSkaicius = 5;\n\n }", "public function nahrajObrazkyVyhledavac($textHledani){\t\t\t\n\t\t\t$dotaz = \"SELECT obrazekID,filepath,tabObrazky.uzivatelID,uzivatelJmeno FROM tabObrazky \n\t\t\t\t\tJOIN tabUzivatele ON tabUzivatele.uzivatelID = tabObrazky.uzivatelID WHERE filepath LIKE \".'\"%' . $textHledani.'%\"';\n\t\t\t\n\t\t\t\t//echo \"X \".$dotaz .\" X\";\n\t\t\t\n\t\t\t$vysledek = mysqli_query($this -> pripojeni,$dotaz);\n\t\t\t$vratit = array();\n\t\t\t\n\t\t\tif($vysledek == false){\n\t\t\t\techo(\"During data upload an error occured!\" . mysqli_error($this->pripojeni) );\n\t\t\t}\n\t\telse{\n\t\t\t//case result is mysqli_result\n\t\t\t$pole = $vysledek->fetch_all(MYSQLI_ASSOC);\n\t\t\tforeach($pole as $radek ){\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tforeach($radek as $x => $x_value) {\n\t\t\t\t\techo \"Key=\" . $x . \", Value=\" . $x_value;\n\t\t\t\t\techo \"<br>\";\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\t$obrazekID = $radek[\"obrazekID\"];\n\t\t\t\t$filePath = $radek[\"filepath\"];\n\t\t\t\t$uzivatelID = $radek[\"uzivatelID\"];\n\t\t\t\t$jmenoUzivateleCoNahral = $radek[\"uzivatelJmeno\"];\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\techo $obrazekID;\n\t\t\t\techo $filePath;\n\t\t\t\techo $uzivatelID;\n\t\t\t\t*/\n\t\t\t\t//echo '*'.$jmenoUzivateleCoNahral.'*';\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$obrazek = new obrazekObjekt($obrazekID, $filePath,$uzivatelID,$jmenoUzivateleCoNahral);\n\t\t\t\t\n\t\t\t\t//echo $obrazek->filePath;\n\t\t\t\t//echo $obrazek->jmenoUzivateleCoNahral;\n\t\t\t\t\n\t\t\t\tarray_push($vratit,$obrazek); \n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\treturn\t$vratit;\t\t\n\t\t\n\t}", "private function najitNavstevu(){\n $this->tpl = \"konec-navstevy\";\n }", "public function neVoliPredvidjanje()\n {\n $korisnik= $this->session->get(\"korisnik\");\n $predvidjanjeId= $this->request->uri->getSegment(3); //slobodno promeniti nacin dohvatanja, poenta je da mi treba predvidjanje koje je voljeno\n $voliModel=new VoliModel();\n if ($voliModel->vec_voli($korisnik->IdK, $predvidjanjeId))\n {\n return redirect()->to( $_SERVER['HTTP_REFERER']);\n }\n else\n {\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanjeModel->voli($predvidjanjeId, false);\n $posl_id=$voliModel->poslednji_vestackiId();\n $voliModel->voli($korisnik->IdK, $predvidjanjeId, $posl_id+1);\n }\n return redirect()->to( $_SERVER['HTTP_REFERER']);\n }", "function ahoj($priezvisko)\n {\n echo \"Nazdar<br>\".$priezvisko;\n echo \"<br><br>\";\n }", "public function elso()\n {\n }", "public function dajStatusSvomPredvidjanju()\n {\n $korisnik=$this->session->get(\"korisnik\");\n $idPred=$_COOKIE['idTek'];\n setcookie(\"idTek\", \"\", time() - 3600);\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanje=$predvidjanjeModel->dohvati_predvidjanja_id($idPred);\n $danas=date(\"Y-m-d H:i:s\");\n //moze da se podeli u tri ifa, radi lepseg ispisa, ali ovde mislim da su svi slucajevi\n if ($danas<$predvidjanje->DatumEvaluacije || $predvidjanje->Status!=\"CEKA\" || $korisnik->IdK!=$predvidjanje->IdK)//ne sme jos da mu daje status\n {\n echo \"GRESKA\";\n return;\n }\n $statusV=$this->request->getVar(\"dane\");\n if($statusV=='DA') $status=\"ISPUNJENO\";\n else $status=\"NEISPUNJENO\";\n $predvidjanjeModel->postavi_status($predvidjanje, $status);\n if ($status==\"ISPUNJENO\")\n {\n $korisnikModel=new KorisnikModel();\n $korisnikModel->uvecaj_skor($korisnik, $predvidjanje->Tezina);\n }\n return redirect()->to( $_SERVER['HTTP_REFERER']);\n \n }", "public function zpracuj($parametry)\n {\n $spravceHraci = new SpravceHraci();\n\n if (!empty($parametry)) {\n //ziskani clanku podle jeho url\n $clanek = $spravceHraci->vratClanekHrac($parametry[0]);\n\n //kdyz se clanek nenajde - presmerovani na chybovou stránku\n if (!$clanek) {\n $this->presmeruj('chyba');\n }\n\n $this->hlavicka = array(\n 'titulek' => $clanek['titulek'],\n 'popisek' => $clanek['popisek'],\n );\n\n $this->data['titulek'] = $clanek['titulek'];\n $this->data['obsah'] = $clanek['obsah'];\n //nastaveni sablony\n $this->pohled = 'clanek';\n } //když není zadána URl článku tak se vypíše seznam článků\n else {\n $clanky = $spravceHraci->vratClankyHrac();\n $this->data['clanky'] = $clanky;\n $this->pohled = 'proHrace';\n }\n }", "function sviRezultati() {\n\t\t$mysqli = new mysqli(\"localhost\", \"root\", \"\", \"kviz\");\n\t\t$q = 'SELECT * FROM tabela t join korisnik k on t.korisnikID = k.korisnikID order by t.brojPoena desc';\n\t\t$this ->result = $mysqli->query($q);\n\t\t$mysqli->close();\n\t}", "public function napraviJelo($uneto) {\n $this->db->set('IdJelo', $uneto['idJela']);\n $this->db->set('IdKorisnik', $uneto['idKorisnik']);\n $this->db->set('Naziv', $uneto['naziv']);\n $this->db->set('Opis', $uneto['opisjela']);\n $this->db->set('Pregledano', 'N');\n if (isset($uneto['idSlika'])) {\n $this->db->set('IdSlika', $uneto['idSlika']);\n } else {\n $this->db->set('IdSlika', 3);\n }\n $this->db->insert('jelo');\n }", "final function velcom(){\n }", "private static function Najdi_kolize ($query,$iducast){\r\n $kolize_pole = array();\r\n $dbh = Projektor2_AppContext::getDB();\r\n \r\n //echo \" <br>\". $query . \" \" . $iducast;\r\n \r\n //--\r\n Projektor2_Table_UcKolizeData::$zjistovane_kolize=array();\r\n Projektor2_Table_UcKolizeData::$nastava_kolize_ve_zjistovanych = false; \r\n //echo \"NAJDI KOLIZE\";\r\n \r\n try { \r\n $sth = $dbh->prepare($query);\r\n $succ = $sth->execute();\r\n while($zaznam_s_kolize = $sth->fetch(PDO::FETCH_ASSOC)) { //pro pozadovane kontroly (kolize) sestavuji dotazy\r\n //var_dump($zaznam_s_kolize);\r\n //--\r\n array_push (Projektor2_Table_UcKolizeData::$zjistovane_kolize, $zaznam_s_kolize['id_s_typ_kolize']);\r\n //echo \"Table_UcKolizeData::zjistovane_kolize\"; var_dump(Table_UcKolizeData::$zjistovane_kolize);\r\n \r\n //ze zjistenych udaju sestavuji dotazy na kolize\r\n $query_kolize = self::Sestav_dotaz_na_kolizi($zaznam_s_kolize['zobrazovany_text_kolize'], $zaznam_s_kolize['select_text'], $zaznam_s_kolize['from_text'], $zaznam_s_kolize['where_text'] );\r\n //echo \"<br>*id_s_typ_kolize a dotaz na kolizi*|\" . $zaznam_s_kolize['id_s_typ_kolize'] ;\r\n //echo \" |<br>\". $query_kolize;\r\n \r\n if ($query_kolize) {\r\n $sth = $dbh->prepare($query_kolize);\r\n $succ = $sth->execute($iducast); \r\n \r\n //while ($zaznam_kolize = $data_kolize->fetch()) { \r\n $zaznam_kolize = $sth->fetch(PDO::FETCH_ASSOC);\r\n //echo \"<br>zaznam_kolize\" ; var_dump( $zaznam_kolize );\r\n \r\n if ( $zaznam_kolize['kolize_nastala'] ) { // kolize nastava\r\n // echo \"<br>\" . $zaznam_kolize['kolize_nastala'];\r\n //--/\r\n Projektor2_Table_UcKolizeData::$nastava_kolize_ve_zjistovanych = true; // nastavi priznak, ze alespon jedna zjistovana kolize skutecne nastava\r\n \r\n // ***minula*** - kolize nastava, je treba z uc_kolize_table precist ulozena data pokud uz kolize byla a !je! validni\r\n // hledat podle iducast, id s kolize , formular-nemusi, lokace-nemusi\r\n $query_minula = \"SELECT * FROM uc_kolize_table left join s_typ_kolize on (s_typ_kolize.id_s_typ_kolize = uc_kolize_table.id_s_typ_kolize_FK) \" .\r\n \"WHERE id_ucastnik=\" . $iducast .\r\n //\" and s_typ_kolize.formular='\" . $formular .\"'\" .\r\n //\" and s_typ_kolize.lokace_kolize='\" . $lokacekolize .\"'\" .\r\n \" and s_typ_kolize.id_s_typ_kolize=\" . $zaznam_s_kolize['id_s_typ_kolize'] . \r\n \" and uc_kolize_table.valid\" ; \r\n //echo \"<br>query_minula: \" .$query_minula;\r\n $sth = $dbh->prepare($query_minula);\r\n $suvv = $sth->execute();\r\n $zaznam_minula = $sth->fetch(PDO::FETCH_ASSOC);\r\n //var_dump ($zaznam_minula);\r\n \r\n if ($zaznam_minula) {\r\n $kolize = new Projektor2_Table_UcKolizeData($iducast, $zaznam_s_kolize['id_s_typ_kolize'],\r\n $zaznam_minula['revidovano'], $zaznam_minula['revidovano_pozn'],\r\n $zaznam_minula['date_vzniku'], $zaznam_kolize['kolize_nastala'],\r\n $zaznam_s_kolize['nazev_kolize'], \r\n $zaznam_kolize['zobrazovany_text_kolize'] , $zaznam_s_kolize['uroven_kolize'] , $zaznam_s_kolize['lokace_kolize'],\r\n $zaznam_minula['id_uc_kolize_table']);\r\n }\r\n else {\r\n $kolize = new Projektor2_Table_UcKolizeData($iducast, $zaznam_s_kolize['id_s_typ_kolize'],\r\n null, null,\r\n null, $zaznam_kolize['kolize_nastala'],\r\n $zaznam_s_kolize['nazev_kolize'],\r\n $zaznam_kolize['zobrazovany_text_kolize'] , $zaznam_s_kolize['uroven_kolize'] , $zaznam_s_kolize['lokace_kolize'],\r\n null);\r\n }\r\n //var_dump($kolize); \r\n $kolize_pole[] = $kolize;\r\n \r\n \r\n \r\n } //- kolize nastava\r\n \r\n else { // kolize nenastava nevim zda i u kolize ktera nenastava mam naplnovat informace z uc_kolize_table (revidovano....)\r\n $kolize = new Projektor2_Table_UcKolizeData($iducast, $zaznam_s_kolize['id_s_typ_kolize'],\r\n null, null,\r\n null, $zaznam_kolize['kolize_nastala'],\r\n $zaznam_s_kolize['nazev_kolize'],\r\n $zaznam_kolize['zobrazovany_text_kolize'] , $zaznam_s_kolize['uroven_kolize'] , $zaznam_s_kolize['lokace_kolize'],\r\n null);\r\n \r\n $kolize_pole[] = $kolize; \r\n \r\n }\r\n \r\n //}//while\r\n \r\n }//if query \r\n \r\n } // while - pro pozadovane kontroly (kolize) sestavuji dotazy\r\n } //try\r\n catch (Exception $e) {\r\n\t//header(\"Location: ./login.php?originating_uri=\".$_SERVER['REQUEST_URI']);\r\n \r\n }\r\n//echo \"<br>**Kolize_pole v Najdi_kolize..... **\";\r\n//var_dump($kolize_pole);\r\n \r\n return $kolize_pole;\r\n \r\n}", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function sortIdejaPopularno() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $idejaModel=new IdejaModel();\n $ideje=$idejaModel->dohvati_najpopularnije_ideje(); \n $data['ideje']=$ideje;\n $this->prikaz('pregled_ideja', $data);\n }", "private function novaNavsteva(){\n $this->tpl = \"nova-navsteva\";\n\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n $navsteva = new Navsteva($this->db);\n $res = $navsteva->pridatNavstevu($_POST);\n \n if($res['idn'] >= 1){ \n if(isSet($_POST['poznamka'])){\n\t\t\t\t\tNavsteva::pridatPoznamku($_POST['poznamka'], $_SESSION['idz'], $res['idn'], $this->db);\n\t\t\t\t}\n \n header(\"Location: index.php?page=detail-navstevy&idn=\".$res['idn']);\n }\n else{\n $this->render['error'] = $res['mess'];\n }\n }\n }", "private function prehledNavstev(){\n $this->tpl = \"historie-navstev\";\n \n \t$prehled = new HlavniPrehled($this->db);\n \n $this->render = array(\n\t\t\t'navstevy' => $prehled->vypis(@$_POST), \n\t\t);\t\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "function pobierz_urle_uzyt($nazwa_uz) {\r\n // pobranie z bazy danych wszystkich URL-i danego u�ytkownika\r\n $lacz = lacz_bd();\r\n $wynik = $lacz->query(\"select URL_zak\r\n from zakladka\r\n where nazwa_uz = '\".$nazwa_uz.\"'\");\r\n if (!$wynik) {\r\n return false;\r\n }\r\n\r\n // tworzenie tablicy URL-i\r\n $tablica_url = array();\r\n for ($licznik = 0; $rzad = $wynik->fetch_row(); ++$licznik) {\r\n $tablica_url[$licznik] = $rzad[0];\r\n }\r\n return $tablica_url;\r\n}", "public function hapus_toko(){\n\t}", "public function tampilDataGalang(){\n\t\t\n\t}", "public function __construct(){\n$this->acCodigo_area = \"\";\n$this->acCodificacion = \"\";\n$this->acUbicacion = \"\";\n}", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "function SuoritaLisaysToimet(){\n /*Otetaan puuhaId piilotetustaKentasta*/\n $puuhaid = $_POST['puuha_id'];\n \n /* Hae puuhan tiedot */\n $puuha = Puuhat::EtsiPuuha($puuhaid);\n $suositus=luoSuositus($puuhaid,null);\n \n /*Tarkistetaan oliko suosituksessa virheita*/\n if(OlioOnVirheeton($suositus)){\n LisaaSuositus($suositus,$puuhaid);\n header('Location: puuhanTiedotK.php?puuhanid=' . $puuhaid . '.php');\n } else {\n $virheet = $suositus->getVirheet();\n naytaNakymaSuosituksenKirjoitusSivulle($puuha, $suositus, $virheet, \"Lisays\");\n }\n}", "public function obtenerViajesplusAbonados();", "function zjistiKurz($mena, $datum, $kurzy) {\n\t\tforeach ($kurzy as $v) {\n\t\t\t$h = explode(\"|\", $v);\n\t\t\tif ((count($h) >= 5) && ($h[3] == $mena)) {\n\n\t\t\t\t$kurz = new KurzEntity();\n\n\t\t\t\t$kurz->name = $h[0];\n\t\t\t\t$kurz->mnozstvi = $h[2];\n\t\t\t\t$kurz->kod = $h[3];\n\t\t\t\t$kurz->kurz = $h[4];\n\t\t\t\t$kurz->datum = $datum;\n\n\t\t\t\t//\tprint_r($kurz);\n\t\t\t\treturn $kurz;\n\t\t\t\t//return $h[2].\" \".$h[3].\" = \".$h[4].\" CZK\";\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function _JsemNaRade($posta_id, $prac = 0) {\r\n if (is_array($posta_id)) $posta_id = $posta_id[0];\r\n $pid = split(',',$posta_id);\r\n $posta_id = $pid[0];\r\n $sql = 'select * from posta_schvalovani where posta_id=' . $posta_id . ' and schvaleno=0 and stornovano is null order by id asc';\r\n $q = new DB_POSTA;\r\n $q->query($sql); \r\n $q->Next_Record();\r\n if ($q->Record['POSTUP'] == 2 || ($q->Record['POSTUP'] == 1 && $q->Record['SCHVALUJICI_ID'] == $prac)) return true;\r\n else return false; \r\n}", "public static function Najdi_kolize_vsechny ($iducast) {\r\n \r\n $query= \"SELECT * FROM s_typ_kolize WHERE valid\" ;\r\n $kolize_pole = self::Najdi_kolize ($query,$iducast) ;\r\n \r\n return $kolize_pole; \r\n}", "public static function Znevalidni_kolize_ucastnika_formulare($iducast,$formular) {\r\n//echo \"<hr><br>*Znevalidnuji vsechny kolize ucastnika , formular=\" . $formular;\r\n \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n //vyberu vsechny ulozene kolize z tabulky uc_kolize_table\r\n $query= \"SELECT * FROM uc_kolize_table left join s_typ_kolize on (s_typ_kolize.id_s_typ_kolize = uc_kolize_table.id_s_typ_kolize_FK) \" .\r\n \"WHERE id_ucastnik=\" . $iducast . \" and s_typ_kolize.formular='\" . $formular . \"' and uc_kolize_table.valid\" ;\r\n \r\n //echo \"<br>*dotaz na kolize v Znevalidni_kolize_ucastnika_formulare: \" . $query;\r\n \r\n $sth = $dbh->prepare($query);\r\n $succ = $sth->execute();\r\n \r\n while($zaznam_kolize = $sth->fetch()) {\r\n //echo \"<br>*Znevalidnuji kolizi: \" . $zaznam_kolize[id_uc_kolize_table];\r\n \r\n $query1 = \"UPDATE uc_kolize_table SET \" .\r\n \"valid=0 WHERE uc_kolize_table.id_uc_kolize_table=\" . $zaznam_kolize['id_uc_kolize_table'] ;\r\n $data1= $dbh->prepare($query1)->execute(); \r\n }\r\n \r\n//echo \"<hr>\";\r\n}", "public function truycapvao_private_cha(){\n }", "function pretvaranjeDatuma($datumZaUpis){\r\n\t\t\t\t$nizDatum = explode(\".\", $datumZaUpis);\r\n\t\t\t\t$datumZaUpis = $nizDatum[2].\"-\".$nizDatum[1].\"-\".$nizDatum[0];\r\n\t\t\t\treturn $datumZaUpis;\r\n\t\t\t}", "public function baseCjenovnik()\n\t{\n\t\t\n\t\t$p = array();\n\t\t$this->red = Cjenovnik::model()->findAll(\"id>0\");\n $this->red1 = TekstCjenovnik::model()->findAllByAttributes(array('jezik'=>Yii::app()->session[\"lang\"]));\n\t/*\t$this->period_od = $konj->period_od;\n\t\t$this->period_do = $row->period_do;\n\t\t$this->tip = $row->tip;\n\t\t$this->cjena_km = $row->cjena_km;\n\t\t$this->cjena_eur = $row->cjena_eur;*/\n\t}", "public function contrato()\r\n\t{\r\n\t}", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "function cc_ho_vetrina($agenzia, $rif){\n\tglobal $invetrina;\n\t\n\t// $agenzia qua è il numero interno di Cometa\n\tif( isset( $invetrina[$agenzia] ) ){\t\t\n\t\t\n\t\tif ($invetrina[$agenzia]['imm'] == $rif) {\n\t\t\t// questo immobile è in vetrina\n\t\t\t$vetrina = '1';\n\t\t\tcc_import_immobili_error_log($rif.\" è in vetrina\");\n\t\t\t\n\t\t\t// vediamo se è lo stesso di quello che era già in vetrina o meno\n\t\t\t$oldrif = cc_get_rif_vetrina( substr($rif, 0, 2) );\n\t\t\tcc_import_immobili_error_log(\"oldrif: \".$oldrif);\n\t\t\t\n\t\t\t// se l'immobile attualemnte in vetrina non è questo tolgo quello attuale da vetrina\n\t\t\tif($oldrif != $rif) {\n\t\t\t\tcc_updateVetrina($oldrif); \n\t\t\t\tcc_import_immobili_error_log(\"Tolgo vetrina da \".$oldrif);\n\t\t\t}\n\t\t}else{\n\t\t\t$vetrina = '0';\n\t\t}\t\t\n\t\n\t}else{\n\t\t$vetrina = '0';\n\t}\n\t\n\treturn $vetrina;\n}", "public function getNaziv()\n {\n return $this->naziv;\n }", "public static function vratiSve($db){\n \n \n // $result = $db->query('SELECT *,((i.datumDo - i.datumOd)*i.cenaPoDanu) as ukupnaCena FROM iznajmljivanje i join korisnik k on i.korisnik=k.korisnikID join vozilo v on i.vozilo=v.voziloID');\n $result = $db->query('SELECT * FROM iznajmljivanje i join korisnik k on i.korisnik=k.korisnikID join vozilo v on i.vozilo=v.voziloID');\n \n\n\n $iznajmljivanja = array();\n\n while($row = $result->fetch_assoc()) { \n // $tip = new TipVozila();\n // $tip->tipID= $row['tipID'];\n // $tip->nazivTipa= $row['nazivTipa'];\n\n\n $vozilo = new Vozilo();\n $vozilo->voziloID= $row['voziloID'];\n $vozilo->model= $row['model'];\n $vozilo->marka= $row['marka'];\n $vozilo->regBr= $row['regBr'];\n // $voziloPom->tipVozila = $tip;\n\n $korisnik= new Korisnik();\n $korisnik->korisnikID= $row['korisnikID'];\n $korisnik->ime = $row['ime'];\n $korisnik->prezime = $row['prezime'];\n\n $iznajmljivanje = new Iznajmljivanje();\n $iznajmljivanje->iznajmljivanjeID = $row['iznajmljivanjeID'];\n $iznajmljivanje->vozilo = $vozilo;\n $iznajmljivanje->korisnik = $korisnik;\n $iznajmljivanje->datumOd = $row['datumOd'];\n $iznajmljivanje->datumDo = $row['datumDo'];\n $iznajmljivanje->cenaPoDanu = $row['cenaPoDanu'];\n // $ukupnaCena = $row['ukupnaCena'];\n\n array_push($iznajmljivanja, $iznajmljivanje); \n }\n\n return $iznajmljivanja;\n}", "public function generujKod(){\n\t\t//\n\t}", "function provjeri_oglase(){\n\t\tglobal $db;\n\t\t$oglasi = $db->query(\"SELECT * FROM jf_oglasi WHERE status=1\");\n\t\twhile($podatak = $oglasi->fetch_assoc()){\n\t\t\tif (date(\"d-m-Y\", strtotime($podatak['konkurs_end'])) < date(\"d-m-Y\")){\n\t\t\t\t$db->query(\"UPDATE jf_oglasi SET status=0 WHERE id={$podatak['id']}\");\n\t\t\t}\n\t\t}\n\t}", "function zwrocPytanieZKategorii($ID)\r\n\t{\r\n\t require(\"config.php\");\r\n\t require(\"Pytania.php\");\r\n\t $dbConnect1=new mysqli($Serwer,$DBUser,$DBPassword,$DBName);\r\n $zapytanie1=\"SELECT * FROM pytania WHERE IDKategorii='\".$ID.\"'\";\r\n $wynik =$dbConnect1->query($zapytanie1);\r\n $ile=$wynik->num_rows;\r\n\r\n $tablicaPytan=array();\r\n if($ile<1)\r\n {\r\n $idPytania=0;\r\n }\r\n else\r\n {\r\n for($a=0;$a<$ile;$a++)\r\n {\r\n $Pytanie = new Pytania(); \r\n $wiersz=$wynik->fetch_assoc(); \r\n $Pytanie->ID=$wiersz['IDPytania'];\r\n $Pytanie->Pytanie=$wiersz['Pytanie'];\r\n $Pytanie->OdpowiedzA=$wiersz['OdpowiedzA']; \r\n $Pytanie->OdpowiedzB=$wiersz['OdpowiedzB']; \r\n $Pytanie->OdpowiedzC=$wiersz['OdpowiedzC']; \r\n $Pytanie->OdpowiedzD=$wiersz['OdpowiedzD']; \r\n $Pytanie->Prawidlowa=$wiersz['Prawidlowa'];\r\n $tablicaPytan[$a]=$Pytanie;\r\n }\r\n $wynik->free();\r\n $dbConnect1->close();\r\n $idPytania=$Pytanie->losuj($ile);\r\n for($a=0;$a<count($tablicaPytan);$a++)\r\n {\r\n if($tablicaPytan[$a]->ID==$idPytania)\r\n {\r\n $tablicaPytan[$a]->Pytanie;\r\n return $tablicaPytan[$a];\r\n }\r\n }\r\n }\r\n\t}", "function rejestruj($nazwa_uz, $email, $haslo) {\r\n// zwraca true lub komunikat o b��dzie\r\n\r\n // po��czenie z baz� danych\r\n $lacz = lacz_bd();\r\n\r\n // sprawdzenie, czy nazwa u�ytkownika nie powtarza si�\r\n $wynik = $lacz->query(\"select * from uzytkownik where nazwa_uz='\".$nazwa_uz.\"'\");\r\n if (!$wynik) {\r\n throw new Exception('Wykonanie zapytania nie powiod�o si�.');\r\n }\r\n\r\n if (@ $lacz->num_rows>0) {\r\n throw new Exception('Nazwa u�ytkownika zaj�ta � prosz� wr�ci� i wybra� inn�.');\r\n }\r\n\r\n // je�eli wszystko w porz�dku, umieszczenie w bazie danych\r\n $wynik = $lacz->query(\"insert into uzytkownik values\r\n ('\".$nazwa_uz.\"', sha1('\".$haslo.\"'), '\".$email.\"')\");\r\n if (!$wynik) {\r\n throw new Exception('Rejestracja w bazie danych niemo�liwa � prosz� spr�bowa� p�niej.');\r\n }\r\n\r\n return true;\r\n}", "public function nahrajObrazekByID($obrazekID){\n\t\t$dotaz = \"SELECT obrazekID,filepath,tabObrazky.uzivatelID,uzivatelJmeno FROM tabObrazky \n\t\t\t\t\tJOIN tabUzivatele ON tabUzivatele.uzivatelID = tabObrazky.uzivatelID WHERE obrazekID = \". $obrazekID;\n\t\t\t\n\t\t\t\t//echo \"X \".$dotaz .\" X\";\n\t\t\t$vratit = null;\n\t\t\t\n\t\t\t$vysledek = mysqli_query($this -> pripojeni,$dotaz);\n\t\t\tif($vysledek == false){\n\t\t\t\techo(\"During loading of data an error occured!\" . mysqli_error($this->pripojeni) );\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//case vysledek je mysqli_result\n\t\t\t\t$pole = $vysledek->fetch_all(MYSQLI_ASSOC);\n\t\t\t\tforeach($pole as $radek ){\n\t\t\t\n\t\t\t\t\t$obrazekID = $radek[\"obrazekID\"];\n\t\t\t\t\t$filePath = $radek[\"filepath\"];\n\t\t\t\t\t$uzivatelID = $radek[\"uzivatelID\"];\n\t\t\t\t\t$jmenoUzivateleCoNahral = $radek[\"uzivatelJmeno\"];\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$obrazek = new obrazekObjekt($obrazekID, $filePath,$uzivatelID,$jmenoUzivateleCoNahral);\n\t\t\t\n\t\t\t\t\t$vratit = $obrazek;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t\n\t\treturn $vratit;\n\t}", "function ogretmen_odev_getir ()\n {\n // if($odev=$this->vtb->query($sorgu))\n // {\n // $odevlist = $odev->fetchAll();\n\n // foreach ($odevlist as $o)\n // {\n // echo \"<div class='panel_akis_kutusu'>\".\"<p>\" . $o['odevadi'] . \"</p>\" . \"<p>\" . $o['dersadi'] . \"</p><p>\". $o['dtarih'] . \" \". $o['ttarih'] . \"</p></div>\" ;\n // }\n // }\n $sorgu=new sorgubul(\"select * from seviye_odevleri\",\"dersid\",\"=\",$_SESSION['dersler'],\"0,30\",\"or\");\n $sorgu=$sorgu->sorgu;\n\n if ($odev=$this->vtb->query($sorgu))\n {\n $odevlist = $odev->fetchAll();\n\n foreach ($odevlist as $o)\n {\n if ($a=$this->vtb->query(\"select count(*) from seviye_odev_teslimleri where odevid = \" . $o['soid']) and $b =$this->vtb->query(\"select count(*) from seviye_odev_teslimleri where odevid = \" . $o['soid'] . ' and okundumu = 0') )\n {\n $c = $a->fetchColumn();\n $d = $b->fetchColumn();\n $derssev=$this->vtb->prepare(\"select seviyeno,dersid from ders_seviyeler where seviyeid = ?\");\n $derssev->execute(array($o['seviye']));\n $derssev=$derssev->fetch();\n $ders=$this->vtb->prepare(\"select dersadi from dersler where dersid = ?\");\n $ders->execute(array($o['dersid']));\n $ders=$ders->fetchColumn();\n echo \"<div class='isbox' style='height:auto;overflow:hidden;'> \".\" <div class='isboxust'><p class='icerik' style='color: #048CAD; margin:5px 5px 0px 0px;'>\" . $o['odevbaslik'] . \" > \" . $ders . \" > \" . $derssev['seviyeno'] . \". Seviye</p></div>\" . \"<div class='icerik' style='position:relative;'><p >\" . $o['odevmetni'] . \"</p></div><div class='isboxalt'><p style='padding: 10px 0px 0px 100px;float:left;'>\". $c . \" kişi teslim etti,\". $d . \" kişiyi okumadınız</p><a style='margin-left:20px;' class='soruonay' href='ogretmen_ders_goruntuleme.php?dersid=\" . $derssev['dersid'] . \"&seviyeno=\" . $derssev['seviyeno'] . \"&dersadi=\" . $ders .\"'>Kontrol et</a></div></div>\" ;\n\n }\n else\n {\n echo \"<div class='isbox' style='height:auto;overflow:hidden;'> \".\" <div class='isboxust'><p class='icerik' style='color: #048CAD; margin:5px 5px 0px 0px;'>\" . $o['odevbaslik'] . \" > \" . $ders . \" > \" . $derssev['seviyeno'] . \". Seviye</p></div>\" . \"<div class='icerik' style='position:relative;'><p >\" . $o['odevmetni'] . \"</p></div><div class='isboxalt'><p>Kimse teslim etmedi</p></div></div>\" ;\n }\n }\n }\n\n }", "public function pracovniSila($idProjektu, $uzivatele)\n {\n //jiz prirazeni uzivatele\n $projektUzivatele = $this->database->table(\"projekt_uzivatel\")\n ->where('fk_p = ?', $idProjektu)\n ->fetchAll();\n\n if($uzivatele) {\n\n for ($i = 1; $i<=20; $i++) {\n\n if(array_key_exists($i, $uzivatele)) {\n try { //form se odesle s uz prirazenymi uzivateli - chyta chybu duplicate\n $this->database->table(\"projekt_uzivatel\")\n ->insert([\"fk_p\" => $idProjektu, \"fk_u\" => $uzivatele[$i]]);\n\n } catch (\\Exception $e) {}\n\n }\n\n else {\n foreach ($projektUzivatele as $pu) {\n if($i == $pu['fk_u']) { //uzivatel byl prirazen, ale byl odstranen\n $this->database->table(\"projekt_uzivatel\")\n ->where('fk_u = ?', $pu['fk_u'])\n ->where('fk_p = ?', $idProjektu)\n ->delete();\n }\n }\n }\n\n }\n\n }\n\n else { // nebyly prirazeni zadni uzivatele\n $this->database->table(\"projekt_uzivatel\")\n ->where('fk_p = ?', $idProjektu)\n ->delete();\n }\n }", "function PobierzJednostki($wartosc)\n{\n $nazwa_jednostki=$wartosc;\n $nazwa_jednostki2=$wartosc;\n $polaczenie = polaczenie_z_baza();\n $lista='';\n\n if($nazwa_jednostki!='')\n {\n $pobierz_jednostke = mysqli_query($polaczenie,\"SELECT nazwa, id FROM jednostki WHERE nazwa LIKE '$wartosc' ORDER BY nazwa ASC\")\n or die(\"Blad przy pobierz_jednsotke\".mysqli_error($polaczenie));\n if(mysqli_num_rows($pobierz_jednostke)>0)\n {\n while ($jednostka = mysqli_fetch_array($pobierz_jednostke))\n {\n $nazwa_jednostki .= \"<option value='$jednostka[id]' selected='selected'>$jednostka[nazwa]</option>\";\n $lista.=$nazwa_jednostki;\n }\n }\n elseif (mysqli_num_rows($pobierz_jednostke)==0)\n {\n $pobierz_jednostke2 = mysqli_query($polaczenie,\"SELECT nazwa, id FROM jednostki WHERE id LIKE '$wartosc' ORDER BY nazwa ASC\")\n or die(\"Blad przy pobierz_jednsotke\".mysqli_error($polaczenie));\n if(mysqli_num_rows($pobierz_jednostke2)>0)\n {\n while ($jednostka2 = mysqli_fetch_array($pobierz_jednostke2))\n {\n $nazwa_jednostki2 .= \"<option value='$jednostka2[id]' selected='selected'>$jednostka2[nazwa]</option>\";\n $lista.=$nazwa_jednostki2;\n }\n }\n }\n else\n {\n $nazwa_jednostki .=\"<option value='$wartosc'>Brak jednostki lub została usunięta o kodzie : $wartosc</option>\";\n $lista.=$nazwa_jednostki;\n }\n }\n\n\n $pobierz_jednostki = mysqli_query($polaczenie,\"SELECT nazwa, id FROM jednostki WHERE aktywny = '0' ORDER BY nazwa ASC\")\n or die(\"Blad przy pobierz_jednsotke\".mysqli_error($polaczenie));\n if(mysqli_num_rows($pobierz_jednostki)>0)\n {\n while ($jednostka = mysqli_fetch_array($pobierz_jednostki))\n {\n $lista.= \"<option value='$jednostka[id]' >$jednostka[nazwa]</option>\";\n }\n }\n else\n {\n $lista .= \"<option value='$wartosc'>Brak dodanych jednostek w bazie dodaj w słowniku</option>\";\n }\n\n\n return $lista;\n}", "public function istorijaRezultata() {\n $rModel = new RezultatModel();\n $igrac = $this->session->get('igrac');\n $rezultati = $rModel->nadji_rezultateigraca($igrac['idKI']);\n $this->prikaz(\"mod_istorijarezultata\", ['rezultati' => $rezultati]);\n }", "public function index($id){\n\t\t$po_prostu_pokaz = true;\n\t\t$user = $this->session->zalogowany;\n\t\tif($dane = $this->baza->czy_zlecenie_istnieje($id)){\n\t\t\t$dane[0]->nick = $this->baza->daj_nick($dane[0]->zlecajacy_id);\n\t\t\t$prace = $this->baza->prace();\n\t\t\t$aktualna_data = date('Y-m-d');\n\t\t\t$aktualna_godzina = date('H:i');\n\t\t\tif($this->baza->czy_zlecenie_aktualne($id,$aktualna_data,$aktualna_godzina)){\n\t\t\t\t//zlecenie aktualne\n\t\t\t\tif($user != null){\n\t\t\t\t\tif($dane[0]->zlecajacy_id != $user){\n\t\t\t\t\t\t//nie jesteś zlecającym\n\t\t\t\t\t\t$zwyciezca = $this->baza->dane_zwyciezcy($id);\n\t\t\t\t\t\tif(count($zwyciezca)==0){\n\t\t\t\t\t\t\t//jeszcze nie wybrano zwycięzcy\n\t\t\t\t\t\t\tif(!$this->baza->czy_juz_zgloszono($id,$user)){\n\t\t\t\t\t\t\t\t//nie zgłosiłeś się jeszcze\n\t\t\t\t\t\t\t\t$po_prostu_pokaz = false;\n\t\t\t\t\t\t\t\t$zgloszenie = $this->input->post('zlecenie_zgloszenie');\n\t\t\t\t\t\t\t\tif($zgloszenie != null){\n\t\t\t\t\t\t\t\t\t//wyświetl komunikat informujący o poprawnym zgłoszeniu się\n\t\t\t\t\t\t\t\t\t$this->baza->dodaj_zgloszenie($id,$user);\n\t\t\t\t\t\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'zglos_sie'=>1));\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t//wyswietl widok z możliwością zgłoszenia się do niego\n\t\t\t\t\t\t\t\t\t//aktualne - true,jestes_zlecajacym=false,zgloszono_sie=false\n\t\t\t\t\t\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'zglos_sie'=>0));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//wybrano zwycięzcę\n\t\t\t\t\t\t\tif($this->baza->czy_juz_zgloszono($id,$user)){\n\t\t\t\t\t\t\t\t//zgłoszono się\n\t\t\t\t\t\t\t\tif($this->baza->czy_wygrales_zlecenie($id,$user)){\n\t\t\t\t\t\t\t\t\t//jesteś zwycięzcą\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$status = $zwyciezca[0]->status;\n\t\t\t\t\t\t\t\t\tif($status == 0){\n\t\t\t\t\t\t\t\t\t\t//zostałeś wybrany przez zlecającego\n\t\t\t\t\t\t\t\t\t\t$po_prostu_pokaz = false;\n\t\t\t\t\t\t\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t\t\t\t\t\t\t$podjecie = $this->input->post('zlecenie_podjecie');\n\t\t\t\t\t\t\t\t\t\tif($podjecie != null){\n\t\t\t\t\t\t\t\t\t\t\t//komunikat o pomyślnym podjęciu się pracy\n\t\t\t\t\t\t\t\t\t\t\t$this->baza->potwierdz_podjecie($id);\n\t\t\t\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'podjecie'=>1));\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t//strona z możliwością potwierdzenia podjecia się pracy\n\t\t\t\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'podjecie'=>0));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//zalogowany jest zlecajacym\n\t\t\t\t\t\t$jestes_zlecajacym = true;\n\t\t\t\t\t\t$dane_zwyciezcy = $this->baza->dane_zwyciezcy($id);\n\t\t\t\t\t\tif(count($dane_zwyciezcy)==0){\n\t\t\t\t\t\t\t//nie wybrano zwycięzcy\n\t\t\t\t\t\t\t$po_prostu_pokaz = false;\n\t\t\t\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t\t\t\t$wybrany = $this->input->post('zlecenie_zwyciezca');\n\t\t\t\t\t\t\tif($wybrany != null){\n\t\t\t\t\t\t\t\t$this->baza->wybierz_zwyciezce($id,$wybrany);\n\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'zgloszenia'=>1));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t//wyświetl listę zgłoszeń\n\t\t\t\t\t\t\t\t//daj możliwość wybrania jednego\n\t\t\t\t\t\t\t\t$zgloszenia = $this->baza->lista_zgloszen($id);\n\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'zgloszenia'=>$zgloszenia));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//zlecenie po czasie wykonania\n\t\t\t\t$user = $this->session->zalogowany;\n\t\t\t\tif($dane[0]->zlecajacy_id == $user){\n\t\t\t\t\t//jesteś zleceniodawcą\n\t\t\t\t\t$dane_zwyciezcy = $this->baza->dane_zwyciezcy($id);\n\t\t\t\t\tif(count($dane_zwyciezcy)>0){\n\t\t\t\t\t\t//ktoś wygrał\n\t\t\t\t\t\t$status = $dane_zwyciezcy[0]->status;\n\t\t\t\t\t\tif($status == 1){\n\t\t\t\t\t\t\t$po_prostu_pokaz = false;\n\t\t\t\t\t\t\t//daj możliwość potwierdzenia wykonania\n\t\t\t\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t\t\t\t$potwierdzono = $this->input->post('zlecenie_potwierdzenie');\n\t\t\t\t\t\t\tif($potwierdzono != null){\n\t\t\t\t\t\t\t\t$this->baza->potwierdz_wykonanie($id);\n\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'ocena'=>0));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'potwierdzenie'=>0));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if($status == 2){\n\t\t\t\t\t\t\t$po_prostu_pokaz = false;\n\t\t\t\t\t\t\t//daj możliwość ocenienia\n\t\t\t\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t\t\t\t$ocena = $this->input->post('zlecenie_ocena');\n\t\t\t\t\t\t\t$komentarz = $this->input->post('zlecenie_komentarz');\n\t\t\t\t\t\t\tif($ocena != null && $komentarz != null){\n\t\t\t\t\t\t\t\t$this->baza->ocen($id,$dane_zwyciezcy[0]->zglaszajacy_id,$ocena,$komentarz);\n\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'ocena'=>1));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace,'ocena'=>0));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($po_prostu_pokaz){\n\t\t\t\t$this->load->view(\"naglowek\",array('tytul'=>'ZLECENIE'));\n\t\t\t\t$this->load->view('zlecenie/zlecenie',array('dane'=>$dane,'prace'=>$prace));\n\t\t\t}\n\t\t}else{\n\t\t\t$this->load->view('blad',array('komunikat'=>'Nie ma takiego zlecenia!'));\n\t\t}\n\t}", "function ler($nome) {\n $x = 1;\n\t while($x < $this->bd[0][0] && !$this->str_igual($nome, $this->bd[$x][2])) {$x++;}\n if($x >= $this->bd[0][0]) {return 0;}\n //comecando a setar tudo\n $this->id = $this->bd[$x][0];\n $this->maximo = $this->bd[$x][1];\n $this->nome = $this->bd[$x][2];\n $this->categoria = $this->bd[$x][3];\n $this->tipo = $this->bd[$x][4];\n $this->atributo = $this->bd[$x][5];\n $this->specie = $this->bd[$x][6];\n $this->lv = $this->bd[$x][7];\n $this->atk = $this->bd[$x][8];\n $this->def = $this->bd[$x][9];\n $this->preco = $this->bd[$x][10];\n $this->descricao = $this->bd[$x][11];\n $this->img = '../imgs/cards/'.$this->id.'.png';\nreturn 1;\n }", "function uprav_pretek ($NAZOV, $DATUM, $DEADLINE,$POZNAMKA){\r\n if(!$this->ID){\r\n return false;\r\n }\r\n $NAZOV2 = htmlentities($NAZOV, ENT_QUOTES, 'UTF-8');\r\n $reg_exUrl = \"/(http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?/\";\r\n $text = $POZNAMKA;\r\n\r\n if(preg_match($reg_exUrl, $text, $url) && !strpos($text, \"</a>\") && !strpos($text, \"</A>\") && !strpos($text, \"HREF\") && !strpos($text, \"href\")) {\r\n\r\n // make the urls hyper links\r\n $text = preg_replace($reg_exUrl, \"<a href=\".$url[0].\">{$url[0]}</a> \", $text);\r\n\r\n}\r\n\r\n $POZNAMKA2 = htmlentities($text, ENT_QUOTES, 'UTF-8');\r\n $db = napoj_db();\r\n $sql =<<<EOF\r\n UPDATE PRETEKY set NAZOV = \"$NAZOV2\" where ID=\"$this->ID\";\r\n UPDATE PRETEKY set DATUM = \"$DATUM\" where ID=\"$this->ID\";\r\n UPDATE PRETEKY set DEADLINE = \"$DEADLINE\" where ID=\"$this->ID\";\r\n UPDATE PRETEKY set POZNAMKA = \"$POZNAMKA2\" where ID=\"$this->ID\";\r\n DELETE FROM KATEGORIE_PRE_$this->ID;\r\nEOF;\r\n $ret = $db->exec($sql);\r\n if(!$ret){\r\n echo $db->lastErrorMsg();\r\n } else {\r\n \r\n }\r\n $db->close();\r\n }", "public function puestaACero() {\n $this -> horas = 0;\n $this -> minutos = 0;\n $this -> segundos = 0;\n }", "function getAukstis() {\n return $this->aukstis; // grazina nauja reiksme mums\n }", "function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }", "public function otorgarPrestamo(){\n $fecha = date('d-m-y');\n $this->setFechaOtorgado($fecha);\n $cantidadCuotas = $this->getCantidadCuotas();\n $monto = $this->getMonto();\n $colObjCuota = array();\n for($i=0; $i<$cantidadCuotas; $i++){\n $montoCuota = $monto / $cantidadCuotas;\n $montoInteres = $this->calcularInteresPrestamo($i);\n $colObjCuota[$i] = new Cuota($i, $montoCuota, $montoInteres);\n }\n $this->setColObjCuota($colObjCuota);\n }", "function setCobrar($tarjeta1,$tarjeta2,$tarjeta3,$tarjeta4,$tarjeta5,$partida){\n\t$tarjetas=array(0=>$tarjeta1,1=>$tarjeta2,2=>$tarjeta3,3=>$tarjeta4,4=>$tarjeta5);\n\t$tarjeta_cambio;\n\t$veces_entre_foreach=0;\n\t$cantidad=0;\n\t\t\t//pregunta si el usuario saco tarjeta en la ronda, si no saco no puede cambiar ninguna de las que ya tiene(por esto ese if)\n\tif($partida->turno_usuario->getSaqueTarjeta() == 1){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tforeach($tarjetas as $tarjeta){\n\t\t\t\tif($tarjeta == 1){\n\t\t\t\t\tif($partida->turno_usuario->getTarjeta($veces_entre_foreach)!=NULL ){\n\t\t\t\t\t\t\t//solamente puede tomar una tarjeta, porque es cobrar, si hay mas de una seleccionadada cantidad de hace mas de 1 y el cambio no se realiza\n\t\t\t\t\t\tif($cantidad < 1){\n\t\t\t\t\t\t\t\t//digo que la tarjeta que esta en la posicion $avanzar_arreglo del usuario fue seleccionada\n\t\t\t\t\t\t\t$tarjeta_cambio=$partida->turno_usuario->getTarjeta($veces_entre_foreach);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$cantidad++;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$veces_entre_foreach++;\n\t\t\t}//foreach($tarjetas as $tarjeta){\n\t\t\t\n\t\t\t\t//si se selecciono una y solo una tarjeta\n\t\t\tif($cantidad == 1){\n\t\t\t\t\t//compruebo si la tarjeta esta en estado de ser cambiada\n\t\t\t\tif($tarjeta_cambio->getEstado() == 0 ){\n\t\t\t\t\t\t\n\t\t\t\t\t$id_pais=$tarjeta_cambio->getIdPais();\n\t\t\t\t\t\t//recorro todos los paises \n\t\t\t\t\tforeach($partida->paises as $pais){\t\n\t\t\t\t\t\t\t//compruebo si id del usuario en turno es igual al del propietario del pais que selecciona el foreach Y aparte compruebo que \n\t\t\t\t\t\t\t//el pais al que hace referencia la tarjeta sea el seleccionado por el foreach\n\t\t\t\t\t\tif($id_pais == $pais->getId() && $partida->turno_usuario->getId() == $pais->getPropietario()->getId() )\t{\n\t\t\t\t\t\t\t\t//cambio el estado de la tarjeta\n\t\t\t\t\t\t\t$tarjeta_cambio->setEstado(1);\n\t\t\t\t\t\t\t\t//le entrego al pais al que hace referencia 2 fichas\n\t\t\t\t\t\t\t$pais->setFichas(2);\n\t\t\t\t\t\t\t\t//reseteo el saco tarjeta, para que en la misma ronda no pueda cobrar dos tarjetas\n\t\t\t\t\t\t\t$partida->turno_usuario->setSaqueTarjetaReset();\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//if($cantidad == 1){\n\t\t\t\n\t}//if($partida->turno_usuario->getSaqueTarjeta() == 1){\t\n}" ]
[ "0.6733688", "0.64914346", "0.64735955", "0.62519425", "0.6245372", "0.6242535", "0.6223761", "0.6186216", "0.6156538", "0.6152927", "0.6135826", "0.6095063", "0.6093924", "0.60710526", "0.606729", "0.606476", "0.6008934", "0.6008933", "0.5987528", "0.59645104", "0.59596837", "0.5952309", "0.59431225", "0.59369355", "0.59292567", "0.58984613", "0.5884529", "0.58804053", "0.5857454", "0.58389086", "0.5801197", "0.57729745", "0.57444257", "0.5742436", "0.57214814", "0.5699714", "0.5678149", "0.56562716", "0.5634499", "0.5626811", "0.5624317", "0.56057656", "0.56009674", "0.55998296", "0.5597556", "0.55918574", "0.55891603", "0.5587642", "0.5580872", "0.556873", "0.5567357", "0.556312", "0.5556377", "0.5553693", "0.5545321", "0.55416626", "0.55366033", "0.549944", "0.54990256", "0.5496078", "0.5489073", "0.5485332", "0.5472432", "0.5468968", "0.5467925", "0.5467323", "0.54570514", "0.5450024", "0.5448599", "0.5445045", "0.5444344", "0.54402214", "0.54279894", "0.5425691", "0.5417433", "0.54072046", "0.5405776", "0.54036295", "0.54033655", "0.5401168", "0.53996813", "0.5397456", "0.5392925", "0.53928125", "0.5389499", "0.5388226", "0.53844094", "0.53838056", "0.5383734", "0.53818333", "0.53744274", "0.5372377", "0.5371661", "0.5367625", "0.5366851", "0.5364342", "0.53565943", "0.53501415", "0.534384", "0.5342443", "0.53309816" ]
0.0
-1
Sets the name for the cookie
public function setCookieName($cookieName) { $this->cookieName = $cookieName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setSessionName(): void\n {\n $cookie = new Cookie($this->expiringTime - 1);\n if ($cookie->exists('sessionName')) {\n return;\n }\n\n // unset all session name cookies\n foreach ($_COOKIE as $key => $value) {\n if (strlen($key) === strlen($this->name)) {\n $cookie->unset($key);\n }\n }\n\n $cookie->save('sessionName', $this->name);\n }", "public function cookie($name);", "public function setCookieName(string $name): self\n {\n $this->cookieName = $name;\n\n return $this;\n }", "public static function setCurrentName($name) {\n Session::put(Privilege::SESSION_NAME_NAME, $name);\n }", "public function setName(string $name): void\n {\n session_name($name);\n }", "public static function setCookie($name, $value){\n\t\tif( !empty($name) ){\n\t\t\tself::$cookiesToSave[$name] = $value ;\n\t\t}\n\t}", "public function setCookie($name, $value=null)\n {\n if (is_array($name)) {\n $this->_cookie = $name;\n } else {\n $this->_cookie[$name] = $value;\n }\n }", "public static function name(string $name)\n {\n static::$name = $name;\n static::$session = null;\n }", "private function setName($name)\n {\n $session = new Zend_Session_Namespace('Unodor_Account');\n $session->name = $name;\n }", "public function setCookie($name, $value){\n setcookie($name, $value, time()+86400);\n }", "public function set()\n {\n setcookie($this->name, $this->value, $this->time);\n\n }", "public function getCookieName()\n {\n return $this->settings['cookie_name'];\n }", "public function setCookie(string $name, string $value, int $expires = 0, string $path = '/', string $domain = '', bool $secure = false, bool $httponly = false): void;", "private function _write( $name, $value )\n {\n setcookie( us($name), us($value), $this->expire, $this->path, $this->domain, $this->secure, $this->httponly );\n }", "function set_name($name) {\n $this->name = $name;\n }", "public static function set($name, $value)\n {\n $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;\n setcookie($name, $value, time() + ASTERION_COOKIE_TIME, '/', $domain, false);\n }", "public static function setName($name)\n\t{\n\t\tself::$name = $name;\n\t}", "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "protected function setcookie(string $name, string $value, int $expire, string $path, string $domain, bool $secure, bool $httpOnly) {}", "public static function getCookieName() {}", "public static function getCookieName() {}", "public function getCookieName() {\n return $this->cookieName ? $this->cookieName : '_locale';\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "public function setName( $name )\n\t{\n\t\t$this->setAttribute( \"name\", $name );\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "protected function setName(string $name) {\n $this->name = $name;\n }", "public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function set_cookie($name, $value, $time){\t\n\t\t$this->Cookie->write($name, $value, false, $time);\n\n\t}", "public function SetName ($name);", "protected function setName(string $name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "public function cookie($name='') {\n\t\t$this->cookie[$name] = (isset($_COOKIE[$name])) ?\n\t\t\t$_COOKIE[$name] : NULL;\n\t\t\t\n\t\treturn $this->cookie;\n\t}", "public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}", "public function setName($name) \n {\n $this->_name = $name; \n }", "public function removeCookie($name)\n {\n Types::assert(['string' => [$name]]);\n\n $this->removedCookies[] = strtolower($name);\n }", "public function setName($name) {\n\t\t$this->_name = (string)$name;\n\t}", "public function setName($name){\n\t\t\t$this->_name = $name;\n\t\t\t$this->_nameFileFile = CACHE_PATH.$name.'.cache';\n\t\t}", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name){\n $this->_name = $name;\n }", "abstract public function setCookie($name , $value = false, $expire = false, $path = false, $domain = false, $secure = false);", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function getCookie($name)\n {\n\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function set_name( $name ) {\n\t\t$this->set_prop( 'name', $name );\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "private function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }", "public function setName($name){\n \n $this->name = $name;\n \n }", "public static function cookieSet($name, $value='', $delete=false) {\r\n\t\t$expires = ($delete) ? time()-86400 : time() + 2678400;\r\n\t\tsetcookie('finefin_'.$name, $value, $expires, '/', NULL);\r\n\t}", "function getName()\r\n{\r\n\t// Look for the name in $_POST then in\r\n\t// $_COOKIE, or give a new generic name\r\n\t\r\n\tif (isset($_SESSION['sess_pseudo']))\r\n\t{\r\n\t\t//$sql=mysql_query(\"SELECT gender FROM members WHERE username='\".$_SESSION['sess_pseudo'].\"'\");\r\n\t\t//$data=mysql_fetch_object($sql);\r\n\t\t\r\n\t\t$name = $_SESSION['sess_gender'].\"_\".ucfirst($_SESSION['sess_pseudo']);\r\n\t\tsetcookie(LACE_NAME_COOKIE, $name, time()+3600*24*30, LACE_URL_REL);\r\n\t}\r\n\telse\r\n\t\t$name = cookieVar(LACE_NAME_COOKIE, 'EngineChat:Error');\r\n\r\n\treturn $name;\r\n}", "public function setName($name)\n {\n $this->_name = (string)$name;\n }", "public function set_cookie()\n {\n }", "function setName($name) {\n $this->name = $name;\n }", "public function setName($name) \n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }" ]
[ "0.81614584", "0.7774264", "0.74384934", "0.7096783", "0.70904666", "0.7057508", "0.6908071", "0.68967825", "0.68618286", "0.6839496", "0.6806299", "0.6785796", "0.6774309", "0.6750137", "0.67457235", "0.67387664", "0.6729219", "0.6706944", "0.6680654", "0.66744584", "0.6671483", "0.66620237", "0.66180825", "0.66180825", "0.66180825", "0.66180825", "0.6612656", "0.6602557", "0.6602557", "0.6602252", "0.6602252", "0.6602048", "0.6601553", "0.6598738", "0.6598738", "0.6598738", "0.6598738", "0.6598738", "0.6598738", "0.6598738", "0.6598738", "0.6592517", "0.65910745", "0.65869915", "0.6578787", "0.6577871", "0.65674317", "0.6562567", "0.6554334", "0.6551956", "0.6509166", "0.6509166", "0.6509166", "0.6509166", "0.6509166", "0.6509166", "0.6507573", "0.6507469", "0.6505466", "0.6505466", "0.6501417", "0.6497938", "0.648549", "0.6484585", "0.6484585", "0.6484585", "0.6484585", "0.6484585", "0.6484585", "0.6484585", "0.6470742", "0.64662784", "0.6463869", "0.64634275", "0.64605", "0.64562994", "0.6454086", "0.6447034", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244", "0.64413244" ]
0.76500076
2
Gets the name for the cookie
public function getCookieName() { return $this->cookieName ? $this->cookieName : '_locale'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getCookieName() {}", "public static function getCookieName() {}", "public function getCookieName()\n {\n return $this->settings['cookie_name'];\n }", "private function getSessionName(): string\n {\n $cookie = new Cookie();\n\n return $cookie->get('sessionName', $this->name);\n }", "public function getCookieName()\n {\n return Mage::helper('fastlycdn')->generateCookieName(\n Fastly_CDN_Model_Esi_Tag_Reports_Product_Viewed::COOKIE_NAME\n );\n }", "protected function getUserCookieName() {\n return 'fbuser_' . $this->getAppId();\n }", "public function getUsernameCookie()\n {\n return $_COOKIE[$this->username];\n }", "public function getCookieKey()\n\t{\n\t\treturn $this->cookie_key;\n\t}", "function getName()\r\n{\r\n\t// Look for the name in $_POST then in\r\n\t// $_COOKIE, or give a new generic name\r\n\t\r\n\tif (isset($_SESSION['sess_pseudo']))\r\n\t{\r\n\t\t//$sql=mysql_query(\"SELECT gender FROM members WHERE username='\".$_SESSION['sess_pseudo'].\"'\");\r\n\t\t//$data=mysql_fetch_object($sql);\r\n\t\t\r\n\t\t$name = $_SESSION['sess_gender'].\"_\".ucfirst($_SESSION['sess_pseudo']);\r\n\t\tsetcookie(LACE_NAME_COOKIE, $name, time()+3600*24*30, LACE_URL_REL);\r\n\t}\r\n\telse\r\n\t\t$name = cookieVar(LACE_NAME_COOKIE, 'EngineChat:Error');\r\n\r\n\treturn $name;\r\n}", "public static function get($name)\n {\n return (isset($_COOKIE[$name])) ? $_COOKIE[$name] : '';\n }", "public function getRememberTokenName()\n {\n // TODO: Implement getRememberTokenName() method.\n }", "public function getRememberTokenName()\n {\n // TODO: Implement getRememberTokenName() method.\n }", "public function getRememberTokenName()\n {\n // TODO: Implement getRememberTokenName() method.\n }", "public function getRememberTokenName()\n {\n // TODO: Implement getRememberTokenName() method.\n }", "public function getRememberTokenName()\n {\n }", "public function getRememberTokenName()\n {\n }", "public function cookie($name);", "public static function get($name){\n\t\treturn $_COOKIE[$name];\n\t}", "public static function get($name) {\n return $_COOKIE[$name];\n }", "function __getCookieName() {\n $CI =& get_instance();\n return $CI->config->item('sess_cookie_name');\n }", "public function getCOOKIE($name) { return $this->getGLOBAL('_COOKIE', $name); }", "protected function getCookie(string $key): string\n {\n return isset($this->cookies[$key]) ? $this->cookies[$key] : \"\";\n }", "public function getName(): string\n {\n return session_name();\n }", "public function getName(): string\n {\n return $this->isStarted() ? session_name() : $this->name;\n }", "function basel_compare_cookie_name() {\n\t\t$name = 'basel_compare_list';\n\n\t\tif ( is_multisite() ) {\n\t\t\t$name .= '_' . get_current_blog_id();\n\t\t}\n\n\t\treturn $name;\n\n\t}", "public static function get($name) {\n\t\t\treturn $_COOKIE[$name];\n\t\t}", "public function getName()\n {\n return $this->_session->getName();\n }", "public function get($name)\n {\n return $this->cookieManager->getCookie($name);\n }", "static public function getCookie($name= null)\n {\n if ($name) $name = static::$COOKIE_PREFIX . $name;\n return empty($name) ? $_COOKIE : (isset($_COOKIE[$name]) ? $_COOKIE[$name] : '');\n }", "public function getName() {\n\n list(,$name) = URLUtil::splitPath($this->principalInfo['uri']);\n return $name;\n\n }", "public function getCookie()\n {\n return $this->getHeaders()->get('Cookie');\n }", "public function getName()\n {\n $session = new Zend_Session_Namespace('Unodor_Account');\n return $session->name;\n }", "function get_user_cookie_name($obj = '')\n{\n\treturn replace_bad_chars(encryptValue(\"user_\".$obj->input->ip_address()));\n}", "public function cookie($name) {\n return isset($this->cookies[$name])? $this->cookies[$name] : null;\n }", "function cookie ($name) {\n\t\treturn @$this->cookie[$name];\n\t}", "public function getRememberTokenName()\n {\n return '';\n }", "public function getRememberTokenName()\n {\n return '';\n }", "function getUserName()\r\n{\r\n\t$fname = $_COOKIE[\"user_fname\"];\r\n\t$lname =$_COOKIE[\"user_lname\"];\r\n\t$full_name = $fname . ' '. $lname;\r\n\treturn $full_name;\r\n\t\r\n\t\r\n\t\r\n}", "public function getRememberTokenName()\n {\n return null;\n }", "public function getRememberTokenName()\n {\n return null;\n }", "public function getRememberTokenName()\n {\n return null;\n }", "function getcookie(string $name = null) {\n return !empty($name) ?\n !empty($_COOKIE[$name])\n ? $_COOKIE[$name] : null \n : $_COOKIE;\n }", "function getcookie(string $name = null) {\n return !empty($name) ?\n !empty($_COOKIE[$name])\n ? $_COOKIE[$name] : null \n : $_COOKIE;\n }", "public function getCookie($name){\n\n return self::$oCRNRSTN_ENV->oCOOKIE_MGR->getCookie($name);\n\n }", "public function getRememberTokenName() {\n return $this->rememberTokenName;\n }", "function getCookieValue($name)\n{\n $token = null;\n if (array_key_exists($name, $_COOKIE) == true) {\n $token = $_COOKIE[$name];\n }\n\n return $token;\n}", "public function getCookie($name)\n {\n\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function getName()\n {\n return $this->get(self::_NAME);\n }", "public function get()\n {\n return $this->cookieManager->getCookie(self::COOKIE_NAME);\n }", "public function getCookie()\n {\n return $this->cookie;\n }", "public function getCookie() {\n return $this->cookie;\n }", "static public function get_username()\n\t{\n\t\tif (isset($_SESSION[self::$cookie_name_prefix .self::USERNAME]))\n\t\t\treturn $_SESSION[self::$cookie_name_prefix .self::USERNAME];\n\t\telse\n\t\t\treturn null;\n\t}", "function get_unique_cookie_name()\n{\n $site_url = get_bloginfo('url');\n $site_name = get_bloginfo('name');\n $suffix = '-saved-cookie';\n\n $cookie_name = $site_url . $site_name . $suffix;\n\n // Now let's strip everything\n $cookie_name = str_replace(array('[\\', \\']'), '', $cookie_name);\n $cookie_name = preg_replace('/\\[.*\\]/U', '', $cookie_name);\n $cookie_name = preg_replace('/&(amp;)?#?[a-z0-9]+;/i', '-', $cookie_name);\n $cookie_name = htmlentities($cookie_name, ENT_COMPAT, 'utf-8');\n $cookie_name = preg_replace('/&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);/i', '\\\\1', $cookie_name);\n $cookie_name = preg_replace(array('/[^a-z0-9]/i', '/[-]+/'), '-', $cookie_name);\n $cookie_name = strtolower(trim($cookie_name, '-'));\n\n return $cookie_name;\n}", "public function name()\n {\n return $this->getFromCache(\n ['type' => 'name']\n );\n }", "function myGetcookie($name){\r\n\t\tif(isset($_COOKIE[$name])){\r\n\t\t\treturn urldecode($_COOKIE[$name]);\r\n\t\t}else{\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public static function get($name)\n\t{\n\t\treturn isset($_COOKIE[$name]) ? $_COOKIE[$name] : null;\n\t}", "public function get($cookieName);", "public function getRememberTokenName()\n {\n \treturn 'remember_token';\n }", "function cookie(string $name, $default = null)\n\t\t{\n\t\t\treturn request()->getCookies()->get($name, $default);\n\t\t}", "public function getCookies($name = '') {\n if($name) {\n return isset($this->cookies[$name]) ? $this->cookies[$name] : '';\n }\n else {\n return $this->cookies;\n }\n }", "public function getCookie($name)\n\t{\n\t\treturn $this->cookies->get($name);\n\t}", "public function getCookie($name){\n if(isset($this->cookie[$name])){\n return $this->cookie[$name];\n }else{\n return null;\n }\n }", "public function getName() {\n return ($this->isInit()) ? $this->name : null;\n }", "public function getName()\n {\n return $this->get(self::NAME);\n }", "public function getName()\n {\n return $this->get(self::NAME);\n }", "public function get_cookie($name) {\n if (isset($this->_cookies[$name])) {\n return $this->_cookies[$name];\n } else {\n return false;\n }\n }", "public function getName() {\n return $this->get(self::NAME);\n }", "public function getName() {\n return $this->get(self::NAME);\n }", "public function getName() {\n return $this->get(self::NAME);\n }", "public function getRememberTokenName(): ?string;", "public function getRememberTokenName()\n\t{\n\t\treturn 'remember_token';\n\t}", "public function getRememberTokenName()\n\t{\n\t\treturn 'remember_token';\n\t}", "public function getRememberTokenName()\n\t{\n\t\treturn 'remember_token';\n\t}", "public function getRememberTokenName()\n\t{\n\t\treturn 'remember_token';\n\t}", "public function getRememberTokenName()\n\t{\n\t\treturn 'remember_token';\n\t}", "function get_name() {\n\t\treturn $this->get_name_from_vtec();\t\n\t}", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "public function get_name() {\n\n\t\treturn $this->name;\n\t}", "protected static function _getName()\n {\n return isset(static::$_name) ? static::$_name : get_called_class();\n }", "function getARCcookie($name)\n{\n\t$ret = '';\n\n\tif(isset($_COOKIE['ARC_' . $name]))\n\t\t$ret = encode($_COOKIE['ARC_' . $name]);\n\n\treturn $ret;\n}", "public function name()\n\t{\n\t\treturn $this->get($this->meta()->name_key);\n\t}", "public function getName(): string\n {\n return $this->account->account_name ?? '';\n }", "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "public function getRememberTokenName()\n {\n return 'rememberToken';\n }", "public function getRememberTokenName()\n {\n return 'net_id';\n }", "public function get(string $name)\n {\n if (! isset($this->cookies[$name])) {\n return null;\n }\n\n return $this->cookies[$name];\n }", "protected function getName()\n {\n return $this->getRequest()->args('name') ?: $this->profile->code . '_' . $this->tpl['name'];\n }", "final public function getName()\n\t{\n\t\treturn $this->name;\n\t}", "public function key() \n {\n return key($_COOKIE);\n }" ]
[ "0.92554116", "0.9254728", "0.8819042", "0.7998214", "0.7960031", "0.74162877", "0.7229235", "0.7213849", "0.7166113", "0.71486783", "0.69835204", "0.69835204", "0.69835204", "0.69835204", "0.6960257", "0.6960257", "0.6902071", "0.6898865", "0.6864579", "0.6853057", "0.6844214", "0.6822641", "0.6820067", "0.6801982", "0.680166", "0.68009055", "0.6789058", "0.67817295", "0.6761991", "0.6752004", "0.672082", "0.67124826", "0.6684541", "0.6683847", "0.6662547", "0.6643536", "0.6643536", "0.6631384", "0.66227186", "0.66227186", "0.66227186", "0.65640944", "0.65640944", "0.6552136", "0.65248084", "0.65158397", "0.6490404", "0.64871895", "0.64871895", "0.64871895", "0.64871895", "0.64871895", "0.64871895", "0.64871895", "0.6475428", "0.6440095", "0.6422303", "0.63989216", "0.6389493", "0.6375948", "0.6363096", "0.6358571", "0.63438135", "0.6334472", "0.6325467", "0.63135535", "0.6305183", "0.6300733", "0.6300639", "0.6293413", "0.6293413", "0.6291751", "0.62896746", "0.62896746", "0.62896746", "0.6283581", "0.6280627", "0.6280627", "0.6280627", "0.6280627", "0.6280627", "0.625737", "0.6251227", "0.6251227", "0.6251227", "0.6251227", "0.6246661", "0.6228624", "0.6223021", "0.6222734", "0.6204611", "0.61984694", "0.61984694", "0.61984694", "0.6187038", "0.61841065", "0.61724913", "0.61705947", "0.616856", "0.6168489" ]
0.8459908
3
Determines which locale to use, based on a cookie
public function getLocale(LocaleManager $manager) { $request = $this->getRequest(); if (!$request) { if ($this->log) { $this->log->logDebug('Can\'t determine locale from cookie because there is no request', null, self::LOG_SOURCE); } return null; } elseif ($request->getBasePath() != '/') { if ($this->log) { $this->log->logDebug('Can\'t determine locale from cookie because we are not on the site root', null, self::LOG_SOURCE); } return null; } $locale = $request->getCookie($this->getCookieName()); if (!$locale) { if ($this->log) { $this->log->logDebug('Can\'t determine locale from cookie because there is none', null, self::LOG_SOURCE); } return null; } if ($manager->hasLocale($locale)) { if ($this->log) { $this->log->logDebug('Loaded locale from cookie', $locale, self::LOG_SOURCE); } return $manager->getLocale($locale); } if ($this->log) { $this->log->logDebug('No available locale in cookie', $locale, self::LOG_SOURCE); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCookieLocale()\n {\n return $this->request->cookie('locale');\n }", "function determine_locale()\n {\n }", "public static function locale() : string\n {\n // Compute the locale just one time\n if (self::$locale) {\n return self::$locale;\n }\n\n // Lang in cookies\n $locale = self::langToLocale($_COOKIE['NameYourGoat_User_Locale'] ?? '');\n\n // Lang in User repository\n if (! $locale && self::isAuth()) {\n $locale = self::langToLocale(self::$fullUser->lang);\n }\n\n // Lang in the request headers\n if (! $locale) {\n $acceptLang = explode(',', getallheaders()['Accept-Language'] ?? '');\n\n foreach ($acceptLang as $lang) {\n if ($locale = self::langToLocale(trim(strtok($lang, '-;')))) {\n break;\n }\n }\n }\n\n return self::$locale = $locale ?: self::$defaultLocale;\n }", "function getLocale();", "public function getLocale();", "public function getLocale();", "public function getLocale() {}", "function setWpLocale($lang) {\n\t$localLocale = $_COOKIE['dk_locale'];\n\t$currentSite = get_current_blog_id();\n\t$siteDetail = get_blog_details($currentSite);\n\n\tif ($localLocale == 'en_CA' || $currentSite == '3') {\n\t\t$val = 'en_CA';\n\t\theader( 'Location: '. $siteDetail->siteurl);\n\t\tsetcookie(\"dk_locale\", $val, time()+3600*24);\n\t\tsetlocale(LC_MONETARY, $val);\n\n\t\treturn $val;\n\t} else if($localLocale == 'fr_CA' || $currentSite == '2') {\n\t\t$val = 'fr_CA';\n\t\theader( 'Location: '. $siteDetail->siteurl);\n\t\tsetcookie(\"dk_locale\", $val, time()+3600*24);\n\t\tsetlocale(LC_MONETARY, $val);\n\n\t\treturn $val;\n\t} else {\n\t\tsetcookie(\"dk_locale\", $lang, time()+3600*24);\n\t\tsetlocale(LC_MONETARY, $lang);\n\t\treturn $lang;\n\t}\n\t\n}", "private static function getLanguage()\n {\n if (isset($_COOKIE[\"language\"]))\n {\n return $_COOKIE[\"language\"];\n }\n else\n {\n // Default is Czech\n return \"cs\";\n }\n }", "function getLang() {\n\tif (request()->cookie(config('translate.su_cookie_name'))) {\n\t\t$cookie = request()->cookie(config('translate.su_cookie_name'));\n\t} else {\n\t\tif (request()->cookie(config('translate.cookie_name'))) {\n\t\t\t$cookie = request()->cookie(config('translate.cookie_name'));\n\t\t} else {\n\t\t\tif (substr(request()->server('HTTP_ACCEPT_LANGUAGE'), 0, 2)) {\n\t\t\t\t$cookie = substr(request()->server('HTTP_ACCEPT_LANGUAGE'), 0, 2);\n\t\t\t} else {\n\t\t\t\t$cookie = config('translate.default_locale');\n\t\t\t}\n\t\t}\n\t}\n\treturn $cookie;\n}", "function getDefaultLocale();", "public function getLocale(): string;", "public function getLocale(): string;", "public function getLocale(): string;", "function get_locale(): string\n{\n $locale = \\Locale::acceptFromHttp(input_server('HTTP_ACCEPT_LANGUAGE'));\n if (!$locale) {\n $locale = 'en_US';\n }\n return $locale;\n}", "protected function _extractLanguage() {\n // Default lanuage is always Lao\n $lang = 'lo';\n\n // Set the cookie name\n //$this->Cookie->name = '_osm_la';\n //echo $this->response->cookie(\"_osm_la\");\n \n // First check if the language parameter is set in the URL. The URL\n // parameter has first priority.\n $paramLang = $this->request->query(\"lang\");\n if (isset($paramLang)) {\n // Check if the URL parameter is a valid language identifier\n if (array_key_exists($paramLang, $this->_languages)) {\n // Set the language to the URL parameter\n $lang = $paramLang;\n }\n } else if ($this->Cookie->read($this->_languageCookie) != null) {\n // Check if a cookie is set and set its value as language. A Cookie\n // has second priority\n $cookieValue = $this->Cookie->read($this->_languageCookie);\n // Check if the URL parameter is a valid language identifier\n if (array_key_exists($cookieValue, $this->_languages)) {\n // Set the language to the Cookie value\n $lang = $cookieValue;\n }\n }\n\n // If neither the lang parameter nor a cookie is set, set and return\n // Lao as language.\n //$this->log(var_dump($this));\n //$this->response->cookie($this->_languageCookie => $lang ]);\n return $lang;\n }", "public function locale();", "public static function getUserLocale()\n {\n $lang_id = Auth::user()->lang_id;\n $locale = ($lang_id == 1) ? 'en' : 'ar';\n Session::put('locale', $locale);\n return $locale;\n }", "function get_user_locale($user = 0)\n {\n }", "function acf_get_locale()\n{\n}", "public function getCurrentOrDefaultLocale();", "public function getCookieLanguage()\n {\n return isset($_COOKIE['lang']) ? $_COOKIE['lang'] : null;\n }", "protected function getLocale()\n {\n @session_start();\n return isset($_SESSION['varaa_locale'])\n ? $_SESSION['varaa_locale']\n : $this->config('app.locale');\n }", "private function get_language ()\n {\n $lang = filter_input ( INPUT_COOKIE, 'lang', FILTER_CALLBACK, [ 'options' => [ $this, 'filter_lang' ] ] );\n\t$new_lang = filter_input ( INPUT_GET, 'lang', FILTER_CALLBACK, [ 'options' => [ $this, 'filter_lang' ] ] );\n\tif ( $new_lang ) {\n\t\t$lang = $new_lang;\n\t\tsetcookie( \"lang\", substr ( $lang, 0, 2 ), time() + 3600 * 24 * 365, '/' );\n\t}\n\t\n\treturn $lang ?? 'uk';\n }", "public static function ru(){\n setcookie('language', 'ru', time()+60);\n }", "public function getDefaultLocale();", "function switch_to_locale($locale)\n {\n }", "public function getLocale()\n {\n return $this->_getVar('user_locale');\n }", "protected function _set_client_language()\n\t{\n\t\t$code = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);\n\t\t$lang = $this->find_by('code', $code);\n\t\t$lang OR $lang = $this->default;\n\t\treturn $lang;\n\t}", "public static function en(){\n setcookie('language', 'en', time()+60);\n }", "abstract public function getLocaleCode();", "public function getLocale(): ?string;", "public function getLocale(): ?string;", "protected function _getDefaultLanguage()\n {\n \t$config = $this->getOptions();\n $languageList = array_keys($config['languages']);\n\n\n \t$defaultLanguage= '';\n \tif (array_key_exists('language', $_COOKIE)) {\n \t\t$defaultLanguage = $_COOKIE['language'];\n \t} else {\n \t$zl = new Zend_Locale();\n \t$defaultLanguage = $zl->getLanguage();\n \t}\n\n $defaultLanguage = in_array($defaultLanguage, $languageList)? $defaultLanguage: 'en';\n\n return $defaultLanguage;\n }", "public static function locale(): string\n {\n // in the end to handle that case\n return Arr::get(config('currencies'), strtolower(static::currency()).'.locale', 'en_US') ?? 'en_US';\n }", "abstract public function getLocaleName();", "function default_locale()\n{\n return Config::getDefaultLocale();\n}", "function get_locale() {\n \n global $CONF;\n \n if( isset( $CONF ) ) {\n \t\t$supported_languages\t\t= $CONF['supported_languages'];\n } else {\n \t\t$supported_languages\t\t= array ('de', 'de_DE', 'en', 'en_US');\t\n }\n \n $lang_array \t\t\t\t\t\t= preg_split ('/(\\s*,\\s*)/', $_SERVER['HTTP_ACCEPT_LANGUAGE']);\n \n if (is_array ($lang_array)) {\n \n $lang_first \t\t\t\t\t= strtolower ((trim (strval ($lang_array[0]))));\n $lang_parts\t\t\t\t\t= explode( '-', $lang_array[0] );\n $count\t\t\t\t\t\t= count( $lang_parts );\n if( $count == 2 ) {\n \t\n \t\t$lang_parts[1]\t\t\t= strtoupper( $lang_parts[1] );\n \t\t$lang_first\t\t\t\t= implode( \"_\", $lang_parts );\n }\n \n if (in_array ($lang_first, $supported_languages)) {\n \n $lang \t\t\t\t\t\t= $lang_first;\n \n } else {\n \n $lang \t\t\t\t\t\t= $CONF['default_locale'];\n \n }\n \n } else {\n \n $lang\t\t\t\t\t\t\t = $CONF['default_locale'];\n \n }\n \n return $lang;\n}", "function setLanguage() {\n\t\tif(isset($_GET['lang'])) {\n\t\t\t$language = $this->getLanguageFileName($_GET['lang']);\n\t\t} elseif(isset($_COOKIE['lang'])) {\n\t\t\t$language = $this->getLanguageFileName($_COOKIE['lang']);\n\t\t} else {\n\t\t\t$language = $this->getLanguageFileName('en-us');\n\t\t}\n\n\t\t//Sets the language cookie for 30 days\n\t\tsetcookie('lang', $language['meta'], time() + 60 * 60 * 24 * 30, '/');\n\n\t\treturn $language;\n\t}", "public static function current_locale(){\n $locale = Controller::curr()->getRequest()->getVar('Locale') ?: '';\n\n if (!$locale) $locale = Controller::curr()->getRequest()->getVar('locale') ?: '';\n\n if ($locale) return $locale;\n\n $class = self::config()->class;\n $localisation = new $class();\n return $localisation->current_locale();\n }", "public function getTargetLocale();", "public function settingLocale() {}", "public function get_browser_locale($default = 'en-us') {\n if (\n !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && \n preg_match('/^[a-z-]+$/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'])\n ) {\n return strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']);\n }\n return $default;\n }", "function getLocale() {\n\t\tif ( !$this->getParam(self::PARAM_REQUEST_LOCALE) ) {\n\t\t\t$this->setLocale();\n\t\t}\n\t\treturn $this->getParam(self::PARAM_REQUEST_LOCALE);\n\t}", "function get_lang_locale() {\n\tglobal $lang_code;\n\t$localeMap = array(\n\t\t'ca' => 'ca_ES',\n\t\t'cs' => 'cs_CZ',\n\t\t'cy' => 'cy_GB',\n\t\t'da' => 'da_DK',\n\t\t'de' => 'de_DE',\n\t\t'eu' => 'eu_ES',\n\t\t'en' => 'en_US',\n\t\t'es' => 'es_ES',\n\t\t'fi' => 'fi_FI',\n\t\t'fr' => 'fr_FR',\n\t\t'gl' => 'gl_ES',\n\t\t'hu' => 'hu_HU',\n\t\t'it' => 'it_IT',\n\t\t'ja' => 'ja_JP',\n\t\t'ko' => 'ko_KR',\n\t\t'nb' => 'nb_NO',\n\t\t'nl' => 'nl_NL',\n\t\t'pl' => 'pl_PL',\n\t\t'pt' => 'pt_BR',\n\t\t'ro' => 'ro_RO',\n\t\t'ru' => 'ru_RU',\n\t\t'sk' => 'sk_SK',\n\t\t'sl' => 'sl_SI',\n\t\t'sv' => 'sv_SE',\n\t\t'th' => 'th_TH',\n\t\t'tr' => 'tr_TR',\n\t\t'ku' => 'ku_TR',\n\t\t'zh_CN' => 'zh_CN',\n\t\t'zh_TW' => 'zh_TW',\n\t\t'af' => 'af_ZA',\n\t\t'sq' => 'sq_AL',\n\t\t'hy' => 'hy_AM',\n\t\t'az' => 'az_AZ',\n\t\t'be' => 'be_BY',\n\t\t'bs' => 'bs_BA',\n\t\t'bg' => 'bg_BG',\n\t\t'hr' => 'hr_HR',\n\t\t'eo' => 'eo_EO',\n\t\t'et' => 'et_EE',\n\t\t'fo' => 'fo_FO',\n\t\t'ka' => 'ka_GE',\n\t\t'el' => 'el_GR',\n\t\t'hi' => 'hi_IN',\n\t\t'is' => 'is_IS',\n\t\t'id' => 'id_ID',\n\t\t'ga' => 'ga_IE',\n\t\t'jv' => 'jv_ID',\n\t\t'kk' => 'kk_KZ',\n\t\t'la' => 'la_VA',\n\t\t'lv' => 'lv_LV',\n\t\t'lt' => 'lt_LT',\n\t\t'mk' => 'mk_MK',\n\t\t'mg' => 'mg_MG',\n\t\t'ms' => 'ms_MY',\n\t\t'mt' => 'mt_MT',\n\t\t'mn' => 'mn_MN',\n\t\t'ne' => 'ne_NP',\n\t\t'rm' => 'rm_CH',\n\t\t'sr' => 'sr_RS',\n\t\t'so' => 'so_SO',\n\t\t'sw' => 'sw_KE',\n\t\t'tl' => 'tl_PH',\n\t\t'uk' => 'uk_UA',\n\t\t'uz' => 'uz_UZ',\n\t\t'vi' => 'vi_VN',\n\t\t'zu' => 'zu_ZA',\n\t\t'ar' => 'ar_AR',\n\t\t'he' => 'he_IL',\n\t\t'ur' => 'ur_PK',\n\t\t'fa' => 'fa_IR',\n\t\t'sy' => 'sy_SY',\n\t\t'gn' => 'gn_PY'\n\t);\n\treturn (check_value($localeMap[$lang_code])) ? $localeMap[$lang_code] : 'en_US';\n}", "static function getLocale() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_LOCALE);\n\t}", "public function getLocale()\n {\n return 'en';\n }", "function site_locale($locale = null)\n{\n if ($locale) {\n return config(['app.locale' => $locale]);\n }\n\n return config('app.locale');\n}", "public function locale($request)\n {\n return $request->input('locale');\n }", "public function locale(string $locale = null);", "function getlang() {\n $cooklang = $_COOKIE['cooklang'];\n $accept = $_SERVER['HTTP_ACCEPT_LANGUAGE'];\n $lang = $_GET['lang'];\n $dirlang = getdirlang();\n\n if (!isset ($lang)) {\n /* no language selection in http request */\n\n \n if (isset($dirlang)) {\n /* Language taken from path e.g., /fr/index.php -> fr */\n $lang = $dirlang;\n } else if (isset($cooklang)) {\n /* Language taken from cookie */\n $lang = $cooklang;\n } else {\n /* not even a cookie. Choose from http_accept_language --REWRITE this part!-- */\n/* while (\n empty($lang) &&\n preg_match('([a-z][a-z](-[A-Z][A-Z])?)', $accept, $res)\n ) {\n $lang = $res[1];\n $accept = ereg_replace(\"$lang\", '', $accept);\n } */\n }\n }\n\n if (!isset($lang) || !file_exists(BASEDIR . $lang . '/index.php')) {\n /* Use English as default */\n $lang = 'en';\n }\n\n /* Set the cookie only for the default path / but not e.g., /fr/ */\n if (!isset($dirlang))\n setcookie('cooklang', $lang, time() + 31536000);\n\n return $lang;\n}", "protected function _getLanguageForLocale()\n {\n $locale = $this->worldpayhelper->getLocaleDefault();\n if (substr($locale, 3, 2) == 'NO') {\n return 'no';\n }\n return substr($locale, 0, 2);\n }", "public function getLocale() {\n\t\treturn $this->getParameter('app_locale');\n\t}", "public function getLocale()\n {\n return $this->getParameter('locale');\n }", "public static function localeCookie(string $locale) : void\n {\n setcookie('NameYourGoat_User_Locale', self::langToLocale($locale), time() + 3600*24*30, '/');\n }", "public function autodetectLocale()\n {\n if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {\n $this->setDefault(\\Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']));\n }\n\n return $this->_currentLocale;\n }", "public static function getLang(){\n\t\tif(!isset(self::$_config['lang'])) return null;\n\t\telse return $_COOKIE['lang'];\n\t}", "function getLocale() {\n\t\treturn $this->getData('locale');\n\t}", "function _get_default_locale($locale)\r\n\t{\r\n\t\tif ($locale == '') // emulate variable support\r\n\t\t\treturn getenv('LANG');\r\n\t\telse\r\n\t\t\treturn $locale;\r\n\t}", "function getCurrentLanguage() {\n if(strtolower($_SERVER['HTTP_HOST'][0].$_SERVER['HTTP_HOST'][1]) == \"en\") {\n return \"en\";\n }\n return \"cs\";\n}", "static function getDefaultLocale()\r\n {\r\n return self::$defaultLocale;\r\n }", "public function get_switched_locale()\n {\n }", "public static function getLocale()\n {\n $locale = Auth::check() ? Auth::user()->locale : null;\n if (! $locale) {\n $locale = LanguageDetector::detect() ?: config('app.locale');\n }\n\n return $locale;\n }", "public function getLocale()\n {\n return $this->parameters['hipay.locale'];\n }", "function yourls_get_locale() {\n\tglobal $yourls_locale;\n\n\tif ( !isset( $yourls_locale ) ) {\n\t\t// YOURLS_LANG is defined in config.\n\t\tif ( defined( 'YOURLS_LANG' ) )\n\t\t\t$yourls_locale = YOURLS_LANG;\n\t}\n\n if ( !$yourls_locale )\n $yourls_locale = '';\n\n\treturn yourls_apply_filter( 'get_locale', $yourls_locale );\n}", "public function getLocale(): string\n {\n return $this->locale;\n }", "public function getLocale(): string\n {\n return $this->locale;\n }", "function default_lang()\n {\n $browser_lang = !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? strtok(strip_tags($_SERVER['HTTP_ACCEPT_LANGUAGE']), ',') : '';\n $browser_lang = substr($browser_lang, 0,2);\n if(array_key_exists($browser_lang, $this->languages))\n return $browser_lang;\n else{\n reset($this->languages);\n return key($this->languages);\n }\n }", "private function _getCurrencyByCookie(): string\n {\n $currency = 'USD';\n if ($_COOKIE['lang'] === 'es_es' && $_COOKIE['currency'] == 'EUR' && $_COOKIE['country'] === 'spain') {\n $currency = 'EUR';\n }\n\n return $currency;\n }", "function common_current_language(){\r\n\tif($_SESSION['lang'] == 'id'){\r\n\t\treturn 'Bahasa Indonesia';\r\n\t}\r\n\telse if($_SESSION['lang'] == 'en'){\r\n\t\treturn 'English';\r\n\t}\r\n}", "function getLocale() {\n\t\t\t$ret = $this->locale;\n\t\t\treturn $ret;\n\t\t}", "function is_locale_switched()\n {\n }", "public function getUserLocale() {\n return $this->userLocale;\n }", "function edds_get_stripe_checkout_locale() {\n\treturn apply_filters( 'edd_stripe_checkout_locale', 'auto' );\n}", "protected function get_locale() {\n\t\t\tif(!is_null($this->i18n_locale)) {\n\t\t\t\treturn $this->i18n_locale;\n\t\t\t} elseif($locale = Registry()->locale) {\n\t\t\t\treturn $this->set_locale($locale);\n\t\t\t} else {\n\t\t\t\treturn $this->set_locale(Config()->DEFAULT_LOCALE);\n\t\t\t}\n\t\t}", "public static function getLocale(){\n return \\Illuminate\\Foundation\\Application::getLocale();\n }", "public function preferredLocale()\n {\n return $this->locale;\n }", "public function locale()\n {\n return $this->locale;\n }", "public function getLocale () {\n\t\treturn $this->locale;\n\t}", "function setLocale($locale);", "protected function getLocale()\n {\n return Mage::getStoreConfig('payment/gene_braintree_paypal/locale');\n }", "public function getLocale(): string\n {\n return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_USER_LOCALE);\n }", "function restore_current_locale()\n {\n }", "public static function ja(){\n setcookie('language', 'ja', time()+60);\n }", "function UseDefaultLocale() {\n $array = $this->_readDefaultLocaleInfo();\n if($array == false ||\n !isset($array[\"id\"])) {\n return 'en'; //Earlier versions of Openbiblio only supported English\n }\n else {\n $this->_locale = $array[\"id\"];\n $this->localekey = $array[\"code\"];\n //$this->_charset = $array[\"charset\"];\n $this->_isdefaultlocale = ($array[\"default_flg\"] == \"Y\");\n\t\t$this->_localeDescr = $array[\"description\"];\n return $array[\"id\"]; \n }\n }", "public function getCookieName() {\n return $this->cookieName ? $this->cookieName : '_locale';\n }", "public function getLocale()\n\t{\n\t\treturn $this->locale;\n\t}", "public function getLocale()\n {\n return $this->locale;\n }", "public function getLocale()\n {\n return $this->locale;\n }", "public function getLocale()\n {\n return $this->locale;\n }", "public function getLocale()\n {\n return $this->locale;\n }", "public function getLocale()\n {\n return $this->locale;\n }", "public function getLocale()\n {\n return $this->locale;\n }", "public function getLocale()\n {\n return $this['config']->get('app.locale');\n }", "public function getLocale()\n {\n return $this['config']->get('app.locale');\n }", "protected function locale()\n {\n if (($member = Member::currentUser()) && $member->Locale) {\n return $member->Locale;\n }\n return i18n::get_locale();\n }", "public function getLocaleCode()\n {\n return @$this->_server['HTTP_ACCEPT_LANGUAGE'];\n }", "function httpbl_lang()\n {\n foreach(explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']) as $language)\n { if ($language=='fr') { return 'fr'; } }\n return 'en';\n }", "function _setlocale($category, $locale)\r\n\t{\r\n\t\tglobal $CURRENTLOCALE, $EMULATEGETTEXT;\r\n\t\tif ($locale === 0) { // use === to differentiate between string \"0\"\r\n\t\t\tif ($CURRENTLOCALE != '')\r\n\t\t\t\treturn $CURRENTLOCALE;\r\n\t\t\telse\r\n\t\t\t// obey LANG variable, maybe extend to support all of LC_* vars\r\n\t\t\t// even if we tried to read locale without setting it first\r\n\t\t\t\treturn _setlocale($category, $CURRENTLOCALE);\r\n\t\t} else {\r\n\t\t\tif (function_exists('setlocale')) {\r\n\t\t\t\t$ret = setlocale($category, $locale);\r\n\t\t\t\tif (($locale == '' and !$ret) or // failed setting it by env\r\n\t\t\t\t\t($locale != '' and $ret != $locale)) { // failed setting it\r\n\t\t\t\t\t// Failed setting it according to environment.\r\n\t\t\t\t\t$CURRENTLOCALE = _get_default_locale($locale);\r\n\t\t\t\t\t$EMULATEGETTEXT = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$CURRENTLOCALE = $ret;\r\n\t\t\t\t\t$EMULATEGETTEXT = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// No function setlocale(), emulate it all.\r\n\t\t\t\t$CURRENTLOCALE = _get_default_locale($locale);\r\n\t\t\t\t$EMULATEGETTEXT = 1;\r\n\t\t\t}\r\n\t\t\t// Allow locale to be changed on the go for one translation domain.\r\n\t\t\tglobal $text_domains, $default_domain;\r\n\t\t\tif (array_key_exists($default_domain, $text_domains)) {\r\n\t\t\t\tunset($text_domains[$default_domain]->l10n);\r\n\t\t\t}\r\n\t\t\treturn $CURRENTLOCALE;\r\n\t\t}\r\n\t}", "function getFallbackLocale()\n {\n return config('app.fallback_locale');\n }" ]
[ "0.7601724", "0.7315246", "0.7267676", "0.72163224", "0.71592724", "0.71592724", "0.7078723", "0.7017058", "0.69955224", "0.69869787", "0.68518895", "0.68371874", "0.68371874", "0.68371874", "0.67961866", "0.6768134", "0.67644763", "0.67201126", "0.6673277", "0.66559327", "0.6606699", "0.65570235", "0.6550907", "0.6516106", "0.64935756", "0.6476359", "0.64611626", "0.64567065", "0.6445684", "0.64141774", "0.64036727", "0.6398279", "0.6398279", "0.6387731", "0.6372741", "0.6371571", "0.6363975", "0.63638264", "0.6339445", "0.633592", "0.6318656", "0.6315105", "0.6311534", "0.6300072", "0.62973154", "0.628939", "0.6249107", "0.62486804", "0.62215036", "0.62181276", "0.6204187", "0.6198593", "0.61979026", "0.6194882", "0.61939836", "0.61896676", "0.61873555", "0.617777", "0.6167559", "0.61636645", "0.6159202", "0.615704", "0.61517835", "0.6150341", "0.6138739", "0.6116903", "0.6116903", "0.61159754", "0.6115875", "0.6098223", "0.6095727", "0.60702276", "0.60692585", "0.60672235", "0.6066742", "0.60579485", "0.6042447", "0.60415304", "0.6041377", "0.60413647", "0.60372776", "0.6037213", "0.60356843", "0.6030943", "0.6021792", "0.60108083", "0.6008828", "0.599997", "0.599997", "0.599997", "0.599997", "0.599997", "0.599997", "0.59949976", "0.59949976", "0.5994502", "0.59907496", "0.5979377", "0.59698415", "0.5969355" ]
0.60334396
83
Get the value of status
public function getStatus() { return $this->status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatus()\n {\n return $this->data['status'];\n }", "function getStatus() {\n\t\treturn $this->getData('status');\n\t}", "function get_status() {\n return $this->status;\n }", "public function get_status(){\n return $this->status;\n }", "public function get_status() {\n return $this->status;\n }", "public function getStatus(){\n\t\treturn $this->status;\n\t}", "public function get_status() {\n return $this->_status;\n }", "public function getStatus()\n {\n return $this->getData('status');\n }", "public function getStatus()\n {\n return $this->get(self::STATUS);\n }", "public function getStatus()\r\n {\r\n return $this->status;\r\n }", "public function getStatus()\r\n {\r\n return $this->status;\r\n }", "public function getStatus()\n {\n $rtn = $this->data['status'];\n\n return $rtn;\n }", "public function getStatus() {\n return $this->status;\n }", "public function getStatus() {\n return $this->status;\n }", "public function getStatus()\n {\n return $this->get(self::_STATUS);\n }", "public function getStatus()\n {\n return $this->get(self::_STATUS);\n }", "public function getStatus()\n {\n return $this->get(self::_STATUS);\n }", "public function getStatus()\n {\n return $this->get(self::_STATUS);\n }", "public function getStatus()\n\t{\n\t\treturn $this->status; \n\n\t}", "function getStatus() {\n return $this->status;\n }", "public function get(): int {\n return $this->status;\n }", "public function getStatus()\n {\n return $this->getIfSet('status');\n }", "public function getStatus() \n\t{\n\t\treturn $this->status;\n\t}", "public function getStatus() \n\t{\n\t\treturn $this->status;\n\t}", "function getStatus()\n {\n return $this->status;\n }", "public function getStatus() {\n return $this->status;\n }", "public function getStatus()\r\n\t\t{\r\n\t\t\treturn $this->status;\r\n\t\t}", "public function getStatus() {\n\t\treturn $this->status;\n\t}", "public function getStatus() {\n\t\treturn $this->status;\n\t}" ]
[ "0.8364771", "0.8352938", "0.83477443", "0.82749325", "0.82595927", "0.8194055", "0.81829715", "0.8165453", "0.81583846", "0.81570524", "0.81570524", "0.8132857", "0.81237364", "0.81237364", "0.811998", "0.811998", "0.811998", "0.811998", "0.8118182", "0.80684453", "0.80630314", "0.8061981", "0.8056601", "0.8056601", "0.8051127", "0.8045042", "0.8041068", "0.80224", "0.80224" ]
0.8070775
81
Get the value of refNo
public function getRefNo() { return $this->refNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRefNo()\n {\n return $this->ref_no;\n }", "public function getRefNumber()\n\t{\n\t\treturn $this->get('RefNumber');\n\t}", "public function getReferenceNum()\n {\n return $this->referenceNum;\n }", "public function getReferenceNumber()\n {\n return $this->referenceNumber;\n }", "public function getReferenceNumber()\n\t{\n\t return $this->referenceNumber;\n\t}", "public function getRefId()\n {\n return $this->refId;\n }", "public function getRecno()\n {\n return $this->recno;\n }", "public function getRef()\n {\n return $this->ref;\n }", "public function getCustref()\n {\n return $this->custref;\n }", "public function getRef()\n {\n return $this->_ref;\n }", "public function getCustomerReferenceNumber()\n {\n return isset($this->CustomerReferenceNumber) ? $this->CustomerReferenceNumber : null;\n }", "public function getReference() {\n\t\treturn $this->ref;\n\t}", "public function getRef() {\n return $ref;\n }", "public function getRef(string $ref): mixed;", "public function getAccNo()\n {\n return $this->acc_no;\n }", "public function get() {\n return $this->number;\n }", "public function getRef1() {\n return $this->_ref1;\n }", "public function getReceiptNo()\n {\n return $this->receipt_no;\n }", "public function get_reference() {\n return $this->reference;\n }", "function getNum()\n {\n return $this->num;\n }", "public function getReference(){\n return $this->reference;\n }", "protected function _fcpoCheckRefNr() \n {\n $oPORequest = $this->_oFcpoHelper->getFactoryObject('fcporequest');\n $sSessRefNr = $oPORequest->getRefNr(false, true);\n $sRequestRefNr = $this->_oFcpoHelper->fcpoGetRequestParameter('refnr');\n\n $blValid = ($sRequestRefNr == $sSessRefNr);\n\n if ($blValid) return '';\n\n $this->_oFcpoHelper->fcpoDeleteSessionVariable('fcpoRefNr');\n $oLang = $this->_oFcpoHelper->fcpoGetLang();\n $sReturn = $oLang->translateString('FCPO_MANIPULATION');\n\n return $sReturn;\n }", "public function getReference()\r\n {\r\n return $this->reference;\r\n }", "public function getSequence_no()\n {\n return $this->sequence_no;\n }", "public function getRefId() : ?string\n {\n return $this->refId;\n }", "public static function genRefNum()\n {\n $strvalue = self::shuffleString(\"abcdefghijklmnopqrstuvwxyz1234567890\");\n\n $str_alph = substr(uniqid($strvalue),0,8);\n\n $today = date(\"Ymd\");\n $rand = strtoupper(substr(uniqid(sha1(time())),0,4));\n $ref_number = strtoupper($today . $rand . $str_alph);\n //dd($ref_number);\n return $ref_number;\n }", "public function get_number() { return $this->getCode(); }", "public function getReference():string\n {\n return $reference;\n }", "public function getRef() {\r\n\t\tif (!$this->ref) {\r\n\t\t\tthrow new Exception('No reference defined.');\r\n\t\t}\t\t\r\n\t\tif (!array_key_exists($this->ref, self::$global)) {\r\n\t\t\tthrow new Exception('Could not find reference \"'.$this->ref.'\".');\r\n\t\t}\r\n\t\treturn self::$global[$this->ref];\r\n\t}", "function makeRef($ota){\n $ref = '';\n $ref = $ota->NPOSNR.'-'.$ota->NJOURNALNR.'-'.$ota->NSERIALNR.'-'.$ota->NPROJNR;\n return $ref;\n }", "public function getNum()\n {\n return $this->num;\n }", "public function getNum()\n {\n return $this->num;\n }", "public function getReference()\n {\n return $this->reference;\n }", "public function getReference()\n {\n return $this->reference;\n }", "public function getReference()\n {\n return $this->reference;\n }", "public function getReference()\n {\n return $this->reference;\n }", "public function getOrderno()\n {\n return $this->orderno;\n }", "public function getModelRefProperty()\n {\n return $this->modelRefField;\n }", "public function get_number()\n\t{\n\t\treturn $this->number;\n\t}", "public function getReference() {\n return $this->reference;\n }", "public function getTransactionReference()\n {\n if(isset($this->data['properties'])) {\n $properties = $this->data['properties'];\n $paymentIdProperty = array_filter($properties, function ($item) {\n return $item['name'] === 'PAYMENT_ID';\n });\n if (isset($paymentIdProperty[0]['value'])) {\n return (string)$paymentIdProperty[0]['value'];\n }\n };\n\n return null;\n }", "public function getPaymentReference() {\n return isset($this->data['charge']['id']) ? $this->data['charge']['id'] : false;\n }", "public function getReferenceIdentifier();", "public function getInvoiceNo()\n {\n return $this->invoice_no;\n }", "public function getNextNumRef($soc)\n {\n global $db, $langs, $conf;\n $langs->load(\"orders\");\n\n if (! empty($conf->global->COMMANDE_SUPPLIER_ADDON_NUMBER))\n {\n $mybool = false;\n\n $file = $conf->global->COMMANDE_SUPPLIER_ADDON_NUMBER.'.php';\n $classname=$conf->global->COMMANDE_SUPPLIER_ADDON_NUMBER;\n\n // Include file with class\n $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);\n\n foreach ($dirmodels as $reldir) {\n\n $dir = dol_buildpath($reldir.\"core/modules/supplier_order/\");\n\n // Load file with numbering class (if found)\n $mybool|=@include_once $dir.$file;\n }\n\n if ($mybool === false) {\n dol_print_error('', \"Failed to include file \".$file);\n return '';\n }\n\n $obj = new $classname();\n $numref = $obj->getNextValue($soc, $this);\n\n if ( $numref != \"\")\n {\n return $numref;\n }\n else\n\t\t\t{\n $this->error = $obj->error;\n return -1;\n }\n }\n else\n\t\t{\n $this->error = \"Error_COMMANDE_SUPPLIER_ADDON_NotDefined\";\n return -2;\n }\n }", "public function setRefNo($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->ref_no !== $v) {\n $this->ref_no = $v;\n $this->modifiedColumns[KluBillTableMap::COL_REF_NO] = true;\n }\n\n return $this;\n }", "public function getOurReference(): string;", "public function getLicenseReferenceValue(): string\n {\n return $this->value;\n }", "function getReference() {\n return $this->reference;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getShipmentReferenceBarcode()\n {\n return isset($this->shipmentReferenceBarcode) ? $this->shipmentReferenceBarcode : null;\n }", "public function getNumber()\n {\n return $this->_number;\n }", "public function getNumber()\n {\n return $this->_number;\n }", "public function getOrderNo()\n {\n return $this->order_no;\n }", "public function invoiceNumberGet(){\n\t\t$query = $this->db->get(__TBL_INVOICE_NUMBER);\n\t\tif(sizeof($query->row())>0) {\n\t\t\treturn (int)$query->row()->number;\n\t\t} else return false;\n\t}", "public function & getDataRef()\n\t{\n\t\treturn $this->m_data->getDataRef();\n\t}", "public function get_sequence_no() {\n\n\t\treturn $this->sequence_no;\n\t}", "public function GetByRef( $ref ){\n return $this->genericRepository->GetEntityRepository()->findOneBy( array( 'externalReference' => $ref ) );\n }", "function getadvlic_no() {\n return $this->advlic_no;\n }", "public function getMsgref() : string\n {\n return $this->msgref;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function get_relatedDocNo() {\n return $this->relatedDocNo;\n }", "public function getNumber();", "public function getReferenceUuid()\n\t{\n\t\treturn $this->reference_uuid;\n\t}", "public function getSerialNo(): ?string {\n return $this->serialNo;\n }", "function getDiscountDetailByReferenceNo($reference_no) {\n $qry = $this->db->query(\"select * from tbl_discount_applied where reference_no=$reference_no\");\n if($qry->num_rows()){\n $result = current($qry->result_array());\n $result['original_total_price'] = number_format($result['original_total_price'],2,'.','');\n $result['discount'] = number_format($result['discount'],2,'.','');\n $result['total_price'] = number_format($result['total_price'],2,'.','');\n return $result;\n }\n return false;\n }", "public function setRefNumber($value)\n\t{\n\t\treturn $this->set('RefNumber', $value);\n\t}", "public function getPhoneNo() : string\n {\n return $this->phoneNo;\n }", "public function getAccountNo()\n {\n return $this->accountNo;\n }", "function makeRef2($ota){\n $ref = '';\n $ref = $ota->NPOSNO.'-'.$ota->NJOURNALNO.'-'.$ota->NSERIALNO.'-'.$ota->NPROJECTNO;\n return $ref;\n }", "public function getNumber() {\n return $this->number;\n }", "public function getInvoiceNumber();", "function getNumber1() {\n return $this->number1;\n }", "public function getCall_number()\n {\n return $this->call_number;\n }", "public function getPhoneNo()\n {\n return $this->phone_no;\n }", "public function getRegistration_no()\n {\n return $this->registration_no;\n }", "public function getNum()\n {\n return $this->get(self::_NUM);\n }", "public function getTransactionReference()\n {\n foreach (['vpc_MerchTxnRef', 'vpc_TransactionNo'] as $key) {\n if (isset($this->data[$key])) {\n return $this->data[$key];\n }\n }\n }", "public function getNumber() {}", "public function getLineRef()\n {\n return $this->lineRef;\n }", "public function getAppRefNo($confid) {\n $selectAppRefNo = 'select app_ref_no from form_status where application_id = ' . $confid . ' limit 1';\n $resultAppRefNo = $this->getDBRecords($selectAppRefNo);\n return $resultAppRefNo;\n }", "public function getNumber(){\n if ( is_null($this->number) ){\n $number = $this->getTable()->getNextBillingNumber($this->getCourier(), 'rest');\n $this->number = \"R-\".date('y',$this->from).date('m',$this->from).\"-\".$this->getCourier()->getCustomerNr().\"-\".$number;\n }\n return $this->number;\n }", "public function check_refnumber($refno) {\n\n $this->db->select('ref_no');\n $this->db->where('ref_no', $refno);\n $res = $this->db->get('suppliers');\n\n if ($res->num_rows() > 0) {\n return \"1\";\n } else {\n return \"0\";\n }\n }", "public function getBusNo():string\n {\n return $this->busNo;\n }", "public function getNumber()\n {\n return $this->number;\n }", "function getCustomerNo() {\n return $this->customerNo;\n }", "public function getReferenceId(): ?string\n {\n if (count($this->referenceId) == 0) {\n return null;\n }\n return $this->referenceId['value'];\n }", "public function\tgetReferidoInfo(){\r\t\t\r\t\t$model_ref = $this->getModel( 'referido' );\r\t\t$idref = JRequest::getInt( 'idref' );\r\t\t\r\t\t$model_ref->instance( $idref );\r\t\t$inf_ref = $model_ref->getReferidoInf();\r\t\t\r\t\tif( !empty($inf_ref) ){\r\t\t\t\r\t\t\t$model_ref\r\t\t}\r\t\t\r\t}" ]
[ "0.86265594", "0.7839131", "0.739985", "0.7221408", "0.7165935", "0.6869757", "0.6812943", "0.6571384", "0.6518078", "0.65086895", "0.6489569", "0.63803464", "0.6363901", "0.63471174", "0.62540424", "0.61784714", "0.61778224", "0.6172686", "0.61697745", "0.6165419", "0.6154937", "0.6133115", "0.6114929", "0.6112809", "0.6112683", "0.607597", "0.60586286", "0.6051656", "0.6042845", "0.6038428", "0.6029753", "0.6029753", "0.6015254", "0.6015254", "0.6015254", "0.6015254", "0.60120755", "0.6007018", "0.5998852", "0.59734774", "0.59413254", "0.5938498", "0.5914246", "0.5911694", "0.5906705", "0.59059924", "0.59002703", "0.58952296", "0.58870476", "0.588665", "0.5876979", "0.5876138", "0.5876138", "0.58655065", "0.5864985", "0.5861997", "0.585961", "0.5858353", "0.5858215", "0.5857849", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.58526", "0.5844978", "0.58433586", "0.5839536", "0.5838093", "0.5835938", "0.5834851", "0.58217514", "0.5809541", "0.5804794", "0.5798935", "0.57960266", "0.57948536", "0.578832", "0.57848316", "0.5784783", "0.5781602", "0.57786214", "0.577653", "0.57733417", "0.57661015", "0.5759116", "0.5754543", "0.57522124", "0.5743301", "0.5740801", "0.5735087", "0.5730536" ]
0.8580971
2
Get the value of returnCode
public function getReturnCode() { return $this->returnCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusCode()\n {\n return (int) $this->getReturnVal();\n }", "public function getErrorCode(){\n return $this->_section->return_error_code;\n }", "public function getCode()\n\t{\n\t\treturn (int)$this->statusCode;\n\t}", "public function getResultCode()\n {\n return $this->_resultCode;\n }", "public function getResultCode()\n {\n return $this->resultCode;\n }", "public function getCode()\n {\n return curl_getinfo($this->handler)['http_code'];\n }", "public function getReturnCode()\n\t\t{\n\t\t\tif ($this->wasExecuted)\n\t\t\t\treturn $this->returnCode;\n\n\t\t\treturn false;\n\t\t}", "public function getCode(): int\n\t{\n\t\treturn $this->err->getCode();\n\t}", "public function getExitCode()\n {\n return $this->exit_code;\n }", "public function getExitCode()\n {\n return $this->exitCode;\n }", "public function getExitCode()\n {\n return $this->exitCode;\n }", "public function getExitCode()\n {\n return $this->exitCode;\n }", "function searchReturnCode()\t{\n\t\treturn $this->getRandomRetourCode();\n\t}", "public function getCode()\n {\n return $this->response_code;\n }", "public function getResponseCode()\r\n {\r\n return $this->getData('response_code');\r\n }", "public function getStatusCode(): int\n {\n return $this->code ;\n }", "public function getExitCode();", "public function getExitCode();", "public function getExitCode() {}", "public function getCode()\n {\n return ! empty($this->result) ? $this->result->getCode() : NULL;\n }", "public function getRet()\n {\n $value = $this->get(self::RET);\n return $value === null ? (integer)$value : $value;\n }", "public function getRet()\n {\n $value = $this->get(self::RET);\n return $value === null ? (integer)$value : $value;\n }", "public function getStatusCode()\r\n\t{\r\n\t\treturn $this->m_code;\r\n\t}", "public function getResultCode() {}", "public function getResponseCode();", "public function getResponseCode();", "public function getExitCode()\n {\n return $this->errorCounter;\n }", "public function getResponseCode()\r\n {\r\n return $this->responseCode;\r\n }", "public function getResponseCode(){\n\t\treturn $this->response->getCode();\n\t}", "protected function recuperoRetCode($returnData) {\n $arrayExp = explode('returnCode>', $returnData);\n $retVal = intval($arrayExp[1]);\n return $retVal;\n }", "function getStatusCode();", "public function getErrorCode(): int;", "public function getStatusCode() {\n\t\treturn $this->status['code'];\n\t}", "public function code() {\n return $this->info['http_code'];\n }", "public static function getStatusCode(): int;", "protected function _getCode()\n {\n // filter code from response\n return (int)substr($this->_getServerResponse(), 0, 3);\n }", "public function getResponseCode() {\n return $this->response_code;\n }", "public function getResponseCode()\n {\n return $this->responseCode;\n }", "public function getStatusCode()\n {\n \treturn $this->statusCode;\n }", "public function getResponseCode()\n {\n return $this->response_code;\n }", "private function getStatusCode()\n {\n return $this->statusCode;\n }", "public function get_response_code() {\n return $this->response_code;\n }", "public function errorcode();", "public function getReturnVal()\n {\n return $this->return_value;\n }", "public static function getResultCode()\n\t\t{\n\t\t\treturn self::getCache()->getResultCode();\n\t\t}", "public function statusCode()\n {\n return $this->code;\n }", "public function getErrorCode()\n {\n return $this->code;\n }", "#[Pure]\n public function getResponseCode() {}", "#[Pure]\n public function getResponseCode() {}", "function responseCode() {\n return $this->responseCode;\n }", "public function getErrorCode(): int\n {\n return $this->errorCode;\n }", "function getResultCode() {\n return $this->memcached->getResultCode();\n }", "public function successCode() { return $this->successCode; }", "public function getErrorCode() {\n\t\treturn $this->error_code;\n\t}", "public function getErrorCode() {\n\t\treturn $this->error_code;\n\t}", "public function getStatusCode() {\n\n return $this->result->status_code;\n }", "public function getErrorCode()\n {\n return $this->getInput('error_code');\n }", "public function getStatusCode(): int {\n\t\treturn $this->statusCode;\n\t}", "public function getStatusCode(): int {\n\t\treturn $this->statusCode;\n\t}", "public function getStatusCode()\n {\n return curl_getinfo($this->ch, CURLINFO_HTTP_CODE);\n }", "public function getCode()\n {\n return $this->isSuccessful() ? $this->data[\"AuthCode\"] : parent::getCode();\n }", "public function getStatusCode()\n\t{\n\t\treturn $this->statusCode_;\n\t}", "public function getErrorCode();", "public function getErrorCode(): int\n {\n return $this->error;\n }", "public function getStatusCode() {\r\n\t\treturn $this->statusCode;\r\n\t}", "function http_headers_get_response_code() {\n\t\treturn $this->http_response_code;\n\t}", "protected function getStatusCode()\n {\n return $this->statusCode;\n }", "public function get_status_code() {\n\n\t\treturn $this->get_status_info()->code;\n\t}", "public function getStatusCode() {\n return $this->statusCode;\n }", "public function code(): int\n {\n return $this->code;\n }", "public function code(): int\n {\n return $this->code;\n }", "public function getStatusCode() : int\n {\n return $this->statusCode;\n }", "public function getStatusCode() : int\n {\n return $this->statusCode;\n }", "public function getStatusCode(): int\r\n {\r\n return $this->_statusCode;\r\n }", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode();", "public function getStatusCode(): int;", "public function getStatusCode(): int;", "public function getStatusCode(): int;", "public function getStatusCode(): int;", "public function getStatusCode() {}", "function get_http_response_code()\n\t{\n\t\t//最后一个收到的HTTP代码\n\t\treturn curl_getinfo($this->ch, CURLINFO_HTTP_CODE);\n\t}", "public function getStatusCode(): int\n {\n return $this->statusCode;\n }", "public function getStatusCode(): int\n {\n return $this->statusCode;\n }", "public function getStatusCode(): int\n {\n return $this->statusCode;\n }", "public function getStatusCode(): int\n {\n return $this->statusCode;\n }", "public function getStatusCode(): int\n {\n return $this->statusCode;\n }", "public function getStatusCode(): int\r\n {\r\n // TODO: Implement getStatusCode() method.\r\n return $this->statusCode;\r\n }", "public function getErrorCode()\n {\n return $this->_getErrorCodeInOutput();\n }", "public function getErrorCode()\n\t{\n\t\treturn $this->errorCode;\n\t}", "public function getStatusCode()\n {\n return (int) $this->statusCode;\n }" ]
[ "0.7830994", "0.7816789", "0.78109187", "0.77993613", "0.77729124", "0.7733918", "0.7669106", "0.7607188", "0.75310373", "0.75150716", "0.75150716", "0.75150716", "0.74240613", "0.74011517", "0.73512083", "0.73499054", "0.7331378", "0.7331378", "0.73269075", "0.73109674", "0.7296319", "0.7296319", "0.7275384", "0.7216772", "0.71930987", "0.71930987", "0.7192161", "0.71895164", "0.7186212", "0.71722305", "0.71684724", "0.7148486", "0.7134559", "0.7127354", "0.7124135", "0.7111295", "0.71011764", "0.7100197", "0.70972914", "0.70910233", "0.70840275", "0.70764345", "0.7031783", "0.70069766", "0.6991479", "0.6989406", "0.69812936", "0.69742376", "0.69742376", "0.69729537", "0.6972286", "0.6969467", "0.6962039", "0.6955726", "0.6955726", "0.6953247", "0.695236", "0.69457996", "0.69457996", "0.69456583", "0.6945334", "0.6938526", "0.69130516", "0.6900212", "0.68792534", "0.6874869", "0.6863631", "0.68591857", "0.68530095", "0.6846522", "0.6846522", "0.68432194", "0.68432194", "0.68423384", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.6839359", "0.68339014", "0.68339014", "0.68339014", "0.68339014", "0.6823102", "0.68184966", "0.68122554", "0.68122554", "0.68122554", "0.68122554", "0.68122554", "0.67988646", "0.6792157", "0.67904115", "0.6780158" ]
0.86434954
1
Get the value of messgae
public function getMessgae() { return $this->messgae; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMessage(){\n\t\t\treturn $this->message;\n\t\t}", "public function getMessage(){\n\t\treturn $this->message;\n\t}", "private function getMsg()\n {\n return $this->msg;\n }", "public function message()\n {\n return $this->msg;\n }", "public function message()\n {\n return $this->msg;\n }", "public function message()\n {\n return $this->msg;\n }", "public function getMessage() : mixed\n {\n return $this->message;\n \n }", "public function message()\r\n {\r\n return $this->message;\r\n }", "public function message()\r\n {\r\n return $this->message;\r\n }", "public function get_msg() {\r\n return $this->msg;\r\n }", "public function message()\n {\n return $this->mes;\n }", "public function getMessage()\n {\n $rtn = $this->data['message'];\n\n return $rtn;\n }", "abstract public function get_message();", "public function getMessage () {\n\t\treturn $this->message;\n\t}", "function getMessage() {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function message()\n {\n return $this->message;\n }", "public function getMessage() {\n return self::$message;\n }", "public function getMessage() \n\t{\n\t\treturn $this->message;\n\t}", "public function get_message()\n {\n return $this->_message;\n }", "public function getmessage()\n {\n return array_shift($this->storage);\n }", "public function get_message() { return $this->getMessage(); }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "private function getMessage(){ \n\t\t\t//return $this->message;\n\t\t //return \"Sample Message\";\n\t\t\t//$msgArray = array(\"s_id\" => \"s_id\",\"u_id\" => \"u_id\",\"status\"=>\"status\");\n\t\t\t//return json_encode($msgArray); \n\t\t\treturn $this->message;\n\t\t\t\n\t\t}", "public function getMessage()\n\t{\n\t\treturn $this->message;\n\t}", "public function getMessage()\n\t{\n\t\treturn $this->message;\n\t}", "public function getMessage()\n\t{\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMsg()\n {\n return $this->msg;\n }", "public function getMsg()\n {\n return $this->msg;\n }", "public function getMessage()\n {\n return Arr::get($this->getData(true), static::messageKey());\n }", "public function getMessDefault ()\n {\n return $this->mess_default;\n }", "public function getMsg()\n {\n return $this->Msg;\n }", "public function getMessageWithValues()\n {\n return $this->messageWithValues;\n }", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage()\r\n {\r\n return $this->message;\r\n }", "public function getMessage()\r\n {\r\n return $this->message;\r\n }", "public function getMessage()\r\n {\r\n return $this->message;\r\n }", "public static function get_message()\n\t{\n\t\treturn Session::instance()->get('alert');\n\t}", "function &getMessage() {\r\n\t\t\treturn $this->msg;\r\n\t\t}", "function getValue() { return $this->readText(); }", "public function getMessage() {\n return $this->message;\n }", "public function getMessage() {\n return $this->message;\n }", "public function getMessage() {\n return $this->message;\n }", "public function getMessage() {\n return $this->message;\n }", "public function getMessage() {\n return $this->message;\n }", "function getValue() { return $this->readText(); }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage(): string\n {\n return $this->data->message;\n }", "protected function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->_message;\n }", "public function getMessage()\n {\n return $this->_message;\n }", "function getMessage()\n {\n return (string) $this->_sMessage;\n }", "function getMessage()\n {\n return (string) $this->_sMessage;\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function getMessUid ()\n {\n return $this->mess_uid;\n }", "public function getMessage():string {\n\t\t\treturn $this->message;\n\t\t}", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "public function getMensaje(){\r\n\t$mensaje = \\unserialize($this->getSession()->get('mensaje'));\r\n\t//echo 'mensajession:'.$mensaje;\r\n\t$this->liberar(); // el mensaje se puede leer solo una vez. cuidado!! si se lanzan eventos del mismo tipo antes del correcto no se visualizara.\r\n\treturn $mensaje;\r\n }", "public function getMessage( $data ) \n {\n return $data->message;\n }", "public function value(): string\n {\n return $this->get('value');\n }", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "public function getMessage() {\n return $this->message;\n }", "public function getMessage() {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->msg;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }", "public function getMessage()\n {\n return $this->message;\n }" ]
[ "0.7179744", "0.7070213", "0.69565773", "0.689962", "0.689962", "0.689962", "0.6893641", "0.68695295", "0.68695295", "0.6853898", "0.6784508", "0.6763357", "0.67558485", "0.6730124", "0.6729388", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.67285025", "0.672346", "0.6721181", "0.6716651", "0.6691977", "0.6687942", "0.66521543", "0.66521543", "0.66374713", "0.66356766", "0.66356766", "0.66356766", "0.66350096", "0.66350096", "0.66350096", "0.66350096", "0.6627421", "0.6627421", "0.6609722", "0.6591054", "0.65857166", "0.65682596", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.656678", "0.6553349", "0.6553349", "0.6553349", "0.653955", "0.6536789", "0.6531693", "0.65175796", "0.65175796", "0.65175796", "0.65175796", "0.6507523", "0.65027934", "0.64828885", "0.64780265", "0.64780265", "0.6473838", "0.6467697", "0.64497614", "0.64497614", "0.642844", "0.642844", "0.64220476", "0.6420207", "0.6413141", "0.6409152", "0.6404998", "0.6403527", "0.6403366", "0.6398894", "0.6398532", "0.6398532", "0.6390967", "0.63818735", "0.63818735", "0.63818735", "0.63818735", "0.63818735", "0.63818735" ]
0.76615155
0
Get the value of authCode
public function getAuthCode() { return $this->authCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCode()\n {\n return $this->isSuccessful() ? $this->data[\"AuthCode\"] : parent::getCode();\n }", "public function get_auth_code( $code ) {\n\t\t$tokens = new Token_User( '_indieauth_code_' );\n\t\treturn $tokens->get( $code );\n\t}", "protected function getAuthorizationCode()\n {\n $code = null;\n if ($this->responseMode === 'query' && isset($_GET['code'])) {\n $code = $_GET['code'];\n } else if ($this->responseMode === 'form_post' && isset($_POST['code'])) {\n $code = $_POST['code'];\n }\n\n return $code;\n }", "public function get_authorization_code() {\n\n\t\treturn $this->authorization_num;\n\t}", "public function getCode()\n {\n return $this->values[\"code\"];\n }", "public function getCode()\n {\n $this->code = $_GET['code'];\n return $this->code;\n\n }", "public function getCode() {\n return $this->request->query->get(\"code\") != NULL ? $this->request->query->get(\"code\") : \"\";\n }", "protected function getCode()\n {\n return $this->request->input('code');\n }", "protected function getCode()\n {\n return $this->request->input('code');\n }", "public function getUsercode()\n {\n return $this->usercode;\n }", "public function getUserCode()\n {\n return $this->userCode;\n }", "protected function getAccessCode()\n {\n return $_GET[self::RESPONSE_CODE_PARAM];\n }", "public function getcode()\n {\n return $this->code;\n }", "public function getAccountCode();", "public function getAccountCode();", "public function get_code() {\n\t\treturn $this->code;\n\t}", "public function getCode() {\n return $this->get(self::CODE);\n }", "public function getCode()\n {\n return $this->__get(\"code\");\n }", "public function getCode()\r\n {\r\n return $this->code;\r\n }", "public function getCode()\n {\n return $this->get(self::CODE);\n }", "public function getPreAuthCode()\n {\n $authCode = $this->getPreAuthCodeFromServer();\n Log::debug('Pre auth code:', $authCode);\n return $authCode['pre_auth_code'];\n }", "function getCode()\r\n {\r\n return $this->code;\r\n }", "public function getCode()\n {\n return $this->getValueObject('code');\n }", "public function getCode() {\n return $this->code;\n }", "public function getUserCode(){\n\t\t/* return user code */\n\t\treturn $this->_intUserCode;\n\t}", "public function getCode() {\n return $this->code;\n }", "public function getCode() {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode()\n {\n return $this->code;\n }", "public function getCode() { return $this->code; }", "public function getCode()\n {\n return $this->_code;\n }", "public function getCode()\n {\n return $this->_code;\n }", "public function getCode()\n {\n return $this->_code;\n }", "public function getCode() {return $this->code;}", "public function getCode() {\r\n return $this->__code;\r\n }", "abstract public function getPaymentAuthorizationCode();", "function getCode()\n {\n return $this->code;\n }", "public function getCode() {\n\t\treturn $this->code;\n\t}", "public function getCode() {\n\t\treturn $this->code;\n\t}", "public function getCode() {\n\t\treturn $this->code;\n\t}", "public function getVerificationCode()\n {\n return($this->verificationCode);\n }", "public function getCode(): string\n {\n return $this->code;\n }", "public function getCode(): string\n {\n return $this->code;\n }", "public function getCode(): string\n {\n return $this->code;\n }", "public function getCode(): int\n {\n return $this->code;\n }", "public function getCode()\n\t{\n\t\treturn $this->code;\n\t}", "public function getCode()\n\t{\n\t\treturn $this->code;\n\t}", "public function getCode()\n\t{\n\t\treturn $this->code;\n\t}", "public function getVerificationCode() {\n return $this->verification_code;\n\n }", "public function GetCode () \r\n\t{\r\n\t\treturn ($Code);\r\n\t}", "public function getCode()\n {\n return $this->data[1];\n }", "public function getOTPCode(){\n\t\t\t\treturn $this->_CODE;\n\t\t\t}", "public function getVerifyCode()\n {\n return $this->verify_code;\n }", "private function checkingApiCanAuthenticateCode($auth_code)\n {\n return $this->api_request->get(\"user\",\"validate_user_code\",$params=array('code'=>$auth_code)); \n }", "public function getPassCode() {\n $row = $this->getInnerRow();\n return (int)$row['pass_code'];\n }", "public function getCode()\n {\n if($this->request->getQuery()->offsetExists($this->options->stage1->state->accessKey)) {\n $code = $this->getCodeFromRequest();\n if(is_string($code)) {\n return $code;\n }\n }\n return $this->getCodeFromVendor();\n }", "public function getAuthIdentifier();", "public function getVerifyCode()\n {\n return $this->verifyCode;\n }", "public function getNewAuthCode()\n {\n // TODO: Implement getNewAuthCode() method.\n }", "public function getCode()\n {\n return $this->response_code;\n }", "public function getCode()\n {\n return $this->getData()->code;\n }", "public function getCode() : string\n {\n return $this->_code;\n }", "public function get($code)\n\t{\n\t\t$result = $this->run('SELECT * FROM oauth_auth_codes WHERE auth_code = ?', [$code]);\n\t\tif (count($result) === 1) {\n\t\t\t$token = new AuthCodeEntity($this->server);\n\t\t\t$token->setId($result[0]['auth_code']);\n\t\t\t$token->setRedirectUri($result[0]['client_redirect_uri']);\n\t\t\t$token->setExpireTime($result[0]['expire_time']);\n\t\t\treturn $token;\n\t\t}\n\t\treturn null;\n\t}", "public function getCode(): string;", "public function getCode(): string;", "public function getCode(): string;", "public function getCode()\n {\n if (is_null($this->code)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_CODE);\n if (is_null($data)) {\n return null;\n }\n $this->code = (string) $data;\n }\n\n return $this->code;\n }", "public function getCode() {}", "protected function getCode(): ?string\n {\n return $this->request->query('code');\n }", "protected function _getCode()\n {\n // filter code from response\n return (int)substr($this->_getServerResponse(), 0, 3);\n }", "public function getCode()\n {\n return $this->get(self::ENTRY_CODE);\n }", "public static function codeKey()\n {\n static $codeKey = null;\n\n if (is_null($codeKey)) {\n $codeKey = config('api.response.key.code', 'code');\n }\n\n return $codeKey;\n }", "public function getCode(): int;", "public function getCode() {\n return @$this->attributes['code'];\n }", "public function getPasscode()\n {\n return $this->passcode;\n }", "public function getCodeFromRequest()\n {\n $query = $this->request->getQuery();\n if($query->offsetExists($this->options->stage1Response->error->accessKey)) {\n throw new OAuth2Exception('Error gaining authorisation: '.$query->get($this->options->stage1Response->error->accessKey));\n }\n if($query->offsetExists($this->options->stage1Response->code->accessKey)) {\n if($query->get($this->options->stage1Response->state->accessKey) !== $this->session->state) {\n throw new OAuth2Exception('Error gaining authorisation: state mismatch');\n }\n return $query->get($this->options->stage1Response->code->accessKey);\n }\n return null;\n }", "public function getOauthCode()\n {\n $date = new \\DateTime();\n return $date->getTimestamp();\n }" ]
[ "0.8285153", "0.78844696", "0.75953406", "0.7413289", "0.7323032", "0.721884", "0.7215816", "0.71820104", "0.71820104", "0.7178934", "0.70966244", "0.7067525", "0.70480776", "0.7043728", "0.7043728", "0.6993433", "0.6930652", "0.6914984", "0.68855304", "0.6883161", "0.6875588", "0.6874112", "0.686469", "0.6863144", "0.6858894", "0.684991", "0.684991", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.68498254", "0.6840884", "0.67939055", "0.67939055", "0.67939055", "0.67905635", "0.67892545", "0.67713434", "0.67451984", "0.67417157", "0.67417157", "0.67417157", "0.6729798", "0.66850877", "0.66850877", "0.66850877", "0.6674169", "0.666153", "0.666153", "0.666153", "0.6654074", "0.6627068", "0.66113466", "0.6609784", "0.65970814", "0.65909666", "0.65673256", "0.65548736", "0.65541774", "0.654833", "0.6530971", "0.650745", "0.6504637", "0.65008056", "0.64940476", "0.6471191", "0.6471191", "0.6471191", "0.6443834", "0.64431524", "0.6439166", "0.64343524", "0.6430799", "0.64032686", "0.639828", "0.6397481", "0.63875604", "0.637792", "0.63712823" ]
0.86717224
0
Get the value of token
public function getToken() { return $this->token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue() : string {\n\t\treturn $this->token;\n\t}", "public function getToken()\n {\n $value = $this->getParameter('token');\n $value = $value ?: $this->httpRequest->query->get('token');\n return $value;\n }", "public function get_token() {\n\t\treturn $this->token;\n\t}", "private function _readValue($token) {}", "public function getToken()\n {\n $value = $this->get(self::TOKEN);\n return $value === null ? (integer)$value : $value;\n }", "public function getToken() {\n\t\treturn $this->_token;\n\t}", "public function getToken() {\n\t\treturn $this->token;\n\t}", "public function getToken ()\n {\n return $this->token;\n }", "private function getCurrentToken() {\n\t\tif(isset($_GET) && isset($_GET['token'])) {\n\t\t\t$sToken = $_GET['token'];\n\t\t} else {\n\t\t\techo $this->_translator->error_token;\n\t\t\texit();\n\t\t}\n\t\treturn $sToken;\n\t}", "public function token(): string\n {\n return $this->token;\n }", "public function getToken()\r\n {\r\n return $this->token;\r\n }", "public function getToken()\r\n {\r\n return $this->token;\r\n }", "public function getToken()\n\t{\n\t\treturn $this->token;\n\t}", "public function getToken(): string\n {\n return $this->token;\n }", "public function getToken(): string\n {\n return $this->token;\n }", "public function getToken(): string\n {\n return $this->token;\n }", "public function getToken() {\n return $this->token;\n }", "public function getToken() : string {\n return $this->token;\n }", "public function getToken() {\n return $this->token;\n }", "public function getToken()\n {\n return $this->token;\n }", "public function token()\n {\n return $this->token['token'] ?? null;\n }", "public static function getToken()\n {\n return isset(self::$_data[self::KEY_TOKEN]) ? self::$_data[self::KEY_TOKEN] : NULL;\n }", "public function getToken(): string\n {\n return $this->attributes->get('token', '');\n }", "public function getToken() {\n\n\t\treturn $this->Token;\n\t}", "public function getToken()\n {\n return self::TOKEN;\n }", "public function getToken()\n {\n return current($this->tokens);\n }", "public function string()\n {\n return $this->token;\n }", "public function readToken() {}", "public function getToken(): string;", "public function getToken(): string;", "public function getToken(): string;", "public function getToken(): string;", "public function GetToken($data){ \n \n return $this->token;\n \n }", "public function getCurrentToken()\n {\n return $this->current_token;\n }", "abstract public function token();", "function token(): string\n\t\t{\n\t\t\treturn session()->getToken();\n\t\t}", "private function get_token() {\n\n\t\t$query = filter_input( INPUT_GET, 'mwp-token', FILTER_SANITIZE_STRING );\n\t\t$header = filter_input( INPUT_SERVER, 'HTTP_AUTHORIZATION', FILTER_SANITIZE_STRING );\n\n\t\treturn ( $query ) ? $query : ( $header ? $header : null );\n\n\t}", "public function getToken();", "public function getToken();", "public function getToken();", "public function getToken();", "public function token()\n {\n return $this->metadata();\n }", "public function getToken()\n {\n return $this->getAttr('access_token');\n }", "private function getToken(): ?string\n {\n $request = $this->requestStack->getCurrentRequest();\n\n $token = null;\n\n\n if (null !== $request) {\n $token = $request->headers->get('token', null);\n }\n\n $this->token = $token;\n\n return $token;\n }", "public function getTokenName();", "private function getToken()\r\n\t{\r\n\t\treturn $this->app['config']->get('hipsupport::config.token');\r\n\t}", "public function get(string $value, string $purpose): Token;", "public function getToken()\n {\n return $this->controller->getToken();\n }", "public function getToken()\n {\n $tokenValidator = new \\Paggi\\SDK\\TokenValidation(); //self::$container->get('TokenValidation');\n if (!$tokenValidator->isValidToken(self::$token)) {\n return false;\n }\n return self::$token;\n }", "public function getTokenName()\n {\n return $this->tokenName;\n }", "public function token(): Token\n {\n return self::instance()->runner->token();\n }", "public function getCurrentToken() : string\n {\n return $this->request->headers->get('auth-token') ?? '';\n }", "function &get_xoops_token()\n{\n\tif ( class_exists('XoopsMultiTokenHandler') )\n\t{\n\t\t$token =& XoopsMultiTokenHandler::quickCreate( $this->_TOKEN_NAME );\n\t\t$name = $token->getTokenName();\n\t\t$value = $token->getTokenValue();\n\t}\n\telse\n\t{\n\t\t$name = 'token';\n\t\t$value = 0;\n\t}\n\t$arr = array($name, $value);\n\treturn $arr;\n}", "function getToken() {\n\t\n\t$u_token = (isset($_SESSION['cms']['u_token']) && $_SESSION['cms']['u_token'] > '' ) ? $_SESSION['cms']['u_token'] : '';\n\treturn $u_token;\n}", "function read($token);", "public final function get($token)\n {\n }", "public function getTokenKey()\n {\n return $this->token_key;\n }", "private function _readValue($token, $expectedType = null) {}", "public function retrieveTokenFromHeader($token)\n {\n\n $index = 1;\n\n $ttoken = explode(\" \", $token);\n\n return $ttoken[$index];\n\n }", "public function getToken()\n {\n if ($this->isValid()) {\n return $this->_data[OAuth::PARAM_TOKEN];\n }\n\n return null;\n }", "public function getAuthToken()\n {\n $value = $this->get(self::auth_token);\n return $value === null ? (string)$value : $value;\n }", "public function getValue()\n {\n return $this->segment->value;\n }", "public function get_request_token()\n {\n $sess_id = $_COOKIE[ini_get('session.name')];\n if (!$sess_id) $sess_id = session_id();\n $plugin = $this->plugins->exec_hook('request_token', array('value' => md5('RT' . $this->get_user_id() . $this->config->get('des_key') . $sess_id)));\n return $plugin['value'];\n }", "public function __toString() {\n return $this->token;\n }", "public function getValue()\n {\n return $this->getParameter('value');\n }", "public function getValue()\n {\n return $this->getParameter('value');\n }", "private function value()\n {\n $this->white();\n switch ($this->currentByte) {\n case '{':\n return $this->obj();\n case '[':\n return $this->arr();\n case '\"':\n case \"'\":\n return $this->string();\n case '-':\n case '+':\n case '.':\n return $this->number();\n default:\n return \\is_numeric($this->currentByte) ? $this->number() : $this->word();\n }\n }", "public function getTokenInput()\n {\n if ($this->Token) {\n return '<input type=\"hidden\" name=\"'.$this->TokenInputName.'\" value=\"' . $this->Token . '\" />';\n }\n return false;\n }", "public function getLiteralValue();", "public function ReadToken($token) {\r\n\t\t$sql = \"\r\n\t\tSELECT * FROM redefinicao_senha WHERE = '$token'\";\t\t\r\n\t\t\r\n\t\t$DB = new DB();\r\n\t\t$DB->open();\r\n\t\t$Data = $DB->fetchData($sql);\r\n\t\t\r\n\t\t$DB->close();\r\n\t\treturn $Data[0]; \r\n\t}", "public function getToken()\r\n\t{\r\n\t\treturn $this->getTransaction()->getToken();\r\n\t}", "public function getToken()\n {\n if (!isset($_SESSION['MFW_csrf-token'])) {\n $this->generateNewToken(128);\n }\n\n return $_SESSION['MFW_csrf-token'];\n }", "public function getToken()\n\t{\n\t\treturn $this->getOption('accesstoken');\n\t}", "public function getTokenId()\n {\n return $this->_tokenId;\n }", "public function getOriginalToken()\n {\n return $this->token;\n }", "public function getValue($default = null)\n\t{\n\t\treturn $this->get('access_token', $default);\n\t}", "public function token()\n {\n if ($this->tokenExpiry !== null) {\n if (is_string($this->tokenKey)) {\n return $this->tokenExpiry . '.' . $this->tokenId . '.' . $this->tokenKey;\n } else {\n return $this->tokenExpiry . '.' . $this->tokenId;\n }\n } else {\n return null;\n }\n }", "public function getToken()\n\t{\n\t\treturn static::createFormToken($this->target_form_id ? $this->target_form_id : $this->id);\n\t}", "public function getSimpleToken(): string\n {\n return $this->getData(self::SIMPLE_TOKEN);\n }", "public function getTokenSenha()\n\t{\n\t\treturn $this->token_senha;\n\t}", "public function getAuthorizationToken(): string\n {\n return (string) $this->token;\n }", "public function getToken(){\n\t\t$token = $this->config->getAppValue('owncollab_ganttchart', 'sharetoken', 0);\n\t\tif ($token === 0){\n\t\t\t$token = $this->generateToken();\n\t\t}\n\t\treturn $token;\n\t}", "public function getTokenAttribute(): string\n {\n return decrypt($this->attributes['token']);\n }", "protected function get_stored_token() {\n global $SESSION;\n\n $name = $this->get_tokenname();\n\n if (isset($SESSION->{$name})) {\n return $SESSION->{$name};\n }\n\n return null;\n }", "public function currentGameToken();", "private static function _getText()\n {\n return geoAddon::getText('geo_addons', 'tokens');\n }" ]
[ "0.85188824", "0.79895604", "0.7788034", "0.76427764", "0.7629508", "0.7550924", "0.75138354", "0.7510516", "0.7498699", "0.7491944", "0.74798244", "0.74798244", "0.74587715", "0.7453149", "0.7453149", "0.7453149", "0.743896", "0.7430249", "0.7398155", "0.73764855", "0.73687124", "0.72601086", "0.7215973", "0.7169386", "0.711731", "0.7105069", "0.7078848", "0.69528013", "0.69521", "0.69521", "0.69521", "0.69521", "0.68545914", "0.6840221", "0.68355125", "0.6797034", "0.6776789", "0.6753287", "0.6753287", "0.6753287", "0.6753287", "0.6734394", "0.67165875", "0.6642886", "0.66171753", "0.6602864", "0.6597511", "0.6533213", "0.6532914", "0.6519943", "0.65090173", "0.64817995", "0.6481291", "0.64758444", "0.646578", "0.6454945", "0.64367497", "0.6430998", "0.63985723", "0.63896245", "0.6381199", "0.6377068", "0.637612", "0.63633287", "0.6363222", "0.6363222", "0.63423264", "0.63189363", "0.63157165", "0.62988484", "0.6296076", "0.62956816", "0.629559", "0.6291877", "0.6288077", "0.6280722", "0.6276467", "0.6272003", "0.626961", "0.62685543", "0.62522733", "0.62343985", "0.62276906", "0.62243515", "0.6206819", "0.6201049" ]
0.7354141
31
Get the value of accountNo
public function getAccountNo() { return $this->accountNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccountNo()\n {\n return $this->account_no;\n }", "public function getAccountNumber()\n {\n return $this->account_number;\n }", "public function getAccountNumber()\n {\n return $this->account_number;\n }", "public function getAccountNumber()\n {\n return $this->helper->accountNumber();\n }", "public function getAccNo()\n {\n return $this->acc_no;\n }", "public function getAccNumber() \n {\n return $this->acc_number;\n }", "public function getAccNumber()\n {\n return $this->accNumber;\n }", "public function getAccountNumber(): ?string\n {\n return $this->accountNumber;\n }", "public function GetAccountID () \r\n\t{\r\n\t\treturn ($AccountID);\r\n\t}", "public function getAccountID();", "public function getAccountCode();", "public function getAccountCode();", "public function getAccountID()\n {\n return $this->accountID;\n }", "public function getAccountID()\n {\n return $this->accountID;\n }", "public function getAccountId(){\n $value = \\Auth::user()->account_id;\n return $value;\n }", "public function getAccount_id()\n {\n return $this->fv_account_id;\n }", "public function getBankAccountNumber()\n {\n // generate a random number, this will be the account number\n $accountNumber = $this->prependNumber(rand(1, 100000000) . '0');\n\n // because it is a random number, it may be a valid account number\n $remains = $this->checkDigit($accountNumber);\n if ($remains === 0) {\n return $accountNumber;\n }\n\n // number is invalid, increase so it is valid.\n return $this->recalculateToValidOutcome($accountNumber, $remains);\n }", "public function getAccountUid()\n {\n return $this->getProperty('paymentAccountUid');\n }", "public function getAccountNumberType()\n {\n return $this->account_number_type;\n }", "public function getAccountID()\n {\n return $this->getKey('AccountID');\n }", "public function getAccountNumber()\r\n\t{\r\n\t\tif ($this->accountNumber)\r\n\t\t\treturn $this->accountNumber;\r\n\t\t\r\n\t\t$aid = UserFilesGetCatAccount($this->dbh, $this->folderId);\r\n\r\n\t\tif (!$aid)\r\n\t\t{\r\n\t\t\t$asys = new AntSystem();\r\n\t\t\t$ainfo = $asys->getAccountInfoByDb($this->dbh->dbname);\r\n\t\t\t$aid = $ainfo['id'];\r\n\t\t}\r\n\r\n\t\tif ($aid)\r\n\t\t\t$this->accountNumber = $aid;\r\n\t\t\r\n\t\treturn $aid;\r\n\t}", "public function getAccountNumber()\n {\n return $this->hasOne(AccountNumber::className(), ['id' => 'account_number_id']);\n }", "public function resolveaccount()\n {\n //\n $thePaystack = new Paystack();\n return $thePaystack->resolveAccountNumber();\n }", "public function getAccountCode() {\n $code= \\DB::table('account_code')\n \n ->lists('NO');\n return $code;\n }", "public function getNumber(){\n if ( is_null($this->number) ){\n $number = $this->getTable()->getNextBillingNumber($this->getCourier(), 'rest');\n $this->number = \"R-\".date('y',$this->from).date('m',$this->from).\"-\".$this->getCourier()->getCustomerNr().\"-\".$number;\n }\n return $this->number;\n }", "function getCustomerNo() {\n return $this->customerNo;\n }", "public function accountId(): string\n {\n return $this->accountId;\n }", "public function accountId(): string\n {\n return $this->accountId;\n }", "public function getAccountId()\n {\n return $this->account_id;\n }", "public function getAccountId()\n {\n return $this->account_id;\n }", "public function getId()\n {\n return $this->getProperty('account_id', 'int');\n }", "public function getTransactionNumber();", "public function getAccountingID() {\n return $this->getParameter('accounting_id');\n }", "public function getAccountingID() {\n return $this->getParameter('accounting_id');\n }", "public function getAccountingID() {\n return $this->getParameter('accounting_id');\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount(): ?string\n {\n return $this->account;\n }", "public function getAccount() {\n return $this->account;\n }", "public function get_number() { return $this->getCode(); }", "function getAccountId($account_name)\n\t{\n\t\t global $log;\n $log->info(\"in getAccountId \".$account_name);\n\t\tglobal $adb;\n\t\tif($account_name != '')\n\t\t{\n\t\t\t$sql = \"select accountid from ec_account where accountname='\".$account_name.\"'\";\n\t\t\t$result = $adb->query($sql);\n\t\t\t$accountid = $adb->query_result($result,0,\"accountid\");\n\t\t}\n\t\treturn $accountid;\n\t}", "public function getAccountId(){\n\t\t$sResult = null;\n\t\tif (!empty($this->aLinks) && isset($this->aLinks[0])){\n\t\t\t/**\n\t\t\t * @var BeezupOMLink\n\t\t\t */\n\t\t\t$oLink = $this->aLinks[0];\n\t\t\t$aAtoms = explode('/', $oLink->getHref());\n\t\t\tif (isset($aAtoms[6]) && $aAtoms[4] == $this->getMarketPlaceTechnicalCode() && $aAtoms[6]== $this->getBeezupOrderUUID() && is_numeric($aAtoms[5])){\n\t\t\t\treturn $aAtoms[5];\n\t\t\t}\n\n\t\t}\n\t\treturn null;\n\t}", "public function getPurchaseOrderNumber();", "public function getPersonalNo(): ?int {\n return $this->personalNo;\n }", "private function GetAccountDetails()\n\t{\n\t\t$customer_id = $this->getCustomerId();\n\t\tif(!$customer_id)\n\t\t{\n\t\t\tlogAdd(LOG_SEVERITY_ERROR, 'Se intento editar un WebUsuario con id \"'.$this->getData('ID').'\" invalido');\n\t\t\treturn false;\n\t\t}\n\n\t\t$query = sprintf(\"select * from [|PREFIX|]customers where customerid='%d'\", $GLOBALS['ISC_CLASS_DB']->Quote($customer_id));\n\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\t$row = $GLOBALS['ISC_CLASS_DB']->Fetch($result);\n\n\t\tif ($row !== false) {\n\t\t\treturn $row;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getCardnumber()\n {\n return $this->cardnumber;\n }", "public function getCheckoutPurchaseOrderNo();", "function beneficiaire_account_id() {\n global $account_type;\n foreach ($account_type as $key => $accounts) {\n foreach ($accounts as $key => $account) {\n if ($account == test_input($_POST[\"compte_beneficiaire\"])) {\n return $accounts[\"id\"];\n }\n }\n }\n }", "public function getInvoiceNumber();", "public function invoiceNumberGet(){\n\t\t$query = $this->db->get(__TBL_INVOICE_NUMBER);\n\t\tif(sizeof($query->row())>0) {\n\t\t\treturn (int)$query->row()->number;\n\t\t} else return false;\n\t}", "public function getAccountId(): ?string\n {\n return $this->_account_id;\n }", "private function fetchAccountID($accountNumber)\n {\n $accounts = $this->getJson(\"/accounts\");\n if (isset($accounts['accounts']))\n {\n syslog(LOG_DEBUG, \"Monzo: Looking for account ID\");\n // Loop through all accounts and find the ID of configured bank account number.\n foreach ($accounts['accounts'] as $account)\n {\n if (array_key_exists(\"account_number\", $account) && $account['account_number'] == $this->accountNumber)\n {\n return $account['id'];\n }\n }\n }\n else\n {\n syslog(LOG_ERR, \"Monzo: No accounts found\");\n return false;\n }\n }", "public function getRegistration_no()\n {\n return $this->registration_no;\n }", "public function getOrderno()\n {\n return $this->orderno;\n }", "public function getAccountReference()\n {\n if (isset($this->data['object']) && 'account' === $this->data['object']) {\n return $this->data['id'];\n }\n\n return null;\n }", "public function getRegistrationNo() :string\n {\n return $this->registrationNo;\n }", "public function getLoyaltyAccountId(): string\n {\n return $this->loyaltyAccountId;\n }", "public function getAccount()\n {\n return isset($this->account) ? $this->account : null;\n }", "public function getAccount()\n {\n return isset($this->Account) ? $this->Account : null;\n }", "public function getOrderNo()\n {\n return $this->order_no;\n }", "function emetteur_account_id() {\n global $account_type;\n foreach ($account_type as $key => $accounts) {\n foreach ($accounts as $key => $account) {\n if ($account == test_input($_POST[\"compte_emetteur\"])) {\n return $accounts[\"id\"];\n }\n }\n }\n }", "private function _getFormattedAccountNumber($account)\n {\n if (!empty($account->account_number)) {\n return $this->_formatSensitiveNumbers($account->account_number);\n } elseif (!empty($account->iban)) {\n return $this->_formatSensitiveNumbers($account->iban);\n } elseif (!empty($account->clabe)) {\n return $this->_formatSensitiveNumbers($account->clabe);\n }\n }", "public function getAccountId(): ?string {\n return $this->accountId;\n }", "public function convert()\n {\n if (isset($this->mapped[$this->index][$this->value])) {\n $account = Auth::user()->accounts()->find($this->mapped[$this->index][$this->value]);\n\n return $account;\n } else {\n if (strlen($this->value) > 0) {\n $account = $this->findAccount();\n if (!is_null($account)) {\n return $account;\n }\n }\n\n return $this->value;\n }\n }", "public function getPrimaryAccountNumber() {\n\t\treturn $this->primaryAccountNumber;\n\t}", "public function getNumber() {}", "public function getNumber();", "public function getAccountId()\n {\n return $this->accountId;\n }", "public function getAccountId()\n {\n return $this->accountId;\n }", "function get_account() {\n\t\t// $pos = $this->add_request( __FUNCTION__ );\n\t\t$pos = $this->add_request( 'getaccount' );\n\t\t$this->send_request();\n\t\t$r = $this->response_part( $pos );\n\t\tif ( isset( $r->account ) && !is_null( $r->account->email ) )\n\t\t\treturn $r->account;\n\t\treturn false;\n\t}", "public function getRecno()\n {\n return $this->recno;\n }", "public function getOwnershipValue():int{\n return $this->ownership->getId();\n }", "public function getAccountId()\n {\n return $this->getParameter('accountId');\n }", "public function get() {\n return $this->number;\n }", "public function getInvoiceNo()\n {\n return $this->invoice_no;\n }", "private function _getStatus($account)\n {\n switch ($account->country) {\n case 'United States':\n if (!$account->account_user_id || !$account->ssn)\n return \"Not added<br /><a href=\\\"\" . route('verify_account_identity', ['accountId' => $account->id]) . \"\\\" data-toggle=\\\"modal\\\" data-target=\\\"#verifyYourBankAccountAndIdentityModal\\\" data-dismiss=\\\"modal\\\" data-backdrop=\\\"static\\\" data-keyboard=\\\"false\\\" id=\\\"dialogOpenBtn\\\">Complete adding account</a>\";\n return 'Added';\n default:\n return 'Added';\n }\n }", "public function getAccountingId()\n {\n return $this->accountingId;\n }", "public function getAccountType()\n {\n return $this->account_type;\n }", "public function getAccountType()\n {\n return $this->account_type;\n }", "public function getAccountType()\n {\n return $this->account_type;\n }", "public function getAccount();", "public function getSubAccountId(): string;", "public function getAccountKey()\n {\n return $this->accountKey;\n }", "function get_account_id($cellphone)\n {\n $query=$this->db->query(\"select id from xl_account where cellphone='{$cellphone}'\");\n \n $arr = array();\n\n foreach($query->result_array() as $row)\n {\n array_push($arr,$row);\n }\n\n return $arr[0]['id'];\n }", "public function get_number()\n\t{\n\t\treturn $this->number;\n\t}", "public function getCardNumber() : ?string ;", "public function getNumber()\n {\n return $this->getData(self::NUMBER);\n }", "public function getOrderNumber();", "public function getOrderNumber();", "function getAccountID () {\r\n //checks if the user is logged in\r\n if (checkLogin()) {\r\n //gets the ID\r\n $ID = getPersonID();\r\n //setup sql query\r\n $sql = \"SELECT AccountID FROM accounts WHERE PersonID = $ID\";\r\n //runs the query\r\n $stmt = runQuery($sql);\r\n //checks if we found atleast 1 account\r\n if ($stmt->rowCount() > 0) {\r\n $row = $stmt->fetch();\r\n //returns the ID\r\n return $row['AccountID'];\r\n }\r\n }\r\n return null;\r\n}", "public function GetAccountType() : int\n\t{\n\t\treturn gmp_intval( $this->Get( 52, '15' ) ); // 15 = 0xF\n\t}", "public function getAno() {\n return $this->iAno;\n }", "public function getAno() {\n return $this->iAno;\n }", "public function getRefNo()\n {\n return $this->ref_no;\n }", "public function getNumber()\n {\n return $this->number;\n }", "public function getNumber()\n {\n return $this->number;\n }" ]
[ "0.86152816", "0.77893347", "0.77893347", "0.75219923", "0.7485823", "0.72222084", "0.7056576", "0.7037025", "0.6862045", "0.67442596", "0.67246765", "0.67246765", "0.66747445", "0.66747445", "0.6643635", "0.6618681", "0.65814227", "0.657316", "0.6361484", "0.6355416", "0.6346677", "0.6316574", "0.62972856", "0.62733287", "0.6273165", "0.626612", "0.6259374", "0.6259374", "0.620921", "0.620921", "0.6204665", "0.6198718", "0.6195823", "0.6195823", "0.6195823", "0.6146607", "0.6146607", "0.6146607", "0.6146607", "0.6146607", "0.6146607", "0.6131584", "0.6130356", "0.6121207", "0.6088413", "0.60856116", "0.6050138", "0.60425854", "0.60112023", "0.60097975", "0.6006212", "0.5988765", "0.5986897", "0.5984649", "0.59680426", "0.59481096", "0.5923973", "0.59113944", "0.59108067", "0.59049743", "0.58969045", "0.5886276", "0.5884181", "0.5858426", "0.5834987", "0.5824719", "0.5799049", "0.5796817", "0.5783269", "0.5782796", "0.57817894", "0.5772448", "0.5772448", "0.57721734", "0.57639515", "0.5762272", "0.5759628", "0.5744266", "0.57291734", "0.5728362", "0.5728127", "0.57228976", "0.57228976", "0.57228976", "0.5721634", "0.57139087", "0.57033163", "0.56992364", "0.56933886", "0.5678043", "0.5668695", "0.5663376", "0.5663376", "0.5662565", "0.5662461", "0.56619644", "0.56619644", "0.5654708", "0.5654412", "0.5654412" ]
0.85641295
1
Get the value of ccType
public function getCcType() { return $this->ccType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCcTypeName()\n {\n $types = $this->_paymentConfig->getCcTypes();\n $ccType = $this->getInfo()->getCcType();\n if (isset($types[$ccType])) {\n return $types[$ccType];\n }\n return empty($ccType) ? __('N/A') : $ccType;\n }", "public function getCardCvv()\n\t{\n\t\treturn $this->type;\n\t}", "public function get_ctc_type($type){\n\t\tswitch($type){\n\t\t\tcase 'T':\n\t\t\t$value = 'Thousands';\n\t\t\tbreak;\n\t\t\tcase 'L':\n\t\t\t$value = 'Lacs';\n\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t$value = 'Crore';\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn $value;\n }", "public function getValue() {\n return $this->type;\n }", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function getCardType()\n {\n $additionalData = $this->getAdditionalData();\n \n if (isset($additionalData['card_type'])) {\n return $additionalData['card_type'];\n }\n \n return null;\n }", "public function get_course_type($type){\n\t\tswitch($type){\n\t\t\tcase 'R':\n\t\t\t$value = 'Regular';\n\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t$value = 'Correspondence';\n\t\t\tbreak;\t\t\t\n\t\t}\n\t\treturn $value;\n }", "public function getTypeCom()\n {\n return $this->type_com;\n }", "public function get_type();", "public function get_type(): string;", "public function getType()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'type'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'type'];\n\t\t}\n\t}", "private function get_type() {\n\n\t}", "public function getTypeAsStr() {\n\t\t$cardtypes = array(\n\t\t\t\"race\" => 1,\n\t\t\t\"aspect\" => 2,\n\t\t\t\"power\" => 3,\n\t\t\t\"minion\" => 10,\n\t\t\t\"bane\" => 20\n\t\t);\n\t\tforeach($cardtypes as $typestr => $typeval) {\n\t\t\tif($this->cardType == $typeval) {\n\t\t\t\treturn $typestr;\n\t\t\t}\n\t\t}\n\t}", "public function getType():string { return $this->type; }", "public function getType()\n {\n return parent::getValue('type');\n }", "public function getType()\n {\n $rtn = $this->data['type'];\n\n return $rtn;\n }", "public function getType()\n {\n return $this->_value->getType();\n }", "public function GetType(){\r\r\n\t\treturn $this->type;\r\r\n\t}", "public static function IdentifyCardType($ccNum)\n\t{\n\t\t$ccNum = preg_replace('/[^0-9]+/', '', $ccNum);\n\t\t//Visa 4 13, 16\n\t\tif (preg_match('/^4(.{12}|.{15})$/', $ccNum))\n\t\t\treturn 'VISA';\n\t\t//Master Card 51 to 55 16\n\t\telseif (preg_match('/^5[1-5].{14}$/', $ccNum))\n\t\t\treturn 'MASTERCARD';\n\t\t//American Express 34, 37 15\n\t\telseif (preg_match('/^3[47].{13}$/', $ccNum))\n\t\t\treturn 'AMEX';\n\t\t//Diners Club 300 to 305, 36 14\n\t\t//Carte Blanche 38 14\n\t\telseif (preg_match('/^3(0[0-5].{11}|[68].{12})$/', $ccNum))\n\t\t\treturn 'DINERS';\n\t\t//Discover 6011 16\n\t\telseif (preg_match('/^6011.{12}$/', $ccNum))\n\t\t\treturn 'DISCOVER';\n\t\t//JCB 3 16\n\t\t//JCB 2131, 1800 15\n\t\telseif (preg_match('/^3.{15}|(2131|1800).{11}$/', $ccNum))\n\t\t\treturn 'JCB';\n\t\t//EnRoute 2014, 2149 15\n\t\telseif (preg_match('/^2(014|149).{11}$/', $ccNum))\n\t\t\treturn 'ENROUTE';\n\t\telse\n\t\t\treturn \"N\";\n\t}", "public function getType()\n {\n return self::TYPE;\n }", "public function GetType(){\r\n\t\treturn $this->type;\r\n\t}", "public function getType() : string\n {\n $rtn = $this->data['type'];\n\n return $rtn;\n }", "public function GetType()\n {\n return ( $this->type );\n }", "public function getType()\n {\n\treturn $this->type;\n }", "public function getChannelType(): string;", "private function get_type(){\n\t\treturn $this->_type;\n\t}", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getCcTypes() {\n\n\t\t$cc_types = new Cardconnect_Ccgateway_Adminhtml_Model_System_Config_Source_Cardtype();\n\t\t$types = $cc_types->toOptionArray();\n\n $availableTypes = Mage::getModel('ccgateway/standard')->getConfigData('card_type');\n\n if ($availableTypes) {\n $availableTypes = explode(',', $availableTypes);\n\t\t\t$result = array(); \n\t\t\tforeach ($types as $val) { \n\t\t\t if (($key = array_search($val['value'], $availableTypes, TRUE))!==false) { \n\t\t\t\t $result[] = $val; \n\t\t\t\t unset($availableTypes[$key]); \n\t\t\t }\n\t\t\t}\n }\n\n return $result; \n }", "public function getType() : string{\n return $this->type;\n }", "function getType()\t { return $this->type;\t }", "function getCardTypeName ( \n $type = null )\n {\n if ( ! isset( $GLOBALS['xrowCreditCardArray'] ) )\n $GLOBALS['xrowCreditCardArray'] = array( \n self::MASTERCARD => ezi18n( 'kernel/classes/datatypes', 'Mastercard' ) , \n self::VISA => ezi18n( 'kernel/classes/datatypes', 'Visa' ) , \n self::DISCOVER => ezi18n( 'kernel/classes/datatypes', 'Discover' ) , \n self::AMERICANEXPRESS => ezi18n( 'kernel/classes/datatypes', 'American Express' ) , \n self::EUROCARD => ezi18n( 'kernel/classes/datatypes', 'Debit card' ) \n );\n if ( $type == - 1 )\n {\n return $GLOBALS['xrowCreditCardArray'];\n } else if ( isset( $GLOBALS['xrowCreditCardArray'][$type] ) )\n {\n return $GLOBALS['xrowCreditCardArray'][$type];\n } else\n {\n eZDebug::writeError( 'Card type not found.', 'ezcreditcardtype' );\n return false;\n }\n }", "public function getTypeCode(): ?string\n {\n return $this->typeCode;\n }", "public function getTypeCode(): ?string\n {\n return $this->typeCode;\n }", "public function fetch_complaint_type_desc($CM_COMPLAINT_TYPE){\n\t\t$this->db->select('CC_NAME');\n\t\t$this->db->where('CC_NO',$CM_COMPLAINT_TYPE);\n\t\t$query = $this->db->get('COMPLAINT_CATEGORY');\n \t\t$row = $query->row();\n\t\tif (isset($row))\n\t\t return $row->CC_NAME;\n\t}", "public function getType()\n { return $this->get('type'); }", "public static function getType(): string\n {\n return self::TYPE;\n }", "function getType() {\n\t\treturn $this->_Type;\n\t}", "final protected function get_type() {\n return $this->type;\n }", "public function getTypeCode () {\n if (2 == $this->status) {\n return \"meanless\";\n }\n\n return $this->objtype;\n }", "public function getType()\n {\n return isset($this->type) ? $this->type : 0;\n }", "function getType () {\n\t\treturn $this->type;\n\t}", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "function getType() { return $this->_type; }", "function getType() {\n\t\treturn $this->type;\n\t}", "public function type()\n {\n return $this->_type;\n }", "public function getType() :string\n {\n return $this->types[$this->type];\n }", "public function getType()\n\t{\n\t\treturn $this->get('type');\n\t}", "public function getType()\n {\n return $this->fields['Type']['FieldValue'];\n }", "public function getType()\n\t{\n\t\treturn $this->type; \n\n\t}", "public function getType() \n {\n return $this->_type;\n }", "public function getType(){\n return $this->type;\n }", "public function getType(){\n return $this->type;\n }", "function getType() { \n\t\treturn $this->_type; \n\t}", "public function getType() \n {\n return $this->Type;\n }", "public function getType()\n {\n return $this->_Type;\n }", "public function get_type(){\n\t\treturn $this->_type;\n\t}", "public function getType()\r\n {\r\n return $this->m_type;\r\n }", "function getType() {\n return $this->type;\n }", "function getType() { return $this->readType(); }", "function get_cc_type($cardNumber)\n\t{\n\t $cardNumber = preg_replace('/\\D/', '', $cardNumber);\n\n\t // First we make sure that the credit\n\t // card number is under 15 characters\n\t // in length, otherwise it is invalid;\n\t $len = strlen($cardNumber);\n\t if ($len < 13 || $len > 19) {\n\t throw new Exception(\"Invalid credit card number: must be 14 to 18 digits.\");\n\t }\n\t else {\n\t switch($cardNumber) {\n\t case(preg_match ('/^4/', $cardNumber) >= 1):\n\t return 'VI';\n\t case(preg_match ('/^5[1-5]/', $cardNumber) >= 1):\n\t return 'MC';\n\t case(preg_match ('/^3[47]/', $cardNumber) >= 1):\n\t return 'AX';\n\t case(preg_match ('/^3(?:0[0-5]|[68])/', $cardNumber) >= 1):\n\t return 'DN';\n\t case(preg_match ('/^6(?:011|5)/', $cardNumber) >= 1):\n\t return 'DS';\n\t /*case(preg_match ('/^(?:2131|1800|35\\d{3})/', $cardNumber) >= 1):\n\t return 'JCB';\n\t case(preg_match ('/^(?:76|50)/', $cardNumber) >= 1):\n\t return 'PBS';\n\t case(preg_match ('/^(?:63)/', $cardNumber) >= 1):\n\t return 'PT';\n\t case(preg_match ('/^56/', $cardNumber) >= 1):\n\t return 'AB';*/\n\t default:\n\t throw new Exception(\"Could not determine the credit card type.\");\n\t break;\n\t }\n\t }\n\t}", "public function getType(): string {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\r\n {\r\n return $this->_type;\r\n }", "public function get_type(): string {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function get_type() {\n\t\treturn $this->type;\n\t}", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "function getType() ;", "function getType() ;", "function getType() ;", "public function getType() : string {\n return $this->type;\n }", "public function type(): string\n {\n return $this->type;\n }", "public function type(): string\n {\n return $this->type;\n }" ]
[ "0.7198807", "0.6995694", "0.69588137", "0.67550725", "0.65317273", "0.6506843", "0.6504484", "0.65002066", "0.64600253", "0.6416335", "0.63788116", "0.63777524", "0.6349416", "0.6346157", "0.6345668", "0.63322115", "0.6297825", "0.62841064", "0.62839335", "0.62708914", "0.627048", "0.6268067", "0.6253745", "0.62526256", "0.6246087", "0.62272674", "0.6210754", "0.6210247", "0.6209867", "0.6209867", "0.62098503", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62050426", "0.62034136", "0.62034136", "0.62034136", "0.61951697", "0.6192514", "0.61782163", "0.61721164", "0.61648345", "0.61648345", "0.615697", "0.6140845", "0.6133498", "0.61319745", "0.6126448", "0.61245924", "0.6106765", "0.6106617", "0.6102766", "0.6102766", "0.6102766", "0.60855937", "0.6083317", "0.60830784", "0.60809714", "0.6079098", "0.60790586", "0.6075851", "0.6073513", "0.6072955", "0.6072955", "0.6072069", "0.606792", "0.60650396", "0.6056977", "0.6054448", "0.60532314", "0.60522676", "0.6051539", "0.60503656", "0.60476077", "0.60476077", "0.60476077", "0.60476077", "0.60462815", "0.6044594", "0.60392624", "0.6035103", "0.6035103", "0.6035103", "0.6035103", "0.60242784", "0.6023078", "0.6023078", "0.60223246", "0.60222274", "0.602178", "0.60217285", "0.60214627", "0.60214627" ]
0.7642755
0
Bootstrap any application services.
public function boot() { //转换时间格式 Carbon::setLocale('zh'); //字段限制长度 Schema::defaultStringLength(191); //监听sql $log_config = env('LOG_SAVE'); if ($log_config) { //监听sql语句并写入日志 DB::listen(function ($sql) { // var_dump($sql->bindings); //Log::info($sql->sql); foreach ($sql->bindings as $i => $binding) { if ($binding instanceof \DateTime) { $sql->bindings[$i] = $binding->format('\'Y-m-d H:i:s\''); } else { if (is_string($binding)) { $sql->bindings[$i] = "'$binding'"; } } } // Insert bindings into query $query = str_replace(array('%', '?'), array('%%', '%s'), $sql->sql); $query = vsprintf($query, $sql->bindings); // Save the query to file // Log::info("SQL:", array($query)); // Save the query to file //创建文件,并修改权限,查询sql运行写入到当天的日志中 $logFile = fopen( storage_path('logs' . DIRECTORY_SEPARATOR . date('Y-m-d') . '_query.log'), 'a+' ); $file_info = fread($logFile, "10"); \Log::info('logs文件里面获取的:' . $file_info . '_query.log'); if (empty($file_info)) { \Log::info('chmod 777 ' . storage_path('logs' . DIRECTORY_SEPARATOR . date('Y-m-d') . '_query.log')); exec('chmod 777 ' . storage_path('logs' . DIRECTORY_SEPARATOR . date('Y-m-d') . '_query.log')); } fwrite($logFile, date('Y-m-d H:i:s') . ': ' . $query . PHP_EOL); fclose($logFile); }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\n {\n // Boot here application\n }", "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrapperList);\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\r\n {\r\n // Publishing is only necessary when using the CLI.\r\n if ($this->app->runningInConsole()) {\r\n $this->bootForConsole();\r\n }\r\n }", "public function boot()\n {\n $this->app->bind(IUserService::class, UserService::class);\n $this->app->bind(ISeminarService::class, SeminarService::class);\n $this->app->bind(IOrganizationService::class, OrganizationService::class);\n $this->app->bind(ISocialActivityService::class, SocialActivityService::class);\n }", "public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->loadedServices, function ($s) {\n $this->bootService($s);\n });\n\n $this->booted = true;\n }", "public function boot()\n {\n\n $this->app->bind(FileUploaderServiceInterface::class,FileUploaderService::class);\n $this->app->bind(ShopServiceInterface::class,ShopService::class);\n $this->app->bind(CategoryServiceInterface::class,CategoryService::class);\n $this->app->bind(ProductServiceInterface::class,ProductService::class);\n $this->app->bind(ShopSettingsServiceInterface::class,ShopSettingsService::class);\n $this->app->bind(FeedbackServiceInterface::class,FeedbackService::class);\n $this->app->bind(UserServiceInterface::class,UserService::class);\n $this->app->bind(ShoppingCartServiceInterface::class,ShoppingCartService::class);\n $this->app->bind(WishlistServiceInterface::class,WishlistService::class);\n $this->app->bind(NewPostApiServiceInterface::class,NewPostApiService::class);\n $this->app->bind(DeliveryAddressServiceInterface::class,DeliveryAddressService::class);\n $this->app->bind(StripeServiceInterface::class,StripeService::class);\n $this->app->bind(OrderServiceInterface::class,OrderService::class);\n $this->app->bind(MailSenderServiceInterface::class,MailSenderSenderService::class);\n }", "public function boot()\n {\n $this->setupConfig('delta_service');\n $this->setupMigrations();\n $this->setupConnection('delta_service', 'delta_service.connection');\n }", "public function boot()\n {\n $configuration = [];\n\n if (file_exists($file = getcwd() . '/kaleo.config.php')) {\n $configuration = include_once $file;\n }\n\n $this->app->singleton('kaleo', function () use ($configuration) {\n return new KaleoService($configuration);\n });\n }", "public function boot()\n {\n $this->shareResources();\n $this->mergeConfigFrom(self::CONFIG_PATH, 'amocrm-api');\n }", "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n {\n // Ports\n $this->app->bind(\n IAuthenticationService::class,\n AuthenticationService::class\n );\n $this->app->bind(\n IBeerService::class,\n BeerService::class\n );\n\n // Adapters\n $this->app->bind(\n IUserRepository::class,\n UserEloquentRepository::class\n );\n $this->app->bind(\n IBeerRepository::class,\n BeerEloquentRepository::class\n );\n }", "public function boot()\n {\n $this->setupConfig($this->app);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrations();\n }\n if(config($this->vendorNamespace. '::config.enabled')){\n Livewire::component($this->vendorNamespace . '::login-form', LoginForm::class);\n $this->loadRoutes();\n $this->loadViews();\n $this->loadMiddlewares();\n $this->loadTranslations();\n }\n }", "public function boot()\n {\n $source = dirname(__DIR__, 3) . '/config/config.php';\n\n if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {\n $this->publishes([$source => config_path('dubbo_cli.php')]);\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('dubbo_cli');\n }\n\n $this->mergeConfigFrom($source, 'dubbo_cli');\n }", "public function boot()\n {\n $this->package('domain/app');\n\n $this->setApplication();\n }", "public function boot()\n {\n $this->setUpConfig();\n $this->setUpConsoleCommands();\n }", "public function boot()\n {\n $this->strapRoutes();\n $this->strapViews();\n $this->strapMigrations();\n $this->strapCommands();\n\n $this->registerPolicies();\n }", "public function boot()\n {\n $this->app->singleton('LaraCurlService', function ($app) {\n return new LaraCurlService();\n });\n\n $this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }", "public function boot()\n {\n $providers = $this->make('config')->get('app.console_providers', array());\n foreach ($providers as $provider) {\n $provider = $this->make($provider);\n if ($provider && method_exists($provider, 'boot')) {\n $provider->boot();\n }\n }\n }", "public function boot()\n {\n foreach (glob(app_path('/Api/config/*.php')) as $path) {\n $path = realpath($path);\n $this->mergeConfigFrom($path, basename($path, '.php'));\n }\n\n // 引入自定义函数\n foreach (glob(app_path('/Helpers/*.php')) as $helper) {\n require_once $helper;\n }\n // 引入 api 版本路由\n $this->loadRoutesFrom(app_path('/Api/Routes/base.php'));\n\n }", "public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n //$this->app->loadDeferredProviders();\n\n if (!$this->commandsLoaded) {\n //$this->commands();\n\n $this->commandsLoaded = true;\n }\n }", "protected function boot()\n\t{\n\t\tforeach ($this->serviceProviders as $provider)\n\t\t{\n\t\t\t$provider->boot($this);\n\t\t}\n\n\t\t$this->booted = true;\n\t}", "public function boot()\n {\n $this->setupConfig();\n //register rotating daily monolog provider\n $this->app->register(MonologProvider::class);\n $this->app->register(CircuitBreakerServiceProvider::class);\n $this->app->register(CurlServiceProvider::class);\n }", "public function boot(): void\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->services, function ($service) {\n $this->bootServices($service);\n });\n\n $this->booted = true;\n }", "public static function boot() {\n\t\tstatic::container()->boot();\n\t}", "public function boot()\n {\n include_once('ComposerDependancies\\Global.php');\n //---------------------------------------------\n include_once('ComposerDependancies\\League.php');\n include_once('ComposerDependancies\\Team.php');\n include_once('ComposerDependancies\\Matchup.php');\n include_once('ComposerDependancies\\Player.php');\n include_once('ComposerDependancies\\Trade.php');\n include_once('ComposerDependancies\\Draft.php');\n include_once('ComposerDependancies\\Message.php');\n include_once('ComposerDependancies\\Poll.php');\n include_once('ComposerDependancies\\Chat.php');\n include_once('ComposerDependancies\\Rule.php');\n\n \n include_once('ComposerDependancies\\Admin\\Users.php');\n\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n if ($this->app instanceof LaravelApplication) {\n $this->publishes([\n __DIR__.'/../config/state-machine.php' => config_path('state-machine.php'),\n ], 'config');\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('state-machine');\n }\n }\n }", "public function boot()\n {\n $this->bootEvents();\n\n $this->bootPublishes();\n\n $this->bootTypes();\n\n $this->bootSchemas();\n\n $this->bootRouter();\n\n $this->bootViews();\n \n $this->bootSecurity();\n }", "public function boot()\n {\n //\n Configuration::environment(\"sandbox\");\n Configuration::merchantId(\"cmpss9trsxsr4538\");\n Configuration::publicKey(\"zy3x5mb5jwkcrxgr\");\n Configuration::privateKey(\"4d63c8b2c340daaa353be453b46f6ac2\");\n\n\n $modules = Directory::listDirectories(app_path('Modules'));\n\n foreach ($modules as $module)\n {\n $routesPath = app_path('Modules/' . $module . '/routes.php');\n $viewsPath = app_path('Modules/' . $module . '/Views');\n\n if (file_exists($routesPath))\n {\n require $routesPath;\n }\n\n if (file_exists($viewsPath))\n {\n $this->app->view->addLocation($viewsPath);\n }\n }\n }", "public function boot()\n {\n resolve(EngineManager::class)->extend('elastic', function () {\n return new ElasticScoutEngine(\n ElasticBuilder::create()\n ->setHosts(config('scout.elastic.hosts'))\n ->build()\n );\n });\n }", "public function boot(): void\n {\n try {\n // Just check if we have DB connection! This is to avoid\n // exceptions on new projects before configuring database options\n // @TODO: refcator the whole accessareas retrieval to be file-based, instead of db based\n DB::connection()->getPdo();\n\n if (Schema::hasTable(config('cortex.foundation.tables.accessareas'))) {\n // Register accessareas into service container, early before booting any module service providers!\n $this->app->singleton('accessareas', fn () => app('cortex.foundation.accessarea')->where('is_active', true)->get());\n }\n } catch (Exception $e) {\n // Be quiet! Do not do or say anything!!\n }\n\n $this->bootstrapModules();\n }", "public function boot()\n {\n Schema::defaultStringLength(191);\n\n $this->app->bindMethod([SendMailPasswordReset::class, 'handle'], function ($job, $app) {\n return $job->handle($app->make(MailService::class));\n });\n\n $this->app->bindMethod([ClearTokenPasswordReset::class, 'handle'], function ($job, $app) {\n return $job->handle($app->make(PasswordResetRepository::class));\n });\n\n $this->app->bind(AuthService::class, function ($app) {\n return new AuthService($app->make(HttpService::class));\n });\n }", "public function boot()\n {\n $this->app->register(UserServiceProvider::class);\n $this->app->register(DashboardServiceProvider::class);\n $this->app->register(CoreServiceProvider::class);\n $this->app->register(InstitutionalVideoServiceProvider::class);\n $this->app->register(InstitutionalServiceProvider::class);\n $this->app->register(TrainingServiceProvider::class);\n $this->app->register(CompanyServiceProvider::class);\n $this->app->register(LearningUnitServiceProvider::class);\n $this->app->register(PublicationServiceProvider::class);\n }", "public function boot()\n {\n $this->makeRepositories();\n }", "public function boot(): void\n {\n $this->loadMiddlewares();\n }", "public function boot()\n {\n $this->app->when(ChatAPIChannel::class)\n ->needs(ChatAPI::class)\n ->give(function () {\n $config = config('services.chatapi');\n return new ChatAPI(\n $config['token'],\n $config['api_url']\n );\n });\n }", "public function boot() {\r\n\t\t$hosting_service = HostResolver::get_host_service();\r\n\r\n\t\tif ( ! empty( $hosting_service ) ) {\r\n\t\t\t$this->provides[] = $hosting_service;\r\n\t\t}\r\n\t}", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n require(__DIR__ . '/../routes/console.php');\n } else {\n // Menus for BPM are done through middleware. \n Route::pushMiddlewareToGroup('web', AddToMenus::class);\n \n // Assigning to the web middleware will ensure all other middleware assigned to 'web'\n // will execute. If you wish to extend the user interface, you'll use the web middleware\n Route::middleware('web')\n ->namespace($this->namespace)\n ->group(__DIR__ . '/../routes/web.php');\n \n // If you wish to extend the api, be sure to utilize the api middleware. In your api \n // Routes file, you should prefix your routes with api/1.0\n Route::middleware('api')\n ->namespace($this->namespace)\n ->prefix('api/1.0')\n ->group(__DIR__ . '/../routes/api.php');\n \n Event::listen(ScreenBuilderStarting::class, function($event) {\n $event->manager->addScript(mix('js/screen-builder-extend.js', 'vendor/api-connector'));\n $event->manager->addScript(mix('js/screen-renderer-extend.js', 'vendor/api-connector'));\n });\n }\n\n // load migrations\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n\n // Load our views\n $this->loadViewsFrom(__DIR__.'/../resources/views/', 'api-connector');\n\n // Load our translations\n $this->loadTranslationsFrom(__DIR__.'/../lang', 'api-connector');\n\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/api-connector'),\n ], 'api-connector');\n\n $this->publishes([\n __DIR__ . '/../database/seeds' => database_path('seeds'),\n ], 'api-connector');\n\n $this->app['events']->listen(PackageEvent::class, PackageListener::class);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->bindCommands();\n $this->registerCommands();\n $this->app->bind(InstallerContract::class, Installer::class);\n\n $this->publishes([\n __DIR__.'/../config/exceptionlive.php' => base_path('config/exceptionlive.php'),\n ], 'config');\n }\n\n $this->registerMacros();\n }", "public function boot(){\r\n $this->app->configure('sdk');\r\n $this->publishes([\r\n __DIR__.'/../../resources/config/sdk.php' => config_path('sdk.php')\r\n ]);\r\n $this->mergeConfigFrom(__DIR__.'/../../resources/config/sdk.php','sdk');\r\n\r\n $api = config('sdk.api');\r\n foreach($api as $key => $value){\r\n $this->app->singleton($key,$value);\r\n }\r\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n EnvironmentCommand::class,\n EventGenerateCommand::class,\n EventMakeCommand::class,\n JobMakeCommand::class,\n KeyGenerateCommand::class,\n MailMakeCommand::class,\n ModelMakeCommand::class,\n NotificationMakeCommand::class,\n PolicyMakeCommand::class,\n ProviderMakeCommand::class,\n RequestMakeCommand::class,\n ResourceMakeCommand::class,\n RuleMakeCommand::class,\n ServeCommand::class,\n StorageLinkCommand::class,\n TestMakeCommand::class,\n ]);\n }\n }", "public function boot()\n {\n $this->app->bind(WeatherInterface::class, OpenWeatherMapService::class);\n $this->app->bind(OrderRepositoryInterface::class, EloquentOrderRepository::class);\n $this->app->bind(NotifyInterface::class, EmailNotifyService::class);\n }", "public function boot()\n {\n $this->app->bind(DateService::class,DateServiceImpl::class);\n $this->app->bind(DisasterEventQueryBuilder::class,DisasterEventQueryBuilderImpl::class);\n $this->app->bind(MedicalFacilityQueryBuilder::class,MedicalFacilityQueryBuilderImpl::class);\n $this->app->bind(RefugeCampQueryBuilder::class,RefugeCampQueryBuilderImpl::class);\n $this->app->bind(VictimQueryBuilder::class,VictimQueryBuilderImpl::class);\n $this->app->bind(VillageQueryBuilder::class,VillageQueryBuilderImpl::class);\n }", "public function boot()\n {\n\t\tif ( $this->app->runningInConsole() ) {\n\t\t\t$this->loadMigrationsFrom(__DIR__.'/migrations');\n\n//\t\t\t$this->publishes([\n//\t\t\t\t__DIR__.'/config/scheduler.php' => config_path('scheduler.php'),\n//\t\t\t\t__DIR__.'/console/CronTasksList.php' => app_path('Console/CronTasksList.php'),\n//\t\t\t\t__DIR__.'/views' => resource_path('views/vendor/scheduler'),\n//\t\t\t]);\n\n//\t\t\tapp('Revolta77\\ScheduleMonitor\\Conntroller\\CreateController')->index();\n\n//\t\t\t$this->commands([\n//\t\t\t\tConsole\\Commands\\CreateController::class,\n//\t\t\t]);\n\t\t}\n\t\t$this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }", "public function boot()\n {\n $this->bootPackages();\n }", "public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->commands($this->load(__DIR__.'/../Console', Command::class));\n }\n }", "public function boot(): void\n {\n $this->publishes(\n [\n __DIR__ . '/../config/laravel_entity_services.php' =>\n $this->app->make('path.config') . DIRECTORY_SEPARATOR . 'laravel_entity_services.php',\n ],\n 'laravel_repositories'\n );\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel_entity_services.php', 'laravel_entity_services');\n\n $this->registerCustomBindings();\n }", "public function boot()\n {\n // DEFAULT STRING LENGTH\n Schema::defaultStringLength(191);\n\n // PASSPORT\n Passport::routes(function (RouteRegistrar $router)\n {\n $router->forAccessTokens();\n });\n Passport::tokensExpireIn(now()->addDays(1));\n\n // SERVICES, REPOSITORIES, CONTRACTS BINDING\n $this->app->bind('App\\Contracts\\IUser', 'App\\Repositories\\UserRepository');\n $this->app->bind('App\\Contracts\\IUserType', 'App\\Repositories\\UserTypeRepository');\n $this->app->bind('App\\Contracts\\IApiToken', 'App\\Services\\ApiTokenService');\n $this->app->bind('App\\Contracts\\IModule', 'App\\Repositories\\ModuleRepository');\n $this->app->bind('App\\Contracts\\IModuleAction', 'App\\Repositories\\ModuleActionRepository');\n }", "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'deniskisel');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'deniskisel');\n// $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function bootstrap(): void\n {\n $globalConfigurationBuilder = (new GlobalConfigurationBuilder())->withEnvironmentVariables()\n ->withPhpFileConfigurationSource(__DIR__ . '/../config.php');\n (new BootstrapperCollection())->addMany([\n new DotEnvBootstrapper(__DIR__ . '/../.env'),\n new ConfigurationBootstrapper($globalConfigurationBuilder),\n new GlobalExceptionHandlerBootstrapper($this->container)\n ])->bootstrapAll();\n }", "public function boot()\n {\n $this->bootingDomain();\n\n $this->registerCommands();\n $this->registerListeners();\n $this->registerPolicies();\n $this->registerRoutes();\n $this->registerBladeComponents();\n $this->registerLivewireComponents();\n $this->registerSpotlightCommands();\n\n $this->bootedDomain();\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->registerMigrations();\n $this->registerMigrationFolder();\n $this->registerConfig();\n }\n }", "public function boot(): void\n {\n $this->app->bind(Telegram::class, static function () {\n return new Telegram(\n config('services.telegram-bot-api.token'),\n new HttpClient()\n );\n });\n }", "public function boot()\n {\n $this->bootModulesMenu();\n $this->bootSkinComposer();\n $this->bootCustomBladeDirectives();\n }", "public function boot()\n {\n\n if (! config('app.installed')) {\n return;\n }\n\n $this->loadRoutesFrom(__DIR__ . '/Routes/admin.php');\n $this->loadRoutesFrom(__DIR__ . '/Routes/public.php');\n\n $this->loadMigrationsFrom(__DIR__ . '/Database/Migrations');\n\n// $this->loadViewsFrom(__DIR__ . '/Resources/Views', 'portfolio');\n\n $this->loadTranslationsFrom(__DIR__ . '/Resources/Lang/', 'contact');\n\n //Add menu to admin panel\n $this->adminMenu();\n\n }", "public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n $this->app['config']->set([\n 'scout' => [\n 'driver' => setting('search_engine', 'mysql'),\n 'algolia' => [\n 'id' => setting('algolia_app_id'),\n 'secret' => setting('algolia_secret'),\n ],\n ],\n ]);\n }", "protected function bootServiceProviders()\n {\n foreach($this->activeProviders as $provider)\n {\n // check if the service provider has a boot method.\n if (method_exists($provider, 'boot')) {\n $provider->boot();\n }\n }\n }", "public function boot(): void\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'imc');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'imc');\n $this->registerPackageRoutes();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n {\n // Larapex Livewire\n $this->mergeConfigFrom(__DIR__ . '/../configs/larapex-livewire.php', 'larapex-livewire');\n\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'larapex-livewire');\n\n $this->registerBladeDirectives();\n\n if ($this->app->runningInConsole()) {\n $this->registerCommands();\n $this->publishResources();\n }\n }", "public function boot()\n {\n // Bootstrap code here.\n $this->app->singleton(L9SmsApiChannel::class, function () {\n $config = config('l9smsapi');\n if (empty($config['token']) || empty($config['service'])) {\n throw new \\Exception('L9SmsApi missing token and service in config');\n }\n\n return new L9SmsApiChannel($config['token'], $config['service']);\n });\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/l9smsapi.php' => config_path('l9smsapi.php'),\n ], 'config');\n }\n }", "public function boot()\n\t{\n\t\t$this->bindRepositories();\n\t}", "public function boot()\n {\n if (!$this->app->runningInConsole()) {\n return;\n }\n\n $this->commands([\n ListenCommand::class,\n InstallCommand::class,\n EventsListCommand::class,\n ObserverMakeCommand::class,\n ]);\n\n foreach ($this->listen as $event => $listeners) {\n foreach ($listeners as $listener) {\n RabbitEvents::listen($event, $listener);\n }\n }\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n MultiAuthInstallCommand::class,\n ]);\n }\n }", "public function boot() {\n\n\t\t$this->registerProviders();\n\t\t$this->bootProviders();\n\t\t$this->registerProxies();\n\t}", "public function boot(): void\n {\n // routes\n $this->loadRoutes();\n // assets\n $this->loadAssets('assets');\n // configuration\n $this->loadConfig('configs');\n // views\n $this->loadViews('views');\n // view extends\n $this->extendViews();\n // translations\n $this->loadTranslates('views');\n // adminer\n $this->loadAdminer('adminer');\n // commands\n $this->loadCommands();\n // gates\n $this->registerGates();\n // listeners\n $this->registerListeners();\n // settings\n $this->applySettings();\n }", "public function boot()\n {\n $this->setupFacades();\n $this->setupViews();\n $this->setupBlades();\n }", "public function boot(): void\n {\n $this->app\n ->when(RocketChatWebhookChannel::class)\n ->needs(RocketChat::class)\n ->give(function () {\n return new RocketChat(\n new HttpClient(),\n Config::get('services.rocketchat.url'),\n Config::get('services.rocketchat.token'),\n Config::get('services.rocketchat.channel')\n );\n });\n }", "public function boot()\n {\n\n $this->app->translate_manager->addTranslateProvider(TranslateMenu::class);\n\n\n\n $this->loadRoutesFrom(__DIR__ . '/../routes/api.php');\n $this->loadMigrationsFrom(__DIR__ . '/../migrations/');\n\n\n\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/larkeauth-rbac-model.conf' => config_path('larkeauth-rbac-model.conf.larkeauth'),\n __DIR__ . '/../config/larkeauth.php' => config_path('larkeauth.php.larkeauth')\n ], 'larke-auth-config');\n\n $this->commands([\n Commands\\Install::class,\n Commands\\GroupAdd::class,\n Commands\\PolicyAdd::class,\n Commands\\RoleAssign::class,\n ]);\n }\n\n $this->mergeConfigFrom(__DIR__ . '/../config/larkeauth.php', 'larkeauth');\n\n $this->bootObserver();\n }", "public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n $this->app->registerConfiguredProvidersInRequest();\n\n $this->fireAppCallbacks($this->bootingCallbacks);\n\n /** array_walk\n * If when a provider booting, it reg some other providers,\n * then the new providers added to $this->serviceProviders\n * then array_walk will loop the new ones and boot them. // pingpong/modules 2.0 use this feature\n */\n array_walk($this->serviceProviders, function ($p) {\n $this->bootProvider($p);\n });\n\n $this->booted = true;\n\n $this->fireAppCallbacks($this->bootedCallbacks);\n }", "public function boot()\n {\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "public function boot()\n {\n $this->app->booted(function () {\n $this->callMethodIfExists('jobs');\n });\n }", "public function boot()\n\t{\n\t\t$this->package('atlantis/admin');\n\n\t\t#i: Set the locale\n\t\t$this->setLocale();\n\n $this->registerServiceAdminValidator();\n $this->registerServiceAdminFactory();\n $this->registerServiceAdminDataTable();\n $this->registerServiceModules();\n\n\t\t#i: Include our filters, view composers, and routes\n\t\tinclude __DIR__.'/../../filters.php';\n\t\tinclude __DIR__.'/../../views.php';\n\t\tinclude __DIR__.'/../../routes.php';\n\n\t\t$this->app['events']->fire('admin.ready');\n\t}", "public function boot(): void\n {\n $this->registerRoutes();\n $this->registerResources();\n $this->registerMixins();\n\n if ($this->app->runningInConsole()) {\n $this->offerPublishing();\n $this->registerMigrations();\n }\n }", "public function boot()\n {\n $this->bootSetTimeLocale();\n $this->bootBladeHotelRole();\n $this->bootBladeHotelGuest();\n $this->bootBladeIcon();\n }", "public function boot()\n {\n $this->dispatch(new SetCoreConnection());\n $this->dispatch(new ConfigureCommandBus());\n $this->dispatch(new ConfigureTranslator());\n $this->dispatch(new LoadStreamsConfiguration());\n\n $this->dispatch(new InitializeApplication());\n $this->dispatch(new AutoloadEntryModels());\n $this->dispatch(new AddAssetNamespaces());\n $this->dispatch(new AddImageNamespaces());\n $this->dispatch(new AddViewNamespaces());\n $this->dispatch(new AddTwigExtensions());\n $this->dispatch(new RegisterAddons());\n }", "public function boot(): void\n {\n $this->loadViews();\n $this->loadTranslations();\n\n if ($this->app->runningInConsole()) {\n $this->publishMultipleConfig();\n $this->publishViews(false);\n $this->publishTranslations(false);\n }\n }", "public function boot()\n {\n $this->bootForConsole();\n $this->loadRoutesFrom(__DIR__ . '/routes/web.php');\n $this->loadViewsFrom(__DIR__ . '/./../resources/views', 'bakerysoft');\n }", "public function boot()\n {\n $this->app->booted(function () {\n $this->defineRoutes();\n });\n $this->defineResources();\n $this->registerDependencies();\n }", "public function boot()\n {\n $this->app->bind(CustomersRepositoryInterface::class, CustomersRepository::class);\n $this->app->bind(CountryToCodeMapperInterface::class, CountryToCodeMapper::class);\n $this->app->bind(PhoneNumbersValidatorInterface::class, PhoneNumbersRegexValidator::class);\n $this->app->bind(CustomersFilterServiceInterface::class, CustomersFilterService::class);\n $this->app->bind(CacheInterface::class, CacheAdapter::class);\n\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([$this->configPath() => config_path('oauth.php')], 'oauth');\n }\n\n app()->bind(ClientToken::class, function () {\n return new ClientToken();\n });\n\n app()->bind(TokenParser::class, function () {\n return new TokenParser(\n app()->get(Request::class)\n );\n });\n\n app()->bind(OAuthClient::class, function () {\n return new OAuthClient(\n app()->get(Request::class),\n app()->get(ClientToken::class)\n );\n });\n\n app()->bind(AccountService::class, function () {\n return new AccountService(app()->get(OAuthClient::class));\n });\n }", "public function boot()\n {\n Client::observe(ClientObserver::class);\n $this->app->bind(ClientRepositoryInterface::class, function ($app) {\n return new ClientRepository(Client::class);\n });\n $this->app->bind(UserRepositoryInterface::class, function ($app) {\n return new UserRepository(User::class);\n });\n }", "public function boot()\n {\n $this->setupFacades(); \n //$this->setupConfigs(); \n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n //\n }\n\n $this->loadRoutesFrom(__DIR__ . '/routes.php');\n }", "public function boot()\n {\n $path = __DIR__.'/../..';\n\n $this->package('clumsy/cms', 'clumsy', $path);\n\n $this->registerAuthRoutes();\n $this->registerBackEndRoutes();\n\n require $path.'/helpers.php';\n require $path.'/errors.php';\n require $path.'/filters.php';\n\n if ($this->app->runningInConsole()) {\n $this->app->make('Clumsy\\CMS\\Clumsy');\n }\n\n }", "public function boot()\n {\n $this->mergeConfigFrom(__DIR__ . '/../../config/bs4.php', 'bs4');\n $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'bs');\n $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'bs');\n\n if ($this->app->runningInConsole())\n {\n $this->publishes([\n __DIR__ . '/../../resources/views' => resource_path('views/vendor/bs'),\n ], 'views');\n\n $this->publishes([\n __DIR__ . '/../../resources/lang' => resource_path('lang/vendor/bs'),\n ], 'lang');\n\n $this->publishes([\n __DIR__ . '/../../config' => config_path(),\n ], 'config');\n }\n }", "public function boot()\n {\n $this->client = new HttpClient([\n 'base_uri' => 'https://api.ipfinder.io/v1/',\n 'headers' => [\n 'User-Agent' => 'Laravel-GeoIP-Torann',\n ],\n 'query' => [\n 'token' => $this->config('key'),\n ],\n ]);\n }", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Check::class,\n Clear::class,\n Fix::class,\n Fresh::class,\n Foo::class,\n Ide::class,\n MakeDatabase::class,\n Ping::class,\n Version::class,\n ]);\n }\n }", "public function boot()\n {\n $app = $this->app;\n\n if (!$app->runningInConsole()) {\n return;\n }\n\n $source = realpath(__DIR__ . '/config/config.php');\n\n if (class_exists('Illuminate\\Foundation\\Application', false)) {\n // L5\n $this->publishes([$source => config_path('sniffer-rules.php')]);\n $this->mergeConfigFrom($source, 'sniffer-rules');\n } elseif (class_exists('Laravel\\Lumen\\Application', false)) {\n // Lumen\n $app->configure('sniffer-rules');\n $this->mergeConfigFrom($source, 'sniffer-rules');\n } else {\n // L4\n $this->package('chefsplate/sniffer-rules', null, __DIR__);\n }\n }", "public function boot()\r\n\t{\r\n\t\t$this->package('estey/hipsupport');\r\n\t\t$this->registerHipSupport();\r\n\t\t$this->registerHipSupportOnlineCommand();\r\n\t\t$this->registerHipSupportOfflineCommand();\r\n\r\n\t\t$this->registerCommands();\r\n\t}", "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n ControllerMakeCommand::class,\n ServiceMakeCommand::class,\n RepositoryMakeCommand::class,\n ModelMakeCommand::class,\n RequestRuleMakeCommand::class,\n ]);\n }\n }", "public function boot() {\n $srcDir = __DIR__ . '/../';\n \n $this->package('baseline/baseline', 'baseline', $srcDir);\n \n include $srcDir . 'Http/routes.php';\n include $srcDir . 'Http/filters.php';\n }", "public function boot()\n {\n $this->app->bind('App\\Services\\ProviderAccountService', function() {\n return new ProviderAccountService;\n });\n }", "public function boot()\n {\n $this->loadViewsFrom(__DIR__ . '/resources/views', 'Counters');\n\n $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'Counters');\n\n\n //To load migration files directly from the package\n// $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n\n $this->app->booted(function () {\n $loader = AliasLoader::getInstance();\n $loader->alias('Counters', Counters::class);\n\n });\n\n $this->publishes([\n __DIR__ . '/../config/counter.php' => config_path('counter.php'),\n ], 'config');\n\n\n\n $this->publishes([\n __DIR__.'/../database/migrations/0000_00_00_000000_create_counters_tables.php' => $this->app->databasePath().\"/migrations/0000_00_00_000000_create_counters_tables.php\",\n ], 'migrations');\n\n\n if ($this->app->runningInConsole()) {\n $this->commands([\\Maher\\Counters\\Commands\\MakeCounter::class]);\n }\n\n\n }", "public function boot(Application $app)\n {\n\n }", "public function boot()\n {\n $this->loadFilters();\n $this->loadRoutes();\n $this->loadHelpers();\n $this->loadCommands();\n }", "public function boot()\n {\n }", "public function boot()\n {\n }", "public function boot()\n {\n }", "public function boot()\n {\n }" ]
[ "0.7342354", "0.72115344", "0.72045606", "0.71229565", "0.7110962", "0.7082294", "0.7077916", "0.70714337", "0.7052025", "0.70234996", "0.70118046", "0.7005517", "0.69550276", "0.6931787", "0.69304705", "0.6927122", "0.6910007", "0.69058853", "0.6900327", "0.689661", "0.6895445", "0.6886933", "0.68853027", "0.6880453", "0.6876052", "0.6874365", "0.68678993", "0.68643886", "0.6863172", "0.68618375", "0.68584615", "0.6857102", "0.685599", "0.6855742", "0.685175", "0.6840086", "0.6833647", "0.68309957", "0.6826625", "0.68253994", "0.682322", "0.6818006", "0.6814446", "0.68119043", "0.6811291", "0.68070227", "0.68069947", "0.68019533", "0.68007374", "0.67962325", "0.6795983", "0.67907226", "0.6788914", "0.67868465", "0.678414", "0.6782577", "0.67776054", "0.6772685", "0.6766274", "0.6765994", "0.67614365", "0.67607445", "0.675866", "0.6756398", "0.6752818", "0.67511266", "0.67465293", "0.67440975", "0.67438674", "0.67428005", "0.67388153", "0.6738725", "0.6738422", "0.67380404", "0.67311186", "0.6728974", "0.67285264", "0.6726248", "0.6725217", "0.67197037", "0.6717161", "0.6716261", "0.6713992", "0.6711724", "0.6702587", "0.66990435", "0.6690547", "0.66888714", "0.6686608", "0.6683616", "0.66820496", "0.66817683", "0.66805947", "0.6677231", "0.6676365", "0.667199", "0.66712487", "0.66709524", "0.66709524", "0.66709524", "0.66709524" ]
0.0
-1
Register any application services.
public function register() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n $this->registerMetaService();\n $this->registerLabelService();\n $this->registerTypeService();\n $this->registerGroupeService();\n $this->registerActiviteService();\n $this->registerRiiinglinkService();\n $this->registerInviteService();\n $this->registerTagService();\n $this->registerAuthService();\n $this->registerChangeService();\n $this->registerRevisionService();\n $this->registerUploadService();\n //$this->registerTransformerService();\n }", "public function register()\n { \n // User Repository\n $this->app->bind('App\\Contracts\\Repository\\User', 'App\\Repositories\\User');\n \n // JWT Token Repository\n $this->app->bind('App\\Contracts\\Repository\\JSONWebToken', 'App\\Repositories\\JSONWebToken');\n \n $this->registerClearSettleApiLogin();\n \n $this->registerClearSettleApiClients();\n \n \n }", "public function register()\n {\n $this->registerRequestHandler();\n $this->registerAuthorizationService();\n $this->registerServices();\n }", "public function register()\n {\n $this->app->bind(\n PegawaiServiceContract::class,\n PegawaiService::class \n );\n\n $this->app->bind(\n RiwayatPendidikanServiceContract::class,\n RiwayatPendidikanService::class \n );\n\n $this->app->bind(\n ProductionHouseServiceContract::class,\n ProductionHouseService::class\n );\n\n $this->app->bind(\n MovieServiceContract::class,\n MovieService::class\n );\n\n $this->app->bind(\n PangkatServiceContract::class,\n PangkatService::class \n );\n\n }", "public function register()\n {\n // $this->app->bind('AuthService', AuthService::class);\n }", "public function register()\n {\n $this->registerServiceProviders();\n $this->registerSettingsService();\n $this->registerHelpers();\n }", "public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n //$this->registerMenuService();\n\n //$this->registerReplyService();\n }", "public function register()\n {\n $this->registerRepositories();\n }", "public function register()\n {\n $this->registerFacades();\n $this->registerRespository();\n }", "public function register()\n {\n $this->app->bind('App\\Services\\UserService');\n $this->app->bind('App\\Services\\PostService');\n $this->app->bind('App\\Services\\MyPickService');\n $this->app->bind('App\\Services\\FacebookService');\n $this->app->bind('App\\Services\\LikeService');\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n\n\n\n\n $this->app->register(ResponseMacroServiceProvider::class);\n $this->app->register(TwitterServiceProvider::class);\n }", "public function register()\n {\n $this->registerGraphQL();\n\n $this->registerConsole();\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n\n $this->registerCommand();\n $this->registerSchedule();\n $this->registerDev();\n\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/telescope-error-service-client.php', 'telescope-error-service-client'\n );\n\n $this->registerStorageDriver();\n\n $this->commands([\n Console\\InstallCommand::class,\n Console\\PublishCommand::class,\n ]);\n }", "public function register()\n\t{\n\t\t$this->registerPasswordBroker();\n\n\t\t$this->registerTokenRepository();\n\t}", "public function register() {\n $this->registerProviders();\n $this->registerFacades();\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\UtilitiesServiceProvider');\n $this->registerLogViewer();\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\CommandsServiceProvider');\n }", "public function register()\n {\n // $this->app->make('CheckStructureService');\n }", "public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'APIcoLAB\\Services\\Registrar'\n\t\t);\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Flight\\FlightRepository',\n 'APIcoLAB\\Repositories\\Flight\\SkyScannerFlightRepository'\n );\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Place\\PlaceRepository',\n 'APIcoLAB\\Repositories\\Place\\SkyScannerPlaceRepository'\n );\n\t}", "public function register()\n {\n $this->app->register(\\Maatwebsite\\Excel\\ExcelServiceProvider::class);\n $this->app->register(\\Intervention\\Image\\ImageServiceProvider::class);\n $this->app->register(\\Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\DatatablesServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\ButtonsServiceProvider::class);\n\n $loader = null;\n if (class_exists('Illuminate\\Foundation\\AliasLoader')) {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n }\n\n // Facades\n if ($loader != null) {\n $loader->alias('Image', \\Intervention\\Image\\Facades\\Image::class);\n $loader->alias('Excel', \\Maatwebsite\\Excel\\Facades\\Excel::class);\n\n }\n\n if (app()->environment() != 'production') {\n // Service Providers\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n\n // Facades\n if ($loader != null) {\n $loader->alias('Debugbar', \\Barryvdh\\Debugbar\\Facade::class);\n }\n }\n\n if ($this->app->environment('local', 'testing')) {\n $this->app->register(\\Laravel\\Dusk\\DuskServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerInertia();\n $this->registerLengthAwarePaginator();\n }", "public function register()\n {\n $this->registerFlareFacade();\n $this->registerServiceProviders();\n $this->registerBindings();\n }", "public function register()\n {\n $this->app->bind(\n 'Toyopecas\\Repositories\\TopoRepository',\n 'Toyopecas\\Repositories\\TopoRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ServicesRepository',\n 'Toyopecas\\Repositories\\ServicesRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\SobreRepository',\n 'Toyopecas\\Repositories\\SobreRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ProdutosRepository',\n 'Toyopecas\\Repositories\\ProdutosRepositoryEloquent'\n );\n }", "public function register()\r\n {\r\n Passport::ignoreMigrations();\r\n\r\n $this->app->singleton(\r\n CityRepositoryInterface::class,\r\n CityRepository::class\r\n );\r\n\r\n $this->app->singleton(\r\n BarangayRepositoryInterface::class,\r\n BarangayRepository::class\r\n );\r\n }", "public function register()\n {\n $this->registerRepositories();\n\n $this->pushMiddleware();\n }", "public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel-base.php', 'laravel-base');\r\n\r\n $this->app->bind(UuidGenerator::class, UuidGeneratorService::class);\r\n\r\n }", "public function register()\n {\n\n $this->app->register(RepositoryServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind(\n 'Uhmane\\Repositories\\ContatosRepository', \n 'Uhmane\\Repositories\\ContatosRepositoryEloquent'\n );\n }", "public function register()\r\n {\r\n $this->app->bind(\r\n ViberServiceInterface::class,\r\n ViberService::class\r\n );\r\n\r\n $this->app->bind(\r\n ApplicantServiceInterface::class,\r\n ApplicantService::class\r\n );\r\n }", "public function register()\n {\n $this->app->register('ProAI\\Datamapper\\Providers\\MetadataServiceProvider');\n\n $this->app->register('ProAI\\Datamapper\\Presenter\\Providers\\MetadataServiceProvider');\n\n $this->registerScanner();\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->app->bind(\n 'Larafolio\\Http\\HttpValidator\\HttpValidator',\n 'Larafolio\\Http\\HttpValidator\\CurlValidator'\n );\n\n $this->app->register(ImageServiceProvider::class);\n }", "public function register()\n {\n // Register all repositories\n foreach ($this->repositories as $repository) {\n $this->app->bind(\"App\\Repository\\Contracts\\I{$repository}\",\n \"App\\Repository\\Repositories\\\\{$repository}\");\n }\n\n // Register all services\n foreach ($this->services as $service) {\n $this->app->bind(\"App\\Service\\Contracts\\I{$service}\", \n \"App\\Service\\Modules\\\\{$service}\");\n }\n }", "public function register()\n {\n $this->registerAdapterFactory();\n $this->registerDigitalOceanFactory();\n $this->registerManager();\n $this->registerBindings();\n }", "public function register()\n {\n // Only Environment local\n if ($this->app->environment() !== 'production') {\n foreach ($this->services as $serviceClass) {\n $this->registerClass($serviceClass);\n }\n }\n\n // Register Aliases\n $this->registerAliases();\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Contracts\\UsersInterface',\n 'App\\Services\\UsersService'\n );\n $this->app->bind(\n 'App\\Contracts\\CallsInterface',\n 'App\\Services\\CallsService'\n );\n $this->app->bind(\n 'App\\Contracts\\ContactsInterface',\n 'App\\Services\\ContactsService'\n );\n $this->app->bind(\n 'App\\Contracts\\EmailsInterface',\n 'App\\Services\\EmailsService'\n );\n $this->app->bind(\n 'App\\Contracts\\PhoneNumbersInterface',\n 'App\\Services\\PhoneNumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\NumbersInterface',\n 'App\\Services\\NumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\UserNumbersInterface',\n 'App\\Services\\UserNumbersService'\n );\n }", "public function register()\n {\n $this->registerBrowser();\n\n $this->registerViewFinder();\n }", "public function register()\n {\n $this->registerFriendsLog();\n $this->registerNotifications();\n $this->registerAPI();\n $this->registerMailChimpIntegration();\n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->app->register(\\Laravel\\Telescope\\TelescopeServiceProvider::class);\n $this->app->register(TelescopeServiceProvider::class);\n }\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/awesio-auth.php', 'awesio-auth');\n\n $this->app->singleton(AuthContract::class, Auth::class);\n\n $this->registerRepositories();\n\n $this->registerServices();\n\n $this->registerHelpers();\n }", "public function register()\n {\n $this->registerRepository();\n $this->registerMigrator();\n $this->registerArtisanCommands();\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/services.php', 'services'\n );\n }", "public function register()\n {\n $this->registerRateLimiting();\n\n $this->registerHttpValidation();\n\n $this->registerHttpParsers();\n\n $this->registerResponseFactory();\n\n $this->registerMiddleware();\n }", "public function register()\n {\n $this->registerConfig();\n $this->registerView();\n $this->registerMessage();\n $this->registerMenu();\n $this->registerOutput();\n $this->registerCommands();\n require __DIR__ . '/Service/ServiceProvider.php';\n require __DIR__ . '/Service/RegisterRepoInterface.php';\n require __DIR__ . '/Service/ErrorHandling.php';\n $this->registerExportDompdf();\n $this->registerExtjs();\n }", "public function register()\n {\n $this->registerRepository();\n $this->registerParser();\n }", "public function register()\n {\n $this->registerOtherProviders()->registerAliases();\n $this->loadViewsFrom(__DIR__.'/../../resources/views', 'jarvisPlatform');\n $this->app->bind('jarvis.auth.provider', AppAuthenticationProvider::class);\n $this->loadRoutes();\n }", "public function register()\n {\n $this->registerGuard();\n $this->registerBladeDirectives();\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->app->register(Providers\\ManagerServiceProvider::class);\n $this->app->register(Providers\\ValidationServiceProvider::class);\n }", "public function register()\n {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n\n $loader->alias('Laratrust', 'Laratrust\\LaratrustFacade');\n $loader->alias('Form', 'Collective\\Html\\FormFacade');\n $loader->alias('Html', 'Collective\\Html\\HtmlFacade');\n $loader->alias('Markdown', 'BrianFaust\\Parsedown\\Facades\\Parsedown');\n\n $this->app->register('Baum\\Providers\\BaumServiceProvider');\n $this->app->register('BrianFaust\\Parsedown\\ServiceProvider');\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Laravel\\Scout\\ScoutServiceProvider');\n $this->app->register('Laratrust\\LaratrustServiceProvider');\n\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\AuthServiceProvider');\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\EventServiceProvider');\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\ViewServiceProvider');\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->app->bind(ReviewService::class, function ($app) {\n return new ReviewService();\n });\n }", "public function register()\n {\n // register its dependencies\n $this->app->register(\\Cviebrock\\EloquentSluggable\\ServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind(\n Services\\UserService::class,\n Services\\Implementations\\UserServiceImplementation::class\n );\n $this->app->bind(\n Services\\FamilyCardService::class,\n Services\\Implementations\\FamilyCardServiceImplementation::class\n );\n }", "public function register()\n {\n $this->app->bind(VehicleRepository::class, GuzzleVehicleRepository::class);\n }", "public function register()\n {\n $this->app->bind('gameService', 'App\\Service\\GameService');\n }", "public function register()\n {\n $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function($app){\n return new ElasticsearchNedvizhimostsObserver(new Client());\n });\n\n // $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function()\n // {\n // return new ElasticsearchNedvizhimostsObserver(new Client());\n // });\n }", "public function register()\n {\n // Register the app\n $this->registerApp();\n\n // Register Commands\n $this->registerCommands();\n }", "public function register()\n {\n $this->registerGeography();\n\n $this->registerCommands();\n\n $this->mergeConfig();\n\n $this->countriesCache();\n }", "public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'App\\Services\\Registrar'\n\t\t);\n \n $this->app->bind(\"App\\\\Services\\\\ILoginService\",\"App\\\\Services\\\\LoginService\");\n \n $this->app->bind(\"App\\\\Repositories\\\\IItemRepository\",\"App\\\\Repositories\\\\ItemRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IOutletRepository\",\"App\\\\Repositories\\\\OutletRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IInventoryRepository\",\"App\\\\Repositories\\\\InventoryRepository\");\n\t}", "public function register()\n {\n $this->registerRollbar();\n }", "public function register()\n {\n $this->app->bind('activity', function () {\n return new ActivityService(\n $this->app->make(Activity::class),\n $this->app->make(PermissionService::class)\n );\n });\n\n $this->app->bind('views', function () {\n return new ViewService(\n $this->app->make(View::class),\n $this->app->make(PermissionService::class)\n );\n });\n\n $this->app->bind('setting', function () {\n return new SettingService(\n $this->app->make(Setting::class),\n $this->app->make(Repository::class)\n );\n });\n\n $this->app->bind('images', function () {\n return new ImageService(\n $this->app->make(Image::class),\n $this->app->make(ImageManager::class),\n $this->app->make(Factory::class),\n $this->app->make(Repository::class)\n );\n });\n }", "public function register()\n {\n $this->app->bind(CertificationService::class, function($app){\n return new CertificationService();\n });\n }", "public function register()\n {\n $this->registerUserProvider();\n $this->registerGroupProvider();\n $this->registerNeo();\n\n $this->registerCommands();\n\n $this->app->booting(function()\n {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n $loader->alias('Neo', 'Wetcat\\Neo\\Facades\\Neo');\n });\n }", "public function register()\n {\n App::bind('CreateTagService', function($app) {\n return new CreateTagService;\n });\n\n App::bind('UpdateTagService', function($app) {\n return new UpdateTagService;\n });\n }", "public function register()\n {\n $this->registerDomainLocalization();\n $this->registerDomainLocaleFilter();\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(MailConfigServiceProvider::class);\n }", "public function register()\n {\n //\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\CompanyInterface', \n 'App\\Repositories\\CompanyRepo'\n );\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\UtilityInterface', \n 'App\\Repositories\\UtilityRepo'\n );\n }", "public function register()\n {\n $this->registerPayment();\n\n $this->app->alias('image', 'App\\Framework\\Image\\ImageService');\n }", "public function register()\n {\n $this->app->bind(AttributeServiceInterface::class,AttributeService::class);\n $this->app->bind(ProductServiceIntarface::class,ProductService::class);\n\n\n }", "public function register()\n {\n App::bind('App\\Repositories\\UserRepositoryInterface','App\\Repositories\\UserRepository');\n App::bind('App\\Repositories\\AnimalRepositoryInterface','App\\Repositories\\AnimalRepository');\n App::bind('App\\Repositories\\DonationTypeRepositoryInterface','App\\Repositories\\DonationTypeRepository');\n App::bind('App\\Repositories\\NewsAniRepositoryInterface','App\\Repositories\\NewsAniRepository');\n App::bind('App\\Repositories\\DonationRepositoryInterface','App\\Repositories\\DonationRepository');\n App::bind('App\\Repositories\\ProductRepositoryInterface','App\\Repositories\\ProductRepository');\n App::bind('App\\Repositories\\CategoryRepositoryInterface','App\\Repositories\\CategoryRepository');\n App::bind('App\\Repositories\\TransferMoneyRepositoryInterface','App\\Repositories\\TransferMoneyRepository');\n App::bind('App\\Repositories\\ShippingRepositoryInterface','App\\Repositories\\ShippingRepository');\n App::bind('App\\Repositories\\ReserveProductRepositoryInterface','App\\Repositories\\ReserveProductRepository');\n App::bind('App\\Repositories\\Product_reserveRepositoryInterface','App\\Repositories\\Product_reserveRepository');\n App::bind('App\\Repositories\\Ordering_productRepositoryInterface','App\\Repositories\\Ordering_productRepository');\n App::bind('App\\Repositories\\OrderingRepositoryInterface','App\\Repositories\\OrderingRepository');\n App::bind('App\\Repositories\\UserUpdateSlipRepositoryInterface','App\\Repositories\\UserUpdateSlipRepository');\n }", "public function register()\n {\n if ($this->app->runningInConsole()) {\n $this->registerPublishing();\n }\n }", "public function register()\n {\n $this->app->bind(HttpClient::class, function ($app) {\n return new HttpClient();\n });\n\n $this->app->bind(SeasonService::class, function ($app) {\n return new SeasonService($app->make(HttpClient::class));\n });\n\n $this->app->bind(MatchListingController::class, function ($app) {\n return new MatchListingController($app->make(SeasonService::class));\n });\n\n }", "public function register()\n {\n $this->setupConfig();\n\n $this->bindServices();\n }", "public function register()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Console\\MakeEndpointCommand::class,\n Console\\MakeControllerCommand::class,\n Console\\MakeRepositoryCommand::class,\n Console\\MakeTransformerCommand::class,\n Console\\MakeModelCommand::class,\n ]);\n }\n\n $this->registerFractal();\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(AuthServiceProvider::class);\n }", "public function register()\n {\n // Bind facade\n\n $this->registerRepositoryBibdings();\n $this->registerFacades();\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(\\Laravel\\Socialite\\SocialiteServiceProvider::class);\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->registerDataStore();\n\n $this->registerStorageFactory();\n\n $this->registerStorageManager();\n\n $this->registerSimplePhoto();\n }", "public function register()\n {\n // Default configuration file\n $this->mergeConfigFrom(\n __DIR__.'/Config/auzo_tools.php', 'auzoTools'\n );\n\n $this->registerModelBindings();\n $this->registerFacadesAliases();\n }", "public function register()\n {\n\n\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\UserRepository',\n 'Onlinecorrection\\Repositories\\UserRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ClientRepository',\n 'Onlinecorrection\\Repositories\\ClientRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ProjectRepository',\n 'Onlinecorrection\\Repositories\\ProjectRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentRepository',\n 'Onlinecorrection\\Repositories\\DocumentRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderRepository',\n 'Onlinecorrection\\Repositories\\OrderRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderItemRepository',\n 'Onlinecorrection\\Repositories\\OrderItemRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentImageRepository',\n 'Onlinecorrection\\Repositories\\DocumentImageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\PackageRepository',\n 'Onlinecorrection\\Repositories\\PackageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\StatusRepository',\n 'Onlinecorrection\\Repositories\\StatusRepositoryEloquent'\n );\n\n }", "public function register()\n {\n\n $config = $this->app['config']['cors'];\n\n $this->app->bind('Yocome\\Cors\\CorsService', function() use ($config){\n return new CorsService($config);\n });\n\n }", "public function register()\n {\n $this->app->bind(\\Cookiesoft\\Repositories\\CategoryRepository::class, \\Cookiesoft\\Repositories\\CategoryRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\BillpayRepository::class, \\Cookiesoft\\Repositories\\BillpayRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\UserRepository::class, \\Cookiesoft\\Repositories\\UserRepositoryEloquent::class);\n //:end-bindings:\n }", "public function register()\n {\n $this->app->singleton(ThirdPartyAuthService::class, function ($app) {\n return new ThirdPartyAuthService(\n config('settings.authentication_services'),\n $app['Laravel\\Socialite\\Contracts\\Factory'],\n $app['Illuminate\\Contracts\\Auth\\Factory']\n );\n });\n\n $this->app->singleton(ImageValidator::class, function ($app) {\n return new ImageValidator(\n config('settings.image.max_filesize'),\n config('settings.image.mime_types'),\n $app['Intervention\\Image\\ImageManager']\n );\n });\n\n $this->app->singleton(ImageService::class, function ($app) {\n return new ImageService(\n config('settings.image.max_width'),\n config('settings.image.max_height'),\n config('settings.image.folder')\n );\n });\n\n $this->app->singleton(RandomWordService::class, function ($app) {\n return new RandomWordService(\n $app['App\\Repositories\\WordRepository'],\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.number_of_words_to_remember')\n );\n });\n\n $this->app->singleton(WordRepository::class, function ($app) {\n return new WordRepository(config('settings.min_number_of_chars_per_one_mistake_in_search'));\n });\n\n $this->app->singleton(CheckAnswerService::class, function ($app) {\n return new CheckAnswerService(\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.min_number_of_chars_per_one_mistake')\n );\n });\n\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerJWT();\n $this->registerJWSProxy();\n $this->registerJWTAlgoFactory();\n $this->registerPayload();\n $this->registerPayloadValidator();\n $this->registerPayloadUtilities();\n\n // use this if your package has a config file\n // config([\n // 'config/JWT.php',\n // ]);\n }", "public function register()\n {\n $this->registerManager();\n $this->registerConnection();\n $this->registerWorker();\n $this->registerListener();\n $this->registerFailedJobServices();\n $this->registerOpisSecurityKey();\n }", "public function register()\n {\n $this->app->register(RouterServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind('App\\Services\\TripService.php', function ($app) {\n return new TripService();\n });\n }", "public function register()\n {\n $this->registerUserComponent();\n $this->registerLocationComponent();\n\n }", "public function register()\n {\n $this->app->bind(\n \\App\\Services\\UserCertificate\\IUserCertificateService::class,\n \\App\\Services\\UserCertificate\\UserCertificateService::class\n );\n }", "public function register()\n {\n $this->app->bind(FacebookMarketingContract::class,FacebookMarketingService::class);\n }", "public function register()\n {\n /**\n * Register additional service\n * providers if they exist.\n */\n foreach ($this->providers as $provider) {\n if (class_exists($provider)) {\n $this->app->register($provider);\n }\n }\n }", "public function register()\n {\n $this->app->singleton('composer', function($app)\n {\n return new Composer($app['files'], $app['path.base']);\n });\n\n $this->app->singleton('forge', function($app)\n {\n return new Forge($app);\n });\n\n // Register the additional service providers.\n $this->app->register('Nova\\Console\\ScheduleServiceProvider');\n $this->app->register('Nova\\Queue\\ConsoleServiceProvider');\n }", "public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__.'/../config/colissimo.php', 'colissimo');\r\n $this->mergeConfigFrom(__DIR__.'/../config/rules.php', 'colissimo.rules');\r\n $this->mergeConfigFrom(__DIR__.'/../config/prices.php', 'colissimo.prices');\r\n $this->mergeConfigFrom(__DIR__.'/../config/zones.php', 'colissimo.zones');\r\n $this->mergeConfigFrom(__DIR__.'/../config/insurances.php', 'colissimo.insurances');\r\n $this->mergeConfigFrom(__DIR__.'/../config/supplements.php', 'colissimo.supplements');\r\n // Register the service the package provides.\r\n $this->app->singleton('colissimo', function ($app) {\r\n return new Colissimo;\r\n });\r\n }", "public function register()\n {\n\n\n\n $this->mergeConfigFrom(__DIR__ . '/../config/counter.php', 'counter');\n\n $this->app->register(RouteServiceProvider::class);\n\n\n }", "public function register(){\n $this->registerDependencies();\n $this->registerAlias();\n $this->registerServiceCommands();\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../config/atlas.php', 'atlas'\n );\n \n $this->app->singleton(CoreContract::class, Core::class);\n \n $this->registerFacades([\n 'Atlas' => 'Atlas\\Facades\\Atlas',\n ]);\n }", "public function register()\n {\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyService::class,\n \\App\\Services\\Survey\\SurveyService::class\n );\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyQuestionService::class,\n \\App\\Services\\Survey\\SurveyQuestionService::class\n );\n\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyAttemptService::class,\n \\App\\Services\\Survey\\SurveyAttemptService::class\n );\n\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyAttemptDataService::class,\n \\App\\Services\\Survey\\SurveyAttemptDataService::class\n );\n }", "public function register()\n {\n $this->registerRepositoryBindings();\n\n $this->registerInterfaceBindings();\n\n $this->registerAuthorizationServer();\n\n $this->registerResourceServer();\n\n $this->registerFilterBindings();\n\n $this->registerCommands();\n }", "public function register()\n {\n $this->app->bind(TelescopeRouteServiceContract::class, TelescopeRouteService::class);\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/faithgen-events.php', 'faithgen-events');\n\n $this->app->singleton(EventsService::class);\n $this->app->singleton(GuestService::class);\n }", "public function register()\n {\n $this->registerAliases();\n $this->registerFormBuilder();\n\n // Register package commands\n $this->commands([\n 'CoreDbCommand',\n 'CoreSetupCommand',\n 'CoreSeedCommand',\n 'EventEndCommand',\n 'ArchiveMaxAttempts',\n 'CronCommand',\n 'ExpireInstructors',\n 'SetTestLock',\n 'StudentArchiveTraining',\n 'TestBuildCommand',\n 'TestPublishCommand',\n ]);\n\n // Merge package config with one in outer app \n // the app-level config will override the base package config\n $this->mergeConfigFrom(\n __DIR__.'/../config/core.php', 'core'\n );\n\n // Bind our 'Flash' class\n $this->app->bindShared('flash', function () {\n return $this->app->make('Hdmaster\\Core\\Notifications\\FlashNotifier');\n });\n\n // Register package dependencies\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Bootstrapper\\BootstrapperL5ServiceProvider');\n $this->app->register('Codesleeve\\LaravelStapler\\Providers\\L5ServiceProvider');\n $this->app->register('PragmaRX\\ZipCode\\Vendor\\Laravel\\ServiceProvider');\n $this->app->register('Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider');\n\n $this->app->register('Zizaco\\Confide\\ServiceProvider');\n $this->app->register('Zizaco\\Entrust\\EntrustServiceProvider');\n }" ]
[ "0.78798115", "0.7601541", "0.7493926", "0.73860854", "0.7369017", "0.73060066", "0.72911495", "0.72905713", "0.7279868", "0.72693264", "0.72689337", "0.72660935", "0.7248237", "0.7217507", "0.72099274", "0.71999437", "0.71971434", "0.719557", "0.7177418", "0.7176995", "0.7164727", "0.714884", "0.7133956", "0.71305424", "0.7124248", "0.7120879", "0.71042967", "0.7103381", "0.7098175", "0.7095116", "0.7093082", "0.7090919", "0.7089653", "0.708781", "0.7083585", "0.70768666", "0.70750886", "0.7074432", "0.70725685", "0.70717555", "0.70717484", "0.70686233", "0.7067628", "0.7062164", "0.7057745", "0.7053146", "0.7051819", "0.704817", "0.7045575", "0.7043879", "0.7043779", "0.70416707", "0.70389324", "0.70387244", "0.70344466", "0.70343846", "0.70323545", "0.7029406", "0.70262766", "0.7023864", "0.7023558", "0.7023114", "0.7022826", "0.7022281", "0.70220125", "0.70219433", "0.7021686", "0.7019965", "0.70183533", "0.70170337", "0.701164", "0.70088667", "0.7007829", "0.700737", "0.70070124", "0.70069975", "0.69998974", "0.6999735", "0.69992167", "0.6998713", "0.69985986", "0.6997343", "0.6996582", "0.69957423", "0.69922924", "0.69905806", "0.6988383", "0.698833", "0.6986343", "0.69857514", "0.69847983", "0.69788915", "0.69785535", "0.6978336", "0.6976838", "0.6973475", "0.6973336", "0.69718456", "0.6971578", "0.6968889", "0.6968535" ]
0.0
-1
return the subscribed events, their methods and priorities
public static function getSubscribedEvents() { return array( KernelEvents::CONTROLLER => 'openDataFile' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getSubscribedEvents()\n {\n return [NotificationEvent::NAME => ['handleNotificationEvent', self::getPriority()]];\n }", "public static function getSubscribedEvents();", "public static function getSubscribedEvents();", "public function getSubscribedEvents();", "public static function get_subscribed_events() {\r\n\t\treturn [\r\n\t\t\t'rocket_buffer' => [\r\n\t\t\t\t[ 'extract_ie_conditionals', 1 ],\r\n\t\t\t\t[ 'inject_ie_conditionals', 34 ],\r\n\t\t\t],\r\n\t\t];\r\n\t}", "public static function getSubscribedEvents()\n {\n return array(\n Constants::OMNIPAY_REQUEST_BEFORE_SEND => array('onOmnipayRequestBeforeSend', self::PRIORITY),\n Constants::OMNIPAY_RESPONSE_SUCCESS => array('onOmnipayResponseSuccess', self::PRIORITY),\n Constants::OMNIPAY_REQUEST_ERROR => array('onOmnipayRequestError', self::PRIORITY),\n );\n }", "public static function getSubscribedEvents() {\n return [];\n }", "public static function getSubscribedEvents()\n {\n return array(EventInterface::EXECUTE_DEFINITION => array('executeChainedSteps', -50));\n }", "public static function getSubscribedEvents()\n {\n return array(\n 'beforeScenario' => array('prepareDrupal', 10),\n 'beforeOutline' => array('prepareDrupal', 10),\n 'afterScenario' => array('teardownDrupal', -10),\n 'afterOutline' => array('teardownDrupal', -10)\n );\n }", "public static function getSubscribedEvents(): array\n\t{\n\t\t// Only subscribe events if the component is installed and enabled\n\t\tif (!ComponentHelper::isEnabled('com_ars'))\n\t\t{\n\t\t\treturn [];\n\t\t}\n\n\t\treturn [\n\t\t\t'onContentPrepare' => 'onContentPrepare',\n\t\t];\n\t}", "public function getOtherEvents();", "public function getSubscribedEvents()\n {\n $events = array();\n $self = $this;\n foreach ($this->plugins as $plugin) {\n foreach (array_keys($plugin->getSubscribedEvents()) as $event) {\n if (isset($events[$event])) {\n continue;\n }\n $events[$event] = function() use ($event, $self) {\n $self->handleEvent($event, func_get_args());\n };\n }\n }\n return $events;\n }", "public static function getSubscribedEvents()\n {\n // event can be dispatch with dispatcher in a controller ...\n return [\n 'user.update' => 'updateUser'\n ];\n }", "public function getEvents();", "public function getEvents();", "public static function getSubscribedEvents()\n {\n return array(\n DefaultEvents::default_pre_index => 'onCustomListener',\n DefaultEvents::default_pre_index => 'onCustomListener',\n OtherEvents::other_pre_index => 'onCustomListener',\n OtherEvents::other_pox_index => 'onCustomListener'\n );\n }", "public static function getSubscribedEvents()\n {\n return [\n TheliaEvents::ORDER_UPDATE_STATUS => ['implementInvoice', 100]\n ];\n }", "public static function getSubscribedEvents(): array\n {\n return [\n ProductEvents::PRODUCT_LOADED_EVENT => 'onProductsLoaded',\n ProductEvents::PRODUCT_WRITTEN_EVENT => 'onProductCreated',\n OrderEvents::ORDER_LOADED_EVENT => 'onOrdersLoaded',\n ];\n }", "public static function getSubscribedEvents()\n {\n return array(\n FixEvents::APPLY => array(\n 'apply', 128\n )\n );\n }", "public static function get_subscribed_events() {\r\n\t\treturn [\r\n\t\t\t'wp_head' => [ 'preload_fonts' ],\r\n\t\t];\r\n\t}", "public static function getSubscribedEvents()\n {\n return array(\n AvisotaMessageEvents::POST_RENDER_MESSAGE_CONTENT => array(\n array('injectGA', -500),\n ),\n\n GetOperationButtonEvent::NAME => array(\n array('prepareButton'),\n ),\n\n BuildDataDefinitionEvent::NAME => array(\n array('injectGALegend'),\n ),\n );\n }", "public function getSubscribedEvents()\n {\n return [\n Events::postFlush,\n Events::preRemove\n ];\n }", "public function getSubscribedEvents(): array\n {\n return [\n Events::postLoad,\n Events::onFlush,\n Events::postFlush,\n ];\n }", "public static function getSubscribedEvents()\n {\n return array(\n GetFormDataControllerEvent::NAME => array(\n array('getFormDataNewsController')\n )\n );\n }", "public static function eventSubscriptions() : iterable;", "public function getSubscribedEvents()\n\t{\n\t\treturn [\n\t\t\tEvents::onFlush\n\t\t];\n\t}", "static function getSubscribedEvents() {\n $events[KernelEvents::VIEW][] = array('onHtmlFragment', 100);\n $events[KernelEvents::VIEW][] = array('onHtmlPage', 50);\n\n return $events;\n }", "public static function getSubscribedEvents()\n {\n return [\n KernelEvents::VIEW => ['onKernelView', 30],\n KernelEvents::RESPONSE => ['onKernelResponse', 30],\n ];\n }", "static public function getSubscribedEvents()\n {\n return array(\n JobEventsMap::STATE_START => array('logJobEvent'),\n JobEventsMap::STATE_FAIL => array('logJobEvent'),\n JobEventsMap::STATE_ERROR => array('logJobEvent'),\n JobEventsMap::STATE_ADD => array('logJobEvent'),\n JobEventsMap::STATE_FINISH => array('logJobEvent'),\n \n WorkerEventsMap::WORKER_START => array('logWorkerEvent'),\n WorkerEventsMap::WORKER_FINISH => array('logWorkerEvent'),\n WorkerEventsMap::WORKER_ERROR => array('logWorkerEvent'),\n \n QueueEventsMap::QUEUE_LIST => array('logQueueListEvent'),\n QueueEventsMap::QUEUE_LOCK => array('logQueueLockEvent'),\n QueueEventsMap::QUEUE_UNLOCK => array('logQueueUnlockEvent'),\n \n QueueEventsMap::QUEUE_LOOKUP => array('logQueueLookupEvent'),\n QueueEventsMap::QUEUE_PURGE => array('logQueuePurgeEvent'),\n QueueEventsMap::QUEUE_PURGE_ACTIVITY => array('logQueuePurgeActivityEvent'),\n QueueEventsMap::QUEUE_QUERY_ACTIVITY => array('logQueueQueryActivityEvent'),\n \n QueueEventsMap::QUEUE_REC => array('logQueueReceiveEvent'),\n QueueEventsMap::QUEUE_REMOVE => array('logQueueRemoveEvent'),\n QueueEventsMap::QUEUE_SENT => array('logQueueSendEvent'),\n \n \n MonitoringEventsMap::MONITOR_COMMIT => array('logMonitorCommitEvent'),\n MonitoringEventsMap::MONITOR_LOCK => array('logMonitorLockEvent'),\n MonitoringEventsMap::MONITOR_QUERY => array('logMonitorQueryEvent'),\n MonitoringEventsMap::MONITOR_RUN => array('logMonitorRunEvent')\n );\n }", "public function getSubscribedEvents()\n {\n return [\n Events::postPersist,\n Events::postUpdate,\n// Events::preUpdate,\n ];\n\n }", "public function getSubscribedEvents()\n {\n return [FeedFacade::FEED_EVENT];\n }", "public function implementedEvents() {\n\t\treturn array(\n\t\t\t'Rachet.WampServer.construct' => 'construct',\n\t\t\t'RachetStatistics.WebsocketServer.getUptime' => 'getUptime',\n\t\t);\n\t}", "public function getSubscribedEvents()\n {\n return [\n Events::postUpdate,\n Events::postPersist,\n Events::preRemove\n ];\n }", "public function getSubscribedEvents()\n {\n return array(\n Events::onFlush,\n Events::loadClassMetadata\n );\n }", "public static function getSubscribedEvents()\n {\n $result = ['command' => 'onCommand'];\n return $result;\n }", "public function getEvents()\n {\n return $this->eventListeners;\n }", "public function getSubscribedEvents()\n {\n return [\n Events::postPersist,\n Events::postUpdate,\n Events::preRemove,\n ];\n }", "public static function getSubscribedEvents(): array\n {\n return [\n KernelEvents::REQUEST => ['onKernelRequest', 110],\n KernelEvents::RESPONSE => ['onKernelResponse', 10],\n ];\n }", "public static function getSubscribedEvents()\n {\n return [\n KernelEvents::CONTROLLER => \"onKernelController\",\n KernelEvents::EXCEPTION => \"onKernelException\"\n ];\n }", "public static function get_subscribed_events() {\r\n\t\t$current_theme = wp_get_theme();\r\n\r\n\t\tif ( 'Bridge' !== $current_theme->get( 'Name' ) ) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\r\n\t\treturn [\r\n\t\t\t'rocket_lazyload_background_images' => 'disable_lazyload_background_images',\r\n\t\t\t'update_option_qode_options_proya' => [ 'maybe_clear_cache', 10, 2 ],\r\n\t\t];\r\n\t}", "public function getTriggeringEvents();", "public function getSubscribedEvents()\n\t{\n\t\treturn [\n\t\t\t'Nette\\Application\\Application::onStartup' => 'appStartup',\n\t\t\t'Nette\\Application\\Application::onRequest' => 'appRequest',\n\t\t];\n\t}", "public static function getSubscribedEvents()\n {\n return array(\n KernelEvents::REQUEST => array('onKernelRequest', 9999),\n KernelEvents::RESPONSE => array('onKernelResponse', 9999),\n //KernelEvents::EXCEPTION => 'onKernelException'\n );\n }", "public static function get_subscribed_events() {\r\n\t\t$slug = rocket_get_constant( 'WP_ROCKET_SLUG', 'wp_rocket_settings' );\r\n\r\n\t\treturn [\r\n\t\t\t'rocket_varnish_ip' => 'set_varnish_localhost',\r\n\t\t\t'rocket_varnish_purge_request_host' => 'set_varnish_purge_request_host',\r\n\t\t\t'rocket_cron_deactivate_cloudflare_devmode' => 'deactivate_devmode',\r\n\t\t\t'after_rocket_clean_domain' => 'auto_purge',\r\n\t\t\t'after_rocket_clean_post' => [ 'auto_purge_by_url', 10, 3 ],\r\n\t\t\t'admin_post_rocket_purge_cloudflare' => 'purge_cache',\r\n\t\t\t'init' => [ 'set_real_ip', 1 ],\r\n\t\t\t'update_option_' . $slug => [ 'save_cloudflare_options', 10, 2 ],\r\n\t\t\t'pre_update_option_' . $slug => [ 'save_cloudflare_old_settings', 10, 2 ],\r\n\t\t\t'admin_notices' => [\r\n\t\t\t\t[ 'maybe_display_purge_notice' ],\r\n\t\t\t\t[ 'maybe_print_update_settings_notice' ],\r\n\t\t\t],\r\n\t\t];\r\n\t}", "public function getSubscribedEvents()\n {\n return array(Events::postLoad);\n }", "public static function getSubscribedEvents()\n {\n return array(\n ContaoEvents::CONTROLLER_ADD_TO_URL => 'handleAddToUrl',\n ContaoEvents::CONTROLLER_ADD_ENCLOSURE_TO_TEMPLATE => 'handleAddEnclosureToTemplate',\n ContaoEvents::CONTROLLER_ADD_IMAGE_TO_TEMPLATE => 'handleAddImageToTemplate',\n ContaoEvents::CONTROLLER_GENERATE_FRONTEND_URL => 'handleGenerateFrontendUrl',\n ContaoEvents::CONTROLLER_GET_ARTICLE => 'handleGetArticle',\n ContaoEvents::CONTROLLER_GET_CONTENT_ELEMENT => 'handleGetContentElement',\n ContaoEvents::CONTROLLER_GET_PAGE_DETAILS => 'handleGetPageDetails',\n ContaoEvents::CONTROLLER_GET_TEMPLATE_GROUP => 'handleGetTemplateGroup',\n ContaoEvents::CONTROLLER_LOAD_DATA_CONTAINER => 'handleLoadDataContainer',\n ContaoEvents::CONTROLLER_REDIRECT => 'handleRedirect',\n ContaoEvents::CONTROLLER_RELOAD => 'handleReload',\n ContaoEvents::CONTROLLER_REPLACE_INSERT_TAGS => 'handleReplaceInsertTags',\n );\n }", "public static function getSubscribedEvents()\n {\n return [\n // PluginEvents::INIT => ['init', PHP_INT_MAX]\n ];\n }", "private static function get_events() {\n\t\treturn array(\n\t\t\t'formidable_send_usage' => 'weekly',\n\t\t);\n\t}", "public static function getSubscribedEvents() {\n return [\n PackageEvents::POST_PACKAGE_INSTALL => 'postPackageInstall',\n PackageEvents::POST_PACKAGE_UPDATE => 'postPackageUpdate',\n ];\n }", "public function getSubscribedEvents()\n {\n return [\n Events::prePersist,\n Events::postUpdate,\n Events::preRemove,\n ];\n }", "public static function getSubscribedEvents()\n {\n return array(\n Events::PreFlush => 'onPreFlush',\n Events::PostFlush => 'onPostFlush',\n );\n }", "public function getSubscribedEvents(): array\n {\n return [\n Events::prePersist,\n Events::preUpdate,\n ];\n }", "public function getSubscribedEvents()\n {\n return [\n 'postPersist',\n 'postUpdate',\n 'preRemove',\n ];\n }", "public function getSubscribedEvents()\n {\n return [\n 'postPersist',\n 'postUpdate',\n 'preRemove',\n ];\n }", "public static function getSubscribedEvents()\n {\n return [\n SubscriptionController::USER_SUBSCRIBED => 'onUserSubscribed',\n ];\n }", "function getAllEvents() {\n\n $this->events = $this->getEvents();\n //If plugin adds new events for an already defined type\n Plugin::doHook('item_get_events', $this);\n\n return $this->events;\n }", "public static function getSubscribedEvents()\n {\n return [\n //Step 4:Classname::ConstantName or event name 'kernel.request' => 'functionameyouliketocall' - onKernelRequest()\n KernelEvents::REQUEST => 'onKernelRequest',\n ];\n }", "function getEvents() {\n return [];\n }", "public static function getSubscribedEvents()\n\t{\n\t\treturn [\n\t\t\tMeetupEvents::MEETUP_JOIN\t=> 'onUserJoins',\n\t\t\tKernelEvents::TERMINATE\t\t=> 'generatePreferences'\n\t\t];\n\t}", "public function getSubscribedEvents()\n {\n return array(\n Events::prePersist,\n Events::onFlush,\n Events::loadClassMetadata\n );\n }", "public static function getSubscribedEvents()\n {\n return array(\n KernelEvents::REQUEST => 'onMatchRequest'\n );\n }", "public function getSubscribedEvents()\n {\n return array(\n 'postPersist',\n \t'postFlush',\n 'onFlush'\n );\n }", "public function getSubscribedEvents()\n {\n return [\n Events::postLoad,\n Events::prePersist,\n ];\n }", "public function events()\n {\n return $this->events;\n }", "public function events()\n {\n return $this->events;\n }", "public function getEvents() { return $this->_events; }", "function getEvents() {\n\n $events = ['new' => __('New change'),\n 'update' => __('Update of a change'),\n 'solved' => __('Change solved'),\n 'validation' => __('Validation request'),\n 'validation_answer' => __('Validation request answer'),\n 'closed' => __('Closure of a change'),\n 'delete' => __('Deleting a change')];\n\n $events = array_merge($events, parent::getEvents());\n asort($events);\n return $events;\n }", "public static function getSubscribedEvents()\n {\n return array(KernelEvents::CONTROLLER => array(\n array('doTwig', 0), // 0 is just the priority\n ));\n }", "public static function getSubscribedEvents(): array\n {\n return [\n WsServerEvent::HANDSHAKE_SUCCESS => 'handshakeOk',\n WsServerEvent::MESSAGE_RECEIVE => 'messageReceive',\n WsServerEvent::CLOSE_BEFORE => 'messageReceive',\n ];\n }", "public function getSubscribedEvents()\n {\n return [\n 'preUpdate',\n 'prePersist',\n 'preRemove',\n 'preFlush',\n 'postFlush',\n 'postPersist',\n 'postUpdate',\n 'postRemove',\n 'postLoad',\n 'onFlush',\n ];\n }", "public static function getSubscribedEvents()\n {\n return array(\n KernelEvents::RESPONSE => array('onResponse', 200)\n );\n }", "public static function getSubscribedEvents()\n {\n return array(\n ServiceCacheEvents::LOADED => 'onCacheLoaded',\n );\n }", "public static function getSubscribedEvents()\n {\n return array(\n CollectSettingOptionsEvent::NAME => array('handler', 1000),\n );\n }", "public static function getSubscribedEvents()\n {\n return array(\n CollectSettingOptionsEvent::NAME => array('handler', 1000),\n );\n }", "public static function getSubscribedEvents()\n\t{\n\t\treturn array(\n\t\t\tBrowserTestCase::TEST_ENDED_EVENT => array('onTestEnd', 0),\n\t\t);\n\t}", "public static function getSubscribedEvents() {\n return [\n ScriptEvents::POST_INSTALL_CMD => 'install',\n ScriptEvents::POST_UPDATE_CMD => 'install',\n ];\n }", "public function getSubscribedEvents()\n {\n return array(\n 'command.php' => 'handleCommand',\n 'command.php.help' => 'handleCommandHelp'\n );\n }", "public static function getSubscribedEvents()\n {\n return array(\n KernelEvents::REQUEST => array('onKernelRequest', 7),\n KernelEvents::RESPONSE => 'onKernelResponse',\n // KernelEvents::CONTROLLER => 'onKernelController'\n );\n }", "public static function getSubscribedEvents()\n {\n return [\n [\n 'event' => 'serializer.pre_serialize',\n 'method' => 'onPreSerialize',\n ],\n [\n 'event' => 'serializer.post_serialize',\n 'method' => 'onPostSerialize',\n ],\n [\n 'event' => 'serializer.pre_deserialize',\n 'method' => 'onPreDeSerialize',\n ],\n [\n 'event' => 'serializer.post_deserialize',\n 'method' => 'onPostDeSerialize',\n ],\n ];\n }", "public static function getSubscribedEvents()\n {\n return [\n SetMessageStatusEvent::NAME => 'onSetMessageStatus',\n ];\n }", "public function getSubscribedEvents(): array\n {\n return [\n 'postPersist',\n 'preUpdate',\n 'preRemove',\n ];\n }", "public static function getSubscribedEvents()\n {\n return array(\n KernelEvents::RESPONSE => 'onKernelResponse',\n KernelEvents::REQUEST => 'onKernelRequest'\n );\n }", "public function getSubscribedEvents()\n {\n return [\n 'prePersist',\n 'postPersist',\n 'preUpdate',\n 'postLoad',\n ];\n }", "public function getSubEvents()\n {\n return $this->subEvents;\n }", "public static function getSubscribedEvents()\n {\n return array(\n ApplicationCreatedEvent::NAME => array(\n array( 'sendConfirmationMail', 0 ),\n array( 'createAdmissionSubscriber', - 2 ),\n ),\n );\n }", "public static function getSubscribedEvents()\n {\n return [\n 'onPluginsInitialized' => ['onPluginsInitialized', 0]\n ];\n }", "public static function getSubscribedEvents()\n {\n return [\n 'onPluginsInitialized' => ['onPluginsInitialized', 0]\n ];\n }", "public static function getSubscribedEvents(): array\n {\n return [\n Events::FIGURE_CREATED => 'onFigureCreated',\n ];\n }", "public static function getSubscribedEvents(): array {\n return array(\n OnBeforeRouteEnterEvent::class => 'onBeforeRouteEnter',\n );\n }", "public function implementedEvents() {\n\t\treturn array(\n\t\t\t'Crud.beforeHandle' => array('callable' => 'beforeHandle', 'priority' => 10),\n\t\t\t'Crud.setFlash' => array('callable' => 'setFlash', 'priority' => 5),\n\n\t\t\t'Crud.beforeRender' => array('callable' => 'respond', 'priority' => 100),\n\t\t\t'Crud.beforeRedirect' => array('callable' => 'respond', 'priority' => 100)\n\t\t);\n\t}", "public function getSubscribedEvents()\n {\n return $this->wrapped->getSubscribedEvents();\n }", "public static function events();", "public static function getSubscribedEvents()\n {\n return [\n TheliaEvents::ORDER_BEFORE_PAYMENT => ['sendOrderConfirmationEmail', 129]\n ];\n }", "public function getSubscribedEvents(): array\n {\n return [\n Events::onFlush\n ];\n }", "public static function getSubscribedEvents()\n\t{\n\t\treturn [\n\t\t\tFormEvents::PRE_SET_DATA => 'preSetData',\n\t\t];\n\t}", "public function getEvents()\n {\n return $this->_events;\n }", "public function getSubscribedEvents()\n {\n return array(self::prePersist);\n }", "public function getSubscribedEvents()\n {\n return [Events::loadClassMetadata];\n }", "static public function getSubscribedEvents()\n {\n return array(\n MauticEventTrigger::TRIGGERUPDATE => array('onPerformTest', 0)\n );\n }", "public static function getSubscribedEvents()\n {\n return [\n FormEvents::PRE_SET_DATA => 'onPreSetData',\n ];\n }", "public static function getSubscribedEvents()\n {\n return [\n FormEvents::PRE_SET_DATA => 'onPreSetData',\n ];\n }" ]
[ "0.7402781", "0.7365954", "0.7365954", "0.720792", "0.7159295", "0.7059951", "0.70453227", "0.7022645", "0.6955377", "0.69515216", "0.6941954", "0.69407237", "0.69404954", "0.69347644", "0.69347644", "0.6934746", "0.69216", "0.68992424", "0.68857306", "0.68790895", "0.6860921", "0.68442166", "0.68390393", "0.6830979", "0.68212444", "0.6798415", "0.67942697", "0.67939925", "0.67930883", "0.6792602", "0.6785656", "0.6756117", "0.6752917", "0.6751293", "0.6747694", "0.67252874", "0.6716272", "0.6704892", "0.669937", "0.6691477", "0.66913414", "0.66792756", "0.66697776", "0.6665305", "0.6661054", "0.6657198", "0.6654528", "0.6644556", "0.66406393", "0.66400427", "0.6638036", "0.6630649", "0.6628051", "0.6628051", "0.6624325", "0.6618895", "0.66114116", "0.6607424", "0.66054547", "0.6597079", "0.6596283", "0.65902644", "0.65846056", "0.65843385", "0.65843385", "0.6577529", "0.65677345", "0.65600073", "0.65591407", "0.6558904", "0.6538483", "0.65365064", "0.6534825", "0.6534825", "0.65344447", "0.6520833", "0.65167856", "0.65145063", "0.65068895", "0.6506689", "0.6505178", "0.64741653", "0.64700735", "0.6468238", "0.6466156", "0.6448274", "0.6448274", "0.64384073", "0.6437605", "0.64298433", "0.6422066", "0.6413599", "0.64117897", "0.64106923", "0.64010453", "0.63935095", "0.639123", "0.6380656", "0.6368904", "0.6362064", "0.6362064" ]
0.0
-1
the type for entities is always saml because manage is using saml internally
public function generateForNewEntity(ManageEntity $entity, string $workflowState): array { return [ 'data' => $this->generateDataForNewEntity($entity, $workflowState), 'type' => 'saml20_sp', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getEntityType(): string;", "public function entityFor(): string;", "protected abstract function initializeEntityType(): string;", "public function getEntityType();", "function getEntityType() {\n return $this->entity_type;\n }", "public function getFormattedEntityType();", "public function getType(): EntityType;", "public function getEntityTypeCode()\n {\n return 'sales_rule';\n }", "public function getEntityTypeCode()\n {\n return 'sales_rule';\n }", "public function getEntityType(): ?string;", "public function getEntityType(): string\n {\n return $this->entityType;\n }", "public function getEntityType()\n {\n if (empty($this->_type)) {\n $this->setType(\\OuterEdge\\Layout\\Model\\Element::ENTITY);\n }\n \n return parent::getEntityType();\n }", "static function getEntityType()\n\t{\n\t\treturn 'node';\n\t}", "abstract public function getEntityTypeCode();", "public function getExtendedType()\n {\n return EntityType::class;\n }", "public function getEntityType()\n {\n return $this->entity_type;\n }", "public function getEntityType()\n {\n return $this->entity_type;\n }", "public function getEntityType()\n\t{\n\t\treturn $this->entity_type;\n\t}", "public function getEntityType() {\n return $this->entityType;\n }", "public function getEntityTypeCode()\n {\n return 'manage_task';\n }", "public function getEntityTypeCode()\n {\n return 'catalog_rule';\n }", "public function getEntityType() {\n return $this->datasource()->getEntityType();\n }", "function getType()\n\t{\n\t\treturn \"st\";\n\t}", "public function getEntityType() {\n\t\treturn self::ELASTICSEARCH_TYPE_DOCUMENT;\n\t}", "public function getEntityType()\n {\n return \\Dsync\\Dsync\\Model\\System\\Config\\Source\\Entity\\Type::SHIPMENT;\n }", "public function getMappingEntityType();", "public function setType(EntityType $type);", "abstract public function getEntityTypeID();", "function entity_type_machine_name_plural($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->machineNamePlural();\n}", "function entity_type_label_single($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelSingle();\n}", "public function getTypeAttribute(){\n return 'company';\n }", "public function setMappedEntityType($entity_type);", "public function getEntityTypeId(){\n $entityType = Mage::getModel('eav/entity_type')->loadByCode($this->_entityType);\n if (!$entityType->getId()){\n Mage::helper('connector')\n ->log(\"Entity type \" . $this->_entityType . \" undefined\", Zend_log::ERR);\n return false;\n }\n return $entityType->getId();\n }", "public function testNonBundleEntityType() {\n $assert_session = $this->assertSession();\n $page = $this->getSession()->getPage();\n\n // Log in as a user that can edit layout templates.\n $this->drupalLogin($this->drupalCreateUser([\n 'configure any layout',\n 'administer user display',\n ]));\n\n $this->drupalGet('admin/config/people/accounts/display/default');\n $this->submitForm(['layout[enabled]' => TRUE], 'Save');\n $this->submitForm(['layout[allow_custom]' => TRUE], 'Save');\n\n $page->clickLink('Manage layout');\n $assert_session->pageTextContains('You are editing the layout template for all users.');\n\n $this->drupalGet('user');\n $page->clickLink('Layout');\n $assert_session->pageTextContains('You are editing the layout for this user. Edit the template for all users instead.');\n\n // Log in as a user that cannot edit layout templates.\n $this->drupalLogin($this->drupalCreateUser([\n 'configure any layout',\n ]));\n $this->drupalGet('user');\n $page->clickLink('Layout');\n $assert_session->pageTextContains('You are editing the layout for this user.');\n $assert_session->pageTextNotContains('Edit the template for all users instead.');\n }", "private function getEntityLabel( $type )\n {\n return $this->getConf( \"entities.\" . $type . \".labels.entity.name\" ) ;\n }", "function entity_type_label_plural($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelPlural();\n}", "function simplesamlphp_get_mtype($set) {\n $map = array(\n 'saml20-sp-remote' => '{admin:metadata_saml20-sp}',\n 'saml20-sp-hosted' => '{admin:metadata_saml20-sp}',\n 'saml20-idp-remote' => '{admin:metadata_saml20-idp}',\n 'saml20-idp-hosted' => '{admin:metadata_saml20-idp}',\n 'shib13-sp-remote' => '{admin:metadata_shib13-sp}',\n 'shib13-sp-hosted' => '{admin:metadata_shib13-sp}',\n 'shib13-idp-remote' => '{admin:metadata_shib13-idp}',\n 'shib13-idp-hosted' => '{admin:metadata_shib13-idp}',\n 'adfs-sp-remote' => '{admin:metadata_adfs-sp}',\n 'adfs-sp-hosted' => '{admin:metadata_adfs-sp}',\n 'adfs-idp-remote' => '{admin:metadata_adfs-idp}',\n 'adfs-idp-hosted' => '{admin:metadata_adfs-idp}',\n );\n\n return $map[$set];\n}", "public function getEntityClassName() {}", "function entity_type_translate($entity_type)\n{\n $data = entity_type_translate_array($entity_type);\n if (!is_array($data)) { return NULL; }\n\n return array($data['table'], $data['id_field'], $data['name_field'], $data['ignore_field'], $data['entity_humanize']);\n}", "abstract protected function getEntityClass();", "function entity_type_label_single_lc($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelSingleLowerCase();\n}", "public function getEntityClass();", "public function getName() \n { \n return 'saml_extension'; \n }", "function streetformatnl_civicrm_managed(&$entities) {\n return _streetformatnl_civix_civicrm_managed($entities);\n}", "public function entityTypeId();", "abstract public function getSamlParameters();", "protected abstract function getPluralEntityName();", "function entity_type_label_plural_lc($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelPluralLowerCase();\n}", "function entity_descr($type, $entity)\n{\n global $config, $entity_cache;\n\n if (is_numeric($entity))\n {\n $entity = get_entity_by_id_cache($type, $entity);\n }\n\n $translate = entity_type_translate_array($type);\n\n $text = $entity[$translate['entity_descr_field']];\n\n return($text);\n}", "public function getId(): string\n {\n return $this->entityType;\n }", "function entity_rewrite($entity_type, &$entity)\n{\n $translate = entity_type_translate_array($entity_type);\n\n // By default, fill $entity['entity_name'] with name_field contents.\n if (isset($translate['name_field'])) { $entity['entity_name'] = $entity[$translate['name_field']]; }\n\n // By default, fill $entity['entity_shortname'] with shortname_field contents. Fallback to entity_name when field name is not set.\n if (isset($translate['shortname_field'])) { $entity['entity_shortname'] = $entity[$translate['name_field']]; } else { $entity['entity_shortname'] = $entity['entity_name']; }\n\n // By default, fill $entity['entity_descr'] with descr_field contents.\n if (isset($translate['descr_field'])) { $entity['entity_descr'] = $entity[$translate['descr_field']]; }\n\n // By default, fill $entity['entity_id'] with id_field contents.\n if (isset($translate['id_field'])) { $entity['entity_id'] = $entity[$translate['id_field']]; }\n\n switch($entity_type)\n {\n case \"bgp_peer\":\n // Special handling of name/shortname/descr for bgp_peer, since it combines multiple elements.\n\n if (Net_IPv6::checkIPv6($entity['bgpPeerRemoteAddr']))\n {\n $addr = Net_IPv6::compress($entity['bgpPeerRemoteAddr']);\n } else {\n $addr = $entity['bgpPeerRemoteAddr'];\n }\n\n $entity['entity_name'] = \"AS\".$entity['bgpPeerRemoteAs'] .\" \". $addr;\n $entity['entity_shortname'] = $addr;\n $entity['entity_descr'] = $entity['astext'];\n break;\n\n case \"sla\":\n $entity['entity_name'] = 'SLA #' . $entity['sla_index'];\n if (!empty($entity['sla_target']) && ($entity['sla_target'] != $entity['sla_tag']))\n {\n if (get_ip_version($entity['sla_target']) === 6)\n {\n $sla_target = Net_IPv6::compress($entity['sla_target'], TRUE);\n } else {\n $sla_target = $entity['sla_target'];\n }\n $entity['entity_name'] .= ' (' . $entity['sla_tag'] . ': ' . $sla_target . ')';\n } else {\n $entity['entity_name'] .= ' (' . $entity['sla_tag'] . ')';\n }\n $entity['entity_shortname'] = \"#\". $entity['sla_index'] . \" (\". $entity['sla_tag'] . \")\";\n break;\n\n case \"pseudowire\":\n $entity['entity_name'] = $entity['pwID'] . ($entity['pwDescr'] ? \" (\". $entity['pwDescr'] . \")\" : '');\n $entity['entity_shortname'] = $entity['pwID'];\n break;\n }\n}", "public function setType(){\n switch($this->security){\n case 'H':\n case 'L':\n case '0.0':\n $typeId = 2; // k-space\n break;\n case 'A':\n $typeId = 3; // a-space\n break;\n default:\n $typeId = 1; // w-space\n }\n\n /**\n * @var $type MapTypeModel\n */\n $type = $this->rel('typeId');\n $type->getById($typeId);\n $this->typeId = $type;\n }", "function hook_uuid_entities_features_export_entity_alter(&$entity, $entity_type) {\n\n}", "public function getEntity(): string\n {\n return ContactEntity::class;\n }", "function model(): string\n {\n return 'Webkul\\Sitemap\\Contracts\\Sitemap';\n }", "public function getEntityClass() : string\n {\n return Image::class;\n }", "public function getEntityClass(): ?string;", "public function getContentTypeName();", "public function getContentTypeName();", "public function getContentTypeName();", "protected function entityName()\n {\n return static::ENTITY_CLASSNAME;\n }", "function ting_ting_collection_convert($context, $type) {\n switch ($type) {\n case 'title_full':\n return $context->title;\n }\n}", "public function getType()\n{\nreturn $this->type;\n}", "public function typeId()\n {\n return config('entities.ids.' . $this->type);\n }", "public static function getEntityNamespace(): string\n {\n return 'Extend\\Entity';\n }", "abstract public function createTemplateEntity();", "final public function isSimpleEntity()\n {\n return $this->simple_entity;\n }", "public function model()\r\n {\r\n \treturn 'Gis\\Models\\Entities\\SystemFertilizerDefinitionDetailPhotpho';\r\n }", "public function getEntityClassName(): string;", "public function getEntityType(): EntityType\n {\n return $this->entityType;\n }", "public function getEntityClassName();", "public function getEntityFqn(): string;", "public function getModelType() {}", "public function toWordPressEntity();", "public function mapFor()\n {\n // Here we tell Doctrine that this mapping is for the Scientist object.\n return Article::class;\n }", "public function getUserEntityClass();", "function entity_short_name($type, $entity)\n{\n global $config, $entity_cache;\n\n if (is_numeric($entity))\n {\n $entity = get_entity_by_id_cache($type, $entity);\n }\n\n $translate = entity_type_translate_array($type);\n\n $text = $entity[$translate['name_field']];\n\n return($text);\n}", "function CreateDefaultSaleTypeEntity()\n {\n\t\t$result = $this->sendRequest(\"CreateDefaultSaleTypeEntity\", array());\n\t\treturn $this->getResultFromResponse($result);\n }", "public function getFormId()\n {\n return 'lei_entity_type_settings';\n }", "function content_key($entity, $entity_type) {\n return NULL;\n }", "function _mongo_node_update_type($old_entity_type, $entity_type) {\n // Update collection names.\n _mongo_node_rename_collection($old_entity_type, $entity_type);\n\n // Update bundle name in mongo entities.\n $collection = mongodb_collection('fields_current', $entity_type);\n $result = $collection->update(\n array('_type' => $old_entity_type),\n array('$set' => array('_type' => $entity_type, 'type' => $entity_type))\n );\n}", "public function getMappingEntityBundle();", "function model()\n {\n return 'App\\Entities\\Study';\n }", "public function getEntityClass()\n {\n return $this->entityClass; \n }", "public function run()\n {\n EntityType::create([\n 'en' => ['name' => 'offers'],\n 'ar' => ['name' => 'العروض'],\n ]);\n }", "public function getType()\n {\n return $this->i18n_singular_name();\n }", "function type() {\n\t\treturn Inflector::underscore(str_replace('model', '', strtolower(get_class($this))));\n\t}", "function documents_civicrm_managed(&$entities) {\n return _documents_civix_civicrm_managed($entities);\n}", "protected abstract function getEntity(): string;", "function entity_name($type, $entity)\n{\n global $config, $entity_cache;\n\n if (is_numeric($entity))\n {\n $entity = get_entity_by_id_cache($type, $entity);\n }\n\n $translate = entity_type_translate_array($type);\n\n $text = $entity[$translate['name_field']];\n\n return($text);\n}", "function medula_schema_tag() {\n\n\t$schema = 'http://schema.org/';\n\n\t// Is single post\n\tif( is_single() ) {\n\t\t$type = \"Article\";\n\t}\n\t// Contact form page ID\n\telse if( is_page(1) ) \t{\n\t\t$type = 'ContactPage';\n\t}\n\t// Is author page\n\telseif( is_author() ) {\n\t\t$type = 'ProfilePage';\n\t}\n\t// Is search results page\n\telseif( is_search() ) {\n\t\t$type = 'SearchResultsPage';\n\t}\n\t// Is of movie post type\n\telseif(is_singular('movies')) {\n\t\t$type = 'Movie';\n\t}\n\t// Is of book post type\n\telseif(is_singular('books')) {\n\t\t$type = 'Book';\n\t}\n\telse {\n\t\t$type = 'WebPage';\n\t}\n\n\techo 'itemscope=\"itemscope\" itemtype=\"' . $schema . $type . '\"';\n}", "public function getEntity() {\n\t\treturn 'Custom Cloud Co.';\n\t}", "function mongo_node_type_edit_form($form, $form_state, $entity_type) {\n $set = mongo_node_settings();\n $form = array();\n\n $form['label'] = array(\n '#type' => 'textfield',\n '#title' => t('Entity type'),\n '#default_value' => $set[$entity_type]['label'],\n '#description' => t('The human readable name of the entity.'),\n );\n\n $form['name'] = array(\n '#type' => 'machine_name',\n '#required' => FALSE,\n '#default_value' => $entity_type,\n '#machine_name' => array(\n 'exists' => '_mongo_node_type_exists',\n 'source' => array('label'),\n ),\n );\n\n // Send entity type.\n $form['entity_type'] = array(\n '#type' => 'value',\n '#value' => $entity_type,\n );\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save'),\n );\n\n return $form;\n}", "abstract protected function createSchematic(): SmEntitySchematic;", "public function get_type(): string;", "public function restoreEntityType() {\n $nid = $this->og_controller->og_node->nid;\n $path = \"private://dumper/restore.{$nid}/private://dumper/{$nid}/{$this->entity_type}\";\n foreach (file_scan_directory($path, '/\\.json/') as $file) {\n $this->restoreEntity($file->name);\n }\n }", "public function getType(){ }", "public function getEntityTypeCode()\n {\n return 'catalog_product';\n }", "public function meta_type();", "public function getEntityTypeId() {\n return $this->entityType->id();\n }", "public function get_sitemap_type_data()\n {\n }" ]
[ "0.6579577", "0.6268739", "0.6078189", "0.59517086", "0.58947", "0.5880128", "0.58716387", "0.58661675", "0.58661675", "0.5841064", "0.5741917", "0.5674106", "0.56405616", "0.56306565", "0.5629068", "0.5612282", "0.5612282", "0.558031", "0.5547178", "0.5532264", "0.5515421", "0.5512624", "0.54660374", "0.5455571", "0.5449724", "0.54107976", "0.5393861", "0.53918684", "0.53636795", "0.5349542", "0.5333786", "0.532394", "0.53123116", "0.5305385", "0.52971077", "0.52896786", "0.5264656", "0.5262017", "0.5242432", "0.5240579", "0.5235672", "0.5213368", "0.52133495", "0.52097094", "0.5206141", "0.5188107", "0.5187136", "0.517848", "0.5163722", "0.5158464", "0.5156016", "0.5136245", "0.5117966", "0.51101214", "0.51092094", "0.51051164", "0.5101151", "0.5091205", "0.5091205", "0.5091205", "0.50909734", "0.5087047", "0.50826013", "0.5079526", "0.5077363", "0.5063523", "0.5061869", "0.5044706", "0.50388974", "0.503856", "0.5036479", "0.50304097", "0.5023554", "0.50201833", "0.50097656", "0.5006182", "0.5003496", "0.50018734", "0.5001101", "0.49965537", "0.49946505", "0.49871367", "0.49836174", "0.49673185", "0.49640018", "0.4954319", "0.49533892", "0.49458796", "0.49446055", "0.49323234", "0.4924224", "0.49084654", "0.48991737", "0.48973066", "0.48947665", "0.48931864", "0.48918545", "0.4881295", "0.48793674", "0.48730046", "0.4870141" ]
0.0
-1
the type for entities is always saml because manage is using saml internally
public function generateForExistingEntity( ManageEntity $entity, EntityDiff $differences, string $workflowState, string $updatedPart = '' ): array { $data = [ 'pathUpdates' => $this->generateDataForExistingEntity($entity, $differences, $workflowState, $updatedPart), 'type' => 'saml20_sp', 'id' => $entity->getId(), ]; return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getEntityType(): string;", "public function entityFor(): string;", "protected abstract function initializeEntityType(): string;", "public function getEntityType();", "function getEntityType() {\n return $this->entity_type;\n }", "public function getFormattedEntityType();", "public function getType(): EntityType;", "public function getEntityTypeCode()\n {\n return 'sales_rule';\n }", "public function getEntityTypeCode()\n {\n return 'sales_rule';\n }", "public function getEntityType(): ?string;", "public function getEntityType(): string\n {\n return $this->entityType;\n }", "public function getEntityType()\n {\n if (empty($this->_type)) {\n $this->setType(\\OuterEdge\\Layout\\Model\\Element::ENTITY);\n }\n \n return parent::getEntityType();\n }", "static function getEntityType()\n\t{\n\t\treturn 'node';\n\t}", "abstract public function getEntityTypeCode();", "public function getExtendedType()\n {\n return EntityType::class;\n }", "public function getEntityType()\n {\n return $this->entity_type;\n }", "public function getEntityType()\n {\n return $this->entity_type;\n }", "public function getEntityType()\n\t{\n\t\treturn $this->entity_type;\n\t}", "public function getEntityType() {\n return $this->entityType;\n }", "public function getEntityTypeCode()\n {\n return 'manage_task';\n }", "public function getEntityTypeCode()\n {\n return 'catalog_rule';\n }", "public function getEntityType() {\n return $this->datasource()->getEntityType();\n }", "function getType()\n\t{\n\t\treturn \"st\";\n\t}", "public function getEntityType() {\n\t\treturn self::ELASTICSEARCH_TYPE_DOCUMENT;\n\t}", "public function getEntityType()\n {\n return \\Dsync\\Dsync\\Model\\System\\Config\\Source\\Entity\\Type::SHIPMENT;\n }", "public function getMappingEntityType();", "abstract public function getEntityTypeID();", "public function setType(EntityType $type);", "function entity_type_machine_name_plural($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->machineNamePlural();\n}", "function entity_type_label_single($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelSingle();\n}", "public function getTypeAttribute(){\n return 'company';\n }", "public function setMappedEntityType($entity_type);", "public function getEntityTypeId(){\n $entityType = Mage::getModel('eav/entity_type')->loadByCode($this->_entityType);\n if (!$entityType->getId()){\n Mage::helper('connector')\n ->log(\"Entity type \" . $this->_entityType . \" undefined\", Zend_log::ERR);\n return false;\n }\n return $entityType->getId();\n }", "public function testNonBundleEntityType() {\n $assert_session = $this->assertSession();\n $page = $this->getSession()->getPage();\n\n // Log in as a user that can edit layout templates.\n $this->drupalLogin($this->drupalCreateUser([\n 'configure any layout',\n 'administer user display',\n ]));\n\n $this->drupalGet('admin/config/people/accounts/display/default');\n $this->submitForm(['layout[enabled]' => TRUE], 'Save');\n $this->submitForm(['layout[allow_custom]' => TRUE], 'Save');\n\n $page->clickLink('Manage layout');\n $assert_session->pageTextContains('You are editing the layout template for all users.');\n\n $this->drupalGet('user');\n $page->clickLink('Layout');\n $assert_session->pageTextContains('You are editing the layout for this user. Edit the template for all users instead.');\n\n // Log in as a user that cannot edit layout templates.\n $this->drupalLogin($this->drupalCreateUser([\n 'configure any layout',\n ]));\n $this->drupalGet('user');\n $page->clickLink('Layout');\n $assert_session->pageTextContains('You are editing the layout for this user.');\n $assert_session->pageTextNotContains('Edit the template for all users instead.');\n }", "private function getEntityLabel( $type )\n {\n return $this->getConf( \"entities.\" . $type . \".labels.entity.name\" ) ;\n }", "function entity_type_label_plural($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelPlural();\n}", "function simplesamlphp_get_mtype($set) {\n $map = array(\n 'saml20-sp-remote' => '{admin:metadata_saml20-sp}',\n 'saml20-sp-hosted' => '{admin:metadata_saml20-sp}',\n 'saml20-idp-remote' => '{admin:metadata_saml20-idp}',\n 'saml20-idp-hosted' => '{admin:metadata_saml20-idp}',\n 'shib13-sp-remote' => '{admin:metadata_shib13-sp}',\n 'shib13-sp-hosted' => '{admin:metadata_shib13-sp}',\n 'shib13-idp-remote' => '{admin:metadata_shib13-idp}',\n 'shib13-idp-hosted' => '{admin:metadata_shib13-idp}',\n 'adfs-sp-remote' => '{admin:metadata_adfs-sp}',\n 'adfs-sp-hosted' => '{admin:metadata_adfs-sp}',\n 'adfs-idp-remote' => '{admin:metadata_adfs-idp}',\n 'adfs-idp-hosted' => '{admin:metadata_adfs-idp}',\n );\n\n return $map[$set];\n}", "public function getEntityClassName() {}", "function entity_type_translate($entity_type)\n{\n $data = entity_type_translate_array($entity_type);\n if (!is_array($data)) { return NULL; }\n\n return array($data['table'], $data['id_field'], $data['name_field'], $data['ignore_field'], $data['entity_humanize']);\n}", "abstract protected function getEntityClass();", "function entity_type_label_single_lc($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelSingleLowerCase();\n}", "public function getName() \n { \n return 'saml_extension'; \n }", "public function getEntityClass();", "function streetformatnl_civicrm_managed(&$entities) {\n return _streetformatnl_civix_civicrm_managed($entities);\n}", "public function entityTypeId();", "abstract public function getSamlParameters();", "protected abstract function getPluralEntityName();", "function entity_type_label_plural_lc($entity_type) {\n $controller = entity_toolbox_controller($entity_type);\n $helper = $controller->getToolboxHelper();\n\n return $helper->labelPluralLowerCase();\n}", "function entity_descr($type, $entity)\n{\n global $config, $entity_cache;\n\n if (is_numeric($entity))\n {\n $entity = get_entity_by_id_cache($type, $entity);\n }\n\n $translate = entity_type_translate_array($type);\n\n $text = $entity[$translate['entity_descr_field']];\n\n return($text);\n}", "public function getId(): string\n {\n return $this->entityType;\n }", "function entity_rewrite($entity_type, &$entity)\n{\n $translate = entity_type_translate_array($entity_type);\n\n // By default, fill $entity['entity_name'] with name_field contents.\n if (isset($translate['name_field'])) { $entity['entity_name'] = $entity[$translate['name_field']]; }\n\n // By default, fill $entity['entity_shortname'] with shortname_field contents. Fallback to entity_name when field name is not set.\n if (isset($translate['shortname_field'])) { $entity['entity_shortname'] = $entity[$translate['name_field']]; } else { $entity['entity_shortname'] = $entity['entity_name']; }\n\n // By default, fill $entity['entity_descr'] with descr_field contents.\n if (isset($translate['descr_field'])) { $entity['entity_descr'] = $entity[$translate['descr_field']]; }\n\n // By default, fill $entity['entity_id'] with id_field contents.\n if (isset($translate['id_field'])) { $entity['entity_id'] = $entity[$translate['id_field']]; }\n\n switch($entity_type)\n {\n case \"bgp_peer\":\n // Special handling of name/shortname/descr for bgp_peer, since it combines multiple elements.\n\n if (Net_IPv6::checkIPv6($entity['bgpPeerRemoteAddr']))\n {\n $addr = Net_IPv6::compress($entity['bgpPeerRemoteAddr']);\n } else {\n $addr = $entity['bgpPeerRemoteAddr'];\n }\n\n $entity['entity_name'] = \"AS\".$entity['bgpPeerRemoteAs'] .\" \". $addr;\n $entity['entity_shortname'] = $addr;\n $entity['entity_descr'] = $entity['astext'];\n break;\n\n case \"sla\":\n $entity['entity_name'] = 'SLA #' . $entity['sla_index'];\n if (!empty($entity['sla_target']) && ($entity['sla_target'] != $entity['sla_tag']))\n {\n if (get_ip_version($entity['sla_target']) === 6)\n {\n $sla_target = Net_IPv6::compress($entity['sla_target'], TRUE);\n } else {\n $sla_target = $entity['sla_target'];\n }\n $entity['entity_name'] .= ' (' . $entity['sla_tag'] . ': ' . $sla_target . ')';\n } else {\n $entity['entity_name'] .= ' (' . $entity['sla_tag'] . ')';\n }\n $entity['entity_shortname'] = \"#\". $entity['sla_index'] . \" (\". $entity['sla_tag'] . \")\";\n break;\n\n case \"pseudowire\":\n $entity['entity_name'] = $entity['pwID'] . ($entity['pwDescr'] ? \" (\". $entity['pwDescr'] . \")\" : '');\n $entity['entity_shortname'] = $entity['pwID'];\n break;\n }\n}", "public function setType(){\n switch($this->security){\n case 'H':\n case 'L':\n case '0.0':\n $typeId = 2; // k-space\n break;\n case 'A':\n $typeId = 3; // a-space\n break;\n default:\n $typeId = 1; // w-space\n }\n\n /**\n * @var $type MapTypeModel\n */\n $type = $this->rel('typeId');\n $type->getById($typeId);\n $this->typeId = $type;\n }", "function hook_uuid_entities_features_export_entity_alter(&$entity, $entity_type) {\n\n}", "function model(): string\n {\n return 'Webkul\\Sitemap\\Contracts\\Sitemap';\n }", "public function getEntity(): string\n {\n return ContactEntity::class;\n }", "public function getEntityClass() : string\n {\n return Image::class;\n }", "public function getEntityClass(): ?string;", "public function getContentTypeName();", "public function getContentTypeName();", "public function getContentTypeName();", "protected function entityName()\n {\n return static::ENTITY_CLASSNAME;\n }", "function ting_ting_collection_convert($context, $type) {\n switch ($type) {\n case 'title_full':\n return $context->title;\n }\n}", "public function getType()\n{\nreturn $this->type;\n}", "public function typeId()\n {\n return config('entities.ids.' . $this->type);\n }", "public static function getEntityNamespace(): string\n {\n return 'Extend\\Entity';\n }", "abstract public function createTemplateEntity();", "final public function isSimpleEntity()\n {\n return $this->simple_entity;\n }", "public function model()\r\n {\r\n \treturn 'Gis\\Models\\Entities\\SystemFertilizerDefinitionDetailPhotpho';\r\n }", "public function getEntityClassName(): string;", "public function getEntityType(): EntityType\n {\n return $this->entityType;\n }", "public function getEntityClassName();", "public function getEntityFqn(): string;", "public function getModelType() {}", "public function toWordPressEntity();", "public function mapFor()\n {\n // Here we tell Doctrine that this mapping is for the Scientist object.\n return Article::class;\n }", "public function getUserEntityClass();", "function entity_short_name($type, $entity)\n{\n global $config, $entity_cache;\n\n if (is_numeric($entity))\n {\n $entity = get_entity_by_id_cache($type, $entity);\n }\n\n $translate = entity_type_translate_array($type);\n\n $text = $entity[$translate['name_field']];\n\n return($text);\n}", "function CreateDefaultSaleTypeEntity()\n {\n\t\t$result = $this->sendRequest(\"CreateDefaultSaleTypeEntity\", array());\n\t\treturn $this->getResultFromResponse($result);\n }", "public function getFormId()\n {\n return 'lei_entity_type_settings';\n }", "function content_key($entity, $entity_type) {\n return NULL;\n }", "function _mongo_node_update_type($old_entity_type, $entity_type) {\n // Update collection names.\n _mongo_node_rename_collection($old_entity_type, $entity_type);\n\n // Update bundle name in mongo entities.\n $collection = mongodb_collection('fields_current', $entity_type);\n $result = $collection->update(\n array('_type' => $old_entity_type),\n array('$set' => array('_type' => $entity_type, 'type' => $entity_type))\n );\n}", "public function getMappingEntityBundle();", "function model()\n {\n return 'App\\Entities\\Study';\n }", "public function getEntityClass()\n {\n return $this->entityClass; \n }", "public function run()\n {\n EntityType::create([\n 'en' => ['name' => 'offers'],\n 'ar' => ['name' => 'العروض'],\n ]);\n }", "public function getType()\n {\n return $this->i18n_singular_name();\n }", "function type() {\n\t\treturn Inflector::underscore(str_replace('model', '', strtolower(get_class($this))));\n\t}", "function documents_civicrm_managed(&$entities) {\n return _documents_civix_civicrm_managed($entities);\n}", "protected abstract function getEntity(): string;", "function entity_name($type, $entity)\n{\n global $config, $entity_cache;\n\n if (is_numeric($entity))\n {\n $entity = get_entity_by_id_cache($type, $entity);\n }\n\n $translate = entity_type_translate_array($type);\n\n $text = $entity[$translate['name_field']];\n\n return($text);\n}", "function medula_schema_tag() {\n\n\t$schema = 'http://schema.org/';\n\n\t// Is single post\n\tif( is_single() ) {\n\t\t$type = \"Article\";\n\t}\n\t// Contact form page ID\n\telse if( is_page(1) ) \t{\n\t\t$type = 'ContactPage';\n\t}\n\t// Is author page\n\telseif( is_author() ) {\n\t\t$type = 'ProfilePage';\n\t}\n\t// Is search results page\n\telseif( is_search() ) {\n\t\t$type = 'SearchResultsPage';\n\t}\n\t// Is of movie post type\n\telseif(is_singular('movies')) {\n\t\t$type = 'Movie';\n\t}\n\t// Is of book post type\n\telseif(is_singular('books')) {\n\t\t$type = 'Book';\n\t}\n\telse {\n\t\t$type = 'WebPage';\n\t}\n\n\techo 'itemscope=\"itemscope\" itemtype=\"' . $schema . $type . '\"';\n}", "public function getEntity() {\n\t\treturn 'Custom Cloud Co.';\n\t}", "function mongo_node_type_edit_form($form, $form_state, $entity_type) {\n $set = mongo_node_settings();\n $form = array();\n\n $form['label'] = array(\n '#type' => 'textfield',\n '#title' => t('Entity type'),\n '#default_value' => $set[$entity_type]['label'],\n '#description' => t('The human readable name of the entity.'),\n );\n\n $form['name'] = array(\n '#type' => 'machine_name',\n '#required' => FALSE,\n '#default_value' => $entity_type,\n '#machine_name' => array(\n 'exists' => '_mongo_node_type_exists',\n 'source' => array('label'),\n ),\n );\n\n // Send entity type.\n $form['entity_type'] = array(\n '#type' => 'value',\n '#value' => $entity_type,\n );\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save'),\n );\n\n return $form;\n}", "abstract protected function createSchematic(): SmEntitySchematic;", "public function get_type(): string;", "public function restoreEntityType() {\n $nid = $this->og_controller->og_node->nid;\n $path = \"private://dumper/restore.{$nid}/private://dumper/{$nid}/{$this->entity_type}\";\n foreach (file_scan_directory($path, '/\\.json/') as $file) {\n $this->restoreEntity($file->name);\n }\n }", "public function getType(){ }", "public function getEntityTypeCode()\n {\n return 'catalog_product';\n }", "public function meta_type();", "public function getEntityTypeId() {\n return $this->entityType->id();\n }", "public function get_sitemap_type_data()\n {\n }" ]
[ "0.6579003", "0.62691635", "0.607803", "0.5950614", "0.58935577", "0.5879823", "0.58702433", "0.58653843", "0.58653843", "0.5840599", "0.5740734", "0.56731504", "0.563944", "0.56302166", "0.56273997", "0.5610996", "0.5610996", "0.55789554", "0.5545633", "0.55309236", "0.5515492", "0.5511168", "0.54638314", "0.54546785", "0.54476213", "0.540945", "0.53915274", "0.5391353", "0.5365336", "0.5350455", "0.5334423", "0.53218627", "0.5311215", "0.53039914", "0.52985716", "0.5291739", "0.52646506", "0.5261315", "0.5242974", "0.5239595", "0.52374625", "0.5214921", "0.5212124", "0.5210881", "0.5204907", "0.5191755", "0.518966", "0.51810586", "0.5165636", "0.5157919", "0.51561403", "0.5135011", "0.5117174", "0.5110818", "0.5109416", "0.51038116", "0.51007646", "0.50911736", "0.50911736", "0.50911736", "0.5091008", "0.50884086", "0.5082381", "0.5078673", "0.5077228", "0.5063435", "0.5061115", "0.5045759", "0.5038378", "0.5037038", "0.503562", "0.5031047", "0.5024047", "0.50207156", "0.50089484", "0.5005431", "0.5004037", "0.5001324", "0.5000317", "0.499605", "0.49941814", "0.49871263", "0.49832532", "0.49662736", "0.49642345", "0.49549222", "0.49537995", "0.49463406", "0.49444476", "0.4933272", "0.4924081", "0.490828", "0.48995262", "0.48963907", "0.48944816", "0.48921576", "0.48912007", "0.48812693", "0.4879286", "0.48713118", "0.4870119" ]
0.0
-1
Strip header and footer from certificate data.
private function stripCertificateEnvelope($certData) { $certData = str_replace('-----BEGIN CERTIFICATE-----', '', $certData); $certData = str_replace('-----END CERTIFICATE-----', '', $certData); return trim($certData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function strip_armor($data, $marker = 'MESSAGE') {\n // remove the noise from the encrypted data\n $data = str_replace(self::header($marker) . \"\\n\", '' , $data);\n $data = str_replace(self::footer($marker) . \"\\n\", '' , $data);\n $data = trim($data, \"\\n\");\n return $data;\n }", "public function stripHeaders()\n {\n $headers = $this->headers;\n\n // process exact matches\n $ignore_headers = array(\n 'to',\n 'cc',\n 'bcc',\n 'return-path',\n 'received',\n 'Disposition-Notification-To',\n );\n foreach ($ignore_headers as $name) {\n if ($headers->has($name)) {\n $headers->removeHeader($name);\n }\n }\n\n // process patterns\n array_walk(\n $headers->toArray(), function ($value, $name) use ($headers) {\n if (preg_match('/^resent.*/i', $name)) {\n $headers->removeHeader($name);\n }\n }\n );\n }", "function clean_data($string) {\r\n\tif (get_magic_quotes_gpc()) {\r\n\t\t$string = stripslashes($string);\r\n\t}\r\n\t$headers = array(\r\n \t\"/to\\:/i\",\r\n \t\"/from\\:/i\",\r\n \t\"/bcc\\:/i\",\r\n \t\"/cc\\:/i\",\r\n \t\"/Content\\-Transfer\\-Encoding\\:/i\",\r\n \t\"/Content\\-Type\\:/i\",\r\n \t\"/Mime\\-Version\\:/i\" \r\n \t); \r\n \t$string = preg_replace($headers, '', $string);\r\n \r\n\treturn strip_tags($string);\r\n}", "private function getCertResponse($certificate)\n {\n $certificateIgnoredHeader = str_replace('-----BEGIN CERTIFICATE-----', '', $certificate);\n $certificateIgnoredFooter = str_replace('-----END CERTIFICATE-----', '', $certificateIgnoredHeader);\n $certificate = preg_replace(\"/[\\n\\r]/\", \"\", $certificateIgnoredFooter);\n return $certificate;\n }", "public function cleanHeaders()\n {\n /* @codeCoverageIgnoreStart() */\n @header_remove();\n /* @codeCoverageIgnoreEnd */\n }", "function strip_cdata( $html )\n\t{\n\t\tpreg_match_all( '/<!\\[cdata\\[(.*?)\\]\\]>/is', $html, $matches );\n\n\t\treturn str_replace( $matches[ 0 ], $matches[ 1 ], $html );\n\t}", "function strip_cdata($string) {\n preg_match_all('/<!\\[cdata\\[(.*?)\\]\\]>/is', $string, $matches); \n return str_replace($matches[0], $matches[1], $string); \n}", "protected function removeHeaders($input) {\n $part_array = explode(\"\\n\", $input);\n\n // Will strip these headers according to RFC2045.\n $headers_to_strip = [\n 'Content-Type',\n 'Content-Transfer-Encoding',\n 'Content-ID',\n 'Content-Disposition',\n ];\n $pattern = '/^(' . implode('|', $headers_to_strip) . '):/';\n\n while (count($part_array) > 0) {\n\n // Ignore trailing spaces/newlines.\n $line = rtrim($part_array[0]);\n\n // If the line starts with a known header string.\n if (preg_match($pattern, $line)) {\n $line = rtrim(array_shift($part_array));\n // Remove line containing matched header.\n // If line ends in a ';' and the next line starts with four spaces, it's a continuation\n // of the header split onto the next line. Continue removing lines while we have this condition.\n while (substr($line, -1) == ';' && count($part_array) > 0 && substr($part_array[0], 0, 4) == ' ') {\n $line = rtrim(array_shift($part_array));\n }\n }\n else {\n // No match header, must be past headers; stop searching.\n break;\n }\n }\n\n $output = implode(\"\\n\", $part_array);\n return $output;\n }", "public function DKIM_HeaderC($signHeader)\n {\n $signHeader = preg_replace('/\\r\\n\\s+/', ' ', $signHeader);\n $lines = explode(\"\\r\\n\", $signHeader);\n foreach ($lines as $key => $line) {\n list($heading, $value) = explode(':', $line, 2);\n $heading = strtolower($heading);\n $value = preg_replace('/\\s{2,}/', ' ', $value); // Compress useless spaces\n $lines[$key] = $heading . ':' . trim($value); // Don't forget to remove WSP around the value\n }\n $signHeader = implode(\"\\r\\n\", $lines);\n return $signHeader;\n }", "function remove_additional_information_heading() {\n\treturn '';\n}", "public function getHeaderData() {}", "function _cleanup_header_comment($str)\n {\n }", "public function clearHeaders()\n {\n }", "public function desinscription()\n {\n // section -64--88-56-1-313d700b:16f04d7fd4a:-8000:00000000000009AF begin\n // section -64--88-56-1-313d700b:16f04d7fd4a:-8000:00000000000009AF end\n }", "function strip_crlf ($data)\n{\n $len = strlen ($data);\n for ($i = 0; $i < $len; ++$i)\n {\n $cc = substr ($data, $i, 1);\n $cc1 = substr ($data, $i + 1, 1);\n\n if ((ord ($cc) == 10) || // a new line char\n (ord ($cc) == 13) // a carriage return\n )\n {\n $data = substr ($data, 0, $i);\n break;\n }\n }\n\n return ($data);\n}", "protected function cleanData(&$lines) {\n\n if (empty($lines)) return;\n\n // Currently, we only need to strip a BOM if it exists.\n // Thanks to Derik Badman (http://madinkbeard.com/) for finding the\n // bug and suggesting this fix:\n // http://blog.philipp-michels.de/?p=32\n $first = $lines[0];\n if (substr($first, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {\n $lines[0] = substr($first, 3);\n }\n }", "public function getAdditionalHeaderData() {}", "public function secureHeader($str)\n {\n return trim(str_replace(array(\"\\r\", \"\\n\"), '', $str));\n }", "function wp_strip_header_tags( $excerpt='' ) {\n\t$raw_excerpt = $excerpt;\n\tif ( '' == $excerpt ) {\n\t\t$excerpt = get_the_content('');\n\t\t$excerpt = strip_shortcodes( $excerpt );\n\t\t$excerpt = apply_filters('the_content', $excerpt);\n\t\t$excerpt = str_replace(']]>', ']]&gt;', $excerpt);\n\t}\n\t$regex = '#(<h([1-6])[^>]*>)\\s?(.*)?\\s?(<\\/h\\2>)#';\n\t$excerpt = preg_replace($regex,'', $excerpt);\n\t$excerpt_length = apply_filters('excerpt_length', 55);\n\t$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');\n\t$excerpt = wp_trim_words( $excerpt, $excerpt_length, $excerpt_more );\n\treturn apply_filters('wp_trim_excerpt', preg_replace($regex,'', $excerpt), $raw_excerpt);\n}", "public function SecureHeader($str) {\n\t $str = str_replace(\"\\r\", '', $str);\n\t $str = str_replace(\"\\n\", '', $str);\n\t return trim($str);\n\t}", "protected function sanitizeHeader($value)\r\n {\r\n //Remove line feeds\r\n $ret = str_replace(\"\\r\", \"\", $value);\r\n $ret = str_replace(\"\\n\", \"\", $ret);\r\n\r\n // Remove injected headers\r\n $find = array(\"/bcc\\:/i\", \r\n \"/Content\\-Type\\:/i\", \r\n \"/Mime\\-Type\\:/i\", \r\n \"/cc\\:/i\", \r\n \"/to\\:/i\");\r\n $ret = preg_replace($find, \r\n \"**bogus header removed**\",\r\n $ret);\r\n\r\n return $ret;\r\n }", "private function _dk_canonicalize_nofws($body, $sHeaders){\n\t\t\n\t\t// HEADERS\n\t\t// a header value which is spread over several lines must be 1-lined\n\t\t$sHeaders = preg_replace(\"/\\r\\n\\s+/\", \" \", $sHeaders);\n\t\t\n\t\t$aHeaders = explode(\"\\r\\n\", $sHeaders);\n\t\t\n\t\tforeach($aHeaders as $key => $line){\n\t\t\t\n\t\t\tif(!empty($line)){\n\t\t\t\n\t\t\t\t$h = explode(':', $line);\n\t\t\t\t$header_type = strtolower(trim($h[0]));\n\t\t\t\t\n\t\t\t\t// keep only signature headers\n\t\t\t\tif(in_array($header_type, $this -> options['signed_headers'])){\n\t\t\t\t\t\n\t\t\t\t\t// delete all WSP in each line\n\t\t\t\t\t$aHeaders[$key] = preg_replace(\"/\\s/\", '', $line);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tunset($aHeaders[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tunset($aHeaders[$key]);\n\t\t\t}\n\t\t}\n\t\t$sHeaders = implode(\"\\r\\n\", $aHeaders);\n\t\t\n\t\t// BODY\n\t\t// delete all WSP in each body line\n\t\t$body_lines = explode(\"\\r\\n\", $body);\n\t\t\n\t\tforeach($body_lines as $key => $line){\n\t\t\t$body_lines[$key] = preg_replace(\"/\\s/\", '', $line);\n\t\t}\n\t\t\n\t\t$body = rtrim(implode(\"\\r\\n\", $body_lines)).\"\\r\\n\";\n\t\t\n\t\treturn $sHeaders.\"\\r\\n\\r\\n\".$body;\n\t}", "public function clearCustomHeaders()\n {\n }", "protected function headerAdditional() {\n return '';\n }", "private function _clean($data){\n $data = preg_replace(\"/\\r|\\n/\",\"\",$data);\n $data = preg_replace(\"/\\s+/\",\" \",$data);\n return $data;\n }", "function additionalHeaderStuff() {\n return;\n }", "function mizzouRemoveXPingbackHeader($aryHeaders){\n if(isset($aryHeaders['X-Pingback'])){\n unset($aryHeaders['X-Pingback']);\n }\n\n return $aryHeaders;\n}", "function cleanStreet($data) { \n // remove things such as '(rear)' at the end of an address\n $street = preg_replace('/\\(.*?\\)$/', '', $data['street']);\n\n //remove 'Access Via' that appears at the begginning of some addresses\n return preg_replace('/^access\\s+via\\s+/i', '', $street);\n}", "public function scrub($data);", "function _extractBER($str)\n {\n /* X.509 certs are assumed to be base64 encoded but sometimes they'll have additional things in them\n * above and beyond the ceritificate.\n * ie. some may have the following preceding the -----BEGIN CERTIFICATE----- line:\n *\n * Bag Attributes\n * localKeyID: 01 00 00 00\n * subject=/O=organization/OU=org unit/CN=common name\n * issuer=/O=organization/CN=common name\n */\n $temp = preg_replace('#.*?^-+[^-]+-+[\\r\\n ]*$#ms', '', $str, 1);\n // remove the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- stuff\n $temp = preg_replace('#-+[^-]+-+#', '', $temp);\n // remove new lines\n $temp = str_replace(array(\"\\r\", \"\\n\", ' '), '', $temp);\n $temp = preg_match('#^[a-zA-Z\\d/+]*={0,2}$#', $temp) ? base64_decode($temp) : false;\n return $temp != false ? $temp : $str;\n }", "protected function dumpHeader() {}", "private function _keyHeaderFooter(string $key): string\n {\n return str_replace('-----BEGIN PUBLIC KEY-----', '-----BEGIN LICENCE KEY-----', str_replace('-----END PUBLIC KEY-----', '-----END LICENCE KEY-----', $key));\n }", "public function clearCustomHeaders()\n {\n $this->CustomHeader = array();\n }", "public function ensureTrailer() {}", "protected function _cleanUpTrailer(\\SetaPDF_Core_Type_Dictionary $trailer) {}", "public final function remove_header_image()\n {\n }", "public function withoutHeader($header)\n {\n\n }", "public function process_course_header($data, $raw) {\n $this->course = array_merge($this->course, $data);\n $this->courseraw = array_merge($this->courseraw, $raw);\n }", "function getRawData()\n {\n $this->mkHeaders();\n $out = \"\";\n if ($this->mailto) {\n foreach ($this->mailto as $res) $out .= \"TO: \" . $res . \"<br /><br />\\n\";\n }\n $out .= \"SUBJECT: \" . $this->mailsubj . \"<br /><br />\\n\";\n $out .= \"MESSAGE: \" . $this->mailbody . \"<br /><br />\\n\";\n $out .= \"HEADERS: \" . htmlentities($this->mailheaders) . \"<br /><br />\\n\";\n return $out;\n }", "public function parseHeader($rawData)\n {\n $data = array();\n foreach (explode(\"\\n\", trim($rawData)) as $line) {\n $bits = explode(': ', $line);\n if (count($bits) > 1) {\n $key = $bits[0];\n unset($bits[0]);\n $data[$key] = trim(implode(': ', $bits));\n }\n }\n return $data;\n }", "public function trimFromToDateData($headerData)\n\t{\n\t\t//get date from header and trim data\n\t\t$salesType = trim($headerData['salestype'][0]);\n\t\t$fromDate = trim($headerData['fromdate'][0]);\n\t\t$toDate = trim($headerData['todate'][0]);\n\t\t\n\t\t//get exception message\n\t\t$exception = new ExceptionMessage();\n\t\t$msgArray = $exception->messageArrays();\n\t\t\n\t\t//check enum-type data\n\t\t$salesTypeEnum = new SalesTypeEnum();\n\t\t$salesTypeArray = $salesTypeEnum->enumArrays();\n\t\tif(strcmp($salesType,$salesTypeArray['retailSales'])==0 || strcmp($salesType,$salesTypeArray['wholesales'])==0)\n\t\t{\n\t\t\tif(strcmp($fromDate,'00-00-0000')==0)\n\t\t\t{\n\t\t\t\t$transformFromDate = '0000-00-00';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//from-date conversion\n\t\t\t\t$splitedFromDate = explode(\"-\",$fromDate);\n\t\t\t\t$transformFromDate = $splitedFromDate[2].\"-\".$splitedFromDate[1].\"-\".$splitedFromDate[0];\n\t\t\t}\n\t\t\tif(strcmp($toDate,'00-00-0000')==0)\n\t\t\t{\n\t\t\t\t$transformToDate = '0000-00-00';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//to-date conversion\n\t\t\t\t$splitedToDate = explode(\"-\",$toDate);\n\t\t\t\t$transformToDate = $splitedToDate[2].\"-\".$splitedToDate[1].\"-\".$splitedToDate[0];\n\t\t\t}\n\t\t\t$trimArray = array();\t\n\t\t\t$trimArray['salesType'] = $salesType;\t\n\t\t\t$trimArray['fromDate'] = $transformFromDate;\t\n\t\t\t$trimArray['toDate'] = $transformToDate;\t\n\t\t\treturn $trimArray;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $msgArray['content'];\n\t\t}\n\t}", "function receipt_header($x, $y)\n{\n\tglobal $receipt, $pdf;\n\n\t$font_size = 12;\n\t$yy = $y;\n\t$xmax = $x + 420;\n\t$pdf->line($x, $y, $xmax, $y);\n\t$y -= $font_size;\n\n//\ttext_align_left($x + 2,$y + 2,$font_size - 4, iconv(\"UTF-8\", \"ISO-8859-2\", trans('Stamp:')));\n\t$y = text_wrap($x + 2, $y, 170, $font_size - 2, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", $receipt['d_name']).'</b>', NULL);\n\t$y = text_wrap($x + 2, $y, 170, $font_size - 2, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", $receipt['d_address']).'</b>', NULL);\n\ttext_wrap($x + 2, $y, 170, $font_size - 2,'<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", $receipt['d_zip'].' '.$receipt['d_city']).'</b>', NULL);\n\t$y = $yy - $font_size;\n\n\tif($receipt['type'] == 'out')\n\t\ttext_align_center($xmax - 70, $y - 10, $font_size + 4, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", trans('CR-out')).'</b>');\n\telse\n\t\ttext_align_center($xmax - 70, $y - 10, $font_size + 4, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", trans('CR-in')).'</b>');\n\ttext_align_center($xmax - 70, $y - 30, $font_size, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", trans('No. $a',$receipt['number'])).'</b>');\n\n\tif($receipt['type'] == 'out')\n\t\t$y -= text_align_center($x + 210, $y, $font_size, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", trans('Proof of Pay-out')).'</b>');\n\telse\n\t\t$y -= text_align_center($x + 210, $y, $font_size, '<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", trans('Proof of Payment')).'</b>');\n\t$y -= text_align_center($x + 210, $y, $font_size + 4,'<b>'.iconv(\"UTF-8\", \"ISO-8859-2\", trans('Receipt')).'</b>');\n\t$y -= text_align_center($x + 210, $y, $font_size, iconv(\"UTF-8\", \"ISO-8859-2\", trans('Date:')).' '.date(\"Y/m/d\", $receipt['cdate']));\n\n\t$y += $font_size / 2;\n\t$pdf->line($x, $yy, $x, $y);\n\t$pdf->line($x + 140, $yy, $x + 140, $y);\n\t$pdf->line($x + 280, $yy, $x + 280, $y);\n\t$pdf->line($xmax, $yy, $xmax, $y);\n\t$pdf->line($x, $y, $xmax, $y);\n\n\treturn $y;\n}", "public function parseHeader($rawData)\n {\n $data = [];\n foreach (explode(\"\\n\", trim($rawData)) as $line) {\n $bits = explode(': ', $line);\n if (count($bits) > 1) {\n $key = $bits[0];\n unset($bits[0]);\n $data[$key] = trim(implode(': ', $bits));\n }\n }\n return $data;\n }", "protected function prepareHeaders(Mail\\Message $message) {\r\n\t\t// On Windows, simply return verbatim\r\n\t\tif ($this->isWindowsOs ()) {\r\n\t\t\treturn $message->getHeaders ()->toString ();\r\n\t\t}\r\n\t\t\r\n\t\t// On *nix platforms, strip the \"to\" header\r\n\t\t$headers = clone $message->getHeaders ();\r\n\t\t$headers->removeHeader ( 'To' );\r\n\t\t$headers->removeHeader ( 'Subject' );\r\n\t\treturn $headers->toString ();\r\n\t}", "private function writeHeader(): void\n {\n $record = 0x0014; // Record identifier\n\n /* removing for now\n // need to fix character count (multibyte!)\n if (strlen($this->phpSheet->getHeaderFooter()->getOddHeader()) <= 255) {\n $str = $this->phpSheet->getHeaderFooter()->getOddHeader(); // header string\n } else {\n $str = '';\n }\n */\n\n $recordData = StringHelper::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddHeader());\n $length = strlen($recordData);\n\n $header = pack('vv', $record, $length);\n\n $this->append($header . $recordData);\n }", "private function _dkim_canonicalize_headers_relaxed($sHeaders){\n\t\t\n\t\t$aHeaders = array();\n\t\t\n\t\t// a header value which is spread over several lines must be 1-lined\n\t\t$sHeaders = preg_replace(\"/\\n\\s+/\", \" \", $sHeaders);\n\t\t\n\t\t$lines = explode(\"\\r\\n\", $sHeaders);\n\t\t\n\t\tforeach($lines as $key => $line){\n\t\t\t\n\t\t\t// delete multiple WSP\n\t\t\t$line = preg_replace(\"/\\s+/\", ' ', $line);\n\t\t\t\n\t\t\tif(!empty($line)){\n\t\t\t\n\t\t\t\t// header type to lowercase and delete WSP which are not part of the header value\n\t\t\t\t$line = explode(':', $line, 2);\n\t\t\t\t\n\t\t\t\t$header_type = trim(strtolower($line[0]));\n\t\t\t\t$header_value = trim($line[1]);\n\t\t\t\t\n\t\t\t\tif(in_array($header_type, $this -> options['signed_headers']) or $header_type == 'dkim-signature'){\n\t\t\t\t\t\n\t\t\t\t\t$aHeaders[$header_type] = $header_type.':'.$header_value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $aHeaders;\n\t}", "protected function _parseHeader() {}", "protected function _writeTrailer() {}", "private function parseCert($pemCertificateFileName){\n if (empty($pemCertificateFileName)){\n throw new Exception(\"Given param PEMCERTIFICATEFILENAME can not be empty.\");\n }\n\n $r = array(\n \"serial\" => \"\",\n \"version\" => \"\",\n \"valid_from\" => \"\",\n \"valid_to\" => \"\",\n \"subject\" => array(\n \"serial\" => \"\",\n \"ou\" => \"\",\n \"o\" => \"\",\n \"cn\" => \"\",\n \"c\" => \"\",\n \"st\" => \"\",\n \"l\" => \"\",\n ),\n \"issuer\" => array(\n \"ou\" => \"\",\n \"o\" => \"\",\n \"cn\" => \"\",\n \"c\" => \"\",\n )\n );\n\n $cmd = sprintf(\"openssl asn1parse -inform PEM -in %s\", $pemCertificateFileName);\n $output = exec($cmd, $fullOutput);\n\n $patternOrganizationName= \"/\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*OBJECT\\s*:organizationName\\s*<>\\s*\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*(UTF8STRING|PRINTABLESTRING)\\s*:([^<>]*)\\s*<>/\";\n $countOrganizationName = preg_match_all($patternOrganizationName, implode(\"<>\", $fullOutput), $matches);\n if($countOrganizationName == 1){\n $r[\"subject\"][\"o\"] = $matches[2][0];\n } else if($countOrganizationName == 2){\n $r[\"issuer\"][\"o\"] = $matches[2][0];\n $r[\"subject\"][\"o\"] = $matches[2][1];\n }\n\n $patternCountryName= \"/\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*OBJECT\\s*:countryName\\s*<>\\s*\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*(UTF8STRING|PRINTABLESTRING)\\s*:([^<>]*)\\s*<>/\";\n $countCountryName = preg_match_all($patternCountryName, implode(\"<>\", $fullOutput), $matches);\n if($countCountryName == 1){\n $r[\"subject\"][\"c\"] = $matches[2][0];\n } else if($countCountryName == 2){\n $r[\"issuer\"][\"c\"] = $matches[2][0];\n $r[\"subject\"][\"c\"] = $matches[2][1];\n }\n\n $patternCommonName= \"/\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*OBJECT\\s*:commonName\\s*<>\\s*\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*(UTF8STRING|PRINTABLESTRING)\\s*:([^<>]*)\\s*<>/\";\n $countCommonName = preg_match_all($patternCommonName, implode(\"<>\", $fullOutput), $matches);\n if($countCommonName == 1){\n $r[\"subject\"][\"cn\"] = $matches[2][0];\n } else if($countCommonName == 2){\n $r[\"issuer\"][\"cn\"] = $matches[2][0];\n $r[\"subject\"][\"cn\"] = $matches[2][1];\n }\n\n $patternSerial= \"/\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*OBJECT\\s*:serialNumber\\s*<>\\s*\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*(UTF8STRING|PRINTABLESTRING)\\s*:([^<>]*)\\s*<>/\";\n $countSerial = preg_match_all($patternSerial, implode(\"<>\", $fullOutput), $matches);\n if($countSerial == 1){\n $r[\"subject\"][\"serial\"] = $matches[2][0];\n }\n\n $patternVersion= \"/\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*INTEGER\\s*:([^<>]*)\\s*<>/\";\n $countVersion = preg_match_all($patternVersion, implode(\"<>\", $fullOutput), $matches);\n if($countVersion == 1){\n $r[\"version\"] = $matches[1][0];\n }\n if($countVersion == 2){\n $r[\"version\"] = $matches[1][0];\n $r[\"serial\"] = $matches[1][1];\n }\n\n $patternTime= \"/\\d+:d=\\d+\\s*hl=\\d+\\s*l=\\s*\\d+\\s*prim:\\s*UTCTIME\\s*:([^<>]*)\\s*<>/\";\n $countTime = preg_match_all($patternTime, implode(\"<>\", $fullOutput), $matches);\n if($countTime == 2){\n $r[\"valid_from\"] = $this->parseUTCTime($matches[1][0]);\n $r[\"valid_to\"] = $this->parseUTCTime($matches[1][1]);\n }\n\n return $r;\n }", "public static function decompress($data)\n {\n }", "function cleanData()\r\n {\r\n //Create and enmpty object \r\n $this->data = new stdClass();\r\n //Using a foreach loop to iterate through the object\r\n foreach ($this->preCleanData as $key => $value) {\r\n if (strlen($value) == 0) {\r\n return $this->data = null;\r\n }\r\n $this->data->$key = strip_tags($value);\r\n }\r\n return $this->data;\r\n }", "private function extractHeaderExtensions(): void {\n foreach ($this->attributes as $key => $value) {\n if (is_array($value)) {\n $value = implode(\", \", $value);\n } else {\n $value = (string)$value;\n }\n // Only parse strings and don't parse any attributes like the user-agent\n if (!in_array($key, [\"user-agent\", \"subject\"])) {\n if (($pos = strpos($value, \";\")) !== false) {\n $original = substr($value, 0, $pos);\n $this->set($key, trim(rtrim($original)));\n\n // Get all potential extensions\n $extensions = explode(\";\", substr($value, $pos + 1));\n $previousKey = null;\n $previousValue = '';\n\n foreach ($extensions as $extension) {\n if (($pos = strpos($extension, \"=\")) !== false) {\n $key = substr($extension, 0, $pos);\n $key = trim(rtrim(strtolower($key)));\n\n $matches = [];\n\n if (preg_match('/^(?P<key_name>\\w+)\\*/', $key, $matches) !== 0) {\n $key = $matches['key_name'];\n $previousKey = $key;\n\n $value = substr($extension, $pos + 1);\n $value = str_replace('\"', \"\", $value);\n $previousValue .= trim(rtrim($value));\n\n continue;\n }\n\n if (\n $previousKey !== null\n && $previousKey !== $key\n && isset($this->attributes[$previousKey]) === false\n ) {\n $this->set($previousKey, $previousValue);\n\n $previousValue = '';\n }\n\n if (isset($this->attributes[$key]) === false) {\n $value = substr($extension, $pos + 1);\n $value = str_replace('\"', \"\", $value);\n $value = trim(rtrim($value));\n\n $this->set($key, $value);\n }\n\n $previousKey = $key;\n }\n }\n if ($previousValue !== '') {\n $this->set($previousKey, $previousValue);\n }\n }\n }\n }\n }", "private function cleanData($data) {\n $returnData = array();\n foreach ($data as $entry) {\n $returnData[] = trim($entry);\n }\n return $returnData;\n }", "function string_prepare_header( $p_string ) {\r\n\t$t_string = $p_string;\r\n\r\n\t$t_truncate_pos = strpos($p_string, \"\\n\");\r\n\tif ($t_truncate_pos !== false ) {\r\n\t\t$t_string = substr($t_string, 0, $t_truncate_pos);\r\n\t}\r\n\r\n\t$t_truncate_pos = strpos($p_string, \"\\r\");\r\n\tif ($t_truncate_pos !== false ) {\r\n\t\t$t_string = substr($t_string, 0, $t_truncate_pos);\r\n\t}\r\n\r\n\treturn $t_string;\r\n}", "protected/* OXPS Patch - End */ function prepareResponseData($data)\n {\n\t\t// select right parameters which can be used in payment method setup (use clientData)\n\t\t$filteredData = $this->filterClientData($data);\n \n // add PM_PREFIX to data keys\n $outputData = array();\n\n if (!is_null($filteredData)) {\n foreach ($filteredData as $key => $value) {\n $newKey = PaymorrowGateway::PM_PREFIX . $key;\n $outputData[$newKey] = $value;\n }\n }\n\n return $outputData;\n }", "public function testUnlinkAttributesFromCertificate()\n {\n }", "public function getContents()\n {\n $x509 = new X509();\n\n return $x509->saveX509($x509->loadX509($this->contents)).PHP_EOL;\n }", "function clean_PDF() {\r\n\t\t$this->code = str_replace('font-style: normal;', '', $this->code);\r\n\t\t$this->code = str_replace('text-decoration: none;', '', $this->code);\r\n\t\t$this->code = str_replace('overflow: visible;', '', $this->code);\r\n\t\t$this->code = preg_replace('/border-\\w+-[^\\:]+:[^;]+;/is', '', $this->code);\r\n\t\t$this->code = preg_replace('/padding-[^\\:]+:[^;]+;/is', '', $this->code);\r\n\t\t$this->code = preg_replace('/text-indent:[^;]+;/is', '', $this->code);\r\n\t\t$this->code = preg_replace('/line-height:[^;]+;/is', '', $this->code);\r\n\t\t$this->code = preg_replace('/display:[^;]+;/is', '', $this->code);\r\n\t\t//$this->code = str_replace('text-align: left;', '', $this->code);\r\n\t\t// hyphenated words...\r\n\t\t$this->code = preg_replace('/(\\w)- (\\w)/is', '$1$2', $this->code);\r\n\t\t// footnotes\r\n\t\t$footnotes_code = '<hr>\r\n';\r\n\t\tpreg_match_all('/(<p[^<>]{0,}>.{0,100}?<img[^<>]+height=\"1\".*?<\\/p>)\\s{0,}(<p[^<>]{0,}>.*?<\\/p>)/is', $this->code, $footnote_matches);\r\n\t\t//print('$footnote_matches: ');var_dump($footnote_matches);\r\n\t\t// <p class=Default><a href=\"#_ftnref1\" name=\"_ftn1\" title=\"\">[1]</a>  <i>R. v. Bentley</i>, 2017 ONCA 982</p>\r\n\t\tforeach($footnote_matches[0] as $footnote_index => $footnote_match) {\r\n\t\t\t$footnote_code = $footnote_matches[2][$footnote_index];\r\n\t\t\t$footnote_code = ReTidy::preg_replace_first('/<a name=\"bookmark[0-9]+\">\\s{0,}([0-9]+)\\s{0,}<\\/a>/is', '<a href=\"#_ftnref$1\" name=\"_ftn$1\" title=\"\">[$1]</a>', $footnote_code); // so that clean_word recognizes it\r\n\t\t\t$footnotes_code .= $footnote_code . '\r\n';\r\n\t\t\t$this->code = str_replace($footnote_matches[0][$footnote_index], '', $this->code);\r\n\t\t}\r\n\t\t$this->code = str_replace('</body>', $footnotes_code . '</body>', $this->code);\r\n\t\t// <a href=\"#bookmark0\" class=\"s6\">1</a>\r\n\t\t// <a href=\"#_ftn1\" name=\"_ftnref1\" title=\"\"><span class=MsoFootnoteReference><span class=MsoFootnoteReference><span lang=EN-GB style='font-size:12.0pt;line-height:115%;font-family:\"Times New Roman\",serif'>[1]</span></span></span></a>\r\n\t\t$this->code = preg_replace('/<a href=\"#bookmark[0-9]+\"[^<>]{0,}>([0-9]+)<\\/a>/is', '<a href=\"#_ftn$1\" name=\"_ftnref$1\" title=\"\">[$1]</a>', $this->code);\r\n\t\t// strip <p>s in <li>s; loop this since lists can be nested\r\n\t\t$closing_p_count = -1;\r\n\t\twhile($closing_p_count != 0) {\r\n\t\t\t$this->code = preg_replace('/(<li[^<>]{0,}>.*?)<\\/p>([^<>]*?<\\/li>)/is', '$1$2', $this->code, -1, $closing_p_count);\r\n\t\t}\r\n\t\t$opening_p_count = -1;\r\n\t\twhile($opening_p_count != 0) {\r\n\t\t\t$this->code = preg_replace('/(<li[^<>]{0,}>[^<>]*?)<p[^<>]{0,}>(.*?<\\/li>)/is', '$1$2', $this->code, -1, $opening_p_count);\r\n\t\t}\r\n\t\t// would be simple if this code was ready\r\n\t\t/*\r\n\t\tif(!include_once('..' . DS . 'LOM' . DS . 'O.php')) {\r\n\t\t\tprint('<a href=\"https://www.phpclasses.org/package/10594-PHP-Extract-information-from-XML-documents.html\">LOM</a> is required');exit(0);\r\n\t\t}\r\n\t\t$O = new O($this->code);\r\n\t\t$lis = $O->_('li');\r\n\t\tprint('$lis: ');var_dump($lis);*/\r\n\t\t\r\n\t\tReTidy::style_cdata();\r\n\t\r\n\t\tReTidy::dom_init();\r\n\t\tReTidy::DOM_stylesheets_to_styles();\r\n\t\tReTidy::dom_save();\r\n\r\n\t//\tReTidy::post_dom();\r\n\t\t\r\n\t}", "protected function clearHeaders()\n {\n $this->headers = array();\n }", "public function remove_header($key)\n {\n }", "public function remove_header($key)\n {\n }", "public function withoutHeader($name)\n {\n }", "public function withoutHeader($name)\n {\n }", "public function getCertificateDetails() {\r\n return $this->_output->getCertificateResponse->certificateDetails;\r\n }", "public function DKIM_HeaderC($signHeader)\n {\n }", "private function unCdata($array) {\n //$return = array();\n foreach ($array as $key => $value) {\n if (is_array($value) && isset($value['@cdata'])) {\n $array[$key] = $value['@cdata'];\n }\n elseif(is_array($value)) {\n $array[$key] = $this->unCdata($value);\n }\n }\n return $array;\n }", "private function writeFooter(): void\n {\n $record = 0x0015; // Record identifier\n\n /* removing for now\n // need to fix character count (multibyte!)\n if (strlen($this->phpSheet->getHeaderFooter()->getOddFooter()) <= 255) {\n $str = $this->phpSheet->getHeaderFooter()->getOddFooter();\n } else {\n $str = '';\n }\n */\n\n $recordData = StringHelper::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddFooter());\n $length = strlen($recordData);\n\n $header = pack('vv', $record, $length);\n\n $this->append($header . $recordData);\n }", "public function getTrailer();", "protected function append_security_headers( &$data )\n\t {\n\t \tif( ! is_array($data) )\n\t \t{\n\t \t\tdie('Failed to append security headers because Invalid Data was passed');\n\t \t}\n\n\t \tif( $this->_app_mode === 'json' )\n\t \t{\n\t \t\theader('OS-Security-Token: ' . time() );\n\t \t}\n\t \telse\n\t \t{\n\t \t\t//append meta data\n\t \t\t$data['security_metadata'] = array();\n\t \t}\n\t }", "function getHeader() {\n return '';\n }", "public function removeHeader($directive)\n {\n if ($directive === static::REMOVE_ALL) {\n $this->headers = array();\n } elseif (is_array($directive)) {\n\n foreach($directive as $key) {\n \tif ($this->hasHeader($key)) {\n \t\tunset($this->headers[$key]);\n \t}\n }\n } else {\n\n \tif (isset($this->headers[$directive])) {\n \t\tunset($this->headers[$directive]);\n \t}\n }\n }", "public function get_header_html()\n\t{\n\t return '';\n\t}", "function ws_getheaders($data) {\n //if(!preg_match('/\\AGET (\\S+) HTTP\\/1.1\\z/', $lines[0], $matches))\n\n\t$lines = preg_split(\"/\\r\\n/\",rtrim($data));\n\t$lines[0] = \"info: \".$lines[0];\n\t\n\t$headers = array();\n\tforeach($lines as $line)\n\t\tif(preg_match('/\\A(\\S+): (.*)\\z/', rtrim($line), $matches)) $headers[$matches[1]] = $matches[2];\n\n\treturn $headers;\n}", "protected function _sanitizeHeaders(&$headers)\n\t{\n\t\tforeach ($headers as $key => $value) {\n\t\t\t$headers[$key] =\n\t\t\t\tpreg_replace('=((<CR>|<LF>|0x0A/%0A|0x0D/%0D|\\\\n|\\\\r)\\S).*=i',\n\t\t\t\t\t\t\t null, $value);\n\t\t}\n\t}", "function funpack($format, $data){\n\t$pos=0;\n foreach ($format as $key => $len) {\n \tif(substr($key,0,4)!='skip')$result[$key] = trim(substr($data, $pos, $len));\n $pos+= $len;\n }\n return $result;\n}", "function cleanupContent($content)\n {\n $content=removeInvisibleHtml($content); //remove invisible HTML tags first (strip_tags would only remove tags but leave content between them)\n $content=strip_tags($content); //remove all tags\n $content=preg_replace(\"/[^\\p{L}[:print:]\\s]/u\", \"\", $content); //remove all non-printable characters\n $content=preg_replace(\"/( )+/\", \" \", $content); //replace excess whitespace with single whitespace, preserving new lines\n\n\treturn trim($content); //return clean content\n }", "protected function dumpHeader() {\n\t\treturn trim('\n# TYPO3 Extension Manager dump 1.1\n#\n#--------------------------------------------------------\n');\n\t}", "protected function _from_cdata($data)\n\t{\n\t\t// Get the HTML translation table and reverse it\n\t\t$trans_tbl = array_flip(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES));\n\n\t\t// Translate all the entities out.\n\t\t$data = preg_replace_callback('~&#(\\d{1,4});~', function ($match) {\n\t\t\treturn $this->_from_cdata_callback($match);\n\t\t}, $data);\n\t\t$data = strtr($data, $trans_tbl);\n\n\t\treturn $this->trim ? trim($data) : $data;\n\t}", "private function tidyUpData($string)\n {\n return preg_replace('/[\\x00-\\x1F\\x7F]/u', '', $string); \n }", "public function getHeader()\n {\n return <<<EOF\n<info>\nWW WW UU UU RRRRRR FFFFFFF LL \nWW WW UU UU RR RR FF LL \nWW W WW UU UU RRRRRR FFFF LL \n WW WWW WW UU UU RR RR FF LL \n WW WW UUUUU RR RR FF LLLLLLL \n \n</info>\n\nEOF;\n\n}", "public function getTrailer() {}", "public function getTrailer() {}", "public function getTrailer() {}", "function _tsuiseki_tracking_extract_cookie_data($cookie_data) {\n $parts = array();\n $cookie_data = (string)trim($cookie_data);\n if (!empty($cookie_data)) {\n $parts = preg_split('/'. TSUISEKI_TRACKER_COOKIE_CONCAT_CHAR .'/', $cookie_data);\n $name = (string)trim($parts[0]);\n $expiration_time = (int)$parts[1];\n $data = (string)trim($parts[2]);\n $hmac = (string)trim($parts[3]);\n $parts = array(\n 'name' => $name,\n 'expiration_time' => $expiration_time,\n 'data' => $data,\n 'hmac' => $hmac,\n );\n }\n return $parts;\n}", "private function cleanStr($data)\n {\n return trim(strip_tags($data));\n }", "private function _dk_canonicalize_simple($body, $sHeaders){\n\t\t\n\t\t// Note : the RFC assumes all lines end with CRLF, and we assume you already took care of that before calling the class\n\t\t\n\t\t// keep only headers wich are in the signature headers\n\t\t$aHeaders = explode(\"\\r\\n\", $sHeaders);\n\t\tforeach($aHeaders as $key => $line){\n\t\t\t\n\t\t\tif(!empty($aHeaders)){\n\t\t\t\n\t\t\t\t// make sure this line is the line of a new header and not the continuation of another one\n\t\t\t\t$c = substr($line, 0, 1);\n\t\t\t\t$is_signed_header = true;\n\t\t\t\t\n\t\t\t\t// new header\n\t\t\t\tif(!in_array($c, array(\"\\r\", \"\\n\", \"\\t\", ' '))){\n\t\t\t\t\n\t\t\t\t\t$h = explode(':', $line);\n\t\t\t\t\t$header_type = strtolower(trim($h[0]));\n\t\t\t\t\t\n\t\t\t\t\t// keep only signature headers\n\t\t\t\t\tif(in_array($header_type, $this -> options['signed_headers'])){\n\t\t\t\t\t\t$is_signed_header = true;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tunset($aHeaders[$key]);\n\t\t\t\t\t\t$is_signed_header = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// continuated header\n\t\t\t\telse {\n\t\t\t\t\t// do not keep if it belongs to an unwanted header\n\t\t\t\t\tif($is_signed_header == false){\n\t\t\t\t\t\tunset($aHeaders[$key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tunset($aHeaders[$key]);\n\t\t\t}\n\t\t}\n\t\t$sHeaders = implode(\"\\r\\n\", $aHeaders);\n\t\t\n\t\t$mail = $sHeaders.\"\\r\\n\\r\\n\".$body.\"\\r\\n\";\n\t\t\n\t\t// remove all trailing CRLF\n\t\twhile(mb_substr($body, mb_strlen($mail, 'UTF-8')-4, 4, 'UTF-8') == \"\\r\\n\\r\\n\") $mail = mb_substr($mail, 0, mb_strlen($mail, 'UTF-8')-2, 'UTF-8');\n\t\t\n\t\treturn $mail;\n\t}", "function dumpHeaderCode()\r\n {\r\n //Do nothing yet\r\n }", "private function _removeCipherNoise($data, $key)\n {\n $keyhash = $this->hash($key);\n $keylen = strlen($keyhash);\n $str = '';\n\n for ($i = 0, $j = 0, $len = strlen($data); $i < $len; ++$i, ++$j) {\n if ($j >= $keylen) {\n $j = 0;\n }\n\n $temp = ord($data[$i]) - ord($keyhash[$j]);\n\n if ($temp < 0) {\n $temp = $temp + 256;\n }\n\n $str .= chr($temp);\n }\n\n return $str;\n }", "function process_data ($data)\n{\n $data = trim ($data);\n\n $cc = substr ($data, 0, 1);\n $end = strlen ($data) - 1;\n $cc1 = substr ($data, $end, 1);\n\n // check to see if the first and last characters are quotes\n\n if (!strcmp ($cc, $cc1) &&\n (!strcmp ($cc, '\"') ||\n !strcmp ($cc, \"'\")))\n {\n // ok check to see if we get dequoted somewhere in between\n\n $len = strlen ($data) - 1; // we dont want to check last char\n for ($i = 1; $i < $len; ++$i)\n {\n $cc1 = substr ($data, $i, 1);\n $cc2 = substr ($data, $i - 1, 1);\n if (!strcmp ($cc, $cc1) &&\n strcmp ($cc2, '\\\\'))\n {\n // ok we were dequoted\n // just return the data as is\n //\n // we do not remove the quotes in this case\n\n return ($data);\n }\n }\n\n // ok we were not dequoted, therefore strip the quotes\n\n $data = substr ($data, 1, $len - 1);\n }\n\n return ($data);\n}", "public static function tag_remove_start() {\n\t//--\n\treturn '<!-- PDF REMOVE START -->';\n\t//--\n}", "private function discardRedirectsHeaders($headerLines): array\n {\n $lastHttpRequestStartAtIndex = 0;\n for ($i = 0; $i < count($headerLines); ++$i) {\n if (preg_match('/http\\/(.+) (\\d+) /i', $headerLines[$i], $matches)) {\n $lastHttpRequestStartAtIndex = $i;\n }\n }\n return array_slice($headerLines, $lastHttpRequestStartAtIndex);\n }", "function privReadCentralFileHeader(&$p_header)\n {\n }", "public function removeEncodingDeclaration() {\n\t\t$this->processedClassCode = preg_replace(self::PATTERN_ENCODING_DECLARATION, '', $this->processedClassCode);\n\t}", "private function reformatData($data)\n\t{\n\t\t$data = str_replace('<?xml version=\"1.0\" encoding=\"UTF-8\"?>', '', $data);\n\t\t$data = str_replace(array('<', '>'), array('[', ']'), $data);\n\n\t\treturn $data;\n\t}", "private function decodeOut($out)\n {\n $headersFinished = FALSE;\n $headers = $content = [];\n $data = explode(\"\\n\", $out);\n foreach ($data as $line) {\n if (trim($line) == '') {\n $headersFinished = TRUE;\n } else {\n if ($headersFinished === FALSE && strpos($line, ':') > 0) {\n $headers[] = $line;\n }\n\n if ($headersFinished) {\n $content[] = $line;\n }\n }\n }\n\n return [$headers, implode(\"\\n\", $content)];\n }", "function cor_remove_personal_options( $subject ) {\n\n $subject = preg_replace( '#<h3>Personal Options</h3>.+?/table>#s', '', $subject, 1 );\n\n return $subject;\n\n }", "function tidy_repair_string($data, $config = null, $encoding = null) {}", "public function unDotData() {\n\t\t\n\t\t// foreach element\n\t\t// if key is dot notation\n\t\t// explode into array\n\t\t// add to output\n\t}", "public function clearAllHeaders()\r\n\t{\r\n\t\treturn $this->clearHeaders()->clearRawHeaders();\r\n\t}", "protected function cleanResponse()\n {\n // If the option to strip bad characters is not set, then we shouldn't\n // do anything here.\n if (!$this->options['strip_bad_chars']) {\n return;\n }\n\n // Strip invalid characters from the XML response body.\n $count = 0;\n $this->__last_response = preg_replace(\n '/(?!&#x0?(9|A|D))(&#x[0-1]?[0-9A-F];)/',\n ' ',\n $this->__last_response,\n -1,\n $count\n );\n\n // If the option to warn on bad characters is set, and some characters\n // were stripped, then trigger a warning.\n if ($this->options['warn_on_bad_chars'] && $count > 0) {\n trigger_error(\n 'Invalid characters were stripped from the XML SOAP response.',\n E_USER_WARNING\n );\n }\n }" ]
[ "0.62055284", "0.571185", "0.5545251", "0.5447561", "0.5297353", "0.5191676", "0.51282823", "0.5070846", "0.5027272", "0.4937397", "0.48847398", "0.48798928", "0.48625243", "0.48300108", "0.47870573", "0.4774893", "0.4773257", "0.4770072", "0.4749041", "0.47380862", "0.47238395", "0.4692971", "0.46924192", "0.46835876", "0.46642858", "0.46358785", "0.46117824", "0.45721233", "0.45678502", "0.45596492", "0.45562997", "0.45549598", "0.45380744", "0.4536927", "0.45294705", "0.4521529", "0.4503786", "0.45005968", "0.44990745", "0.44901907", "0.44876486", "0.44848624", "0.44834054", "0.44757724", "0.4472209", "0.44709557", "0.44668227", "0.4462477", "0.44623017", "0.4454051", "0.44487035", "0.44472584", "0.44382083", "0.4427834", "0.4425972", "0.44155502", "0.44145823", "0.43909383", "0.43773815", "0.43665242", "0.43665242", "0.436204", "0.436204", "0.43564078", "0.4351543", "0.43418175", "0.43356666", "0.43349957", "0.43215397", "0.43163705", "0.43136507", "0.43075457", "0.43060353", "0.43044388", "0.43003544", "0.43002212", "0.42735207", "0.42729095", "0.42665604", "0.42615438", "0.42580655", "0.42580655", "0.42580655", "0.42576867", "0.42533737", "0.42517945", "0.42496595", "0.424958", "0.42495343", "0.424902", "0.42454508", "0.42438674", "0.42438346", "0.42331937", "0.42317626", "0.42314193", "0.4224371", "0.42193577", "0.42191544", "0.42162326" ]
0.65779585
0
Arp is to be sent in its entirety as it does not support the MERGE WRITE feature
private function generateArp(array $metadata, ManageEntity $entity): array { // but we use the diffed arp to check if any changes where made to the ARP (if not, we do // not send the arp if (!empty($metadata['arp'])) { unset($metadata['arp']); $metadata['arp'] = $this->arpMetadataGenerator->build($entity); } return $metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _write() {}", "abstract protected function _write();", "protected function _writeFileBody() {}", "function merge($p_archive_to_add)\n {\n }", "public function merge() {}", "abstract protected function write();", "function privMerge(&$p_archive_to_add)\n {\n }", "protected function _writeCrossReferenceTable() {}", "protected function _write() {\n\n if ( !empty( $this->rid ) && $this->rid instanceof ID ) {\n $this->cluster_id = $this->rid->cluster;\n $this->cluster_position = $this->rid->position;\n }\n\n $this->record->setRid( new ID( $this->cluster_id, $this->cluster_position ) );\n\n $this->_writeShort( $this->cluster_id );\n $this->_writeLong( $this->cluster_position );\n\n if( $this->_transport->getProtocolVersion() >= 23 ){\n $this->_writeBoolean( $this->update_content );\n }\n\n $this->_writeBytes( CSV::serialize( $this->record ) );\n $this->_writeInt( $this->record_version );\n $this->_writeChar( $this->record_type );\n $this->_writeBoolean( $this->mode );\n\n }", "public function merge();", "function commit() ;", "public function write();", "public function write();", "public function toAlipay($arrParams) {\r\n\t\t\r\n\t}", "function MergeFile($original, $edited, $cache)\n{\n /*echo \"<table><tr><td VALIGN='top' width='33%'>\" . htmlspecialchars($original) . \"</td><td VALIGN='top' width='33%'>\" . \n htmlspecialchars($edited) . \" </td><td VALIGN='top' width='33%'>\" . htmlspecialchars($cache) . \"</td></tr></table>\";\n echo \"<br><br>-----------------------------------------------------------------------------\";*/\n /* Run the merge */\n require_once 'classMerge.php';\n $merge = new ThreeWayMerge( $original, $edited, $cache, /*'lite'*/ 'full');\n \n $result = $merge->merge();\n\n if ( $result !== FALSE )\n {\n /* Check for conflicts */\n //$conflicts = ( stristr( $result, '<ips:conflict' ) ) ? 1 : 0;\n \n echo htmlspecialchars($result);\n\n $myfile = fopen(\"doclineSQL1.txt\", \"w+\") or die(\"Unable to open file!\");\n fwrite($myfile, $result);\n fclose($myfile);\n } \n else\n echo \"Fail to merge\";\n}", "protected function doConcatenate() {}", "protected function _writeFileHeader() {}", "function procInsert($ar) {\n $this->getComposedFullnam($ar);\n\n $p=new XParam($ar,array());\n $passwd=$p->get('passwd');\n if($passwd==TZR_UNCHANGED || !$passwd) {\n $ar['passwd']=newPassword();\n }\n $r=parent::procInsert($ar);\n if(!empty($r['oid'])) {\n $d1=$this->display(array('oid'=>$r['oid'], 'tplentry'=>TZR_RETURN_DATA));\n $groups=XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.'GRP');\n foreach($d1['oGRP']->oidcollection as $groupoid) {\n\t$d2=&$groups->rDisplay($groupoid);\n\tif(!empty($d2['oprefs']->raw)) {\n\t // on duplique le contenu des préférences stockées dans la table OPTS\n\t $templateoid=$d2['oprefs']->raw;\n\t $useroid=$r['oid'];\n\t $rs2=selectQuery('select * from OPTS where user=\"'.$templateoid.'\"');\n\t $opts=XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.'OPTS');\n\t while($rs2 && ($ors2=$rs2->fetch())) {\n\t $opts->procInput(array('user'=>$useroid, 'specs'=>$ors2['specs'], 'modid'=>$ors2['modid'],\n\t\t\t\t 'dtype'=>$ors2['dtype']));\n\t }\n\t return $r;\n\t}\n }\n }\n return $r;\n }", "function push_raw_pair ( ) {\n\t\t$this->raw_ref['values'][$this->pair_name] = $this->pair_value;\n\t\t//$this->debug( 'Pushed raw pair: ' . $this->pair_name . ' => ' . $this->pair_value );\n\t}", "private function writeBlock()\n {\n if ($this->block_count > 0) {\n $this->encoder->writeLong($this->block_count);\n $to_write = (string) $this->buffer;\n\n if ($this->codec === AvroDataIO::DEFLATE_CODEC) {\n $to_write = gzdeflate($to_write);\n } elseif ($this->codec === AvroDataIO::ZSTANDARD_CODEC) {\n if (!extension_loaded('zstd')) {\n throw new AvroException('Please install ext-zstd to use zstandard compression.');\n }\n $to_write = zstd_compress($to_write);\n } elseif ($this->codec === AvroDataIO::SNAPPY_CODEC) {\n if (!extension_loaded('snappy')) {\n throw new AvroException('Please install ext-snappy to use snappy compression.');\n }\n $crc32 = crc32($to_write);\n $compressed = snappy_compress($to_write);\n $to_write = pack('a*N', $compressed, $crc32);\n } elseif ($this->codec === AvroDataIO::BZIP2_CODEC) {\n if (!extension_loaded('bz2')) {\n throw new AvroException('Please install ext-bz2 to use bzip2 compression.');\n }\n $to_write = bzcompress($to_write);\n }\n\n $this->encoder->writeLong(strlen($to_write));\n $this->write($to_write);\n $this->write($this->sync_marker);\n $this->buffer->truncate();\n $this->block_count = 0;\n }\n }", "abstract public function flush ();", "public abstract function commit();", "abstract function flush();", "function execute(){\n\t\tcanonicalizeNQL($this->source->getDocument(),$this->source->getFirstChild()->getPath());\n\t\tcanonicalizeNQL($this->destination->getDocument(),$this->destination->getFirstChild()->getPath());\n\t\t\n\t\t// creating a third XML with only the root of the request, to copy the merging into it\n\t\t$operation = $this->source->nodename();\n\t\t$source_elementNode = $this->source->getFirstChild();\n\t\t$element = $source_elementNode->nodename();\n\t\t$this->query_final = new XML($this->source->toString());\n\t\t\n\t\t$this->query_final->removeChild('/*[1]/*[1]/INFO');\n\t\t$final_operationNode = $this->query_final->getElement('/*[1]');\n\t\t$final_elementNode = $this->query_final->getElement('/*[1]/*[1]');\n\t\t\n\t\t// mixing the INFO nodes\n\t\t$this->handleInfoNode();\n\t\t\n\t\t// copying SORT, PAGINATE, etc\n\t\t// first removing the existing one\n\t\tif($final_operationNode->getElement('SORT') && $this->destination->getElement('SORT')){\n\t\t\t$final_operationNode->removeChild('/SORT');\n\t\t}\n\t\tif($final_operationNode->getElement('PAGINATE') && $this->destination->getElement('PAGINATE')){\n\t\t\t$final_operationNode->removeChild('/PAGINATE');\n\t\t}\n\t\tif($final_operationNode->getElement('RETURN') && $this->destination->getElement('RETURN')){\n\t\t\t$final_operationNode->removeChild('/RETURN');\n\t\t}\n\t\t\n\t\t$nodes_to_import = $this->destination->getElements('/*[position()>1]');\n\t\tforeach($nodes_to_import as $node){\n\t\t\t$final_operationNode->appendChild($node->toString());\n\t\t}\n\t\t\n\t\t// copying other crits than INFO : DESCRIPTION, CATGEORY, DEPENDENCY\n\t\t//$final_elementNode->appendChild($this->destination->getFirstChild()->copyOf('/*[name()!=\"INFO\"]'));\n\t\t$other_children = $this->destination->getFirstChild()->getElements('/*[name()!=\"INFO\"]');\n\t\tforeach($other_children as $node){\n\t\t\t$final_elementNode->appendChild($node->toString());\n\t\t}\n\t\t\n\t\tquery_log($this->query_final->toString());\n\t\treturn $this->query_final;\n\t\treturn false;\n\t}", "public abstract function writeBack();", "function condensedOn(&$fp) {\n\n fwrite($fp, chr(15));\n }", "abstract public function flush();", "function pg_lo_write($large_object, $data, $len = NULL)\n{\n}", "function Commit()\n\t{\n\t\t// save the all changes!! (append data & update the indexes)\n\t\tif (!$this->fd || $this->mode != 'w' || $this->dat_buffer == '') return;\n\n\t\t// 1. load all unloaded index_buffer\n\t\tfor ($i = 0; $i < $this->max_klen; $i++)\n\t\t{\n\t\t\tif (isset($this->key_buffer[$i])) continue;\n\t\t\t$this->key_buffer[$i] = '';\n\t\t\tif (!isset($this->key_index[$i]) || $this->key_index[$i]['len'] == 0) continue;\n\t\t\tfseek($this->fd, $this->key_index[$i]['off'], SEEK_SET);\n\t\t\t$this->key_buffer[$i] = fread($this->fd, $this->key_index[$i]['len']);\n\t\t}\n\n\t\t// 2. save the append data\n\t\tif ($this->dat_buffer != '')\n\t\t{\n\t\t\tfseek($this->fd, $this->key_index[0]['off'], SEEK_SET);\n\t\t\tfwrite($this->fd, $this->dat_buffer);\n\t\t\tunset($this->dat_buffer);\n\t\t\t$this->dat_buffer = '';\n\t\t}\n\t\t// 3. save the key_buffer\n\t\t$off = $this->dat_offset;\n\t\t$kbuf = '';\n\t\tfor ($i = 0; $i < $this->max_klen; $i++)\n\t\t{\n\t\t\t// check the index modified or not\n\t\t\t$kblen = strlen($this->key_buffer[$i]);\n\t\t\tif (!isset($this->put_pool[$i]))\n\t\t\t{\n\t\t\t\tif ($kblen > 0)\n\t\t\t\t\tfwrite($this->fd, $this->key_buffer[$i], $kblen);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// modified!!\n\t\t\t\t$size = $i + 9;\t\t// record_size\n\n\t\t\t\t// sort the put_pool by key\n\t\t\t\t$pool = &$this->put_pool[$i];\n\t\t\t\tksort($pool);\n\n\t\t\t\t$buffer = '';\n\t\t\t\t$o = $n = 0;\n\t\t\t\twhile ($o < $kblen)\n\t\t\t\t{\n\t\t\t\t\t$pval = each($pool);\n\t\t\t\t\tif (!$pval)\n\t\t\t\t\t{\n\t\t\t\t\t\t// end of pool\n\t\t\t\t\t\t$buffer .= substr($this->key_buffer[$i], $o);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t$okey = substr($this->key_buffer[$i], $o + 8, $size - 8);\n\t\t\t\t\t$cmp = strcmp($pval['key'], $okey);\n\n\t\t\t\t\t// 直到找到大于的?\n\t\t\t\t\twhile ($cmp < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$buffer .= pack('VVa*', $pval['value']['off'], $pval['value']['len'], $pval['key']);\n\t\t\t\t\t\t$n += $size;\n\n\t\t\t\t\t\t// find the next\n\t\t\t\t\t\t$pval = each($pool);\n\t\t\t\t\t\tif (!$pval) $cmp = 1;\t// set > 0\n\t\t\t\t\t\telse $cmp = strcmp($pval['key'], $okey);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($cmp == 0)\n\t\t\t\t\t\t$buffer .= pack('VVa*', $pval['value']['off'], $pval['value']['len'], $pval['key']);\n\t\t\t\t\telse if ($cmp > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$buffer .= substr($this->key_buffer[$i], $o, $size);\n\t\t\t\t\t\tif ($pval && !prev($pool)) end($pool);\n\t\t\t\t\t}\n\t\t\t\t\t$o += $size;\n\t\t\t\t}\n\n\t\t\t\t// other pool data\n\t\t\t\twhile ($pval = each($pool))\n\t\t\t\t{\n\t\t\t\t\t$buffer .= pack('VVa*', $pval['value']['off'], $pval['value']['len'], $pval['key']);\n\t\t\t\t\t$n += $size;\n\t\t\t\t}\n\n\t\t\t\t// save to disk\n\t\t\t\t$kblen += $n;\n\t\t\t\tfwrite($this->fd, $buffer, $kblen);\n\n\t\t\t\t// delete the pool\n\t\t\t\tunset($buffer, $pool);\n\t\t\t\tunset($this->put_pool[$i]);\n\t\t\t}\n\n\t\t\t$kbuf .= pack('VV', $off, $kblen);\n\t\t\t$this->key_index[$i] = array('off' => $off, 'len' => $kblen);\n\t\t\t$off += $kblen;\n\t\t\tunset($this->key_buffer[$i]);\n\t\t}\n\t\t// 4. save the head offset & length (key_index)\n\t\tfseek($this->fd, 32, SEEK_SET);\n\t\tfwrite($this->fd, $kbuf);\n\t\tunset($kbuf);\n\n\t\t// 5. flush the fd\n\t\tfflush($this->fd);\n\t}", "public function commit() {}", "protected function put() {\n \t// Update room options\n \n }", "public function write()\n {\n }", "private function approve() {\n\n }", "function commit();", "function mergeLock($arr)\n{\n\t$infoArr = array();\n\tfor($i = 0; $i < count($arr); $i++)\n\t{\n\t\tfor($j = 0; $j < count($arr[$i]); $j++)\n\t\t{\n\t\t\tif(substr($arr[$i][$j], -4) == 'read')\n\t\t\t{\n\t\t\t\t$name = substr($arr[$i][$j], 0, -5);\n\t\t\t\t$value = 'read';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$name = substr($arr[$i][$j], 0, -6);\n\t\t\t\t$value = 'write';\n\t\t\t}\n\t\t\tif(isset($infoArr[$name]) && $infoArr[$name] == 'write') continue;\n\t\t\t$infoArr[$name] = $value;\n\t\t}\n\t}\n\t$result = array();\n\tforeach($infoArr as $key => $value) $result[] = $key . ' ' . $value;\n\treturn $result;\n}", "public function rollout()\n\t{\n\t}", "public function _write($data)\n {\n }", "function edithistory_merge()\n{\n\tglobal $db, $mybb, $source_user, $destination_user;\n\n\t$uid = array(\n\t\t\"uid\" => $destination_user['uid']\n\t);\t\n\t$db->update_query(\"edithistory\", $uid, \"uid='{$source_user['uid']}'\");\n}", "public function binarySerialize();", "public function archiveAllMessage()\n {\n\n $db = $this->getDb();\n $user = $this->getUser();\n $userID = $user->getId();\n\n $queries = [];\n $queries[] = 'UPDATE buiz_message set id_sender_status = '.EMessageStatus::ARCHIVED.' WHERE id_sender = '.$userID.';';\n $queries[] = 'UPDATE buiz_message_receiver set status = '.EMessageStatus::ARCHIVED.' WHERE vid = '.$userID.';';\n\n foreach ($queries as $query) {\n $db->exec($query);\n }\n\n }", "private function _populateArco()\n {\n return $this->promotor->create(\n $this->promotorData['dealer_ID'], \n $this->promotorData['phone'], \n Hash::make($this->promotorData['password']), \n $this->promotorData['name'], \n $this->promotorData['gender'], \n 'arco', \n $this->promotorData['parent_ID']\n );\n }", "public function commit();", "public function commit();", "public function commit();", "public function commit();", "public function commit();", "function createUpdate($versionUpdate){\n \n $db_params = OpenContext_OCConfig::get_db_config();\n $db = new Zend_Db_Adapter_Pdo_Mysql($db_params);\n\t$db->getConnection();\n \n\t$data = array(//\"noid\" => $this->noid,\n\t\t \"project_id\" => $this->projectUUID,\n\t\t \"source_id\" => $this->sourceID,\n\t\t \"property_uuid\" => $this->itemUUID,\n\t\t \"variable_uuid\" => $this->varUUID,\n\t\t \"value_uuid\" =>$this->valUUID,\n\t\t \"val_num\" =>$this->valNumeric,\n\t\t \"val_date\" => $this->valCalendric,\n\t\t \"prop_des\" => $this->propDescription,\n\t\t \"created\" => $this->createdTime\n\t\t );\n\t\n\tif(strlen($this->varUUID)<1){\n\t unset($data[\"variable_uuid\"]);\n\t}\n\tif(strlen($this->valUUID)<1){\n\t unset($data[\"value_uuid\"]);\n\t}\n\tif(strlen($this->valNumeric)<1){\n\t unset($data[\"val_num\"]);\n\t}\n\tif(strlen($this->valCalendric)<1){\n\t unset($data[\"val_date\"]);\n\t}\n\t\n\tif($versionUpdate){\n\t $this->versionUpdate($this->itemUUID, $db); //save previous version history\n\t unset($data[\"created\"]);\n\t}\n\t\n\tif(OpenContext_OCConfig::need_bigString($this->archaeoML)){\n\t /*\n\t This gets around size limits for inserting into MySQL.\n\t It breaks up big inserts into smaller ones, especially useful for HUGE strings of XML\n\t */\n\t $bigString = new BigString;\n\t $bigString->saveCurrentBigString($this->itemUUID, \"archaeoML\", \"property\", $this->archaeoML, $db);\n\t $data[\"prop_archaeoml\"] = OpenContext_OCConfig::get_bigStringValue();\n\t}\n\telse{\n\t $data[\"prop_archaeoml\"] = $this->archaeoML;\n\t}\n\t\n\tif(OpenContext_OCConfig::need_bigString($this->atomFull)){\n\t /*\n\t This gets around size limits for inserting into MySQL.\n\t It breaks up big inserts into smaller ones, especially useful for HUGE strings of XML\n\t */\n\t $bigString = new BigString;\n\t $bigString->saveCurrentBigString($this->itemUUID, \"atomFull\", \"property\", $this->atomFull, $db);\n\t $data[\"prop_atom\"] = OpenContext_OCConfig::get_bigStringValue();\n\t}\n\telse{\n\t $data[\"prop_atom\"] = $this->atomFull;\n\t}\n\n\n\n\t$success = false;\n\ttry{\n\t $db->insert(\"properties\", $data);\n\t $success = true;\n\t}catch(Exception $e){\n\t //echo $e;\n\t $success = false;\n\t $where = array();\n\t $where[] = 'property_uuid = \"'.$this->itemUUID.'\" ';\n\t $db->update(\"properties\", $data, $where);\n\t $success = true;\n\t}\n\n\tif($success){\n\t $varData = array(\"project_id\" => $this->projectUUID,\n\t\t\t \"source_id\" => $this->sourceID,\n\t\t\t \"variable_uuid\" => $this->varUUID,\n\t\t\t \"var_type\" => $this->varType,\n\t\t\t \"var_label\" => $this->varLabel,\n\t\t\t \"var_des\" => $this->varDescription,\n\t\t\t \"var_sort\" => $this->varSort,\n\t\t\t \"created\" => $this->createdTime\n\t\t\t );\n\t try{\n\t \t$db->insert(\"var_tab\", $varData);\n\t }catch(Exception $e){\n\t\t//do nothing, it's probably in\n\t }\n\n\t if($this->valUUID != \"number\"){ //don't do inserts on numeric data\n\t\t$valData = array(\"project_id\" => $this->projectUUID,\n\t\t\t\t \"source_id\" => $this->sourceID,\n\t\t\t\t \"value_uuid\" => $this->valUUID,\n\t\t\t\t \"val_text\" => $this->value,\n\t\t\t\t \"created\" => $this->createdTime\n\t\t\t\t );\n\t\ttry{\n\t\t $db->insert(\"val_tab\", $valData);\n\t\t}catch(Exception $e){\n\t\t //do nothing, it's probably in\n\t\t}\n\t }\n\t \n\t}\n\n\t$db->closeConnection();\n\treturn $success;\n }", "private function write_single($data){\r\n if($this->$data[0] !== NULL){\r\n //add row of data to transaction object\r\n $this->$data[0]->add_list($data);\r\n }else{\r\n $this->$data[0] = new transaction_object($data[0]);\r\n $this->$data[0]->add_header($this->default_headers[$data[0]]);\r\n $this->$data[0]->add_list($data);\r\n }\r\n }", "public function testUpdateExternalShipment()\n {\n }", "function send_put()\n { \n $send = new send($this->put('id'));\n\n $send->date_modified = date('Y-m-d H:i:s');\n $send->modifiedbypk = $this->get_user()->user_id;\n\n $this->response($this->_update_save($send, 'put'));\n }", "public function orderItem($param) { \n if (!$this->aaa->has_right('openruth', 500))\n $res->orderItemError->_value = 'authentication_error';\n else {\n $targets = $this->config->get_value('ruth', 'ztargets');\n $agencyId = self::strip_agency($param->agencyId->_value);\n if ($tgt = $targets[$agencyId]) {\n // build order\n $ord = &$order->Reservation->_value;\n $ord->LibraryNo->_value = $agencyId;\n $ord->BorrowerTicketNo->_value = $param->userId->_value;\n $ord->DisposalNote->_value = $param->orderNote->_value;\n $ord->LastUseDate->_value = self::to_zruth_date($param->orderLastInterestDate->_value);\n $ord->ServiceCounter->_value = $param->agencyCounter->_value;\n $ord->Override->_value = (self::xs_true($param->agencyCounter->_value) ? 'Y' : 'N');\n $ord->Priority->_value = $param->orderPriority->_value;\n // ?????? $ord->DisposalType->_value = $param->xxxx->_value;\n $itemIds = &$param->orderItemId;\n if (is_array($itemIds))\n foreach ($itemIds as $oid) {\n $mrid->ID->_value = $oid->_value->itemId->_value;\n if (!$mrid->TitlePartNo->_value = $oid->_value->itemSerialPartId->_value)\n $mrid->TitlePartNo->_value = 0;\n $ord->MRIDS->_value->MRID[]->_value = $mrid;\n }\n else {\n $mrid->ID->_value = $itemIds->_value->itemId->_value;\n if (!$mrid->TitlePartNo->_value = $itemIds->_value->itemSerialPartId->_value)\n $mrid->TitlePartNo->_value = 0;\n $ord->MRIDS->_value->MRID->_value = $mrid;\n }\n $xml = '<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?'.'>' . utf8_decode($this->objconvert->obj2xml($order));\n \n//print_r($ord);\n//print_r($xml);\n \n $z = new z3950();\n $z->set_target($tgt['host']);\n $z->set_database($tgt['database'].'-ophelia');\n $z->set_authentication($tgt['authentication']);\n if ($tgt['proxy']) {\n $z->set_proxy($tgt['proxy']);\n }\n $xml_ret = $z->z3950_xml_update($xml, $tgt['timeout']);\n if ($z->get_errno() == 0 && $xml_ret['xmlUpdateDoc']) {\n $dom = new DomDocument();\n $dom->preserveWhiteSpace = false;\n if ($dom->loadXML($xml_ret['xmlUpdateDoc'])) {\n if ($err = &$dom->getElementsByTagName('ErrorResponse')->item(0)) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err->getAttribute('Err') . \n ' error: ' . $err->nodeValue);\n $res->orderItemError->_value = 'unspecified error, order not possible';\n } else {\n // order at least partly ok \n foreach ($dom->getElementsByTagName('MRID') as $mrid) {\n unset($ir);\n $ir->orderItemId->_value->itemId->_value = $mrid->getAttribute('Id');\n if ($mrid->getAttribute('Tp'))\n $ir->orderItemId->_value->itemSerialPartId->_value = $mrid->getAttribute('Tp');\n if (!$mrid->nodeValue)\n $ir->orderItemOk->_value = 'true';\n elseif (!($ir->orderItemError->_value = $this->errs[$mrid->nodeValue])) \n $ir->orderItemError->_value = 'unknown error: ' . $mrid->nodeValue;\n $res->orderItem[]->_value = $ir;\n }\n }\n }\n } else {\n self::log_z_error(__FUNCTION__, __LINE__, $agencyId, $z->get_errno(), $z->get_error_string());\n $res->orderItemError->_value = 'system error';\n }\n//echo \"\\n\";\n//print_r($xml_ret);\n//print_r(\"\\nError: \" . $z->get_errno());\n } else\n $res->orderItemError->_value = 'unknown agencyId';\n }\n\n $ret->orderItemResponse->_value = $res;\n //var_dump($param); var_dump($res); die();\n return $ret;\n }", "function put() \n {\n \n }", "function flush() ;", "function flush() ;", "abstract protected function write(array $record);", "function yy_r20(){ $this->_retvalue = new SQL\\CommitTransaction($this->yystack[$this->yyidx + 0]->minor); }", "function duplicate($p_archive)\n {\n }", "function commit(): void;", "public function mergeUnique() {}", "public function update_purchaseorder($ponbr) {\n\t\t\t$purchaseorder = $this->create_purchaseorderheader($ponbr);\n\t\t\t$purchaseorder['LineItem'] = $this->create_purchaseorderdetails($ponbr);\n\t\t\t$this->response = $this->curl_put($this->endpoints['purchase-order'], $purchaseorder, $json = true);\n\t\t\t$this->response['response']['PurchaseOrderNumber'] = isset($this->response['response']['PurchaseOrderNumber']) ? $this->response['response']['PurchaseOrderNumber'] : $purchaseorder['ID'];\n\t\t\t$this->process_response();\n\t\t\t//$this->response['response']['request'] = $purchaseorder;\n\t\t\treturn $this->response['response'];\n\t\t}", "protected function _syncProducer() {}", "function procEditDup($ar){\n $r=parent::procEditDup($ar);\n if(!empty($r['oid'])){\n $d1=$this->display(array('oid'=>$r['oid'], 'tplentry'=>TZR_RETURN_DATA));\n $groups=XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.'GRP');\n foreach($d1['oGRP']->oidcollection as $groupoid) {\n\t$d2=&$groups->rDisplay($groupoid);\n\tif(!empty($d2['oprefs']->raw)) {\n\t // on duplique le contenu des préférences stockées dans la table OPTS\n\t $templateoid=$d2['oprefs']->raw;\n\t $useroid=$r['oid'];\n\t $rs2=selectQuery('select * from OPTS where user=\"'.$templateoid.'\"');\n\t $opts=XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.'OPTS');\n\t while($rs2 && ($ors2=$rs2->fetch())) {\n\t $opts->procInput(array('user'=>$useroid, 'specs'=>$ors2['specs'], 'modid'=>$ors2['modid'],\n\t\t\t\t 'dtype'=>$ors2['dtype']));\n\t }\n\t}\n }\n }\n return $r;\n }", "abstract public function write($data);", "public function duplexMerge($orientation = 'P'){\n\t\t$this->merge($orientation, true);\n\t}", "function ccio_appendData($filename, $data) {\r\n\t//$fh = fopen($filename, \"ab\");\r\n\t$fh = fopen($filename, \"at\");\r\n\tfwrite($fh, $data);\t\t\r\n\tfclose($fh);\r\n\treturn TRUE;\r\n}", "public function writeable();", "protected function _prepareFlush() {\r\n\r\n }", "public function testParallelCommitAndPatch(): void {\n $location = $this->createMetadataResource();\n $prop = 'http://foo';\n\n $txId = $this->beginTransaction();\n $headers = [\n self::$config->rest->headers->transactionId => $txId,\n 'Eppn' => 'admin',\n 'Content-Type' => 'application/n-triples',\n ];\n $txReq = new Request('put', self::$baseUrl . 'transaction', $headers);\n $resReq = new Request('patch', $location . '/metadata', $headers, \"<$location> <$prop> \\\"value1\\\" .\");\n list($txResp, $resResp) = $this->runConcurrently([$txReq, $resReq], 50000);\n $this->assertEquals(204, $txResp->getStatusCode());\n $this->assertEquals(409, $resResp->getStatusCode());\n }", "public function add_data_to_tombstone(){\n }", "public function testUpdateExternalShipmentCustomFields()\n {\n }", "private function write_text_2archive($write)\n {\n // print_r($write); exit;\n $mr = new \\eol_schema\\MediaResource();\n $taxonID = $write['taxon_id'];\n $mr->taxonID = $taxonID;\n $mr->identifier = md5($taxonID.$write['text']);\n $mr->type = \"http://purl.org/dc/dcmitype/Text\";\n $mr->format = \"text/html\";\n $mr->language = 'en';\n $mr->furtherInformationURL = str_replace('taxon_id', $taxonID, $this->page['text_object_page']);\n $mr->CVterm = \"http://rs.tdwg.org/ontology/voc/SPMInfoItems#Associations\";\n // $mr->Owner = '';\n // $mr->rights = '';\n // $mr->title = '';\n $mr->UsageTerms = \"http://creativecommons.org/licenses/by-nc-sa/3.0/\";\n $mr->description = $write['text'];\n if($reference_ids = @$write['ref_ids']) $mr->referenceID = implode(\"; \", $reference_ids);\n \n if($agent = @$write['agent']) {\n if($agent_ids = self::create_agent($agent['name'], $agent['homepage'], \"author\")) $mr->agentID = implode(\"; \", $agent_ids);\n }\n \n if(!isset($this->object_ids[$mr->identifier])) {\n $this->archive_builder->write_object_to_file($mr);\n $this->object_ids[$mr->identifier] = '';\n }\n \n }", "public function bookItem($param) { \n if (!$this->aaa->has_right('openruth', 500))\n $res->bookingError->_value = 'authentication_error';\n else {\n $agencyId = self::strip_agency($param->agencyId->_value);\n $targets = $this->config->get_value('ruth', 'ztargets');\n if ($tgt = $targets[$agencyId]) {\n $book = &$booking->Booking->_value;\n $book->LibraryNo->_value = $agencyId;\n $book->BorrowerTicketNo->_value = $param->userId->_value;\n $book->BookingNote->_value = $param->bookingNote->_value;\n $book->StartDate->_value = self::to_zruth_date($param->bookingStartDate->_value);\n $book->EndDate->_value = self::to_zruth_date($param->bookingEndDate->_value);\n $book->NumberOrdered->_value = $param->bookingTotalCount->_value;\n $book->ServiceCounter->_value = $param->agencyCounter->_value;\n $book->MRID->_value->ID->_value = $param->itemId->_value;\n $book->MRID->_value->TitlePartNo->_value = ($param->itemSerialPartId->_value ? $param->itemSerialPartId->_value : 0);\n $xml = '<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?'.'>' . utf8_decode($this->objconvert->obj2xml($booking));\n $z = new z3950();\n $z->set_target($tgt['host']);\n $z->set_database($tgt['database'].'-ophelia');\n $z->set_authentication($tgt['authentication']);\n if ($tgt['proxy']) {\n $z->set_proxy($tgt['proxy']);\n }\n $xml_ret = $z->z3950_xml_update($xml, $tgt['timeout']);\n//echo 'error: ' . $z->get_errno();\n//print_r($xml);\n//print_r($xml_ret);\n if ($z->get_errno() == 0 && $xml_ret['xmlUpdateDoc']) {\n $dom = new DomDocument();\n $dom->preserveWhiteSpace = false;\n if ($dom->loadXML($xml_ret['xmlUpdateDoc'])) {\n if ($err = $dom->getElementsByTagName('ErrorResponse')->item(0)) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err->getAttribute('Err'));\n if (!($res->bookingError->_value = $this->errs[$err->getAttribute('Err')])) \n $res->bookingError->_value = 'unspecified error (' . $err->getAttribute('Err') . '), order not possible';\n } elseif ($err = $dom->getElementsByTagName('Error')->item(0)->nodeValue) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err);\n if (!($res->bookingError->_value = $this->errs[$err])) \n $res->bookingError->_value = 'unspecified error (' . $err . '), order not possible';\n } else {\n $res->bookingOk->_value->bookingId->_value = $dom->getElementsByTagName('BookingID')->item(0)->nodeValue;\n if ($sd = self::from_zruth_date($dom->getElementsByTagName('StartDate')->item(0)->nodeValue))\n $res->bookingOk->_value->bookingStartDate->_value = $sd;\n else\n $res->bookingOk->_value->bookingStartDate->_value = $param->bookingStartDate->_value;\n if ($ed = self::from_zruth_date($dom->getElementsByTagName('EndDate')->item(0)->nodeValue))\n $res->bookingOk->_value->bookingEndDate->_value = $ed;\n else\n $res->bookingOk->_value->bookingEndDate->_value = $param->bookingEndDate->_value;\n }\n } else {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') loadXML error of: ' . $xml_ret['xmlUpdateDoc']);\n $res->bookingError->_value = 'system error';\n }\n } else {\n self::log_z_error(__FUNCTION__, __LINE__, $agencyId, $z->get_errno(), $z->get_error_string());\n $res->bookingError->_value = 'system error';\n }\n } else\n $res->bookingError->_value = 'unknown agencyId';\n }\n\n $ret->bookItemResponse->_value = $res;\n //var_dump($param); print_r($res); die();\n return $ret;\n }", "public function committed();", "function beginReadWrite();", "function overwrite($overwrite=true) {\r\n $this->overwrite = $overwrite;\r\n }", "function queueAssignment($name, $email, $phone) {\n\t$detailsArray = array('name' => $name, 'email' => $email, 'phone' => $phone);\n\t$detailsStr = json_encode($detailsArray);\n\twriteFile($detailsArray);\n\t// client code\n\t$client = new GearmanClient();\n\t$client->addServer();\n\t$store = $client->do(\"saveRecord\", $detailsStr);\n}", "public static function commit()\n {\n }", "abstract public function serialize();", "abstract public function serialize();", "public function updateOrder($param) { \n if (!$this->aaa->has_right('openruth', 500))\n $res->updateOrderError->_value = 'authentication_error';\n else {\n $agencyId = self::strip_agency($param->agencyId->_value);\n $targets = $this->config->get_value('ruth', 'ztargets');\n if ($tgt = $targets[$agencyId]) {\n $ord = &$order->ReservationUpdate->_value;\n $ord->LibraryNo->_value = $agencyId;\n $ord->DisposalID->_value = $param->orderId->_value;\n $ord->DisposalNote->_value = $param->orderNote->_value;\n $ord->LastUseDate->_value = self::to_zruth_date($param->orderLastInterestDate->_value);\n $ord->ServiceCounter->_value = $param->agencyCounter->_value;\n $xml = '<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?'.'>' . utf8_decode($this->objconvert->obj2xml($order));\n $z = new z3950();\n $z->set_target($tgt['host']);\n $z->set_database($tgt['database'].'-ophelia');\n $z->set_authentication($tgt['authentication']);\n if ($tgt['proxy']) {\n $z->set_proxy($tgt['proxy']);\n }\n $xml_ret = $z->z3950_xml_update($xml, $tgt['timeout']);\n//echo 'error: ' . $z->get_errno();\n//print_r($xml);\n//print_r($xml_ret);\n if ($z->get_errno() == 0 && $xml_ret['xmlUpdateDoc']) {\n $dom = new DomDocument();\n $dom->preserveWhiteSpace = false;\n if ($dom->loadXML($xml_ret['xmlUpdateDoc'])) {\n if ($err = $dom->getElementsByTagName('ErrorResponse')->item(0)) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err->getAttribute('Err'));\n if (!($res->updateOrderError->_value = $this->errs[$err->getAttribute('Err')])) \n $res->updateOrderError->_value = 'unspecified error (' . $err->getAttribute('Err') . '), order not possible';\n } else {\n $res->updateOrderOk->_value = $param->orderId->_value;\n }\n } else {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') loadXML error of: ' . $xml_ret['xmlUpdateDoc']);\n $res->updateOrderError->_value = 'system error';\n }\n } else {\n self::log_z_error(__FUNCTION__, __LINE__, $agencyId, $z->get_errno(), $z->get_error_string());\n $res->updateOrderError->_value = 'system error';\n }\n } else\n $res->updateOrderError->_value = 'unknown agencyId';\n }\n\n $ret->updateOrderResponse->_value = $res;\n //var_dump($param); print_r($res); die();\n return $ret;\n }", "function writeToDestination($data) {\n\t\t$sqlInsertStatement = \"INSERT INTO UTVMEDL (UM_PNID, UM_UTVID, UM_FRADATO, UM_TILDATO, UM_FUNK, UM_RANGERING, UM_SORT, UM_VARAFOR) VALUES (\";\n\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_PNID . \"', \";\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_UTVID . \"', \";\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_FRADATO . \"', \";\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_TILDATO . \"', \";\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_FUNK . \"', \";\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_RANGERING . \"', \";\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_SORT . \"', \";\t\t\n\t\t$sqlInsertStatement .= \"'\" . $data->UM_VARAFOR . \"'\";\n//\t\t$sqlInsertStatement .= \"'\" . $data->UM_MERKNAD. \"'\";\n\t\n\t\t$sqlInsertStatement .= \");\";\n\t\t\n\t\t$this->uttrekksBase->executeStatement($sqlInsertStatement);\n }", "function procEdit($ar=NULL){\n $this->getComposedFullnam($ar);\n return parent::procEdit($ar);\n }", "function act() {\n if ($_SERVER['REQUEST_METHOD'] == \"PUT\") {\n $xml = \"\";\n $fd = fopen(\"php://input\",\"r\");\n while ($line = fread($fd,2048)) {\n $xml .= $line;\n }\n fclose($fd);\n $src = $this->getParameterDefault(\"src\");\n $fd=fopen($src,\"w\");\n \n fwrite($fd,$xml);\n fclose($fd);\n // TODO: Error handling!\n $this->sitemap->setResponseCode(204);\n return array(\"message\" => \"Data saved\");\n }\n return array(\"message\" => \"Not a PUT request\");\n \n \n }", "protected function write(array $record)\n {\n if (!$this->isBatchHandling) {\n $this->contentBuffer = $record['formatted'];\n $this->publishContent();\n }\n else {\n $this->contentBuffer = $record['formatted'] . $this->contentBuffer;\n }\n }", "public function merge($incoming)\n {\n }", "public function write(){\n\n\t\t$ACHFile = fopen($this->getFileLocation(), \"w\");\n\t\tfwrite($ACHFile, $this->getData());\n\t\tfclose($ACHFile);\n\n\t\treturn $this->getFileLocation();\t\n\t}", "public function commit()\n {\n }", "public function commit()\n {\n }", "function AddUpdateOptionBOMItem($BID, $opId, $arryDetails,$index) {//$option_ID,//\r\n global $Config;\r\n extract($arryDetails);\r\n //print_r($arryDetails);//die;\r\n \r\n if ($opId == '') {\r\n $strUpSQLQuery = \"update inv_bill_of_material set \r\n\t\t\t\ttotal_cost='\" . $TotalValue . \"',\r\n\t\t\t\tUpdatedDate = '\" . $Config['TodayDate'] . \"'\r\n\t\t\t\twhere bomID='\" . $BID.\"'\";\r\n //echo $strUpSQLQuery ;die;\r\n\r\n $this->query($strUpSQLQuery, 0);\r\n }\r\n \r\n \r\n for ($j = 1; $j<=$arryDetails['newNumberLine'.$index.'']; $j++) {\r\n \r\n if (!empty($arryDetails[\"newsku$index-$j\"])) {\r\n \r\n $id = $arryDetails[\"newid$index-$j\"];\r\n //print_r($id);\r\n if ($id > 0) {\r\n $sql = \"update inv_item_bom set orderby = '\".$arryDetails[\"orderby$index-$j\"].\"', item_id='\" . $arryDetails[\"newitem_id$index-$j\"] . \"', sku='\" . addslashes($arryDetails[\"newsku$index-$j\"]) . \"',`Primary`='\" .$arryDetails[\"Primary$index-$j\"] . \"', description='\" . addslashes($arryDetails[\"newdescription$index-$j\"]) . \"', wastageQty='\" . addslashes($arryDetails[\"newWastageqty$index-$j\"]) . \"', bom_qty='\" . addslashes($arryDetails[\"newqty$index-$j\"]) . \"', unit_cost='\" . addslashes($arryDetails[\"newprice$index-$j\"]) . \"', total_bom_cost='\" . addslashes($arryDetails[\"newamount$index-$j\"]) . \"',`Condition`='\" . addslashes($arryDetails[\"newCondition$index-$j\"]) . \"',req_item='\" . addslashes($arryDetails[\"newreq_item$index-$j\"]) . \"' where id='\" . $id.\"'\"; \r\n $this->query($sql, 0);\r\n } \r\n else {\r\n $sql = \"insert into inv_item_bom (bomID,optionID, item_id, sku, description, wastageQty, bom_qty, unit_cost, total_bom_cost,`Condition`,req_item,orderby,`Primary`) values('\" . $BID . \"','\" . $opId . \"','\" . $arryDetails[\"newitem_id$index-$j\"] . \"', '\" . addslashes($arryDetails[\"newsku$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newdescription$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newWastageqty$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newqty$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newrice$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newamount$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newCondition$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newreq_item$index-$j\"] ). \"', orderby = '\".$arryDetails[\"orderby$index-$j\"].\"','\" . addslashes($arryDetails[\"Primary$index-$j\"]) . \"')\";\r\n $this->query($sql, 0);\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n }\r\n //die;\r\n return true;\r\n }", "function yy_r19(){ $this->_retvalue = new SQL\\CommitTransaction; }", "public function write(poly_base_Article $obj);", "public function put();", "public function put();", "protected function _reset_write()\r\n\t{\r\n\t\t$this->_reset_run(array(\r\n\t\t\t'qb_set'\t=> array(),\r\n\t\t\t'qb_from'\t=> array(),\r\n\t\t\t'qb_join'\t=> array(),\r\n\t\t\t'qb_where'\t=> array(),\r\n\t\t\t'qb_orderby'\t=> array(),\r\n\t\t\t'qb_keys'\t=> array(),\r\n\t\t\t'qb_limit'\t=> FALSE,\r\n 'qb_lock_in_share_mode' => FALSE,\r\n 'qb_for_update' => FALSE\r\n\t\t));\r\n\t}", "function UPDSAR()\n{\n $aropen_rows = db::fetchRows($sql, 'DTSDATA.AROPEN'); /* #251 */\n if ($aropen\n ) {\n if ($billpay->BPPAY_ < $billpay->BPNET_\n && $billpay->BPRTN_ === 0\n && $billpay->BPOIN_ > 0\n ) {\n $aropen->AROPPD += $billpay->BPPAY_; /* #258 */\n $aropen->ARONPD += $billpay->BPPAY_; /* #259 */\n $aropen->AROPDT = $billpay->BPPDAT; /* #260 */\n $aropen->update(); /* #261 update record */\n $receipts->CRCID = $aropen->AROCID; /* #263 */\n $receipts->CRPER = $PERIOD; /* #264 */\n $receipts->CRCUST = $aropen->AROCUS; /* #265 */\n $receipts->CRSLMN = $aropen->AROSLM; /* #266 */\n $receipts->CRDTPD = $billpay->BPPDAT; /* #267 */\n $receipts->CRDTIN = $aropen->AROIDT; /* #268 */\n $receipts->CRINV_ = $aropen->AROINV; /* #269 */\n $receipts->CRTYPE = '1'; /* #270 */\n $receipts->CRCHCK = $billpay->BPCONF; /* #271 */\n $receipts->CRGLDP = ''; /* #272 */\n $receipts->CRGLAC = ''; /* #273 */\n $receipts->CRDESC = ''; /* #274 */\n $receipts->CRPPD = $billpay->BPPAY_; /* #275 */\n $receipts->CRDUS = 0; /* #276 */\n $receipts->CRSTCM = ''; /* #277 */\n $receipts->CRSTGL = ''; /* #278 */\n $receipts->CRSTS = ''; /* #279 */\n $receipts->CRDST = ''; /* #280 */\n $receipts->insert(); /* #281 insert record */\n $customer_rows = db::fetchRows($sql, 'DTSDATA.MFCUST'); /* #283 */\n $customer->CULRDT = $billpay->BPPDAT; /* #284 */\n $customer->CUREC->update(); /* #285 update record */\n } /* #286 end if */\n } /* #288 end if */\n}", "function produceOId(&$array) {\n for ($i = 0;$i < count($array);$i++) {\n if (!isset($array[$i]->_id)) continue;\n $array[$i]->_id = $array[$i]->_id->__toString();\n }\n\n}", "private function write_multi($data){\r\n $this->flag_multi = TRUE;\r\n if($this->TRNS !== NULL){\r\n if($data[0] == \"ENDTRNS\"){\r\n //add array of data to transaction object\r\n $this->lines[] = $data;\r\n $this->TRNS->add_list($this->lines);\r\n $this->lines = array();\r\n $this->flag_multi = FALSE;\r\n }else{\r\n //add row of data to parser object until the multi line transaction is complete.\r\n $this->lines[] = $data;\r\n }\r\n }else{\r\n $this->TRNS = new transaction_object(\"TRNS\");\r\n $this->TRNS->add_header(array($this->default_headers[\"TRNS\"], $this->default_headers[\"SPL\"]));\r\n $this->lines[] = $data;\r\n }\r\n }", "function write()\n {\n }", "public function commitUpdate();", "protected function write()\n {\n $this->writeString($this->clientName);\n $this->writeString($this->clientVersion);\n $this->writeShort($this->protocolVersion);\n $this->writeString(''); // client id, unused.\n $this->writeString($this->database);\n $this->writeString($this->type);\n $this->writeString($this->username);\n $this->writeString($this->password);\n }" ]
[ "0.5620318", "0.554926", "0.5451503", "0.5397429", "0.53046316", "0.52640635", "0.5099033", "0.5067416", "0.49729124", "0.4969246", "0.49512914", "0.4937767", "0.4937767", "0.488023", "0.48016888", "0.474803", "0.47167236", "0.4697574", "0.46221805", "0.46029785", "0.4587764", "0.45659107", "0.45616448", "0.45606127", "0.45574644", "0.45540938", "0.4551829", "0.4548661", "0.45123658", "0.45109403", "0.44923452", "0.44652933", "0.44634205", "0.4445956", "0.44316107", "0.44271925", "0.44260052", "0.44251907", "0.44195926", "0.44183436", "0.4405675", "0.4403089", "0.4403089", "0.4403089", "0.4403089", "0.4403089", "0.4392237", "0.43882012", "0.43746793", "0.43548906", "0.4351119", "0.43451095", "0.4320633", "0.4320633", "0.4320297", "0.43180004", "0.4316493", "0.4300595", "0.42983487", "0.4297895", "0.42918837", "0.4280231", "0.42801318", "0.4266815", "0.4261101", "0.42448807", "0.42436638", "0.42427742", "0.42421708", "0.42398292", "0.42327887", "0.42245775", "0.42240724", "0.42238593", "0.4223658", "0.42165127", "0.42078945", "0.4193632", "0.4193632", "0.41921702", "0.4191288", "0.41872224", "0.41836497", "0.41823092", "0.41771132", "0.41768992", "0.4175947", "0.4175947", "0.41741323", "0.417314", "0.41729188", "0.4171075", "0.4171075", "0.41690177", "0.41670585", "0.41652766", "0.4163344", "0.4162173", "0.4159519", "0.41500616" ]
0.4281185
61
Validates the given entity definition data which was parsed from the crud.yml.
public function validate(array $data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validate()\n {\n// echo static::class;\n if (!isset($this->getProperty('raw_data')['_'])) {\n throw new InvalidEntity('Invalid entity data given: ' . json_encode($this->getRawData(), JSON_PRETTY_PRINT));\n }\n }", "public function validate($data, $entity=null);", "public function validate($entity)\n {\n }", "abstract public function validate($entity);", "public function testValidateConfigEntityContext() {\n $display = EntityViewDisplay::create([\n 'targetEntityType' => 'entity_test',\n 'bundle' => 'entity_test',\n 'mode' => 'default',\n 'status' => TRUE,\n ]);\n $display->save();\n\n $violations = EntityContext::fromEntity($display)->validate();\n $this->assertCount(0, $violations);\n }", "private function checkData(){\n $this->datavalidator->addValidation('article_title','req',$this->text('e10'));\n $this->datavalidator->addValidation('article_title','maxlen=250',$this->text('e11'));\n $this->datavalidator->addValidation('article_prologue','req',$this->text('e12'));\n $this->datavalidator->addValidation('article_prologue','maxlen=3000',$this->text('e13'));\n $this->datavalidator->addValidation('keywords','regexp=/^[^,\\s]{3,}(,? ?[^,\\s]{3,})*$/',$this->text('e32'));\n $this->datavalidator->addValidation('keywords','maxlen=500',$this->text('e33'));\n if($this->data['layout'] != 'g' && $this->data['layout'] != 'h'){ //if article is gallery dont need content\n $this->datavalidator->addValidation('article_content','req',$this->text('e14'));\n }\n $this->datavalidator->addValidation('id_menucategory','req',$this->text('e15'));\n $this->datavalidator->addValidation('id_menucategory','numeric',$this->text('e16'));\n $this->datavalidator->addValidation('layout','req',$this->text('e17'));\n $this->datavalidator->addValidation('layout','maxlen=1',$this->text('e18'));\n if($this->languager->getLangsCount() > 1){\n $this->datavalidator->addValidation('lang','req',$this->text('e19'));\n $this->datavalidator->addValidation('lang','numeric',$this->text('e20'));\n }\n //if user cannot publish articles check publish values\n if($_SESSION[PAGE_SESSIONID]['privileges']['articles'][2] == '1') {\n $this->datavalidator->addValidation('published','req',$this->text('e21'));\n $this->datavalidator->addValidation('published','numeric',$this->text('e22'));\n $this->datavalidator->addValidation('publish_date','req',$this->text('e23'));\n }\n $this->datavalidator->addValidation('topped','req',$this->text('e24'));\n $this->datavalidator->addValidation('topped','numeric',$this->text('e25'));\n $this->datavalidator->addValidation('homepage','req',$this->text('e30'));\n $this->datavalidator->addValidation('homepage','numeric',$this->text('e31'));\n $this->datavalidator->addValidation('showsocials','req',$this->text('e26'));\n $this->datavalidator->addValidation('showsocials','numeric',$this->text('e27'));\n \n $result = $this->datavalidator->ValidateData($this->data);\n if(!$result){\n $errors = $this->datavalidator->GetErrors();\n return array('state'=>'error','data'=> reset($errors));\n }else{\n return true;\n }\n }", "abstract public function validateData();", "public function validate($configData);", "protected function entityValidate($entity) {\n parent::entityValidate($entity);\n\n if (!isset($entity->uid) || !is_numeric($entity->uid)) {\n $entity->uid = $this->config['author'];\n }\n }", "public static function validateGuid()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 50),\n );\n}", "public function validate()\n {\n $validator = Validator::make($this->data, $this->fieldValidationArray());\n if ($validator->fails()) {\n throw $this->validationException(join(\", \", $validator->errors()->all()));\n }\n\n /* if there's a script, check that the script will return the right type .*/\n if (isset($this->data[\"script\"])) {\n if ($this->recordType == null) {\n throw $this->validationException(\"Script can't be tested because the field doesn't belong to a record type.\");\n }\n try {\n $script = $this->getScript($this->recordType);\n if ($script->type() != $this->data[\"type\"]) {\n throw $this->validationException(\"Script should return a '\" . $this->data[\"type\"] . \"' but returned a \" . $script->type());\n }\n } catch (ScriptException $e) {\n throw $this->validationException(\"Script has a problem: \" . $e->getMessage());\n }\n }\n }", "public function testIsValidException()\n {\n $validator = new \\Magento\\Framework\\Validator\\Entity\\Properties();\n $validator->isValid([]);\n }", "public function testValidationDefaultCorrect()\r\n {\r\n $data = $this->getCorrectData();\r\n $artifact = $this->Artifacts->newEntity($data);\r\n $this->assertEmpty($artifact->errors());\r\n }", "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['locked']);\r\n unset($data['ref_artifact_id']);\r\n unset($data['deliverable_id']);\r\n unset($data['content']);\r\n unset($data['stamp']);\r\n $artifact = $this->Solids->newEntity($data);\r\n $this->assertEmpty($artifact->errors());\r\n }", "public function validate(Entity $entidad){\n $this->initErrorMessages($entidad);\n return true;\n }", "public function testValidationDefaultCorrect()\r\n {\r\n $data = $this->getCorrectData();\r\n $solid = $this->Solids->newEntity($data);\r\n $this->assertEmpty($solid->errors());\r\n }", "protected function validate($data) \n {\n $errorsFound = false;\n \n foreach ($data as $key => $value) {\n if (!property_exists($this->entity, $key)) {\n unset($data[$key]);\n }\n }\n \n if (!array_key_exists('campaign', $data) || get_class($data['campaign']) != 'Campaign\\Entity\\Campaign') {\n Session::error(\"An invalid campaign was specified to one of the widgets!\");\n $errorsFound = true;\n }\n \n if (!array_key_exists('widgetType', $data) || !array_key_exists($data['widgetType'], $this->widgetsMap)) {\n Session::error(\"You are trying to add an invalid widget type!\");\n $errorsFound = true;\n }\n \n if (!array_key_exists('earningValue', $data) || empty($data['earningValue'])) {\n Session::error(\"Every widget must have an earning value!\");\n $errorsFound = true;\n } elseif (!is_numeric($data['earningValue'])) {\n Session::error(\"Widget earning values must be numeric!\");\n $errorsFound = true;\n } elseif ($data['earningValue'] <= 0) {\n Session::error(\"Widgets Earning Values must be greater than 0!\");\n $errorsFound = true;\n } elseif ($data['earningValue'] > 10000) {\n Session::error(\"Widgets Earning Values cannot be greater than 10000!\");\n $errorsFound = true;\n }\n \n if (!array_key_exists('title', $data) || empty($data['title'])) {\n Session::error(\"Every widget must have a title!\");\n $errorsFound = true;\n } elseif ($data['title'] > 32) {\n Session::error(\"The widget Title cannot be longer than 32 characters!\");\n $errorsFound = true;\n }\n \n if (array_key_exists('optionsSerialized', $data) && strlen($data['optionsSerialized']) > 10000) {\n Session::error(\"You have to many options on your widget!\");\n $errorsFound = true;\n }\n \n return !$errorsFound;\n }", "public static function validateExchangeId()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 196),\n );\n}", "public function validate(){\r\n\t\tif(array_get($this->entity, array_get($this->validate, 'fieldName')) != $this->fieldValue){\r\n\t\t\tHmsException::occur($fieldName. '必须等于', $this->fieldValue);\r\n\t\t}\r\n\t}", "public function validateDataInvoice(): void\n {\n $this->validarDatos($this->datos, $this->getRules('fe'));\n\n $this->validarDatosArray($this->datos->arrayOtrosTributos, 'tributos');\n\n /** @phpstan-ignore-next-line */\n if (property_exists($this->datos, 'arraySubtotalesIVA')) {\n $this->validarDatosArray((array) $this->datos->arraySubtotalesIVA, 'iva');\n }\n\n $this->validarDatosArray($this->datos->comprobantesAsociados, 'comprobantesAsociados');\n\n if ($this->ws === 'wsfe') {\n if (property_exists($this->datos, 'arrayOpcionales')) {\n $this->validarDatosArray((array) $this->datos->arrayOpcionales, 'opcionales');\n }\n } elseif ($this->ws === 'wsmtxca') {\n $this->validarDatosArray($this->datos->items, 'items');\n }\n }", "public static function validateXmlId()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 50),\n );\n}", "public function testValidationDefaultCorrect()\r\n {\r\n $data = $this->getCorrectData();\r\n $oddit = $this->Oddits->newEntity($data);\r\n $this->assertEmpty($oddit->errors());\r\n }", "public function validate($domainEntity) {\n $messages = array ();\n $className = str_replace('Domain_', '',get_class($domainEntity));\n foreach ( $this->confArray as $filedName => $validationDefs ) { \n foreach ( $validationDefs as $validatorName => $options ) { \n if (is_numeric($validatorName)) {\n $validatorName = $options;\n $options = array();\n } \n $validator = $this->createValidator($validatorName, $options);\n $methodGet = 'get' . ucfirst($filedName); \n if (!$validator->isValid($domainEntity->$methodGet())) { \n $key = 'validation.' . strtolower($className) . '.' . $filedName . '.' . $validatorName;\n $messages[] = new Miqo_Validation_Info($filedName, $key, $validator->getMessages());\n break;\n } \n }\n \n } \n return $messages;\n }", "protected function _validate() {\n\t}", "public static function validateStatus()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 1),\n );\n}", "abstract public function validateData($data);", "function md_validate_definition(array $rules, array $definition, array $validators = [])\n{\n $basic_validators = array_merge([\n 'required' => function (array $values, $key) {\n return isset($values[$key]) && null !== $values[$key];\n },\n 'array' => function (array $values, $key) {\n return array_key_exists($key, $values) && is_array($values[$key]);\n },\n 'integer' => function (array $values, $key) {\n return array_key_exists($key, $values) && is_int($values[$key]);\n },\n 'numeric' => function (array $values, $key) {\n return array_key_exists($key, $values) && is_numeric($values[$key]);\n },\n 'string' => function (array $values, $key) {\n return array_key_exists($key, $values) && is_string($values[$key]);\n }\n ], $validators ?? []);\n $errors = [];\n foreach ($rules as $key => $value) {\n foreach ($value as $rule) {\n if (!array_key_exists($rule, $basic_validators)) {\n continue;\n }\n if (false === $basic_validators[$rule]($definition, $key)) {\n $errors[] = \"Validation rule ($rule) fails for $key\";\n }\n }\n }\n return $errors;\n}", "function validateOnAdd( $entity ){\t\t\t\n\t\t//TODO unicidad (cliente )\n\t\t\n\t}", "public function validate() \n\t{\t\t\n\t\tif(!$this->entity) \n\t\t{\n\t\t\t$method = 'validate' . $this->act;\n\n\t\t\t$rules = $this->{$method}();\n\n\t\t\tif(!empty($rules)) \n\t\t\t{\n\t\t\t\t$this->validator = Validator::make($this->input, $rules);\t\n\t\t\n\t\t\t\tif($this->validator->fails()) \n\t\t\t\t{\n\t\t\t\t\t$this->response['validation_errors'][] = $this->validator->errors();\n\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function validate($entity)\n\t{\n\t\t// Create new validate using entity data\n\t\t$val = new Validate($entity->getData());\n\n\t\t// Go through each field and add rules to validator\n\t\t$count = 0;\n\t\tforeach ($this->fields as $field => $options)\n\t\t{\n\t\t\tif (isset($options['rules']))\n\t\t\t{\n\t\t\t\t$val->rules($options['rules']);\n\t\t\t\t$count++;\n\t\t\t}\n\t\t}\n\n\t\t// No rules so no point trying to validate\n\t\tif ($count == 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t// Save the result\n\t\t$result = $val->check();\n\n\t\tif (!$result)\n\t\t{\n\t\t\t// Save the errors\n\t\t\t$this->errors = $val->errors();\n\t\t}\n\n\t\treturn $result;\n\t}", "private function buildValidFormData()\n {\n $attributes = $this->getAttributeTypes();\n\n $result = [\n 'dashboard_bundle_entity_type[publishButton]' => '',\n 'dashboard_bundle_entity_type[metadata][importUrl]' => 'https://engine.surfconext.nl/authentication/sp/metadata',\n 'dashboard_bundle_entity_type[metadata][pastedMetadata]' => '',\n 'dashboard_bundle_entity_type[metadata][metadataUrl]' => 'https://sp2-surf.com/metadata',\n 'dashboard_bundle_entity_type[metadata][entityId]' => 'https://sp2-surf.com',\n 'dashboard_bundle_entity_type[metadata][nameIdFormat]' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient',\n 'dashboard_bundle_entity_type[metadata][certificate]' => file_get_contents(__DIR__ . '/fixtures/publish/valid.cer'),\n 'dashboard_bundle_entity_type[metadata][logoUrl]' => 'https://sp2-surf.com/images/logo.png',\n 'dashboard_bundle_entity_type[metadata][nameNl]' => 'De Nederlandse naam voor dit entity',\n 'dashboard_bundle_entity_type[metadata][descriptionNl]' => 'SURF SP2 Description Dutch',\n 'dashboard_bundle_entity_type[metadata][nameEn]' => 'SURF SP2 Name English',\n 'dashboard_bundle_entity_type[metadata][descriptionEn]' => 'SURF SP2 Description English',\n 'dashboard_bundle_entity_type[metadata][applicationUrl]' => '',\n 'dashboard_bundle_entity_type[metadata][eulaUrl]' => '',\n 'dashboard_bundle_entity_type[contactInformation][administrativeContact][firstName]' => 'Jane',\n 'dashboard_bundle_entity_type[contactInformation][administrativeContact][lastName]' => 'Doe',\n 'dashboard_bundle_entity_type[contactInformation][administrativeContact][email]' => '[email protected]',\n 'dashboard_bundle_entity_type[contactInformation][administrativeContact][phone]' => '',\n 'dashboard_bundle_entity_type[contactInformation][technicalContact][firstName]' => 'Joe',\n 'dashboard_bundle_entity_type[contactInformation][technicalContact][lastName]' => 'Doe',\n 'dashboard_bundle_entity_type[contactInformation][technicalContact][email]' => '[email protected]',\n 'dashboard_bundle_entity_type[contactInformation][technicalContact][phone]' => '',\n 'dashboard_bundle_entity_type[contactInformation][supportContact][firstName]' => 'givenname',\n 'dashboard_bundle_entity_type[contactInformation][supportContact][lastName]' => 'surname',\n 'dashboard_bundle_entity_type[contactInformation][supportContact][email]' => '[email protected]',\n 'dashboard_bundle_entity_type[contactInformation][supportContact][phone]' => 'telephonenumber',\n 'dashboard_bundle_entity_type[comments][comments]' => 'I need a new name NL'\n ];\n\n foreach ($attributes as $attribute) {\n\n $entry = sprintf('dashboard_bundle_entity_type[attributes][%s][motivation]', $attribute->getName());\n $entryRequested = sprintf('dashboard_bundle_entity_type[attributes][%s][requested]', $attribute->getName());\n $result[$entryRequested] = true;\n $result[$entry] = 'some data here!';\n }\n\n return $result;\n }", "protected function isValidEntity(EntityTypeInterface $definition) {\n return $definition->get('field_ui_base_route') && $definition->hasViewBuilderClass();\n }", "public static function validate() {}", "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['name']);\r\n unset($data['locked']);\r\n unset($data['ref_artifact_id']);\r\n unset($data['status']);\r\n $artifact = $this->Artifacts->newEntity($data);\r\n $this->assertEmpty($artifact->errors());\r\n }", "public function __construct($definition) {\n // Throw an exception if the entity type ID is longer than 32 characters.\n if (mb_strlen($definition['id']) > static::ID_MAX_LENGTH) {\n throw new EntityTypeIdLengthException('Attempt to create an entity type with an ID longer than ' . static::ID_MAX_LENGTH . \" characters: {$definition['id']}.\");\n }\n\n foreach ($definition as $property => $value) {\n $this->set($property, $value);\n }\n\n // Ensure defaults.\n $this->entity_keys += [\n 'revision' => '',\n 'bundle' => '',\n 'langcode' => '',\n 'default_langcode' => 'default_langcode',\n 'revision_translation_affected' => 'revision_translation_affected',\n ];\n $this->handlers += [\n 'access' => 'Drupal\\Core\\Entity\\EntityAccessControlHandler',\n ];\n if (isset($this->handlers['storage'])) {\n $this->checkStorageClass($this->handlers['storage']);\n }\n\n // Automatically add the \"EntityChanged\" constraint if the entity type\n // tracks the changed time.\n if ($this->entityClassImplements(EntityChangedInterface::class)) {\n $this->addConstraint('EntityChanged');\n }\n // Automatically add the \"EntityUntranslatableFields\" constraint if we have\n // an entity type supporting translatable fields and pending revisions.\n if ($this->entityClassImplements(ContentEntityInterface::class)) {\n $this->addConstraint('EntityUntranslatableFields');\n }\n\n // Ensure a default list cache tag is set.\n if (empty($this->list_cache_tags)) {\n $this->list_cache_tags = [$definition['id'] . '_list'];\n }\n }", "private function validate($serviceTypeData) {\n require_once __DIR__.'/Validate.php';\n\n //check values are there\n if(!((array_key_exists('Name',$serviceTypeData)) and (array_key_exists('Description',$serviceTypeData)))){\n throw new \\Exception(\"A name and description for the service type must be specified\");\n }\n\n //check values are strings\n if(!((is_string($serviceTypeData['Name'])) and (is_string($serviceTypeData['Description'])))){\n throw new \\Exception(\"The new service type name and description must be valid strings\");\n }\n\n //check that the name is not null\n if(empty($serviceTypeData['Name'])){\n throw new \\Exception(\"A name must be specified for the Service Type\");\n }\n\n //check that the description is not null\n if(empty($serviceTypeData['Description'])){\n throw new \\Exception(\"A description must be specified for the Service Type\");\n }\n\n\n //remove the ID from the values file if present (which it may be for an edit)\n if(array_key_exists(\"ID\",$serviceTypeData)){\n unset($serviceTypeData[\"ID\"]);\n }\n\n $serv = new \\org\\gocdb\\services\\Validate();\n foreach ($serviceTypeData as $field => $value) {\n $valid = $serv->validate('service_type', strtoupper($field), $value);\n if(!$valid) {\n $error = \"$field contains an invalid value: $value\";\n throw new \\Exception($error);\n }\n }\n }", "private function validateEntityTypePropertyAndPropValue() {\n $validateServ = new validate();\n\n #Because of how extension properties appear in the schema (as a seperate entity), we need to change the entity name\n if ($this->entityProperty == 'extensionproperties') {\n $objectType = $this->entityType . 'property';\n } else {\n $objectType = $this->entityType;\n }\n\n #Now we itterate through all the possible cases.\n #The first is that a entity key has been provided, currently only extension properties support this\n #The second is that there is no key, and a single value has been provided\n #The third is that a series of key/value pairs have been provided\n #The fourth is a delete where no array or value has been specified, this is only currently supported for extension properties\n #The final statement deals with the case where a key has been specified as well as multiple values or where both a single value and an array are set. Neither should happen.\n if (!is_null($this->entityPropertyKey) && !is_null($this->entityPropertyValue) && is_null($this->entityPropertyKVArray)) {\n #only currently supported for extension properties\n if ($this->entityProperty == 'extensionproperties') {\n $this->validateWithService($objectType,'name',$this->entityPropertyKey,$validateServ);\n $this->validateWithService($objectType,'value',$this->entityPropertyValue,$validateServ);\n } else {\n $this->exceptionWithResponseCode(400,\n \"The API currently only supports specifying a key in the url for extension properties. For help see: $this->docsURL\"\n );\n }\n } elseif (is_null($this->entityPropertyKey) && !is_null($this->entityPropertyValue) && is_null($this->entityPropertyKVArray)) {\n $this->validateWithService($objectType,$this->entityProperty,$this->entityPropertyValue,$validateServ);\n } elseif (is_null($this->entityPropertyKey) && is_null($this->entityPropertyValue) && !is_null($this->entityPropertyKVArray)) {\n #only currently supported for extension properties\n if ($this->entityProperty == 'extensionproperties') {\n foreach ($this->entityPropertyKVArray as $key => $value) {\n $this->validateWithService($objectType,'name',$key,$validateServ);\n #Values can be null in the case of DELETEs\n if (!(empty($value) && $this->requestMethod == 'DELETE')) {\n $this->validateWithService($objectType,'value',$value,$validateServ);\n }\n }\n unset($value);\n } else {\n $this->exceptionWithResponseCode(400,\n \"The API currently only supports specifying an array of values for extension properties. For help see: $this->docsURL\"\n );\n }\n } elseif (is_null($this->entityPropertyValue) && is_null($this->entityPropertyKVArray)) {\n #Only delete methods support not providing values of any kind\n if ($this->requestMethod == 'DELETE') {\n #only currently supported for extension properties\n if ($this->entityProperty != 'extensionproperties') {\n $this->exceptionWithResponseCode(400,\n \"The API currently only supports deleting without specifying values for extension properties. For help see: $this->docsURL\"\n );\n }\n } else {\n $this->exceptionWithResponseCode(400,\n \"For methods other than 'DELETE' a value or set of values must be provided. For help see: $this->docsURL\"\n );\n }\n\n } else {\n $this->exceptionWithResponseCode(500,\n \"The validation process has failed due to an error in the internal logic. Please contact the administrator.\"\n );\n }\n }", "public function validateDefinitions(ExecutionContextInterface $context)\n {\n //remove empty definitions first\n //looks weird here\n foreach($this->getDefinitions() as $def){\n if ($def->getContent() == \"\"){\n $this->removeDefinition($def);\n }\n }\n\n //if there are no definitions left...\n if (count($this->getDefinitions()) < 1){\n //creates a validation error\n $context->buildViolation('Veuillez ajouter au moins une définition !')\n ->atPath('definitions')\n ->addViolation();\n }\n }", "public function validateData($data): void;", "public function check_data()\n {\n parent::check_data();\n\n if(empty($this->build_notifications))\n {\n throw new exception('<strong>Data missing: Notifications</strong>');\n }\n\n if(empty($this->build_batch_reference))\n {\n throw new exception('<strong>Data missing: Batch References</strong>');\n }\n }", "public function beforeCreate(\\stdClass $data, Entity $entity) { }", "public function validate()\n {\n parent::validate();\n if ( ! $this->getProject()->getId()) {\n $this->failedValidation($this->getValidatorInstance());\n }\n }", "abstract public function validate();", "abstract public function validate();", "public function validate()\n\t{\n\t\t$errors = array();\n\t\t\n\t\t//make sure user is logged in\n\t\tif (empty($this->userid)) \n\t\t{\n\t\t\t$errors['userid'] = true;\n\t\t}\n\t\t\n\t\t//verify all info is provided\n\t\tif (isset($this->title))\n\t\t\t$this->title = strip_tags($this->title);\n\t\telse\n\t\t\t$errors['title'] = true;\n\t\t\t\n\t\tif (isset($this->description))\n\t\t\t$this->description = strip_tags($this->description);\n\t\telse\n\t\t\t$errors['description'] = true;\n\t\t\t\n\t\tif (isset($this->content))\n\t\t\t$this->content = strip_tags($this->content, \"<br><b>\");\n\t\telse\n\t\t\t$errors['content'] = true;\n\t\t\t\n\t\tif (isset($this->location))\n\t\t\t$this->location = strip_tags($this->location);\n\t\telse\n\t\t\t$errors['location'] = true;\n\t\t\n\t\tif (!isset($this->category))\n\t\t\t$errors['category'] = true;\n\t\t\t\n\t\tif (!isset($this->enddatetime))\n\t\t\t$errors['enddatetime'] = true;\n\t\t\n\t\t\n\t\t//If we made it here, all is valid\n\t\tif (count($errors) > 0)\n\t\t\treturn $errors;\n\t\telse\n\t\t\treturn NULL;\n\t}", "public function validate()\n {\n $messages = array();\n\n // ID\n if (!Validator::validateField($this->id, 'intVal')) {\n $messages[] = 'ID is invalid.';\n }\n\n // Email\n if (!Validator::validateField($this->email, 'email', array('notEmpty' => array(), 'required' => true))) {\n $messages[] = 'Email address is invalid.';\n }\n\n // Password - no need to validate as it is validated on set and isn't required for an update\n\n // First name\n if (!Validator::validateField($this->first_name, 'stringType', array(\n 'notEmpty' => array(),\n 'length' => array(1, 35),\n 'required' => true\n ))) {\n $messages[] = 'First name is required.';\n }\n\n // Last name\n if (!Validator::validateField($this->last_name, 'stringType', array(\n 'notEmpty' => array(),\n 'length' => array(1, 35),\n 'required' => true\n ))) {\n $messages[] = 'Last name is required.';\n }\n\n // Role\n if (!Validator::validateField($this->role, 'stringType', array(\n 'notEmpty' => array(),\n 'length' => array(1, 35),\n 'required' => true\n ))) {\n $messages[] = 'Role is required.';\n }\n\n // Status\n if (!Validator::validateField($this->status, 'slug', array(\n 'notEmpty' => array(),\n 'length' => array(1, 20),\n 'required' => true\n ))) {\n $messages[] = 'Status is not valid.';\n }\n\n if (!empty($messages)) {\n throw new ValidationException($messages);\n }\n }", "function culturefeed_entry_ui_edit_collaboration_data_form_validate(array $form, array &$form_state) {\n\n if (isset($form_state['values']['collaboration'])) {\n\n $collaboration = $form_state['values']['collaboration'];\n foreach ($collaboration as $tag => $info) {\n\n $field = \"collaboration][\" . $tag . \"][image][\";\n if (!empty($info['image']['upload']) && $info['image']['copyright'] != 1) {\n form_set_error($field . \"copyright\", t('Please agree to the general conditions of UiTdatabank and declare that you have the necessary rights or permissions to distribute the image through UiTdatabank.'));\n }\n if (!empty($info['image']['upload']) && empty($info['image']['copyright_text'])) {\n form_set_error($field . \"copyright_text\", t('Copyright field is required.'));\n }\n\n }\n\n }\n\n}", "abstract protected function isValidDefinition(ilADTDefinition $a_def);", "function validate() {\n\t\t// execute the column validation \n\t\tparent::validate();\n\t\t\n\t\t// connection\t\t\n\t\t$conn = Doctrine_Manager::connection();\n\t\t\n\t\t// query for check if location exists\n\t\t$unique_query = \"SELECT id FROM company WHERE name = '\".$this->getName().\"' AND id <> '\".$this->getID().\"'\";\n\t\t$result = $conn->fetchOne($unique_query);\n\t\t// debugMessage($unique_query);\n\t\t// debugMessage(\"result is \".$result);\n\t\tif(!isEmptyString($result)){ \n\t\t\t$this->getErrorStack()->add(\"unique.name\", \"The name \".$this->getName().\" already exists. Please specify another.\");\n\t\t}\n\t}", "protected function isEntityValid($form)\n {\n return true;\n }", "public static function validateMark()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 1),\n );\n}", "public function isValid() {\n\n foreach ($this->entity as $nameColumn => $column) {\n\n $validate = null;\n // Se for chave primaria e tiver valor, valida inteiro somente sem nenhuma outra validacao.\n if ($column['contraint'] == 'pk' && $column['value']) {\n $validate = new Zend_Validate_Digits();\n } else {\n\n//______________________________________________________________________________ VALIDANDO POR TIPO DA COLUNA NO BANCO\n // Se tiver valor comeca validacoes de acordo com o tipo.\n // Se nao pergunta se é obrigatorio, se for obrigatorio valida.\n if ($column['value']) {\n // Se for inteiro\n if ($column['type'] == 'integer' || $column['type'] == 'smallint') {\n $validate = new Zend_Validate_Digits();\n // Se for data\n } else if ($column['type'] == 'numeric') {\n $column['value'] = str_replace('.', '', $column['value']);\n $column['value'] = (float) str_replace(',', '.', $column['value']);\n $validate = new Zend_Validate_Float();\n } else if ($column['type'] == 'date') {\n\n\t\t\t\t\t\t$posBarra = strpos($column['value'], '/');\n\t\t\t\t\t\t$pos = strpos($column['value'], '-');\n\t\t\t\t\t\tif ($posBarra !== false) {\n\t\t\t\t\t\t\t$date = explode('/', $column['value']);\n\t\t\t\t\t\t\tif (!checkdate($date[1], $date[0], $date[2])) {\n\t\t\t\t\t\t\t\t$this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($column['value'] . self::MSG_DATA_INVALIDA));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($pos !== false) {\n\t\t\t\t\t\t\t$date = explode('-', $column['value']);\n\t\t\t\t\t\t\tif (!checkdate($date[1], $date[2], $date[0])) {\n\t\t\t\t\t\t\t\t$this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($column['value'] . self::MSG_DATA_INVALIDA));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n // Se for texto\n } else if ($column['type'] == 'character' || $column['type'] == 'character varying') {\n\n // Se for Bollean\n } else if ($column['type'] == 'boolean') {\n\n // Se for texto\n } else if ($column['type'] == 'text') {\n \n } else if ($column['type'] == 'timestamp without time zone') {\n if (strpos($column['value'], '/')) {\n\n if (strpos($column['value'], ' ')) {\n $arrDate = explode(' ', $column['value']);\n\n // Validando a data\n $date = explode('/', $arrDate[0]);\n if (!checkdate($date[1], $arrDate[0], $date[2])) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($arrDate[0] . self::MSG_DATA_INVALIDA));\n }\n\n // Validando a hora\n $validateTime = new Zend_Validate_Date('hh:mm');\n $validateTime->isValid($arrDate[1]);\n if ($validateTime->getErrors()) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($arrDate[1] . self::MSG_DATA_HORA_INVALIDA));\n }\n } else {\n // Validando a data\n $date = explode('/', trim($column['value']));\n if (!checkdate($date[1], $date[0], $date[2])) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($column['value'] . self::MSG_DATA_INVALIDA));\n }\n }\n }\n }\n\n//______________________________________________________________________________ VALIDANDO POR LIMITE DA COLUNA NO BANCO\n // Validando quantidade de caracteres.\n if ($column['maximum']) {\n $validateMax = new Zend_Validate_StringLength(array('max' => $column['maximum']));\n $validateMax->isValid($column['value']);\n if ($validateMax->getErrors()) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => (reset($validateMax->getMessages())));\n }\n $validateMax = null;\n }\n } else {\n//______________________________________________________________________________ VALIDANDO POR NAO VAZIO DA COLUNA NO BANCO\n // Validando se nao tiver valor e ele for obrigatorio.\n if ($column['is_null'] == 'NO' && $column['contraint'] != 'pk') {\n $validate = new Zend_Validate_NotEmpty();\n }\n }\n\n//______________________________________________________________________________ VALIDANDO A CLOUNA E COLOCANDO A MENSAGEM\n if ($validate) {\n $validate->isValid($column['value']);\n if ($validate->getErrors()) {\n\t\t\t\t\t\t$msg = $validate->getMessages();\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ( reset($msg) ));\n }\n\n $validate = null;\n }\n }\n }\n\t\t\n if ($this->error)\n return false;\n else\n return true;\n }", "public abstract function validation();", "public function validate(ExecutionContextInterface $context)\n { \n if (!isset($this->cover_image) && !isset($this->imageFile) && !isset($this->lien_publication)) {\n $context->buildViolation('Veuillez choisir un lien vers une publication et/ou une image de présentation.')\n ->atPath('imageFile')\n ->addViolation();\n $context->buildViolation('Veuillez choisir un lien vers une publication et/ou une image de présentation.')\n ->atPath('lien_publication')\n ->addViolation();\n }\n }", "public static function validate()\n\t{\n\t\tself::engine()->validate();\n\t}", "public static function validateCrmEntityType()\n\t{\n\t\treturn array(\n\t\t\tnew Main\\Entity\\Validator\\Length(null, 50),\n\t\t);\n\t}", "public static function validateSiteId()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 2),\n );\n}", "abstract protected function validate($data);", "public function validate()\n\t{\n\t\t// Build the validation data\n\t\t$data = array();\n\n\t\tforeach ($this->_meta->fields as $field_name => $field)\n\t\t{\n\t\t\t$data[$field_name] = $this->get($field_name);\n\t\t}\n\n\t\t$data = Validation::factory($data);\n\n\t\t// Add rules\n\t\tforeach ($this->_meta->fields as $field_name => $field)\n\t\t{\n\t\t\tforeach ($field->rules as $rule)\n\t\t\t{\n\t\t\t\t$callback = Arr::get($rule, 0);\n\t\t\t\t$params = Arr::get($rule, 1);\n\n\t\t\t\t$data->rule($field_name, $callback, $params);\n\t\t\t}\n\t\t}\n\n\t\t// Bind :model parameters to this model so the validation callback\n\t\t// can have access to the model\n\t\t$data->bind(':model', $this);\n\n\t\t// If the data does not validate, throw an exception\n\t\tif ( ! $data->check())\n\t\t{\n\t\t\tthrow new DORM_Validation_Exception($this, $data);\n\t\t}\n\t}", "protected function cleanData(&$data){\n if(isset($data['field'])){\n $data['field'] = $this->getReference('User\\Entity\\Field', $data['field']['id']);\n }\n\t\tif(isset($data['style'])){\n $data['style'] = $this->getReference('User\\Entity\\Style', $data['style']['id']);\n }\n if(isset($data['sale'])){\n $data['sale'] = $this->getReference('User\\Entity\\Staff', $data['sale']['id']);\n }\n if(isset($data['pm'])){\n $data['pm'] = $this->getReference('User\\Entity\\Staff', $data['pm']['id']);\n }\n if(isset($data['client'])){\n $data['client'] = $this->getReference('\\User\\Entity\\User', $data['client']['id']);\n }\n if(isset($data['sourceLanguage'])){\n $data['sourceLanguage'] = $this->getReference('\\User\\Entity\\Language', $data['sourceLanguage']['id']);\n }\n if(isset($data['startDate'])){\n $data['startDate'] = new \\DateTime($data['startDate']);\n }\n\t\telse {\n\t\t\t$data['startDate'] = new \\DateTime('now');\n\t\t}\n if(isset($data['dueDate'])){\n $data['dueDate'] = new \\DateTime($data['dueDate']);\n }\n\t\telse {\n\t\t\t//$date_tmp = new \\DateTime($data['startDate']);\n\t\t\t$data['dueDate'] = $data['startDate']->add(new DateInterval('P30D'));\n\t\t}\n if(isset($data['status'])){\n $data['status'] = $data['status']['id'];\n }\n\t\tif(isset($data['currency']) && isset($data['currency']['id'])){\n $data['currency'] = $data['currency']['id'];\n }\n\t\tif(isset($data['transGraph']) && isset($data['transGraph']['id']) ){\n $data['transGraph'] = $data['transGraph']['id'];\n }\n\t\tif(isset($data['serviceLevel']) && isset($data['serviceLevel']['id'])){\n $data['serviceLevel'] = $data['serviceLevel']['id'];\n }\n\n\n if(isset($data['priority'])){\n $data['priority'] = $data['priority']['id'];\n }\n if(isset($data['serviceLevel'])) {\n $data['serviceLevel'] = $data['serviceLevel'];\n }\n if(isset($data['invoiceinfo'])) {\n \t$data['invoiceinfo'] = $data['invoiceinfo'];\n }\n if(isset($data['createType'])) {\n \t$data['createType'] = $data['createType'];\n }\n\n if(isset($data['types'])){\n $arr = [];\n foreach($data['types'] as $type){\n $arr[] = $type['id'];\n }\n $data['types'] = $arr;\n }\n\t\telse{\n\t\t\t$arr = [];\n\t\t\tif($data['createType']=='orderTranslationNonContract' || $data['createType'] == 'landingOrder')\n\t\t\t\t$arr[] = 1;\n\t\t\telse\n\t\t\t\t$arr[] = 1;\n\t\t\t$data['types'] = $arr;\n\t\t}\n }", "protected function validate()\r\n\t{\r\n\t\tif (!$this->isFetched())\r\n\t\t{\r\n\t\t\treturn;\r\n }\r\n \r\n\t\tif ($this->validationInfo)\r\n\t\t{\r\n\t\t\t$this->validationInfo->validate($this->normalizedValue);\r\n\t\t}\r\n\t\t$this->isValid = true;\r\n\t}", "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['event_id']);\r\n unset($data['gmt_created']);\r\n unset($data['message']);\r\n $oddit = $this->Oddits->newEntity($data);\r\n $this->assertEmpty($oddit->errors());\r\n }", "public function beforeValidate() {\n $flowData = CJSON::decode($this->flow);\n\n if ($flowData === false) {\n $this->addError('flow', Yii::t('studio', 'Flow configuration data appears to be ' .\n 'corrupt.'));\n return false;\n }\n if (isset($flowData['trigger']['type'])) {\n $this->triggerType = $flowData['trigger']['type'];\n if (isset($flowData['trigger']['modelClass']))\n $this->modelClass = $flowData['trigger']['modelClass'];\n } else {\n // $this->addError('flow',Yii::t('studio','You must configure a trigger event.'));\n }\n if (!isset($flowData['items']) || empty($flowData['items'])) {\n $this->addError('flow', Yii::t('studio', 'There must be at least one action in the ' .\n 'flow.'));\n }\n\n $this->lastUpdated = time();\n if ($this->isNewRecord)\n $this->createDate = $this->lastUpdated;\n return parent::beforeValidate();\n }", "public function validate_fields() {\n \n\t\t\n \n\t\t}", "public function isValid()\n {\n $docType = get_class($this->source);\n if (isset($this->options['required'][$docType])) {\n $this->validateTags($docType);\n } else if (isset($this->options['required']['__ALL__'])) {\n $this->validateTags('__ALL__');\n }\n }", "public function validate_fields() {\n \n\t\t//...\n \n }", "public static function validateTitle()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 255),\n );\n}", "function thumbwhere_contentcollection_edit_form_validate(&$form, &$form_state) {\n \n //if (twCanDebug()) debug($form); \n //if (twCanDebug()) debug($form_state);\n\n\n // No validation for pk\n\n\n // Convert fk autocomplete for fk_actor\n $value = $form['fk_actor']['#value'];\n // If we have something, escape the auto-completion encoding.\n if (!empty($value)) { \n $value = entity_autocomplete_get_id($value);\n form_set_value($form['fk_actor'], $value,$form_state);\n }\n //if (twCanDebug()) debug($form['fk_actor']);\n if (twCanDebug()) debug('fk_actor = ' . $value);\n // Validate fk fk_actor\n if (empty($value)) {\n form_set_error('fk_actor', t('Validation error, \\'fk_actor\\' is mandatory1.'));\n // throw new Exception('Field \\'fk_actor\\' in is mandatory');\n }\n\n // Validate normaltitle\n $value = $form['title']['#value'];\n // If we have no default value then we don't care much for checking for emptyness.\n\n\n \n\n //form_set_value( array('#parents' => array('array_key_parent', 'array_key_to_replace')) , $value, $form_state);\n\n \n \n $thumbwhere_contentcollection = $form_state['thumbwhere_contentcollection'];\n\n // Notify field widgets to validate their data.\n field_attach_form_validate('thumbwhere_contentcollection', $thumbwhere_contentcollection, $form, $form_state);\n \n \n \n}", "public function validate()\n {\n $loader = new FileLoader(new Filesystem, 'lang');\n $translator = new Translator($loader, 'en');\n $validation = new Factory($translator, new Container);\n\n $rules = $this->rules();\n\n $this->_applyCustomValidationRules($validation);\n\n $validation->validate($this->attributes, $rules, $this->messages);\n }", "public final function verifyData($key){\n\n unset($this->errors[$key]);\n\n if(!array_key_exists($key,$this->data)){\n\n if(!array_key_exists($key,$this->definition)){\n throw new \\Disco\\exceptions\\Exception(\"Field `{$key}` is not defined by this data model\");\n }//if\n\n //DEFAULT\n if(array_key_exists('default',$this->definition[$key])){\n $this->data[$key] = $this->definition[$key]['default'];\n }//if\n //REQUIRED\n else if($this->getDefinitionValue($key,'required')){\n return $this->setError($key,\"`{$key}` is required\");\n }//elif\n else {\n return false;\n }//el\n\n }//if\n\n //PREMASSAGE\n if(($massage = $this->getDefinitionValue($key,'premassage')) !== false){\n $this->data[$key] = $this->{$massage}($this->data[$key]);\n }//if\n\n $value = $this->data[$key];\n\n //REGEXP\n if(($regexp = $this->getDefinitionValue($key,'regexp')) !== false){\n if(($default = \\App::getCondition($regexp)) !== false && !\\App::matchCondition($default,$value)){\n return $this->setError($key);\n }//if\n if(!preg_match(\"/{$regexp}/\",$value)){\n return $this->setError($key);\n }//if\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n //METHOD\n if(($method = $this->getDefinitionValue($key,'method')) !== false){\n if(!$this->{$method}($value)){\n return $this->setError($key);\n }//if\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n //NULLABLE\n if($this->getDefinitionValue($key,'nullable') && $value === null){\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n $type = $this->getDefinitionValue($key,'type');\n\n //TRUTHY\n if($type != 'boolean' && $this->getDefinitionValue($key,'truthy') && is_bool($value)){\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n switch($type){\n\n case 'int':\n\n if(!$this->_isValidInt($key,$value)){\n return false;\n }//if\n\n break;\n\n case 'uint':\n\n if(!$this->_isValidInt($key,$value)){\n return false;\n }//if\n\n if($value < 0){\n return $this->setError($key,\"`{$key}` must be a positive integer\");\n }//if\n\n break;\n\n case 'float':\n\n if(!$this->_isValidFloat($key,$value)){\n return false;\n }//if\n\n break;\n\n case 'ufloat':\n\n if(!$this->_isValidFloat($key,$value)){\n return false;\n }//if\n\n if($value < 0){\n return $this->setError($key,\"`{$key}` must be a positive number\");\n }//if\n\n break;\n\n case 'string':\n\n if(!is_string($value)){\n return $this->setError($key,\"`{$key}` must be a string\");\n }//if\n\n if(($min = $this->getDefinitionValue($key,'minlen')) !== false && strlen($value) < $min){\n return $this->setError($key,\"`{$key}` must be greater than {$min} characters long\");\n }//if\n\n if(($max = $this->getDefinitionValue($key,'maxlen')) !== false && strlen($value) > $max){\n return $this->setError($key,\"`{$key}` must be less than {$max} characters long\");\n }//if\n\n break;\n\n case 'char':\n\n if(!is_string($value) || strlen($value) != 1){\n return $this->setError($key,\"`{$key}` must be a single character\");\n }//if\n\n break;\n\n case 'boolean': \n\n if(!is_bool($value)){\n return $this->setError($key,\"`{$key}` must be a boolean value\");\n }//if\n\n break;\n\n case 'array':\n\n if(!is_array($value)){\n return $this->setError($key,\"`{$key}` must be an array\");\n }//if\n\n break;\n\n case 'object':\n\n if(is_object($value)){\n if(($instanceof = $this->getDefinitionValue($key,'instanceof')) !== false && !$value instanceof $instanceof){\n return $this->setError($key,\"`{$key}` must be an instance of `{$instanceof}`\");\n }//if\n } //if\n else {\n return $this->setError($key,\"`{$key}` must be an object\");\n }//if\n\n break;\n\n case 'closure':\n\n if(!is_object($value) || !$value instanceof \\Closure){\n return $this->setError($key,\"`{$key}` must be a closure\");\n }//if \n\n break;\n\n default:\n return $this->setError($key);\n\n }//switch\n\n //IN\n if(($in = $this->getDefinitionValue($key,'in')) !== false && !in_array($value,$in)){\n $in = implode(', ',$in);\n return $this->setError($key,\"`{$key}` must be a value of `{$in}`\");\n }//if\n\n //NOTIN\n if(($in = $this->getDefinitionValue($key,'notin')) !== false && in_array($value,$in)){\n $in = implode(', ',$in);\n return $this->setError($key,\"`{$key}` must not be a value of `{$in}`\");\n }//if\n\n $this->_postMassage($key,$value);\n\n }", "public function validated();", "public static function validateExchangeModified()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 196),\n );\n}", "public function validateConfig()\n\t{\n\t\t$schemaContent = @file_get_contents(Config::$schemaFile);\n\t\tif($schemaContent === FALSE) {\n\t\t\t$this->errors['File not found'][] = [\n\t\t\t\t'property' => Config::$schemaFile,\n\t\t\t\t'message' => 'Schema file not found.'\n\t\t\t];\n\t\t\treturn;\n\t\t}\n\n\t\t$schema = Json::decode($schemaContent);\n\n\t\t$this->schemaValidator->check($this->config, $schema);\n\n\t\tif (!$this->schemaValidator->isValid()) {\n\t\t\t$this->errors['schema'] = $this->schemaValidator->getErrors();\n\t\t}\n\t}", "public function testValidationForCategoryId(): void\n {\n $errors = $this->Table->newEntity(['category_id' => 'str'] + $this->example)->getErrors();\n $this->assertEquals(['category_id' => ['naturalNumber' => I18N_SELECT_VALID_OPTION]], $errors);\n }", "public function beforeCreate(\\stdClass $data, EntityInterface $entity)\n {\n $this->processFormData($data);\n }", "public function validate()\n {\n if ($this->ingredient() || $this->upc()) {\n return;\n }\n\n throw new \\Exception('You must enter either an ingredient or UPC code to search for');\n }", "public function validate($definitionName = null, $data = [])\n {\n if (!is_object($data)) {\n // cast object if not object\n $data = (object) $data;\n }\n\n // get definition\n $schema = $this->getJSONSchema($definitionName);\n\n // validate\n $this->validator->validate($data, $schema);\n\n if (!$this->validator->isValid()) {\n $_errors = $this->validator->getErrors();\n throw new InvalidJsonSchemaException(sprintf(\"json is invalid. definition: %s message: %s\", $definitionName, json_encode($_errors)));\n }\n }", "public function testValidation()\n\t{\n\n\t\t// $this->assertInstanceOf('Model', $depot);\n\n\t\t// $this->specify('\\'depot_id and\\' \\'factory_type_id\\' is required', function() {\n\t\t// \t$factory->depot_id = null;\n\t\t// \t$factory->factory_type_id = null;\n // verify($factory->validate(['depot_id', 'factory_type_id'])->false());\n\t\t// });\n\n\t\t// $this->specify('factory', function() {\n\t\t// \t$factory->depot_id = $this->depot->depot_id;\n\t\t// \t$factory->factory_type_id = $this->factoryType->factory_type_id;\n\t\t// \tverify($factory->validate()->true());\n\t\t// });\n\t}", "public function validate(Request $request): bool {\n\n if(!empty($this->validation_rules)) {\n\n $validator = BaseValidator::make($request->all(), $this->validation_rules, $this->validation_messages, $this->attributes);\n\n if($validator->fails()) {\n\n foreach($validator->errors()->all() as $msg) {\n $this->error_message = $msg;\n break;\n }\n\n return false;\n\n } else {\n $this->createEntity($request->all());\n }\n\n return true;\n\n }\n\n throw new Exception(\"You have not created any field with its validation rules\");\n\n }", "public function validate() {\r\n // Name - this is required\r\n if ($this->description == '') {\r\n $this->errors[] = 'Description is required';\r\n } \r\n \r\n // Category number - must be a number\r\n if (!is_numeric($this->category)) {\r\n $this->category = 0;\r\n } \r\n \r\n // Item number - must be a number\r\n if (!is_numeric($this->item)) {\r\n $this->item = 0;\r\n } \r\n }", "private function validate_input() {\n\t\t$fields = array_merge( array( $this->range_field ), $this->key_fields, $this->checksum_fields );\n\n\t\t$this->validate_fields( $fields );\n\t\t$this->validate_fields_against_table( $fields );\n\t}", "public function testValidation()\n {\n $category = new Category();\n\n //Test null input\n Yii::$app->db->createCommand('set foreign_key_checks=0')->execute();\n $category->name = null;\n $category->class = null;\n $category->featured_campaign_id = null;\n $this->assertTrue($category->validate(['name']));\n $this->assertTrue($category->validate(['class']));\n $this->assertFalse($category->validate(['featured_campaign_id']));\n Yii::$app->db->createCommand('set foreign_key_checks=1')->execute();\n\n //Test invalid input\n $category->name = \"dhjkashdkjahkjshdjkahdjkashdkjahajkhajkdhak\";\n $this->assertFalse($category->validate(['name']));\n\n //Test valid input\n $category->name = \"name\";\n $category->class = \"active\";\n $category->featured_campaign_id = 1;\n $this->assertEquals($category->name,\"name\");\n $this->assertEquals($category->class,\"active\");\n $this->assertEquals($category->featured_campaign_id,1);\n }", "protected function checkStructure()\n {\n $structure = $this->getStructure();\n\n foreach ($structure as $field => $opt) {\n if (!array_key_exists($field, $this->data)) {\n continue;\n }\n\n $value = Arr::get($this->data, $field);\n if (is_array($value)) {\n $this->errors[$field][] = Translate::get('validate_wrong_type_data');\n continue;\n }\n\n $value = trim($value);\n $length = (int)$opt->length;\n\n if (!empty($length)) {\n $len = mb_strlen($value);\n if ($len > $length) {\n $this->errors[$field][] = Translate::getSprintf('validate_max_length', $length);\n continue;\n }\n }\n\n if (!$opt->autoIncrement && $opt->default === NULL && !$opt->allowNull && $this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_not_empty');\n continue;\n }\n\n switch ($opt->dataType) {\n case 'int':\n case 'bigint':\n if (!$this->isEmpty($value) && (filter_var($value, FILTER_VALIDATE_INT) === false)) {\n $this->errors[$field][] = Translate::get('validate_int');\n continue 2;\n }\n break;\n\n case 'double':\n if (!is_float($value) && !$this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_double');\n continue 2;\n }\n break;\n\n case 'float':\n if (!is_numeric($value) && !$this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_float');\n continue 2;\n }\n break;\n\n case 'date':\n case 'datetime':\n case 'timestamp':\n if (!$this->isEmpty($value) && !Validate::dateSql($value)) {\n $this->errors[$field][] = Translate::get('validate_sql_date');\n continue 2;\n }\n break;\n\n default:\n continue 2;\n break;\n\n }\n }\n }", "public function validate(ValidationContext $validationContext): void\n {\n $definitions = $validationContext->getDocument()[\"definitions\"];\n\n foreach ($definitions as $definition) {\n if ($definition[\"kind\"] !== \"OperationDefinition\") continue;\n\n $variableDefinitions = $definition[\"variableDefinitions\"];\n $seenKeys = [];\n\n foreach ($variableDefinitions as $variableDefinition) {\n $definitionName = $variableDefinition[\"variable\"][\"name\"][\"value\"];\n if (in_array($definitionName, $seenKeys)) {\n $this->addError(\n new ValidationError(\n \"There can be only one variable named \\\"$definitionName\\\".\",\n $variableDefinition\n )\n );\n } else {\n $seenKeys[] = $definitionName;\n }\n }\n }\n }", "public function validateInput($data) {\n $validator = Validator::make($data, [\n 'environment' => 'required|max:255|environment',\n 'git_branch' => 'required|git_branch'\n ]);\n\n if (!$validator->passes()) {\n throw new RuntimeException($validator->errors()->first());\n }\n return true;\n }", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function preUpdate(LifecycleEventArgs $args)\n {\n $this->validator->validateWithException($args->getEntity());\n }", "abstract public function runValidation();", "private function validate(Request $request) {\n $error = '';\n\n // Material Id is mandatory.\n if ($request->request->get('material_id') == '') {\n $error = t('Invalid post data, material id was missing.');\n return $error;\n }\n\n // Node does not exits of given material id.\n if ($this->filterMaterialCode($request->request->get('material_id')) == '') {\n $error = t('Invalid post data, No Matching content found.');\n return $error;\n }\n\n // Check title.\n if ($request->request->get('title') == '') {\n $error = t('Invalid post data, empty title.');\n return $error;\n }\n\n // Check document type.\n if ($request->request->get('document_type') == ''\n || !in_array(\n $request->request->get('document_type'),\n ['SDS', 'SPC', 'PIS']\n )\n ) {\n $error = t('Invalid post data, empty document_type or type not found.');\n return $error;\n }\n\n // Check File Name.\n if ($request->request->get('file_name') == '') {\n $error = t('Invalid post data, empty file name.');\n return $error;\n }\n\n return TRUE;\n }", "public function validate($entity, $group = null)\n {\n $errors = [];\n if (null === $group && is_object($entity)) {\n $class = get_class($entity);\n while ($class) {\n if (array_key_exists($class, $this->groups)) {\n $group = $class;\n break;\n }\n $class = get_parent_class($class);\n }\n }\n if ($group) {\n $this->data = (array) $entity;\n // Find property name in each of validation group\n foreach ((array) $group as $groupName) {\n if (empty($this->groups[$groupName])) {\n continue;\n }\n $rules = $this->groups[$groupName];\n foreach ($this->data as $name => $value) {\n //\n if (isset($rules[$name]) && !$this->checkRules($rules[$name], $value)) {\n $message = isset($rules[$name]['message'])\n ? $rules[$name]['message']\n : 'Wrong '.$name;\n $errors[$name] = $this->translator->t($message, 'validators');\n }\n }\n }\n }\n\n return $errors;\n }" ]
[ "0.7264961", "0.6535296", "0.64051425", "0.6376262", "0.58790743", "0.5775145", "0.56982195", "0.5652786", "0.54827654", "0.5477822", "0.5468089", "0.5467215", "0.54437006", "0.5436658", "0.5425517", "0.54020154", "0.53972447", "0.53820986", "0.53806335", "0.5374592", "0.53695095", "0.53680766", "0.5363127", "0.5349263", "0.5339063", "0.5337511", "0.53321826", "0.532614", "0.5318174", "0.5311937", "0.5306586", "0.53010005", "0.52978414", "0.5295246", "0.52924454", "0.5287576", "0.5273481", "0.5264641", "0.52489495", "0.52420765", "0.52343714", "0.5227285", "0.52235323", "0.52235323", "0.52189744", "0.5204311", "0.5196822", "0.5192636", "0.51923084", "0.5189293", "0.51872116", "0.51824844", "0.51737326", "0.51711476", "0.51692885", "0.5153711", "0.51361054", "0.51318914", "0.51298875", "0.51256025", "0.512226", "0.5113708", "0.5110627", "0.51086336", "0.5108075", "0.51023424", "0.5101858", "0.50919443", "0.50910074", "0.5081324", "0.5077247", "0.5066117", "0.50580174", "0.5056548", "0.50438446", "0.503058", "0.50285214", "0.5019686", "0.5015487", "0.5011196", "0.5007486", "0.50035703", "0.50024873", "0.49859682", "0.49783757", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49782383", "0.49780867", "0.49676365", "0.49565795", "0.4954205" ]
0.0
-1
Translates a fieldname to another type
public static function translateFieldName($name, $fromType, $toType) { $toNames = CastleTypePeer::getFieldNames($toType); $key = isset(CastleTypePeer::$fieldKeys[$fromType][$name]) ? CastleTypePeer::$fieldKeys[$fromType][$name] : null; if ($key === null) { throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(CastleTypePeer::$fieldKeys[$fromType], true)); } return $toNames[$key]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function convertField($field);", "public function getFieldType($fieldname);", "function getTypeOfField($fieldName);", "function translate_field($field)\n {\n }", "function translate_field($field)\n {\n }", "function translate_field($field)\n {\n }", "function translate_field($field)\n {\n }", "function translate_field($field)\n {\n }", "function translate_field($field)\n {\n }", "function get_field_type($name)\n {\n }", "public function changeFieldType($field)\n {\n\tif ( !$field->getRecastCallback())\n\t{\n\t throw new Exception(\"Unable to recast value as recast callback was not set for field '\".$field->getName().\"'\");\n\t}\n\n\t$builder= PerfORMController::getBuilder('fieldretype');\n\t\n\t$tmpfield= $field->getName().'_'.md5(time());\n\t$template= $builder->getTemplate('field-add');\n\t$fieldInfo= $builder->getField($field);\n\t$fieldInfo->name= $tmpfield;\n\t$fieldInfo->nullable= true;\n\t$template->field= $fieldInfo;\n\tPerfORMController::getBuilder()->addToBuffer($builder->renderTemplate($template), 'alters');\n\t//PerfORMController::getConnection()->nativeQuery($sql);\n\n\t$result= PerfORMController::getConnection()->query('select * from %n',\n\t $field->getModel()->getTableName()\n\t);\n\n\t$pk= $field->getModel()->getPrimaryKey();\n\n\tforeach($result as $row )\n\t{\n\t if ( is_callable($field->getRecastCallback()))\n\t {\n\t\t$value= call_user_func($field->getRecastCallback(), $row);\n\t\tif ( !$field->isNullable() and is_null($value))\n\t\t{\n\t\t throw new Exception(\"Unable to recast null value for field '\".$field->getName().\"' (id=\".$row->{$pk}.\") as field is not null\");\n\t\t}\n\t }\n\t else\n\t {\n\t\tthrow new Exception(\"Unable to recast value for field '\".$field->getName().\"' (id=\".$row->{$pk}.\")\");\n\t }\n\n\t $sql= PerfORMController::getConnection()->sql('update %n set %n = %'.$field->getType().' where %n = %i;',\n\t\t$field->getModel()->getTableName(),\n\t\t$tmpfield,\n\t\t$value,\n\t\t$pk,\n\t\t$row->{$pk}\n\t );\n\t PerfORMController::getBuilder()->addToBuffer($sql, 'alters');\n\t}\n\n\tif (!$field->isNullable())\n\t{\n\t $fieldInfo->nullable= false;\n\t $template= $builder->getTemplate('field-change-nullable');\n\t $template->field= $fieldInfo;\n\t $sql= $builder->renderTemplate($template);\n\t PerfORMController::getBuilder()->addToBuffer($sql, 'alters');\n\t //PerfORMController::getConnection()->nativeQuery($sql);\n\t}\n\n\tPerfORMController::getBuilder()->dropField($field->getName(), $field->getModel());\n\tPerfORMController::getBuilder()->renameField($field, $tmpfield);\n\t$this->updateFieldSync($field);\n }", "function map_field($field){\n $str= $field->to_str();\n //\n //return field to str\n return $str;\n }", "protected function convertFieldNameOrAlias($field) {\n // Field names are case-insensitive\n $field = strtolower($field);\n \n $indexAliases = $this->getIndexAliasList();\n if (isset($indexAliases[$field]))\n $field = $indexAliases[$field];\n \n return $field;\n }", "function registerFieldType($name, $type);", "public function getFieldMapping($field_name);", "public abstract function getConverterForField($schema, $relation, $column, $dbtype, $fqcn);", "abstract public function convertFromDb($value, Entity\\ScalarField $field);", "function getFieldType($fieldName) {\n\t\tswitch ($fieldName) {\n\t\t\tcase 'date':\n\t\t\t\t$returner = FIELD_TYPE_DATE;\n\t\t\t\tbreak;\n\t\t\tcase 'language':\n\t\t\t\t$returner = FIELD_TYPE_SELECT;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$returner = FIELD_TYPE_STRING;\n\t\t\t\tbreak;\n\t\t}\n\t\tHookRegistry::call('DublinCorePlugin::getFieldType', array(&$this, $fieldName, &$returner));\n\t\treturn $returner;\n\t}", "public function getTypeOfField($fieldName)\n {\n }", "function lim_get_type(&$value, $key) {\n\t$value = objet_type(table_objet($key));\n}", "function register_field_type($class)\n {\n }", "public function _typecastLoadField(Field $f, $value)\n {\n // LOB fields return resource stream\n if (is_resource($value)) {\n $value = stream_get_contents($value);\n }\n\n // work only on copied value not real one !!!\n $v = is_object($value) ? clone $value : $value;\n\n switch ($f->type) {\n case 'string':\n case 'text':\n // do nothing - it's ok as it is\n break;\n case 'integer':\n $v = (int) $v;\n break;\n case 'float':\n $v = (float) $v;\n break;\n case 'money':\n $v = round($v, 4);\n break;\n case 'boolean':\n if (isset($f->enum) && is_array($f->enum)) {\n if (isset($f->enum[0]) && $v == $f->enum[0]) {\n $v = false;\n } elseif (isset($f->enum[1]) && $v == $f->enum[1]) {\n $v = true;\n } else {\n $v = null;\n }\n } elseif ($v === '') {\n $v = null;\n } else {\n $v = (bool) $v;\n }\n break;\n case 'date':\n case 'datetime':\n case 'time':\n $dt_class = isset($f->dateTimeClass) ? $f->dateTimeClass : 'DateTime';\n $tz_class = isset($f->dateTimeZoneClass) ? $f->dateTimeZoneClass : 'DateTimeZone';\n\n if (is_numeric($v)) {\n $v = new $dt_class('@'.$v);\n } elseif (is_string($v)) {\n // ! symbol in date format is essential here to remove time part of DateTime - don't remove, this is not a bug\n $format = ['date' => '+!Y-m-d', 'datetime' => '+!Y-m-d H:i:s', 'time' => '+!H:i:s'];\n $format = $f->persist_format ?: $format[$f->type];\n\n // datetime only - set from persisting timezone\n if ($f->type == 'datetime' && isset($f->persist_timezone)) {\n $v = $dt_class::createFromFormat($format, $v, new $tz_class($f->persist_timezone));\n if ($v === false) {\n throw new Exception(['Incorrectly formatted datetime', 'format' => $format, 'value' => $value, 'field' => $f]);\n }\n $v->setTimeZone(new $tz_class(date_default_timezone_get()));\n } else {\n $v = $dt_class::createFromFormat($format, $v);\n if ($v === false) {\n throw new Exception(['Incorrectly formatted date/time', 'format' => $format, 'value' => $value, 'field' => $f]);\n }\n }\n\n // need to cast here because DateTime::createFromFormat returns DateTime object not $dt_class\n // this is what Carbon::instance(DateTime $dt) method does for example\n if ($dt_class != 'DateTime') {\n $v = new $dt_class($v->format('Y-m-d H:i:s.u'), $v->getTimeZone());\n }\n }\n break;\n case 'array':\n // don't decode if we already use some kind of serialization\n $v = $f->serialize ? $v : $this->jsonDecode($f, $v, true);\n break;\n case 'object':\n // don't decode if we already use some kind of serialization\n $v = $f->serialize ? $v : $this->jsonDecode($f, $v, false);\n break;\n }\n\n return $v;\n }", "static public function translateFieldName($name, $fromType, $toType)\n\t{\n\t\t$toNames = self::getFieldNames($toType);\n\t\t$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;\n\t\tif ($key === null) {\n\t\t\tthrow new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(self::$fieldKeys[$fromType], true));\n\t\t}\n\t\treturn $toNames[$key];\n\t}", "static public function translateFieldName($name, $fromType, $toType)\n\t{\n\t\t$toNames = self::getFieldNames($toType);\n\t\t$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;\n\t\tif ($key === null) {\n\t\t\tthrow new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(self::$fieldKeys[$fromType], true));\n\t\t}\n\t\treturn $toNames[$key];\n\t}", "static public function translateFieldName($name, $fromType, $toType)\n\t{\n\t\t$toNames = self::getFieldNames($toType);\n\t\t$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;\n\t\tif ($key === null) {\n\t\t\tthrow new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(self::$fieldKeys[$fromType], true));\n\t\t}\n\t\treturn $toNames[$key];\n\t}", "static public function translateFieldName($name, $fromType, $toType)\n\t{\n\t\t$toNames = self::getFieldNames($toType);\n\t\t$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;\n\t\tif ($key === null) {\n\t\t\tthrow new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(self::$fieldKeys[$fromType], true));\n\t\t}\n\t\treturn $toNames[$key];\n\t}", "static public function translateFieldName($name, $fromType, $toType)\n\t{\n\t\t$toNames = self::getFieldNames($toType);\n\t\t$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;\n\t\tif ($key === null) {\n\t\t\tthrow new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(self::$fieldKeys[$fromType], true));\n\t\t}\n\t\treturn $toNames[$key];\n\t}", "public function getFieldType($fieldSlug);", "function get_field_type($field)\n\t{\n\t\tif( $field == \"usr_email\" )\n\t\t\treturn \"email\";\n\t\telse if( $field == \"usr_cod_postal\" )\n\t\t\treturn \"number\";\n\t\telse\n\t\t\treturn \"text\";\n\t}", "function entity_type_translate($entity_type)\n{\n $data = entity_type_translate_array($entity_type);\n if (!is_array($data)) { return NULL; }\n\n return array($data['table'], $data['id_field'], $data['name_field'], $data['ignore_field'], $data['entity_humanize']);\n}", "public function loadFieldByName($fieldname)\r\n {\r\n return CrugeFactory::get()->getICrugeFieldLoadModelByName($fieldname);\r\n }", "public function transform($value, $field, $source, $destination);", "function forceType($fieldName,$inputType){\n\n\t\tif($inputType == \"file\") $this->hasFiles = true;\n\t\t$this->forced[$fieldName] = $inputType;\n\n\t}", "public abstract function getFieldConverterClass();", "abstract protected function mapRule($field, $rule, $params, $message, $fieldType);", "function acf_get_field_type($name)\n{\n}", "function getTypeConverter() ;", "public function kiwip_make_field($field_id_name, $field, $meta){\n\t\t/**\n\t\t * For each of theme:\n\t\t * - include the fieldtype file\n\t\t * - instanciate the class\n\t\t */\n\t\t$field_class = 'kiwip_fieldtype_'.$field['type'];\n\n\t\tif(!class_exists($field_class)){\t//if this fieldtype is not already loaded, do it\n\t\t\trequire_once($this->typesDir.'/'.$this->fieldtypes[$field['type']]['field']);\n\t\t\t$this->classes[$field['type']] = new $field_class;\n\t\t}//if\n\t\t$this->classes[$field['type']]->render($field_id_name, $meta[0], $field); //call the render method\n\n\t\t// $this->debug($this->fieldtypes); die();\n\t}", "public function fieldType($field) {\n\t\tif (strstr($field, \".\")) {\n\t\t\t// use the path to get to the data poing\n\t\t\t$fieldParts = explode(\".\", $field);\n\t\t\t$key = array_pop($fieldParts);\n\t\t\t\n\t\t\t// add the field parts to the entityPath to get the correct model\n\t\t\tEntity::_setEntityPath($fieldParts);\n\t\t} else {\n\t\t\t$key = $field;\n\t\t\t$fieldParts = array();\n\t\t}\n\t\t\n\t\t$model = Entity::currentPathClass();\n\t\t\n\t\tEntity::_revertEntityPath(count($fieldParts));\n\t\t\n\t\tApp::uses($model, \"Model\");\n\t\t\n\t\t$modelConf = $this->entityConfig($model, \"Fields\", $key);\n\t\t\t\n\t\tif (is_array($modelConf) && isset($modelConf['type'])) {\n\t\t\treturn $modelConf['type'];\n\t\t}\n\t\t\n\t\tif ($key == $this->primaryKey($model)) {\n\t\t\treturn \"primary\";\n\t\t}\n\n\t\t// if field is not defined in db, and it's not a defined html helper func, then just print whatever it is\n\t\t$types = $this->entityFields($model);\n\t\t\n\t\tif (@$types[$key] == \"virtual\") {\n\t\t\t$type = \"text\";\n\t\t} else {\n\t\t\tif (isset($types[$key]))\n\t\t\t\t$type = $types[$key];\n\t\t\telse\n\t\t\t\t$type = \"text\";\n\t\t}\n\t\t\n\t\tif (substr($type, 0, 5) == \"enum(\") {\n\t\t\t$this->_enumopts[$key] = explode(\"','\", substr($type, 6, -2));\n\t\t\t$type = \"enum\";\n\t\t}\n\t\t\n\t\treturn $type;\n\t}", "public function field_object( $field_name ) {\n\t\t$value = apply_filters('timber/post/meta_object_field', null, $this->ID, $field_name, $this);\n\t\t$value = $this->convert($value);\n\t\treturn $value;\n\t}", "protected abstract function get_rest_field_type();", "public function getFieldValue(/*string*/ $fieldName);", "public function getDBFieldForAPI ($fieldName, $dataType) {\n $obj = $this->owner;\n $type = 'raw';\n $value = null;\n // Loop tests\n foreach (self::$db_field_transforms as $testType => $regex) {\n if (preg_match($regex, $dataType)) {\n $type = $testType;\n break;\n }\n }\n\n // Transform value\n switch ($type) {\n case 'int':\n $value = intval($obj->$fieldName);\n break;\n case 'float':\n $value = floatval($obj->$fieldName);\n break;\n case 'date':\n $value = $obj->obj($fieldName)->Rfc3339();\n break;\n case 'bool':\n $value = boolval($obj->$fieldName);\n break;\n default: // raw, string or other\n $value = $obj->$fieldName;\n break;\n }\n\n return $value;\n }", "function makeFieldTypeFunction( $field_type, $table = 'auto' )\n{\n\tswitch ( $field_type )\n\t{\n\t\tcase 'date':\n\n\t\t\treturn 'ProperDate';\n\n\t\tcase 'numeric':\n\n\t\t\treturn 'removeDot00';\n\n\t\tcase 'codeds':\n\t\tcase 'exports':\n\n\t\t\tif ( $table === 'STAFF' )\n\t\t\t{\n\t\t\t\treturn 'StaffDecodeds';\n\t\t\t}\n\n\t\t\treturn 'DeCodeds';\n\n\t\tcase 'radio':\n\n\t\t\treturn 'makeCheckbox';\n\n\t\tcase 'textarea':\n\n\t\t\treturn 'makeTextarea';\n\n\t\tcase 'multiple':\n\n\t\t\treturn 'makeMultiple';\n\t}\n\n\treturn '';\n}", "public static function convert_field( $nf_field ) {\n\n\t\t// Stores the field to be converted within the class property for use later\n\t\tself::$nf_field = $nf_field;\n\n\t\t// Determine what the Ninja Forms field will be converted to.\n\t\tswitch ( self::$nf_field['type'] ) {\n\n\t\t\tcase '_checkbox':\n\t\t\t\tself::convert_single_checkbox_field();\n\t\t\t\tbreak;\n\t\t\tcase '_desc':\n\t\t\t\tself::convert_html_field();\n\t\t\t\tbreak;\n\t\t\tcase '_hidden':\n\t\t\t\tself::convert_hidden_field();\n\t\t\t\tbreak;\n\t\t\tcase '_list':\n\n\t\t\t\t$list_type = rgar( self::$nf_field, 'list_type' );\n\n\t\t\t\tif ( 'checkbox' === $list_type ) {\n\t\t\t\t\tself::convert_checkbox_field();\n\t\t\t\t} else if ( 'dropdown' === $list_type ) {\n\t\t\t\t\tself::convert_select_field();\n\t\t\t\t} else if ( 'multi' === $list_type ) {\n\t\t\t\t\tself::convert_select_field( true );\n\t\t\t\t} else if ( 'radio' === $list_type ) {\n\t\t\t\t\tself::convert_radio_field();\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase '_number':\n\t\t\t\tself::convert_number_field();\n\t\t\t\tbreak;\n\t\t\tcase '_profile_pass':\n\t\t\t\tself::convert_password_field();\n\t\t\t\tbreak;\n\t\t\tcase '_text':\n\n\t\t\t\tif ( '1' === self::$nf_field['user_email'] ) {\n\t\t\t\t\tself::convert_email_field();\n\t\t\t\t} else if ( 'date' === self::$nf_field['mask'] ) {\n\t\t\t\t\tself::convert_date_field();\n\t\t\t\t} else if ( 'currency' === self::$nf_field['mask'] ) {\n\t\t\t\t\tself::convert_number_field();\n\t\t\t\t} else if ( '(999) 999-9999' === self::$nf_field['mask'] || '1' === self::$nf_field['user_phone'] ) {\n\t\t\t\t\tself::convert_phone_field();\n\t\t\t\t} else {\n\t\t\t\t\tself::convert_text_field();\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase '_textarea':\n\t\t\t\tself::convert_textarea_field();\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\treturn self::$field;\n\n\t}", "function acf_translate_field($field = array())\n{\n}", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function getRealFieldName($fieldname){\n\t\tif ( isset( $this->_cache[__FUNCTION__][$fieldname] ) ){\n\t\t\t// Let's check the cache first to see if we have already calculated this value.\n\t\t\treturn $this->_cache[__FUNCTION__][$fieldname];\n\t\t}\n\t\t$data = $this->_parseSQL();\n\t\t$this->_expandGlobs($data);\n\t\t$column = null;\n\t\t\n\t\tforeach ($data['columns'] as $columninfo ){\n\t\t\tif ( $fieldname == $columninfo['alias'] ){\n\t\t\t\t//echo \"$fieldname foudn\";\n\t\t\t\tif ( $columninfo['type'] != 'ident' ){\n\t\t\t\t\t$out = null;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t$out = $columninfo['value'];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if ( !$columninfo['alias'] and $fieldname == $columninfo['value'] ){\n\t\t\t\t$out = $fieldname;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_cache[__FUNCTION__][$fieldname] = $out;\n\t\treturn $out;\n\t\t\n\t}", "public function getFieldCastType(string $field) \n {\n return $this->getCastType($field);\n }", "public function fieldfromid($fieldid) {\n if (empty($fieldid) OR stripos($fieldid, \"field\") === false) {\n return false;\n }\n if (strpos($fieldid, \"siteField\") > 0) {\n //a siteField\n $id = substr($fieldid, 14);\n return ORM::factory(\"siteField\", $id);\n } else {\n //a normal field\n $id = substr($fieldid, 10);\n return ORM::factory(\"field\", $id);\n }\n }", "function cast($field, $value) {\n\t\t// if the column doesn't exist, don't cast the value\n\t\tif (!isset($this->columns[$field])) {\n\t\t\treturn $value;\n\t\t}\n\n\t\t// precast arrays\n\t\tif (is_array($value)) {\n\t\t\t$value = $this->columns[$field]->array_to_type(array_values($value));\n\t\t}\n\n\t\t// cast value\n\t\t$value = $this->columns[$field]->type_cast($value);\n\n\t\treturn $value;\n\n\t}", "function name2field($name) {\n return str_replace(\n array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), array('_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h', '_i', '_j', '_k', '_l', '_m', '_n', '_o', '_p', '_q', '_r', '_s', '_t', '_u', '_v', '_w', '_x', '_y', '_z'), lcfirst($name)\n );\n}", "function _db_process_field($field) {\n\n if (!isset($field['size'])) {\n $field['size'] = 'normal';\n }\n\n // Set the correct database-engine specific datatype.\n if (!isset($field['mysql_type'])) {\n $map = db_type_map();\n $field['mysql_type'] = $map[$field['type'] .':'. $field['size']];\n }\n\n if ($field['type'] == 'serial') {\n $field['auto_increment'] = TRUE;\n }\n\n return $field;\n}", "public function getField($fieldName) {}", "public function convert($contentTypeIdentifiers = array(), $fieldName, $limit);", "public function convert($name);", "function is_field_type($name)\n {\n }", "public function label_to_field($label) {\n\t\t\treturn preg_replace ( \"/[^a-zA-Z0-9_]/\" , \"_\" , $label);\n\t\t}", "public static function translateFieldName($name, $fromType, $toType)\n {\n $toNames = GsDailyDefinedDosePeer::getFieldNames($toType);\n $key = isset(GsDailyDefinedDosePeer::$fieldKeys[$fromType][$name]) ? GsDailyDefinedDosePeer::$fieldKeys[$fromType][$name] : null;\n if ($key === null) {\n throw new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(GsDailyDefinedDosePeer::$fieldKeys[$fromType], true));\n }\n\n return $toNames[$key];\n }", "protected function convertField(string $name, ?string $value): mixed\n {\n return $this->converters[$name]->fromPg($value, $this->types[$name]);\n }", "public function getPatternedFieldType(string $field);", "private function convert_relationship_field( $value, $field ) {\n\t\tif ( is_numeric( $value ) ) {\n\t\t\t$current_language = $this->sitepress->get_current_language();\n\t\t\t$data = $this->acfWorker->prepare_metadata( $value, $field['name'], self::ORIGINAL_ID, sprintf( self::TRANSLATED_ID_FORMAT, $current_language ) );\n\t\t\t$value = $this->acfWorker->duplicate_post_meta( $value, $current_language, $data );\n\t\t}\n\t\treturn $value;\n\t}", "function getFieldValue($field);", "function load_field( $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $field;\n\t}", "protected function processField($field) {\n if (!isset($field['size'])) {\n $field['size'] = 'normal';\n }\n // Set the correct database-engine specific datatype.\n if (!isset($field['sqlsrv_type'])) {\n $map = $this->getFieldTypeMap();\n $field['sqlsrv_type'] = $map[$field['type'] . ':' . $field['size']];\n }\n if ($field['type'] == 'serial') {\n $field['identity'] = TRUE;\n }\n return $field;\n }", "function pg_field_type($result, $field_number)\n{\n}", "function _tF($modelName,$fieldName='',$alt=null){\n\t$r=CLang::translate($modelName.':'.$fieldName,'f');\n\treturn $r!==false ? $r : ($alt===null?$fieldName:$alt);\n}", "private function getValue(string $fieldName) {\r\n return $this -> translator -> get($fieldName);\r\n }", "protected function handleFieldTypes($field, $fieldData)\n {\n switch ($field->type) {\n // Untranslatable fields. These do not include the\n // actual label in the page data.\n case 'suggest':\n case 'radio':\n case 'checkboxes':\n return;\n\n case 'array':\n case 'collection':\n case 'list':\n case 'tags':\n case 'checkbox':\n $this->fields = (new ArrayField($this->fields))->map($fieldData);\n break;\n\n case 'table':\n case 'replicator':\n $this->fields = (new ReplicatorField($this->fields))->map($fieldData);\n break;\n\n // \"Default\" fields include:\n // - Bard\n // - Regular string values\n default:\n $this->fields = (new StringField($this->fields))->map($fieldData);\n break;\n }\n }", "function register_field_type_info($info)\n {\n }", "function acf_register_field_type($class)\n{\n}", "function __setSchemaField($fieldname, $descArray) {\n\t\t$result = array();\n\t\tif ($fieldname === $this->model->primaryKey) {\n\t\t\t$result[$fieldname] = $this->__fieldModelId . $this->__fieldTypeMappingTable[$descArray['type']];\n\t\t} else {\n\t\t\t$result[$fieldname] = $fieldname . $this->__fieldTypeMappingTable[$descArray['type']];\n\t\t}\n\t\treturn $result;\n\t}", "function prepare_field_for_import($field)\n {\n }", "public function testTranslateFieldName ()\n {\n $types = [\n TableMap::TYPE_PHPNAME,\n TableMap::TYPE_CAMELNAME,\n TableMap::TYPE_COLNAME,\n TableMap::TYPE_FIELDNAME,\n TableMap::TYPE_NUM\n ];\n $expecteds = [\n TableMap::TYPE_PHPNAME => 'AuthorId',\n TableMap::TYPE_CAMELNAME => 'authorId',\n TableMap::TYPE_COLNAME => 'book.author_id',\n TableMap::TYPE_FIELDNAME => 'author_id',\n TableMap::TYPE_NUM => 5,\n ];\n foreach ($types as $fromType) {\n foreach ($types as $toType) {\n $name = $expecteds[$fromType];\n $expected = $expecteds[$toType];\n $result = BookTableMap::translateFieldName($name, $fromType, $toType);\n $this->assertEquals($expected, $result);\n }\n }\n }", "public function MySQLiFieldType($aFieldname) { \n $retval = '';\n if ($aFieldname=='DNASequencingRunID') { $retval = self::C_DNASequencingRunIDMYSQLI_TYPE; }\n if ($aFieldname=='TimestampCreated') { $retval = self::C_TimestampCreatedMYSQLI_TYPE; }\n if ($aFieldname=='TimestampModified') { $retval = self::C_TimestampModifiedMYSQLI_TYPE; }\n if ($aFieldname=='Version') { $retval = self::C_VersionMYSQLI_TYPE; }\n if ($aFieldname=='CollectionMemberID') { $retval = self::C_CollectionMemberIDMYSQLI_TYPE; }\n if ($aFieldname=='Number1') { $retval = self::C_Number1MYSQLI_TYPE; }\n if ($aFieldname=='Number2') { $retval = self::C_Number2MYSQLI_TYPE; }\n if ($aFieldname=='Number3') { $retval = self::C_Number3MYSQLI_TYPE; }\n if ($aFieldname=='Ordinal') { $retval = self::C_OrdinalMYSQLI_TYPE; }\n if ($aFieldname=='PCRCocktailPrimer') { $retval = self::C_PCRCocktailPrimerMYSQLI_TYPE; }\n if ($aFieldname=='PCRForwardPrimerCode') { $retval = self::C_PCRForwardPrimerCodeMYSQLI_TYPE; }\n if ($aFieldname=='PCRPrimerName') { $retval = self::C_PCRPrimerNameMYSQLI_TYPE; }\n if ($aFieldname=='PCRPrimerSequence5_3') { $retval = self::C_PCRPrimerSequence5_3MYSQLI_TYPE; }\n if ($aFieldname=='PCRReversePrimerCode') { $retval = self::C_PCRReversePrimerCodeMYSQLI_TYPE; }\n if ($aFieldname=='ReadDirection') { $retval = self::C_ReadDirectionMYSQLI_TYPE; }\n if ($aFieldname=='Remarks') { $retval = self::C_RemarksMYSQLI_TYPE; }\n if ($aFieldname=='RunDate') { $retval = self::C_RunDateMYSQLI_TYPE; }\n if ($aFieldname=='ScoreFileName') { $retval = self::C_ScoreFileNameMYSQLI_TYPE; }\n if ($aFieldname=='SequenceCocktailPrimer') { $retval = self::C_SequenceCocktailPrimerMYSQLI_TYPE; }\n if ($aFieldname=='SequencePrimerCode') { $retval = self::C_SequencePrimerCodeMYSQLI_TYPE; }\n if ($aFieldname=='SequencePrimerName') { $retval = self::C_SequencePrimerNameMYSQLI_TYPE; }\n if ($aFieldname=='SequencePrimerSequence5_3') { $retval = self::C_SequencePrimerSequence5_3MYSQLI_TYPE; }\n if ($aFieldname=='Text1') { $retval = self::C_Text1MYSQLI_TYPE; }\n if ($aFieldname=='Text2') { $retval = self::C_Text2MYSQLI_TYPE; }\n if ($aFieldname=='Text3') { $retval = self::C_Text3MYSQLI_TYPE; }\n if ($aFieldname=='TraceFileName') { $retval = self::C_TraceFileNameMYSQLI_TYPE; }\n if ($aFieldname=='YesNo1') { $retval = self::C_YesNo1MYSQLI_TYPE; }\n if ($aFieldname=='YesNo2') { $retval = self::C_YesNo2MYSQLI_TYPE; }\n if ($aFieldname=='YesNo3') { $retval = self::C_YesNo3MYSQLI_TYPE; }\n if ($aFieldname=='ModifiedByAgentID') { $retval = self::C_ModifiedByAgentIDMYSQLI_TYPE; }\n if ($aFieldname=='DNASequenceID') { $retval = self::C_DNASequenceIDMYSQLI_TYPE; }\n if ($aFieldname=='CreatedByAgentID') { $retval = self::C_CreatedByAgentIDMYSQLI_TYPE; }\n return $retval;\n }", "public function changeField( $table, $old_field, $new_field, $type='', $default=NULL );", "public function getSearchField($class, $field);", "function getFieldType() {\n\t\treturn 'field';\n\t}", "public function parse($field, $value) {\n $type = $this->fields[$field];\n return $type->parse($value);\n }", "public function setPatternedField(string $field, $value): ObjectInterface;", "public function getDataWithTypeField() {}", "public static function translateFieldName($name, $fromType, $toType)\n {\n $toNames = SertifikasiPdPeer::getFieldNames($toType);\n $key = isset(SertifikasiPdPeer::$fieldKeys[$fromType][$name]) ? SertifikasiPdPeer::$fieldKeys[$fromType][$name] : null;\n if ($key === null) {\n throw new PropelException(\"'$name' could not be found in the field names of type '$fromType'. These are: \" . print_r(SertifikasiPdPeer::$fieldKeys[$fromType], true));\n }\n\n return $toNames[$key];\n }", "abstract public function getColumnTypeByField(Entity\\ScalarField $field);", "public static function inputType($field, $model)\n {\n $record = new $model;\n $table = $record->getTable();\n $column_type = '';\n\n //find column type\n $columns = DB::select('SHOW COLUMNS FROM ' . $table);\n foreach($columns as $column) {\n if ($column->Field == $field) {\n $column_type = $column->Type;\n break;\n }\n }\n\n //convert to options:\n //int, float, boolean, date, timestamp, password, text (default)\n\n //check password\n if ($field == 'password') {\n return 'password';\n }\n //check boolean\n if ($column_type == 'tinyint(1)') {\n return 'boolean';\n }\n //check integer\n if (strpos($column_type, 'int') !== false) {\n return 'integer';\n }\n //check decimal\n foreach(['double', 'decimal', 'float'] as $check) {\n if (strpos($column_type, $check) !== false) {\n return 'decimal';\n }\n }\n //check timestamp\n if (strpos($column_type, 'timestamp') !== false) {\n return 'timestamp';\n }\n //check date\n if (strpos($column_type, 'date') !== false) {\n return 'date';\n }\n\n //default to text\n return 'text';\n }", "public function getField($field_name);", "function hook_acquia_contenthub_field_type_mapping_alter(array &$mapping) {\n $mapping['my_custom_field'] = 'array<string>';\n}", "function GetFieldType($table,$field)\n\t{\n\t\t$tbl = $this->Table($table);\n\t\treturn $tbl->GetFieldType($field);\n\t}", "public function getDbFieldName($field_name);", "public function MySQLiFieldType($aFieldname) { \n $retval = '';\n if ($aFieldname=='DeterminationID') { $retval = self::C_DeterminationIDMYSQLI_TYPE; }\n if ($aFieldname=='TimestampCreated') { $retval = self::C_TimestampCreatedMYSQLI_TYPE; }\n if ($aFieldname=='TimestampModified') { $retval = self::C_TimestampModifiedMYSQLI_TYPE; }\n if ($aFieldname=='Version') { $retval = self::C_VersionMYSQLI_TYPE; }\n if ($aFieldname=='CollectionMemberID') { $retval = self::C_CollectionMemberIDMYSQLI_TYPE; }\n if ($aFieldname=='Addendum') { $retval = self::C_AddendumMYSQLI_TYPE; }\n if ($aFieldname=='AlternateName') { $retval = self::C_AlternateNameMYSQLI_TYPE; }\n if ($aFieldname=='Confidence') { $retval = self::C_ConfidenceMYSQLI_TYPE; }\n if ($aFieldname=='DeterminedDate') { $retval = self::C_DeterminedDateMYSQLI_TYPE; }\n if ($aFieldname=='DeterminedDatePrecision') { $retval = self::C_DeterminedDatePrecisionMYSQLI_TYPE; }\n if ($aFieldname=='FeatureOrBasis') { $retval = self::C_FeatureOrBasisMYSQLI_TYPE; }\n if ($aFieldname=='IsCurrent') { $retval = self::C_IsCurrentMYSQLI_TYPE; }\n if ($aFieldname=='Method') { $retval = self::C_MethodMYSQLI_TYPE; }\n if ($aFieldname=='NameUsage') { $retval = self::C_NameUsageMYSQLI_TYPE; }\n if ($aFieldname=='Number1') { $retval = self::C_Number1MYSQLI_TYPE; }\n if ($aFieldname=='Number2') { $retval = self::C_Number2MYSQLI_TYPE; }\n if ($aFieldname=='Qualifier') { $retval = self::C_QualifierMYSQLI_TYPE; }\n if ($aFieldname=='Remarks') { $retval = self::C_RemarksMYSQLI_TYPE; }\n if ($aFieldname=='Text1') { $retval = self::C_Text1MYSQLI_TYPE; }\n if ($aFieldname=='Text2') { $retval = self::C_Text2MYSQLI_TYPE; }\n if ($aFieldname=='TypeStatusName') { $retval = self::C_TypeStatusNameMYSQLI_TYPE; }\n if ($aFieldname=='YesNo1') { $retval = self::C_YesNo1MYSQLI_TYPE; }\n if ($aFieldname=='YesNo2') { $retval = self::C_YesNo2MYSQLI_TYPE; }\n if ($aFieldname=='YesNo3') { $retval = self::C_YesNo3MYSQLI_TYPE; }\n if ($aFieldname=='FragmentID') { $retval = self::C_FragmentIDMYSQLI_TYPE; }\n if ($aFieldname=='TaxonID') { $retval = self::C_TaxonIDMYSQLI_TYPE; }\n if ($aFieldname=='ModifiedByAgentID') { $retval = self::C_ModifiedByAgentIDMYSQLI_TYPE; }\n if ($aFieldname=='PreferredTaxonID') { $retval = self::C_PreferredTaxonIDMYSQLI_TYPE; }\n if ($aFieldname=='DeterminerID') { $retval = self::C_DeterminerIDMYSQLI_TYPE; }\n if ($aFieldname=='CreatedByAgentID') { $retval = self::C_CreatedByAgentIDMYSQLI_TYPE; }\n return $retval;\n }", "function prepare_term_reference_field_multilingual(&$row, $field_name_base, $vocabulary) {\n if (empty($row->{$field_name_base . '_en'})) {\n return;\n }\n else if (is_array($row->{$field_name_base . '_en'})) {\n $tids = array();\n foreach ($row->{$field_name_base . '_en'} as $delta => $term_name) {\n if ($term = taxonomy_get_term_by_name($term_name, $vocabulary)) {\n $tids[] = reset($term)->tid;\n }\n else {\n $translations = array();\n if (!empty($row->{$field_name_base . '_fr'}[$delta])) {\n $translations['fr'] = $row->{$field_name_base . '_fr'}[$delta];\n }\n if (!empty($row->{$field_name_base . '_es'}[$delta])) {\n $translations['es'] = $row->{$field_name_base . '_es'}[$delta];\n }\n $tids[] = elis_migration_create_taxonomy_term($term_name, $vocabulary, $translations);\n }\n }\n $row->{$field_name_base . '_en'} = $tids;\n } else {\n // Handle single-valued fields\n $term_name = $row->{$field_name_base . '_en'};\n if ($term = taxonomy_get_term_by_name($term_name, $vocabulary)) {\n $row->{$field_name_base . '_en'} = reset($term)->tid;\n }\n else {\n $translations = array();\n if (!empty($row->{$field_name_base . '_fr'})) {\n $translations['fr'] = $row->{$field_name_base . '_fr'};\n }\n if (!empty($row->{$field_name_base . '_es'})) {\n $translations['es'] = $row->{$field_name_base . '_es'};\n }\n $row->{$field_name_base . '_en'} = elis_migration_create_taxonomy_term($term_name, $vocabulary, $translations);\n }\n }\n }", "protected function getType(&$value)\n {\n return self::T_FIELD;\n }", "public function aliasField(string $field): string;", "function acf_get_field_type_label($name = '')\n{\n}", "public function testMapToName() {\n\t\t$name = 'some_name';\n\t\t$otherName = 'other_name';\n\n\t\t$this->Field->name($name);\n\t\t$this->assertSame($name, $this->Field->mapToName());\n\n\t\t$this->Field->map(null, $otherName);\n\t\t$this->assertSame($otherName, $this->Field->mapToName());\n\t}", "function acf_prepare_field($field)\n{\n}", "function getFieldValue(&$record, $name, $type) {\n\t\t$fieldValue = null;\n\t\t$parsedContents = $record->getParsedContents();\n\t\tif (isset($parsedContents[$name])) switch ($type) {\n\t\t\tcase SORT_ORDER_TYPE_STRING:\n\t\t\t\t$fieldValue = join(';', $parsedContents[$name]);\n\t\t\t\tbreak;\n\t\t\tcase SORT_ORDER_TYPE_NUMBER:\n\t\t\t\t$fieldValue = (int) array_shift($parsedContents[$name]);\n\t\t\t\tbreak;\n\t\t\tcase SORT_ORDER_TYPE_DATE:\n\t\t\t\t$fieldValue = strtotime($thing = array_shift($parsedContents[$name]));\n\t\t\t\tif ($fieldValue === -1 || $fieldValue === false) $fieldValue = null;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tfatalError('UNKNOWN TYPE');\n\t\t}\n\t\tHookRegistry::call('DublinCorePlugin::getFieldValue', array(&$this, &$fieldValue));\n\t\treturn $fieldValue;\n\t}" ]
[ "0.7173377", "0.65669996", "0.62690645", "0.60597956", "0.60597956", "0.60597956", "0.60597956", "0.60597956", "0.60597956", "0.60532916", "0.60428226", "0.5963186", "0.59185976", "0.5849304", "0.58295465", "0.58238125", "0.579899", "0.57356906", "0.57333744", "0.57310134", "0.57184213", "0.5678323", "0.5672032", "0.5672032", "0.5672032", "0.5672032", "0.5672032", "0.56659156", "0.56641835", "0.56162107", "0.5595359", "0.5586768", "0.5576525", "0.5568235", "0.5566669", "0.5548411", "0.55472606", "0.55328995", "0.5529715", "0.5501752", "0.5482749", "0.54656404", "0.543959", "0.54373014", "0.54333806", "0.5407121", "0.5397545", "0.5397545", "0.5397545", "0.5397545", "0.5397545", "0.5377626", "0.53370875", "0.5337025", "0.53260446", "0.5305198", "0.5298973", "0.5295266", "0.5292542", "0.5289773", "0.52772", "0.5273582", "0.52543384", "0.52453184", "0.5240294", "0.5239004", "0.5236865", "0.52347136", "0.52297235", "0.5220573", "0.52142435", "0.5209621", "0.519037", "0.5183096", "0.51711416", "0.5166673", "0.5165317", "0.51535684", "0.5152606", "0.5152149", "0.5149069", "0.5138693", "0.51358986", "0.5130698", "0.5127366", "0.5125748", "0.5118899", "0.5117192", "0.5114808", "0.5108047", "0.51077074", "0.5107687", "0.51069933", "0.51038116", "0.5103553", "0.5103135", "0.5099609", "0.5099396", "0.5093204", "0.50912184" ]
0.5367799
52
Returns an array of field names.
public static function getFieldNames($type = BasePeer::TYPE_PHPNAME) { if (!array_key_exists($type, CastleTypePeer::$fieldNames)) { throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); } return CastleTypePeer::$fieldNames[$type]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldNames() {\n $fields = array();\n foreach ($this->getFields() as $field) {\n $fields[] = $this->getFieldName($field);\n }\n return $fields;\n }", "public function get_field_names(): array {\n\t\treturn array_keys( $this->data );\n\t}", "public function getFieldsNames(): array\n {\n return array_keys($this->fields);\n }", "public function getFieldNames() {\n return array_keys($this->_fields);\n }", "function _get_field_names()\n {\n return array();\n }", "public function getFieldNames(){\n $names=[];\n if (!empty($this->dbFields)){\n foreach($this->dbFields as $dbField){\n $names[$dbField->id]=$dbField->name;\n }\n }\n return $names;\n }", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public function getFieldNames()\n {\n return array_keys($this->fieldMappings);\n }", "function GetFieldNames($fields) {\r\n \t$names = array();\r\n for ($i = 0; $i < count($fields); $i++) {\r\n \t$names[] = $fields[$i]['name'];\r\n }\r\n\r\n return $names;\r\n }", "public function getFieldNames(): array\n {\n return array_keys($this->fieldDefinitions);\n }", "public function getFieldNames() {}", "public function getFieldNames(): array\n {\n return array_map(fn ($fieldIndex) => oci_field_name($this->resultID, $fieldIndex), range(1, $this->getFieldCount()));\n }", "public function getFields()\r\n {\r\n return array_keys($this->fields);\r\n }", "public function list_fields()\r\n {\r\n $field_names = array();\r\n $this->resultID->field_seek(0);\r\n while ($field = $this->resultID->fetch_field())\r\n {\r\n $field_names[] = $field->name;\r\n }\r\n\r\n return $field_names;\r\n }", "final public function getFields(): array\n {\n return array_keys($this->fields);\n }", "public function getFields()\n {\n return array_keys($this->fields);\n }", "public function getFields() {\n return array_keys($this->fields);\n }", "public function getFields() {\n return array_keys($this->_fields);\n }", "function getFieldNames();", "abstract public function getFieldNames(): array;", "function list_fields()\n\t{\n\t\t$field_names = array();\n\t\twhile ($field = mysqli_fetch_field($this->result_id))\n\t\t{\n\t\t\t$field_names[] = $field->name;\n\t\t}\n\n\t\treturn $field_names;\n\t}", "public function getFieldNames() {\n\t\treturn array_keys($this->tca['columns']);\n\t}", "public function field_names()\n\t{\n\t\t// All the fields that are being validated\n\t\t$fields = array_keys(array_merge\n\t\t(\n\t\t\t$this->pre_filters,\n\t\t\t$this->rules,\n\t\t\t$this->callbacks,\n\t\t\t$this->post_filters\n\t\t));\n\n\t\t// Remove wildcard fields\n\t\t$fields = array_diff($fields, array('*'));\n\n\t\treturn $fields;\n\t}", "public function listFields()\n {\n return array_keys($this->fields);\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "public function fieldNames()\n {\n $query = $this->_manager->createQuery('SELECT e FROM ' . $this->_entityName . ' e');\n //It will probably also fail with an empty table\n $query->setMaxResults(1);\n $results = $query->getArrayResult();\n $row = reset($results);\n return array_keys($row);\n }", "public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_NAME,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t);\n\t}", "public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }", "function list_fields()\n\t{\n\t\t$field_names = array();\n\t\tforeach(sqlsrv_field_metadata($this->result_id) as $offset => $field)\n\t\t{\n\t\t\t$field_names[] = $field['Name'];\n\t\t}\n\t\t\n\t\treturn $field_names;\n\t}", "abstract public function getAllFieldsRealNames(): array;", "public static function getAllFieldNames()\n {\n return [\n self::ACTIVE,\n self::DISPLAY_NAME,\n self::EMAIL,\n self::EMPLOYEE_ID,\n self::FIRST_NAME,\n self::GROUPS,\n self::HR_CONTACT_NAME,\n self::HR_CONTACT_EMAIL,\n self::LAST_NAME,\n self::LOCKED,\n self::MANAGER_EMAIL,\n self::PERSONAL_EMAIL,\n self::REQUIRE_MFA,\n self::USERNAME,\n ];\n }", "public function list_fields()\n\t{\n\t\t$field_names = array();\n\t\tfor ($c = 1, $fieldCount = $this->num_fields(); $c <= $fieldCount; $c++)\n\t\t{\n\t\t\t$field_names[] = oci_field_name($this->stmt_id, $c);\n\t\t}\n\t\treturn $field_names;\n\t}", "final public function getAllFields()\r\n {\r\n return array($this->_field);\r\n }", "function FieldNameList ( ) { return $this->_FieldNameList; }", "public function getFields()\n\t{\n\t\t$fields = [];\n\n\t\tforeach (array_keys($this->map) as $field)\n\t\t{\n\t\t\t$get = $this->convertToCamelCase('get_' . $field);\n\t\t\t$fields[$field] = $this->$get();\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function fields_names(){\n $table_meta = array();\n // get fields in the database table\n\n foreach ($this->_meta() as $meta) {\n array_push($table_meta, $meta->name);\n }\n\n return $table_meta;\n }", "public static function field_names($model){\n\t $fields = self::fields($model);\n\t return array_keys($fields);\n\t}", "public function fields()\n {\n return array_map(\n function (array $field) {\n return Field::fromArray($field);\n },\n $this->client->get('field')\n );\n }", "public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_PHRASE_ID,\n\t\t\tself::FIELD_LANGUAGE_ID,\n\t\t\tself::FIELD_TRANSLATION,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t\tself::FIELD_USER_ID,\n\t\t);\n\t}", "public function getFieldsList()\n {\n return $this->table_fields_names;\n }", "public function getFields() {\r\n\t\tif($this->_fields === null) {\r\n\t\t\t$this->_fields = $this->activeDataProvider->model->attributeNames();\r\n\t\t}\r\n\t\treturn $this->_fields;\r\n\t}", "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "public function getFields() : array {\n\t\treturn $this->fields;\n\t}", "public function getFields(): array;", "public function getFields(): array;", "public function getFields(): array;", "function get_field_names()\n{\n\t#currently 27 fields\n\treturn $t_arr = array (\t\tlang_get( 'id' ),\n\t\t\t\t\t\t\t lang_get( 'category' ),\n\t\t\t\t\t\t\t lang_get( 'severity' ),\n\t\t\t\t\t\t\t lang_get( 'reproducibility' ),\n\t\t\t\t\t\t\t\tlang_get( 'date_submitted' ),\n\t\t\t\t\t\t\t\tlang_get( 'last_update' ),\n\t\t\t\t\t\t\t\tlang_get( 'reporter' ),\n\t\t\t\t\t\t\t\tlang_get( 'assigned_to' ),\n\t\t\t\t\t\t\t\tlang_get( 'priority' ),\n\t\t\t\t\t\t\t\tlang_get( 'status' ),\n\t\t\t\t\t\t\t\tlang_get( 'build' ),\n\t\t\t\t\t\t\t\tlang_get( 'projection' ),\n\t\t\t\t\t\t\t\tlang_get( 'eta' ),\n\t\t\t\t\t\t\t\tlang_get( 'platform' ),\n\t\t\t\t\t\t\t\tlang_get( 'os' ),\n\t\t\t\t\t\t\t\tlang_get( 'os_version' ),\n\t\t\t\t\t\t\t\tlang_get( 'product_version' ),\n\t\t\t\t\t\t\t\tlang_get( 'resolution' ),\n\t\t\t\t\t\t\t\tlang_get( 'duplicate_id' ),\n\t\t\t\t\t\t\t\tlang_get( 'summary' ),\n\t\t\t\t\t\t\t\tlang_get( 'description' ),\n\t\t\t\t\t\t\t\tlang_get( 'steps_to_reproduce' ),\n\t\t\t\t\t\t\t\tlang_get( 'additional' ).'_'.lang_get( 'information' ),\n\t\t\t\t\t\t\t\tlang_get( 'attached_files' ),\n\t\t\t\t\t\t\t\tlang_get( 'bugnote_title' ),\n\t\t\t\t\t\t\t\tlang_get( 'bugnote_date' ),\n\t\t\t\t\t\t\t\tlang_get( 'bugnote_description' )) ;\n}", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "public function fields()\n {\n $fields = array();\n\n foreach ($this->_data as $field => $row)\n {\n $fields[$field] = $row['value'];\n }\n\n return $fields;\n }", "public function fetchFields()\n {\n $field_names = array();\n for ($c = 1, $fieldCount = $this->getFieldsCount(); $c <= $fieldCount; $c++) {\n $field_names[] = oci_field_name($this->stmt_id, $c);\n }\n return $field_names;\n }", "public function getExternalizableFieldNames(): array\n\t{\n\t\t$externalizableList = [\n\t\t\t$this->fieldNameMap->getBindings(),\n\t\t];\n\n\t\tif ($this->fieldNameMap->isMultipleIdsFilled())\n\t\t{\n\t\t\t$externalizableList[] = $this->fieldNameMap->getMultipleIds();\n\t\t}\n\t\tif ($this->fieldNameMap->isSingleIdFilled())\n\t\t{\n\t\t\t$externalizableList[] = $this->fieldNameMap->getSingleId();\n\t\t}\n\n\t\treturn $externalizableList;\n\t}", "static public function fieldTypeNames()\n {\n /* Fetch the field type information from the Horde_Form classes. */\n $fields = self::fieldTypes();\n\n /* Strip out the name element from the array. */\n $available_fields = array();\n foreach ($fields as $field_type => $info) {\n $available_fields[$field_type] = $info['name'];\n }\n\n /* Sort for display purposes. */\n asort($available_fields);\n\n return $available_fields;\n }", "public static function getDbFields()\n {\n global $zdb;\n $columns = $zdb->getColumns(self::TABLE);\n $fields = array();\n foreach ( $columns as $col ) {\n $fields[] = $col->getName();\n }\n return $fields;\n }", "public function getFieldNames() {\n\t\treturn array (\"codedaddr\");\n\t}", "function mysql_field_array( $query ) {\r\n\t\t\t$field = mysql_num_fields( $query );\r\n\t\t\tfor ( $i = 0; $i < $field; $i++ ) {\r\n\t\t\t\t$names[] = mysql_field_name( $query, $i );\r\n\t\t\t}\r\n\t\t\treturn $names;\t\r\n\t\t}", "public function getFieldNames()\n {\n if ( ! $this->isActive ) {\n throw new NonActiveException('You can only get the field names of the active template');\n }\n\n $ret = array();\n\n try {\n $result = $this->getSoapClient()->GetFieldNames();\n } catch ( SoapException $ex ) {\n throw new StatusException('Error while getting the list of all fields in the active template' , $ex);\n }\n\n if ( isset($result->GetFieldNamesResult->string) ) {\n if ( is_array($result->GetFieldNamesResult->string) ) {\n $ret = $result->GetFieldNamesResult->string;\n } else {\n $ret[] = $result->GetFieldNamesResult->string;\n }\n }\n\n return $ret;\n }", "public function getFields()\n {\n $out = array();\n foreach($this->_map as $bind => $field)\n {\n if(isset($field[self::MAP_FIELD]))\n {\n $out[$bind] = $field[self::MAP_FIELD];\n }\n }\n return $out;\n }", "function getFormFieldNames() {\n\t\t\tif ($this->hasForm( )) {\n\t\t\t\treturn $this->getForm( )->getFieldNames( );\n\t\t\t}\n\n\t\t\treturn array( );\n\t\t}", "public function getFields() {\n $columns = $this->schema();\n if (empty($columns)) {\n trigger_error(__d('cake_dev', '(Model::getColumnTypes) Unable to build model field data. If you are using a model without a database table, try implementing schema()'), E_USER_WARNING);\n }\n\n $results = array();\n foreach ($columns as $key => $col) {\n $results[] = $key;\n }\n unset($columns);\n return $results;\n }", "public function get_fields()\n {\n return [\n \"isys_catg_invoice_list__denotation\" => \"LC__CMDB__CATG__TITLE\",\n \"isys_catg_invoice_list__amount\" => \"LC__CMDB__CATG__INVOICE__AMOUNT\",\n \"isys_catg_invoice_list__date\" => \"LC__CMDB__CATG__INVOICE__DATE\",\n \"isys_catg_invoice_list__edited\" => \"LC__CMDB__CATG__INVOICE__EDITED\",\n \"isys_catg_invoice_list__financial_accounting_delivery\" => \"LC__CMDB__CATG__INVOICE__FINANCIAL_ACCOUNTING_DELIVERY\",\n \"isys_catg_invoice_list__charged\" => \"LC__CMDB__CATG__INVOICE__CHARGED\",\n ];\n }", "public function getFields() {\n $fields = $this->_fields;\n\n if ($this->getJoins() && !$fields && $this->getType() === self::SELECT) {\n return array_keys($this->getRepository()->getSchema()->getColumns());\n }\n\n return $fields;\n }", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function fields()\r\n {\r\n return array_keys($this->getKey('schema', true));\r\n }", "public function getListFields();", "function get_fields_name()\n\t{\n\t\treturn $this->db->list_fields( $this->table );\n\t}", "public function getFieldsArray() {\n\t\t\treturn $this->fields_array;\n\t\t}", "public function toRealNamesArray(): array\n {\n $values = array();\n foreach ($this->getAllFieldsAliases() as $name) {\n $field = $this->{'field' . \\ucfirst($name)};\n $realName = (string) \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($name)));\n $values[$realName] = $field['value'];\n }\n\n return $values;\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function getFieldValues() {\n return array_values($this->_fields);\n }", "static public function fieldsGet()\n {\n return array_keys(static::$conditions);\n }", "public static function getFields() {\n return self::$fields;\n }", "public function getFields()\r\n\t{\r\n\t \tforeach($this->mapping_rules as $field => $rule)\r\n\t \t{\r\n\t\t\tif(!strlen($rule['value']))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(strpos($rule['value'],',') === false)\r\n\t\t\t{\r\n\t\t\t\t$fields[] = strtolower($rule['value']);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t \t$tmp_fields = explode(',',$rule['value']);\r\n\t\t\t$value = '';\r\n\t\t \tforeach($tmp_fields as $tmp_field)\r\n\t \t\t{\r\n\t\t\t\t$fields[] = trim(strtolower($tmp_field));\r\n\t \t\t}\r\n\t \t}\r\n\t\treturn $fields ? $fields : array();\r\n\t}", "function getLocaleFieldNames() {\n\t\treturn array();\n\n\t}", "public function getFields()\n {\n return $this->arr_defined_fields;\n }", "public function getFields(): array\n {\n $fields = [];\n\n foreach ($this->getGroups() as $group) {\n foreach ($group->fields as $field) {\n $fields[$field->id ?? \\count($fields)] = $field;\n }\n }\n\n return $fields;\n }", "public function getKeyFields()\n {\n return $this->_aKeyFieldList;\n }", "public function fieldNameArray($result = false){\n $names = array();\n\n $field = $this->numFields($result);\n\n for ( $i = 0; $i < $field; $i++ ){\n $names[] = $this->fieldName($result, $i);\n }\n\n return $names;\n }", "public function getDefaultFieldsName(): array\n {\n $defaultFieldsForCreate = $this->getDefaultFields();\n\n return $this->getFields($defaultFieldsForCreate);\n }", "public function getFieldList()\n {\n return $this->_fieldList;\n }", "function fields($fldname) {\n\t\treturn $this->fields[$fldname];\n\t}", "public function &getFields();", "public function getFields() : array\n {\n return get_object_vars($this);\n }", "public function fieldNamesWithAlias( $fields ) {\n\t\t$retval = array();\n\t\tforeach ( $fields as $alias => $field ) {\n\t\t\tif ( is_numeric( $alias ) ) {\n\t\t\t\t$alias = $field;\n\t\t\t}\n\t\t\t$retval[] = $this->fieldNameWithAlias( $field, $alias );\n\t\t}\n\n\t\treturn $retval;\n\t}", "public function fields()\n {\n return [ \n ];\n }", "public function getFields()\n\t{\n\t\treturn $this->fields;\n\t}", "public function getFields()\n\t{\n\t\treturn $this->fields;\n\t}", "public function getFields()\n\t\t{\n\t\t\treturn $this->fields;\n\t\t}", "public function fields() : array\n {\n $fields = [];\n foreach ($this->queries as $class) {\n $fields[$class::$name] = (new $class)->toArray();\n }\n return $fields;\n }", "public static function fields()\n\t{\n\t\t$array = self::$fields;\n\n\t\tfor($g = 0; $g < sizeof(self::$genders); $g++)\n\t\t\t$array[] = 'interested_'.$g;\n\n\t\tfor($i = 0; $i < sizeof(self::$questions); $i++)\n\t\t\t$array[] = 'question_'.$i;\n\n\t\treturn $array;\n\t}" ]
[ "0.8793394", "0.86980706", "0.86644137", "0.8579475", "0.84528255", "0.8416153", "0.8345989", "0.8345989", "0.8345989", "0.8331933", "0.8316055", "0.8315624", "0.8273083", "0.8169623", "0.8002455", "0.7992786", "0.79775965", "0.7960041", "0.7934392", "0.79341775", "0.7924927", "0.7913005", "0.7892765", "0.787017", "0.7809957", "0.780096", "0.77620906", "0.77484506", "0.7708241", "0.76998556", "0.7689393", "0.76494", "0.761657", "0.76129", "0.7566269", "0.755929", "0.7550023", "0.74757814", "0.7473731", "0.74437416", "0.7439756", "0.73907834", "0.73638767", "0.7359634", "0.7342383", "0.73153085", "0.73153085", "0.73153085", "0.72648543", "0.72594035", "0.72594035", "0.72262204", "0.72195625", "0.72098714", "0.71978974", "0.7187171", "0.7177934", "0.7149774", "0.71300155", "0.71195495", "0.7112105", "0.7099745", "0.70797235", "0.7073665", "0.7071943", "0.7071943", "0.7071943", "0.7071943", "0.7071943", "0.7071943", "0.70697355", "0.7064531", "0.7060703", "0.7045168", "0.6977397", "0.6970457", "0.6970457", "0.6970457", "0.6970457", "0.6970457", "0.69494927", "0.694041", "0.6940405", "0.69342583", "0.69175744", "0.69108194", "0.690637", "0.69063413", "0.689743", "0.6890353", "0.68862224", "0.68803877", "0.68730545", "0.6871571", "0.6865773", "0.6861897", "0.6853432", "0.6853432", "0.6851809", "0.6851026", "0.68507624" ]
0.0
-1
Convenience method which changes table.column to alias.column. Using this method you can maintain SQL abstraction while using column aliases. $c>addAlias("alias1", TablePeer::TABLE_NAME); $c>addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
public static function alias($alias, $column) { return str_replace(CastleTypePeer::TABLE_NAME.'.', $alias.'.', $column); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prefixColumnsForJoin()\n {\n if (!$columns = $this->query->columns) {\n return $this->select($this->model->getTable().'.*');\n }\n\n foreach ($columns as $key => $column) {\n if ($this->model->hasColumn($column)) {\n $columns[$key] = $this->model->getTable().'.'.$column;\n }\n }\n\n $this->query->columns = $columns;\n }", "public static function alias($alias, $column)\n\t{\n\t\treturn str_replace(CoursePeer::TABLE_NAME.'.', $alias.'.', $column);\n\t}", "public static function alias($alias, $column)\n\t{\n\t\treturn str_replace(TbprofessorPeer::TABLE_NAME.'.', $alias.'.', $column);\n\t}", "public static function alias($alias, $column)\n {\n return str_replace(SertifikasiPdPeer::TABLE_NAME.'.', $alias.'.', $column);\n }", "public static function alias($alias, $column)\n {\n return str_replace(RuangLongitudinalPeer::TABLE_NAME.'.', $alias.'.', $column);\n }", "public static function alias($alias, $column)\n\t{\n\t\treturn str_replace(MissionPhotoPeer::TABLE_NAME.'.', $alias.'.', $column);\n\t}", "public static function alias($alias, $column)\n {\n return str_replace(ReportPeer::TABLE_NAME.'.', $alias.'.', $column);\n }", "public static function alias($alias, $column)\n {\n return str_replace(GsGeneriekeProductenPeer::TABLE_NAME.'.', $alias.'.', $column);\n }", "public static function alias($alias, $column)\n\t{\n\t\treturn str_replace(AsignacionScPeer::TABLE_NAME.'.', $alias.'.', $column);\n\t}", "function TableAlias($tableAlias = null);", "public static function alias($alias, $column)\n {\n return str_replace(GsDailyDefinedDosePeer::TABLE_NAME.'.', $alias.'.', $column);\n }", "public static function addAliasSelectColumns( $alias, Criteria $criteria)\n {\n $criteria->addSelectColumn($alias.'.ID');\n\n $criteria->addSelectColumn($alias.'.REFERENCE');\n\n $criteria->addSelectColumn($alias.'.LOKALREAKTOR');\n\n $criteria->addSelectColumn($alias.'.LIVE');\n\n $criteria->addSelectColumn($alias.'.SUBREAKTOR_ORDER');\n }", "public function alias($field = NULL, $join = NULL)\n\t{\t\n\t\t$meta = $this->meta();\n\t\t\n\t\t// Return the model's alias if nothing is passed\n\t\tif (!$field)\n\t\t{\n\t\t\treturn $meta->table;\n\t\t}\n\t\t\n\t\t// Split off the table name; we already know that\n\t\tif (strpos($field, '.') !== FALSE)\n\t\t{\t\t\t\n\t\t\tlist(, $field) = explode('.', $field);\n\t\t}\n\t\t\n\t\t// Check and concatenate\n\t\tif ($this->field($field))\n\t\t{\n\t\t\t$field = $this->field($field)->column;\n\t\t}\n\t\t\n\t\tif ($join)\n\t\t{\n\t\t\treturn $meta->table.'.'.$field;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $field;\n\t\t}\n\t}", "public static function alias($alias, $column)\n {\n return str_replace(GsSupplementaireProductenHistoriePeer::TABLE_NAME.'.', $alias.'.', $column);\n }", "public function asAlias() {\n\t\treturn ($this->alias ? $this->alias : ($this->table ? $this->table->asAlias() .'__': ''/*null*/).$this->name);\n\t}", "public function joinColumnName($propertyName);", "function alias($alias)\n {\n $this->table_alias = $alias;\n return $this;\n }", "public function testBuildJoinDefaultWithAliases()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->alias('table1_alias')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->alias('table2_alias')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 AS table2_alias ON table1_alias.id = table2_alias.id',\n $query->buildJoin()\n );\n }", "public static function alias($alias, $column)\n\t{\n\t\treturn str_replace(RpMissionSummaryPeer::TABLE_NAME.'.', $alias.'.', $column);\n\t}", "abstract public function join($alias_from, $rel_name, $alias_to);", "public function addJoin(Builder $queryBuilder) : void\n {\n $queryBuilder->join(\n $this->_relatedTable . ' AS ' . $this->name,\n $this->_baseTable . '.' . $this->_baseKey,\n '=',\n $this->name . '.' . $this->_foreignKey\n );\n }", "private function addColumn($columnName, $alias = null)\n {\n if (is_string($alias))\n $columnName = \"$columnName AS $alias\";\n\n $this->columns[] = $columnName;\n }", "protected function _qb_alias($field, $join = NULL)\n\t{\n\t\t$model = NULL;\n\t\t\n\t\t// Check for functions\n\t\tif (strpos($field, '\"') !== FALSE)\n\t\t{\n\t\t\t// Quote the column in FUNC(\"ident\") identifiers\n\t\t\treturn preg_replace('/\"(.+?)\"/e', '\"\\\\\"\".$this->_qb_alias(\"$1\").\"\\\\\"\"', $field);\n\t\t}\n\t\t\n\t\t// with() call, aliasing is already completed\n\t\tif (strpos($field, ':') !== FALSE)\n\t\t{\t\t\t\n\t\t\treturn $field;\n\t\t}\n\t\t\n\t\tif (strpos($field, '.') !== FALSE)\n\t\t{\t\t\t\n\t\t\tlist($model, $field) = explode('.', $field);\n\t\t\t\n\t\t\t// If $join is NULL, the column is returned as it came\n\t\t\t// If it was joined when it came in, it returns joined\n\t\t\tif ($join === NULL)\n\t\t\t{\n\t\t\t\t$join = TRUE;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($join === NULL)\n\t\t\t{\n\t\t\t\t$join = FALSE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If the model is NULL, $this's table name or model name\n\t\t// We just replace if with the current model's name\n\t\tif ($model === NULL || $model == $this->_table)\n\t\t{\n\t\t\t$model = Jelly_Meta::model_name($this);\n\t\t}\n\t\t\n\t\treturn Jelly_Meta::column($model.'.'.$field, $join);\n\t}", "public function join($table, $alias = NULL, $condition = NULL, $arguments = []);", "public function join(Select $table, $alias, $on)\n {\n return $this->innerJoin($table, $alias, $on);\n }", "public function alias($id, $alias);", "public function testJoinWithAlias()\n {\n $query = (new Select($this->mockConnection))->join('join', 'j.tableId', '=', 'table.id', 'j');\n $array = $query->toArray();\n\n $this->assertInstanceOf(Select::class, $query);\n $this->assertArrayHasKey('join', $array);\n $this->assertCount(1, $array['join']);\n $this->assertEquals([\n 'type' => 'inner',\n 'table' => 'join',\n 'alias' => 'j',\n 'statement' => [\n 'where' => [\n [\n 'column' => 'j.tableId',\n 'operator' => '=',\n 'value' => 'table.id',\n 'boolean' => 'and',\n ]\n ],\n ]\n ], $array['join'][0]);\n $this->assertInstanceOf(Column::class, $array['join'][0]['statement']['where'][0]['value']);\n }", "public function getDbAlias($alias);", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "protected function getJoinTable(): string\n {\n return \"{$this->define(SchemaInterface::TABLE)} AS {$this->getAlias()}\";\n }", "protected function getColumnName($alias)\n {\n return $this->aliases[$alias] ?? $alias;\n }", "public function joinKeyColumnName($entityName, $referencedColumnName = null);", "public function testAliasMethod() {\n\t\t$table = new Table(['alias' => 'Users']);\n\t\t$this->assertEquals('User', $table->alias());\n\n\t\t$table = new Table(['table' => 'stuffs']);\n\t\t$this->assertEquals('stuff', $table->alias());\n\n\t\t$table = new UsersTable;\n\t\t$this->assertEquals('User', $table->alias());\n\n\t\t$table = $this->getMockBuilder('Table')\n\t\t\t\t->setMethods(['find'])\n\t\t\t\t->setMockClassName('SpecialThingTable')\n\t\t\t\t->getMock();\n\t\t$this->assertEquals('SpecialThing', $table->alias());\n\n\t\t$table->alias('AnotherOne');\n\t\t$this->assertEquals('AnotherOne', $table->alias());\n\t}", "public function selectAliasColumn($column, $alias, array $mapping = array())\n {\n if (isset($mapping['id']) && $mapping['id']) {\n $mapping['id'] = false;\n\n $dbType = Type::getType($mapping['type'])->getSQLDeclaration($mapping, $this);\n\n if ($dbType !== null) {\n return 'CONVERT(' . $dbType . ', ' . $column . ') AS ' . $alias;\n }\n }\n\n return $column . ' AS ' . $alias;\n }", "public function getTableAlias() ;", "public function addJoin($type, $table, $alias = NULL, $condition = NULL, $arguments = []);", "public function join_column($column) {\n $this->join_columns []= $column;\n return $this;\n }", "public function tableNameWithAlias( $name, $alias = false ) {\n\t\tif ( !$alias || $alias == $name ) {\n\t\t\treturn $this->tableName( $name );\n\t\t} else {\n\t\t\treturn $this->tableName( $name ) . ' ' . $this->addIdentifierQuotes( $alias );\n\t\t}\n\t}", "function getTableAlias()\r\n\t{\r\n\t\tif ( is_null( $this->table ) ) return (null );\r\n\r\n\t\t$alias =$this->table->getTableAlias();\r\n\t\tif ( is_null( $alias ) ) $alias = $this->table->table_name();\r\n\t\treturn( $alias );\r\n\t}", "public function alias( $class, $alias );", "public function createResultSetMappingBuilder($alias);", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(ArtistTableMap::ID);\n $criteria->addSelectColumn(ArtistTableMap::NAME);\n $criteria->addSelectColumn(ArtistTableMap::DOB);\n $criteria->addSelectColumn(ArtistTableMap::DOD);\n $criteria->addSelectColumn(ArtistTableMap::ISBAND);\n $criteria->addSelectColumn(ArtistTableMap::DATE_FORMED);\n $criteria->addSelectColumn(ArtistTableMap::DATE_ENDED);\n $criteria->addSelectColumn(ArtistTableMap::MEMBERS);\n $criteria->addSelectColumn(ArtistTableMap::ALBUMS);\n $criteria->addSelectColumn(ArtistTableMap::LABEL_ID);\n } else {\n $criteria->addSelectColumn($alias . '.ID');\n $criteria->addSelectColumn($alias . '.NAME');\n $criteria->addSelectColumn($alias . '.DOB');\n $criteria->addSelectColumn($alias . '.DOD');\n $criteria->addSelectColumn($alias . '.ISBAND');\n $criteria->addSelectColumn($alias . '.DATE_FORMED');\n $criteria->addSelectColumn($alias . '.DATE_ENDED');\n $criteria->addSelectColumn($alias . '.MEMBERS');\n $criteria->addSelectColumn($alias . '.ALBUMS');\n $criteria->addSelectColumn($alias . '.LABEL_ID');\n }\n }", "public function quoteColumnAlias($name)\n\t{\n\t\treturn parent::quoteColumnAlias($name, '\"', '\"');\n\t}", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_AID);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_RCODE);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_MCODE);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_MPOS);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_NAME_T);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_TOTAL);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_TOTAL2);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_TAX);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_OON);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_BONUS);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_FDATE);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_TDATE);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_POS_CUR);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_ADJUST);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_CRATE);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_LOCATIONBASE);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_POS_CUR1);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_WEAK);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_PV_WORLD);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_ALLSUMPV_CD);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_ALLSUMPV_SD);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_SUMPV_CD);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_SUMPV_SD);\n $criteria->addSelectColumn(AliEmbonusTableMap::COL_EXP);\n } else {\n $criteria->addSelectColumn($alias . '.aid');\n $criteria->addSelectColumn($alias . '.rcode');\n $criteria->addSelectColumn($alias . '.mcode');\n $criteria->addSelectColumn($alias . '.mpos');\n $criteria->addSelectColumn($alias . '.name_t');\n $criteria->addSelectColumn($alias . '.total');\n $criteria->addSelectColumn($alias . '.total2');\n $criteria->addSelectColumn($alias . '.tax');\n $criteria->addSelectColumn($alias . '.oon');\n $criteria->addSelectColumn($alias . '.bonus');\n $criteria->addSelectColumn($alias . '.fdate');\n $criteria->addSelectColumn($alias . '.tdate');\n $criteria->addSelectColumn($alias . '.pos_cur');\n $criteria->addSelectColumn($alias . '.adjust');\n $criteria->addSelectColumn($alias . '.crate');\n $criteria->addSelectColumn($alias . '.locationbase');\n $criteria->addSelectColumn($alias . '.pos_cur1');\n $criteria->addSelectColumn($alias . '.weak');\n $criteria->addSelectColumn($alias . '.pv_world');\n $criteria->addSelectColumn($alias . '.allsumpv_cd');\n $criteria->addSelectColumn($alias . '.allsumpv_sd');\n $criteria->addSelectColumn($alias . '.sumpv_cd');\n $criteria->addSelectColumn($alias . '.sumpv_sd');\n $criteria->addSelectColumn($alias . '.exp');\n }\n }", "function map($column){\n //\n //Get the entity name\n $entity=$column->get_parent();\n $ename=$entity->name;\n //\n //Get the cname\n $cname=$column->name;\n //\n //Get the referenced table name \n $ref=$column->ref_table_name;\n //\n //Return a string version of the on clause\n return\"\\t{$ename}.{$cname}={$ref}.{$ref}\\t\";\n }", "public function addJoinUser(\\Ophp\\SqlQueryBuilder_Select $query, $onColumn) {\n\t\t$query->join('LEFT JOIN `user` ON `user`.`user_id` = ' . $onColumn)\n\t\t\t\t->select('user.name as username');\n\t\treturn $query;\n\t}", "public function setAlias($alias);", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(UseractionsTableMap::COL_ID);\n $criteria->addSelectColumn(UseractionsTableMap::COL_DATECREATED);\n $criteria->addSelectColumn(UseractionsTableMap::COL_ACTIONTYPE);\n $criteria->addSelectColumn(UseractionsTableMap::COL_ACTIONSUBTYPE);\n $criteria->addSelectColumn(UseractionsTableMap::COL_DUEDATE);\n $criteria->addSelectColumn(UseractionsTableMap::COL_CREATEDBY);\n $criteria->addSelectColumn(UseractionsTableMap::COL_ASSIGNEDTO);\n $criteria->addSelectColumn(UseractionsTableMap::COL_ASSIGNEDBY);\n $criteria->addSelectColumn(UseractionsTableMap::COL_TITLE);\n $criteria->addSelectColumn(UseractionsTableMap::COL_TEXTBODY);\n $criteria->addSelectColumn(UseractionsTableMap::COL_REFLECTNOTE);\n $criteria->addSelectColumn(UseractionsTableMap::COL_COMPLETED);\n $criteria->addSelectColumn(UseractionsTableMap::COL_DATECOMPLETED);\n $criteria->addSelectColumn(UseractionsTableMap::COL_DATEUPDATED);\n $criteria->addSelectColumn(UseractionsTableMap::COL_CUSTOMERLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_SHIPTOLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_CONTACTLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_SALESORDERLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_QUOTELINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_VENDORLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_VENDORSHIPFROMLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_PURCHASEORDERLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_ACTIONLINK);\n $criteria->addSelectColumn(UseractionsTableMap::COL_RESCHEDULEDLINK);\n } else {\n $criteria->addSelectColumn($alias . '.id');\n $criteria->addSelectColumn($alias . '.datecreated');\n $criteria->addSelectColumn($alias . '.actiontype');\n $criteria->addSelectColumn($alias . '.actionsubtype');\n $criteria->addSelectColumn($alias . '.duedate');\n $criteria->addSelectColumn($alias . '.createdby');\n $criteria->addSelectColumn($alias . '.assignedto');\n $criteria->addSelectColumn($alias . '.assignedby');\n $criteria->addSelectColumn($alias . '.title');\n $criteria->addSelectColumn($alias . '.textbody');\n $criteria->addSelectColumn($alias . '.reflectnote');\n $criteria->addSelectColumn($alias . '.completed');\n $criteria->addSelectColumn($alias . '.datecompleted');\n $criteria->addSelectColumn($alias . '.dateupdated');\n $criteria->addSelectColumn($alias . '.customerlink');\n $criteria->addSelectColumn($alias . '.shiptolink');\n $criteria->addSelectColumn($alias . '.contactlink');\n $criteria->addSelectColumn($alias . '.salesorderlink');\n $criteria->addSelectColumn($alias . '.quotelink');\n $criteria->addSelectColumn($alias . '.vendorlink');\n $criteria->addSelectColumn($alias . '.vendorshipfromlink');\n $criteria->addSelectColumn($alias . '.purchaseorderlink');\n $criteria->addSelectColumn($alias . '.actionlink');\n $criteria->addSelectColumn($alias . '.rescheduledlink');\n }\n }", "public function withColumn($column, $alias = null, $type = null)\r\n {\r\n throw new Exception('This method is not yet implemented');\r\n \r\n return $this;\r\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(GsSupplementaireProductenHistoriePeer::DATUM_PRODUCT);\n $criteria->addSelectColumn(GsSupplementaireProductenHistoriePeer::ZINDEX_NUMMER);\n $criteria->addSelectColumn(GsSupplementaireProductenHistoriePeer::NZA_MAXIMUM_TARIEF_INC_BTW_LAAG);\n $criteria->addSelectColumn(GsSupplementaireProductenHistoriePeer::THESAURUS_NUMMER_SOORT_SUPPLEMENTAIR_PRODUCT);\n $criteria->addSelectColumn(GsSupplementaireProductenHistoriePeer::SOORT_SUPPLEMENTAIR_PRODUCT);\n } else {\n $criteria->addSelectColumn($alias . '.datum_product');\n $criteria->addSelectColumn($alias . '.zindex_nummer');\n $criteria->addSelectColumn($alias . '.nza_maximum_tarief_inc_btw_laag');\n $criteria->addSelectColumn($alias . '.thesaurus_nummer_soort_supplementair_product');\n $criteria->addSelectColumn($alias . '.soort_supplementair_product');\n }\n }", "public function testBuildFromWithAlias()\n {\n $query = $this->getQuery()\n ->table('test')\n ->alias('test_alias')\n ;\n\n $this->assertSame(\n 'FROM test AS test_alias',\n $query->buildFrom()\n );\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(EmployeeTableMap::COL_OID);\n $criteria->addSelectColumn(EmployeeTableMap::COL_FIRSTNAME);\n $criteria->addSelectColumn(EmployeeTableMap::COL_MIDDLEINITIAL);\n $criteria->addSelectColumn(EmployeeTableMap::COL_LASTNAME);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NATIONALID);\n $criteria->addSelectColumn(EmployeeTableMap::COL_MOBILENBR);\n $criteria->addSelectColumn(EmployeeTableMap::COL_RESIDENT);\n $criteria->addSelectColumn(EmployeeTableMap::COL_ELECDEDUCTION);\n $criteria->addSelectColumn(EmployeeTableMap::COL_EPAYMENT);\n $criteria->addSelectColumn(EmployeeTableMap::COL_ACTIVE);\n $criteria->addSelectColumn(EmployeeTableMap::COL_STARTDT);\n $criteria->addSelectColumn(EmployeeTableMap::COL_GENDER);\n $criteria->addSelectColumn(EmployeeTableMap::COL_TERMINATED);\n $criteria->addSelectColumn(EmployeeTableMap::COL_DATEOFBIRTH);\n $criteria->addSelectColumn(EmployeeTableMap::COL_MARITALSTATUS);\n $criteria->addSelectColumn(EmployeeTableMap::COL_SPOUSEFIRSTNM);\n $criteria->addSelectColumn(EmployeeTableMap::COL_SPOUSELASTNM);\n $criteria->addSelectColumn(EmployeeTableMap::COL_SPOUSEMOBNBR);\n $criteria->addSelectColumn(EmployeeTableMap::COL_PREVEMPLOYERNAME);\n $criteria->addSelectColumn(EmployeeTableMap::COL_PREVEMPLOYERTELNBR);\n $criteria->addSelectColumn(EmployeeTableMap::COL_PREVEMPLOYERSTARTDT);\n $criteria->addSelectColumn(EmployeeTableMap::COL_PREVEMPLOYERENDDT);\n $criteria->addSelectColumn(EmployeeTableMap::COL_PREVEMPLOYERLEAVINGREASON);\n $criteria->addSelectColumn(EmployeeTableMap::COL_PREVEMPLOYERLOCATION);\n $criteria->addSelectColumn(EmployeeTableMap::COL_WORKDONEATPREVEMPLOYER);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NXTOFKINFIRSTNM);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NXTOFKINLASTNM);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NXTOFKINMOBILENBR);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NXTOFKINRESIDENCE);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NXTOFKINRELATIONSHIP);\n $criteria->addSelectColumn(EmployeeTableMap::COL_NXTOFKINPLACEOFWORK);\n $criteria->addSelectColumn(EmployeeTableMap::COL_COMMENT);\n $criteria->addSelectColumn(EmployeeTableMap::COL_CREATETMSTP);\n $criteria->addSelectColumn(EmployeeTableMap::COL_UPDTTMSTP);\n } else {\n $criteria->addSelectColumn($alias . '.oid');\n $criteria->addSelectColumn($alias . '.firstName');\n $criteria->addSelectColumn($alias . '.middleInitial');\n $criteria->addSelectColumn($alias . '.lastName');\n $criteria->addSelectColumn($alias . '.nationalID');\n $criteria->addSelectColumn($alias . '.mobileNbr');\n $criteria->addSelectColumn($alias . '.resident');\n $criteria->addSelectColumn($alias . '.elecDeduction');\n $criteria->addSelectColumn($alias . '.ePayment');\n $criteria->addSelectColumn($alias . '.active');\n $criteria->addSelectColumn($alias . '.startDt');\n $criteria->addSelectColumn($alias . '.gender');\n $criteria->addSelectColumn($alias . '.terminated');\n $criteria->addSelectColumn($alias . '.dateOfBirth');\n $criteria->addSelectColumn($alias . '.maritalStatus');\n $criteria->addSelectColumn($alias . '.spouseFirstNm');\n $criteria->addSelectColumn($alias . '.spouseLastNm');\n $criteria->addSelectColumn($alias . '.spouseMobNbr');\n $criteria->addSelectColumn($alias . '.prevEmployerName');\n $criteria->addSelectColumn($alias . '.prevEmployerTelNbr');\n $criteria->addSelectColumn($alias . '.prevEmployerStartDt');\n $criteria->addSelectColumn($alias . '.prevEmployerEndDt');\n $criteria->addSelectColumn($alias . '.prevEmployerLeavingReason');\n $criteria->addSelectColumn($alias . '.prevEmployerLocation');\n $criteria->addSelectColumn($alias . '.workDoneAtPrevEmployer');\n $criteria->addSelectColumn($alias . '.nxtOfKinFirstNm');\n $criteria->addSelectColumn($alias . '.nxtOfKinLastNm');\n $criteria->addSelectColumn($alias . '.nxtOfKinMobileNbr');\n $criteria->addSelectColumn($alias . '.nxtOfKinResidence');\n $criteria->addSelectColumn($alias . '.nxtOfKinRelationship');\n $criteria->addSelectColumn($alias . '.nxtOfKinPlaceOfWork');\n $criteria->addSelectColumn($alias . '.comment');\n $criteria->addSelectColumn($alias . '.createTmstp');\n $criteria->addSelectColumn($alias . '.updtTmstp');\n }\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::ID);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::TRACE_ID);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::STATUS);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::SUBJECT);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::INFO);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::BODY);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::CREATED_AT);\n $criteria->addSelectColumn(EmailManagerHistoryTableMap::UPDATED_AT);\n } else {\n $criteria->addSelectColumn($alias . '.ID');\n $criteria->addSelectColumn($alias . '.TRACE_ID');\n $criteria->addSelectColumn($alias . '.STATUS');\n $criteria->addSelectColumn($alias . '.SUBJECT');\n $criteria->addSelectColumn($alias . '.INFO');\n $criteria->addSelectColumn($alias . '.BODY');\n $criteria->addSelectColumn($alias . '.CREATED_AT');\n $criteria->addSelectColumn($alias . '.UPDATED_AT');\n }\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(MetaTableMap::COL_ID);\n $criteria->addSelectColumn(MetaTableMap::COL_WEBSITE_ID);\n $criteria->addSelectColumn(MetaTableMap::COL_WEBSITE_ROUTING_ID);\n $criteria->addSelectColumn(MetaTableMap::COL_CULTURE);\n $criteria->addSelectColumn(MetaTableMap::COL_HTML);\n } else {\n $criteria->addSelectColumn($alias . '.id');\n $criteria->addSelectColumn($alias . '.website_id');\n $criteria->addSelectColumn($alias . '.website_routing_id');\n $criteria->addSelectColumn($alias . '.culture');\n $criteria->addSelectColumn($alias . '.html');\n }\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(ItemTableMap::COL_ITEM_ID);\n $criteria->addSelectColumn(ItemTableMap::COL_ITEM_CODE);\n $criteria->addSelectColumn(ItemTableMap::COL_BIBLIO_ID);\n $criteria->addSelectColumn(ItemTableMap::COL_CALL_NUMBER);\n $criteria->addSelectColumn(ItemTableMap::COL_COLL_TYPE_ID);\n $criteria->addSelectColumn(ItemTableMap::COL_INVENTORY_CODE);\n $criteria->addSelectColumn(ItemTableMap::COL_RECEIVED_DATE);\n $criteria->addSelectColumn(ItemTableMap::COL_SUPPLIER_ID);\n $criteria->addSelectColumn(ItemTableMap::COL_ORDER_NO);\n $criteria->addSelectColumn(ItemTableMap::COL_LOCATION_ID);\n $criteria->addSelectColumn(ItemTableMap::COL_ORDER_DATE);\n $criteria->addSelectColumn(ItemTableMap::COL_ITEM_STATUS_ID);\n $criteria->addSelectColumn(ItemTableMap::COL_SITE);\n $criteria->addSelectColumn(ItemTableMap::COL_SOURCE);\n $criteria->addSelectColumn(ItemTableMap::COL_INVOICE);\n $criteria->addSelectColumn(ItemTableMap::COL_PRICE);\n $criteria->addSelectColumn(ItemTableMap::COL_PRICE_CURRENCY);\n $criteria->addSelectColumn(ItemTableMap::COL_INVOICE_DATE);\n $criteria->addSelectColumn(ItemTableMap::COL_INPUT_DATE);\n $criteria->addSelectColumn(ItemTableMap::COL_LAST_UPDATE);\n $criteria->addSelectColumn(ItemTableMap::COL_UID);\n } else {\n $criteria->addSelectColumn($alias . '.item_id');\n $criteria->addSelectColumn($alias . '.item_code');\n $criteria->addSelectColumn($alias . '.biblio_id');\n $criteria->addSelectColumn($alias . '.call_number');\n $criteria->addSelectColumn($alias . '.coll_type_id');\n $criteria->addSelectColumn($alias . '.inventory_code');\n $criteria->addSelectColumn($alias . '.received_date');\n $criteria->addSelectColumn($alias . '.supplier_id');\n $criteria->addSelectColumn($alias . '.order_no');\n $criteria->addSelectColumn($alias . '.location_id');\n $criteria->addSelectColumn($alias . '.order_date');\n $criteria->addSelectColumn($alias . '.item_status_id');\n $criteria->addSelectColumn($alias . '.site');\n $criteria->addSelectColumn($alias . '.source');\n $criteria->addSelectColumn($alias . '.invoice');\n $criteria->addSelectColumn($alias . '.price');\n $criteria->addSelectColumn($alias . '.price_currency');\n $criteria->addSelectColumn($alias . '.invoice_date');\n $criteria->addSelectColumn($alias . '.input_date');\n $criteria->addSelectColumn($alias . '.last_update');\n $criteria->addSelectColumn($alias . '.uid');\n }\n }", "public function getRelationTableForJoin($fullName) {\n if (!$this->tableName) {\n $class = $this->model;\n $this->tableName = $class::getTableName();\n }\n return \"`\" . $this->tableName . \"` as `\" . ($this->tableAlias = str_replace('.', '_', $fullName)) . \"`\";\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(RuangLongitudinalPeer::ID_RUANG);\n $criteria->addSelectColumn(RuangLongitudinalPeer::SEMESTER_ID);\n $criteria->addSelectColumn(RuangLongitudinalPeer::BLOB_ID);\n $criteria->addSelectColumn(RuangLongitudinalPeer::ASAL_DATA);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_LISPLANG_TALANG);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_LISPLANG_TALANG);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_RANGKA_PLAFON);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_RANGKA_PLAFON);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_TUTUP_PLAFON);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_TUTUP_PLAFON);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_BATA_DINDING);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_BATA_DINDING);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_PLESTER_DINDING);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_PLESTER_DINDING);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_DAUN_JENDELA);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_DAUN_JENDELA);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_DAUN_PINTU);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_DAUN_PINTU);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_KUSEN);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_KUSEN);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_TUTUP_LANTAI);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_PENUTUP_LANTAI);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_INST_LISTRIK);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_INST_LISTRIK);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_INST_AIR);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_INST_AIR);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_DRAINASE);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_DRAINASE);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_FINISH_STRUKTUR);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_FINISH_STRUKTUR);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_FINISH_PLAFON);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_FINISH_PLAFON);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_FINISH_DINDING);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_FINISH_DINDING);\n $criteria->addSelectColumn(RuangLongitudinalPeer::RUSAK_FINISH_KPJ);\n $criteria->addSelectColumn(RuangLongitudinalPeer::KET_FINISH_KPJ);\n $criteria->addSelectColumn(RuangLongitudinalPeer::BERFUNGSI);\n $criteria->addSelectColumn(RuangLongitudinalPeer::CREATE_DATE);\n $criteria->addSelectColumn(RuangLongitudinalPeer::LAST_UPDATE);\n $criteria->addSelectColumn(RuangLongitudinalPeer::SOFT_DELETE);\n $criteria->addSelectColumn(RuangLongitudinalPeer::LAST_SYNC);\n $criteria->addSelectColumn(RuangLongitudinalPeer::UPDATER_ID);\n } else {\n $criteria->addSelectColumn($alias . '.id_ruang');\n $criteria->addSelectColumn($alias . '.semester_id');\n $criteria->addSelectColumn($alias . '.blob_id');\n $criteria->addSelectColumn($alias . '.asal_data');\n $criteria->addSelectColumn($alias . '.rusak_lisplang_talang');\n $criteria->addSelectColumn($alias . '.ket_lisplang_talang');\n $criteria->addSelectColumn($alias . '.rusak_rangka_plafon');\n $criteria->addSelectColumn($alias . '.ket_rangka_plafon');\n $criteria->addSelectColumn($alias . '.rusak_tutup_plafon');\n $criteria->addSelectColumn($alias . '.ket_tutup_plafon');\n $criteria->addSelectColumn($alias . '.rusak_bata_dinding');\n $criteria->addSelectColumn($alias . '.ket_bata_dinding');\n $criteria->addSelectColumn($alias . '.rusak_plester_dinding');\n $criteria->addSelectColumn($alias . '.ket_plester_dinding');\n $criteria->addSelectColumn($alias . '.rusak_daun_jendela');\n $criteria->addSelectColumn($alias . '.ket_daun_jendela');\n $criteria->addSelectColumn($alias . '.rusak_daun_pintu');\n $criteria->addSelectColumn($alias . '.ket_daun_pintu');\n $criteria->addSelectColumn($alias . '.rusak_kusen');\n $criteria->addSelectColumn($alias . '.ket_kusen');\n $criteria->addSelectColumn($alias . '.rusak_tutup_lantai');\n $criteria->addSelectColumn($alias . '.ket_penutup_lantai');\n $criteria->addSelectColumn($alias . '.rusak_inst_listrik');\n $criteria->addSelectColumn($alias . '.ket_inst_listrik');\n $criteria->addSelectColumn($alias . '.rusak_inst_air');\n $criteria->addSelectColumn($alias . '.ket_inst_air');\n $criteria->addSelectColumn($alias . '.rusak_drainase');\n $criteria->addSelectColumn($alias . '.ket_drainase');\n $criteria->addSelectColumn($alias . '.rusak_finish_struktur');\n $criteria->addSelectColumn($alias . '.ket_finish_struktur');\n $criteria->addSelectColumn($alias . '.rusak_finish_plafon');\n $criteria->addSelectColumn($alias . '.ket_finish_plafon');\n $criteria->addSelectColumn($alias . '.rusak_finish_dinding');\n $criteria->addSelectColumn($alias . '.ket_finish_dinding');\n $criteria->addSelectColumn($alias . '.rusak_finish_kpj');\n $criteria->addSelectColumn($alias . '.ket_finish_kpj');\n $criteria->addSelectColumn($alias . '.berfungsi');\n $criteria->addSelectColumn($alias . '.create_date');\n $criteria->addSelectColumn($alias . '.last_update');\n $criteria->addSelectColumn($alias . '.soft_delete');\n $criteria->addSelectColumn($alias . '.last_sync');\n $criteria->addSelectColumn($alias . '.updater_id');\n }\n }", "private function alias($tableName)\r\n\t{\r\n\t\tif (!isset($this->tableAliases[$tableName])) {\r\n\t\t\t$this->tableAliases[$tableName] = 'tbl' . count($this->tableAliases);\r\n\t\t}\r\n\t\treturn $this->tableAliases[$tableName];\r\n\t}", "public function addJoin($assocTable, $col1, $col2, $last = true, $type = \"left\") {\n // Joins will always be on selects\n list($this->sql, $this->from) = splitString($this->sql, \"FROM\");\n // Take care of aliased columns\n if (!empty($assocTable->aliases)) {\n $this->sql .= \", \";\n foreach($assocTable->aliases as $c => $a) {\n $this->sql .= $assocTable->name . \".$c as $a,\";\n }\n // Take the comma off the end\n $this->sql = trim($this->sql, \",\");\n }\n $type = strtoupper($type);\n $this->join .= \" $type JOIN \" . $assocTable->name;\n $this->join .= \" ON \" . $this->table->name . \".\" . $col1 . \" = \" . $assocTable->name . \".\" . $col2;\n if ($last) {\n $this->sql .= \" $this->from\";\n $this->sql .= $this->join;\n }\n }", "public function column(string $column, ?string $alias = null)\n {\n $this->columns[] = array(\n 'type' => 'column',\n 'name' => $column, \n 'alias' => $alias);\n return $this;\n }", "public function setAlias(string $alias);", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n\t{\n\t\tif (null === $alias) {\n\t\t\t$criteria->addSelectColumn(CoursePeer::CODE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::DIRECTORY);\n\t\t\t$criteria->addSelectColumn(CoursePeer::DB_NAME);\n\t\t\t$criteria->addSelectColumn(CoursePeer::COURSE_LANGUAGE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::TITLE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::DESCRIPTION);\n\t\t\t$criteria->addSelectColumn(CoursePeer::CATEGORY_CODE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::VISIBILITY);\n\t\t\t$criteria->addSelectColumn(CoursePeer::SHOW_SCORE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::TUTOR_NAME);\n\t\t\t$criteria->addSelectColumn(CoursePeer::VISUAL_CODE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::DEPARTMENT_NAME);\n\t\t\t$criteria->addSelectColumn(CoursePeer::DEPARTMENT_URL);\n\t\t\t$criteria->addSelectColumn(CoursePeer::DISK_QUOTA);\n\t\t\t$criteria->addSelectColumn(CoursePeer::LAST_VISIT);\n\t\t\t$criteria->addSelectColumn(CoursePeer::LAST_EDIT);\n\t\t\t$criteria->addSelectColumn(CoursePeer::CREATION_DATE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::EXPIRATION_DATE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::TARGET_COURSE_CODE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::SUBSCRIBE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::UNSUBSCRIBE);\n\t\t\t$criteria->addSelectColumn(CoursePeer::REGISTRATION_CODE);\n\t\t} else {\n\t\t\t$criteria->addSelectColumn($alias . '.CODE');\n\t\t\t$criteria->addSelectColumn($alias . '.DIRECTORY');\n\t\t\t$criteria->addSelectColumn($alias . '.DB_NAME');\n\t\t\t$criteria->addSelectColumn($alias . '.COURSE_LANGUAGE');\n\t\t\t$criteria->addSelectColumn($alias . '.TITLE');\n\t\t\t$criteria->addSelectColumn($alias . '.DESCRIPTION');\n\t\t\t$criteria->addSelectColumn($alias . '.CATEGORY_CODE');\n\t\t\t$criteria->addSelectColumn($alias . '.VISIBILITY');\n\t\t\t$criteria->addSelectColumn($alias . '.SHOW_SCORE');\n\t\t\t$criteria->addSelectColumn($alias . '.TUTOR_NAME');\n\t\t\t$criteria->addSelectColumn($alias . '.VISUAL_CODE');\n\t\t\t$criteria->addSelectColumn($alias . '.DEPARTMENT_NAME');\n\t\t\t$criteria->addSelectColumn($alias . '.DEPARTMENT_URL');\n\t\t\t$criteria->addSelectColumn($alias . '.DISK_QUOTA');\n\t\t\t$criteria->addSelectColumn($alias . '.LAST_VISIT');\n\t\t\t$criteria->addSelectColumn($alias . '.LAST_EDIT');\n\t\t\t$criteria->addSelectColumn($alias . '.CREATION_DATE');\n\t\t\t$criteria->addSelectColumn($alias . '.EXPIRATION_DATE');\n\t\t\t$criteria->addSelectColumn($alias . '.TARGET_COURSE_CODE');\n\t\t\t$criteria->addSelectColumn($alias . '.SUBSCRIBE');\n\t\t\t$criteria->addSelectColumn($alias . '.UNSUBSCRIBE');\n\t\t\t$criteria->addSelectColumn($alias . '.REGISTRATION_CODE');\n\t\t}\n\t}", "public function table( $alias = null ) {\n return $alias ? $alias.'.'.$this->table_name : $this->table_name;\n }", "public function tableByName($alias) {\n\t}", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(MenuConfigTableMap::COL_MID);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_NAME);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_PARENT);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_ISMENU);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_CONTENT_ENGLISH);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_CONTENT);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_URI);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_STATUSTEXT);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_SECURITY_GRP);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_SESSION_VAR);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_SESSION_VAR_IN_TEXT);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_SESSION_VAR_IN_URI);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_URL_PARM_NAME);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_ACTIVE);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_SORTORDER);\n $criteria->addSelectColumn(MenuConfigTableMap::COL_ICON);\n } else {\n $criteria->addSelectColumn($alias . '.mid');\n $criteria->addSelectColumn($alias . '.name');\n $criteria->addSelectColumn($alias . '.parent');\n $criteria->addSelectColumn($alias . '.ismenu');\n $criteria->addSelectColumn($alias . '.content_english');\n $criteria->addSelectColumn($alias . '.content');\n $criteria->addSelectColumn($alias . '.uri');\n $criteria->addSelectColumn($alias . '.statustext');\n $criteria->addSelectColumn($alias . '.security_grp');\n $criteria->addSelectColumn($alias . '.session_var');\n $criteria->addSelectColumn($alias . '.session_var_in_text');\n $criteria->addSelectColumn($alias . '.session_var_in_uri');\n $criteria->addSelectColumn($alias . '.url_parm_name');\n $criteria->addSelectColumn($alias . '.active');\n $criteria->addSelectColumn($alias . '.sortorder');\n $criteria->addSelectColumn($alias . '.icon');\n }\n }", "protected function _aliasing($name, $alias, $map = [])\n\t{\n\t\tlist($first, $second) = $this->_splitFieldname($name);\n\t\tif (!$first && preg_match('/^[a-z0-9_-]+$/i', $second)) {\n\t\t\treturn $alias . \".\" . $second;\n\t\t} elseif (isset($map[$first])) {\n\t\t\treturn $map[$first] . \".\" . $second;\n\t\t}\n\t\treturn $name;\n\t}", "public function addJoin($type, $table, $alias, $on_statement, $using_statement = '', $use_index = '', $ignore_index = '')\n\t{\n\t\t// @todo: verify join type\n\t\tif (is_object($table))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$table = $table->getName();\n\t\t\t} catch (Exception $e)\n\t\t\t{\n\t\t\t\tthrow(new UnvalidObjectException(\"Table must be an object of type Table or a string\"));\n\t\t\t}\n\t\t}\n\n\t\t$this->joins[] = array('type' => $type, 'table' => $table, 'on_statement' => $on_statement, 'using_statement' => $using_statement, 'alias' => $alias, 'use_index' => $use_index, 'ignore_index' => $ignore_index);\n\t\treturn $this;\n\t}", "public function aliases()\n {\n return $this->hasMany('App\\alias');\n }", "function aliasFields($sql, $should_alias) {\n\t\tif($should_alias) return str_replace('<@', '', str_replace('@>', '', $sql));\n\t\treturn preg_replace('/<@.*?@>/', '', $sql);\n\t}", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(ReportPeer::ID);\n $criteria->addSelectColumn(ReportPeer::RESPONDER);\n $criteria->addSelectColumn(ReportPeer::CALL_DATE);\n $criteria->addSelectColumn(ReportPeer::CALL_FROM);\n $criteria->addSelectColumn(ReportPeer::CALLER_NAME);\n $criteria->addSelectColumn(ReportPeer::CALLER_PHONE_NUMBER);\n $criteria->addSelectColumn(ReportPeer::CALL_LOCATION);\n $criteria->addSelectColumn(ReportPeer::CALL_SPECIES);\n $criteria->addSelectColumn(ReportPeer::WHEN_FIRST_SEEN);\n $criteria->addSelectColumn(ReportPeer::CALL_COMMENTS);\n $criteria->addSelectColumn(ReportPeer::CALL_REFERRED_TO);\n $criteria->addSelectColumn(ReportPeer::CALL_CONDITION);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATOR_SUPPORT);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_DATE);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_LAT_LOCATION);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_LON_LOCATION);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_LOCATION_ACCURACY);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_PHYSICAL_LOCATION);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_SPECIES);\n $criteria->addSelectColumn(ReportPeer::ANIMAL_NOT_FOUND);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_CONDITION);\n $criteria->addSelectColumn(ReportPeer::TAGS);\n $criteria->addSelectColumn(ReportPeer::DISPOSITION);\n $criteria->addSelectColumn(ReportPeer::SEAL_PICKUP);\n $criteria->addSelectColumn(ReportPeer::SEX);\n $criteria->addSelectColumn(ReportPeer::WEIGHT);\n $criteria->addSelectColumn(ReportPeer::STRAIGHT_LENGTH);\n $criteria->addSelectColumn(ReportPeer::CONTOUR_LENGTH);\n $criteria->addSelectColumn(ReportPeer::GIRTH);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_COMMENTS);\n $criteria->addSelectColumn(ReportPeer::IS_PHOTO_TAKEN);\n $criteria->addSelectColumn(ReportPeer::IS_CON_SICK);\n $criteria->addSelectColumn(ReportPeer::IS_CON_INJURED);\n $criteria->addSelectColumn(ReportPeer::IS_CON_OUT_OF_HABITAT);\n $criteria->addSelectColumn(ReportPeer::IS_CON_DEEMED_RELEASABLE);\n $criteria->addSelectColumn(ReportPeer::IS_CON_ABANDONED);\n $criteria->addSelectColumn(ReportPeer::IS_CON_INACCESSIBLE);\n $criteria->addSelectColumn(ReportPeer::IS_CON_LOCATION_HAZARD_TO_ANIMAL);\n $criteria->addSelectColumn(ReportPeer::IS_CON_LOCATION_HAZARD_TO_HUMANS);\n $criteria->addSelectColumn(ReportPeer::IS_CON_UNKNOWN);\n $criteria->addSelectColumn(ReportPeer::IS_CON_OTHER);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_LEFT_AT_SITE);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_IMMEDIATE_RELEASE_AT_SITE);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_RELOCATED);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_DIED_AT_SITE);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_DIED_DURING_TRANSPORT);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_EUTHANIZED_AT_SITE);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_EUTHANIZED_DURING_TRANSPORT);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_TRANSFERRED_TO_REHAB);\n $criteria->addSelectColumn(ReportPeer::IS_ACTION_OTHER);\n $criteria->addSelectColumn(ReportPeer::RELOCATED_LOCATION);\n $criteria->addSelectColumn(ReportPeer::VOLUNTEER_ID);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_NUTRITIONAL_CONDITION);\n $criteria->addSelectColumn(ReportPeer::INVESTIGATION_AGE_CLASS);\n $criteria->addSelectColumn(ReportPeer::LIVE_ANIMALS_COMMENTS);\n } else {\n $criteria->addSelectColumn($alias . '.id');\n $criteria->addSelectColumn($alias . '.responder');\n $criteria->addSelectColumn($alias . '.call_date');\n $criteria->addSelectColumn($alias . '.call_from');\n $criteria->addSelectColumn($alias . '.caller_name');\n $criteria->addSelectColumn($alias . '.caller_phone_number');\n $criteria->addSelectColumn($alias . '.call_location');\n $criteria->addSelectColumn($alias . '.call_species');\n $criteria->addSelectColumn($alias . '.when_first_seen');\n $criteria->addSelectColumn($alias . '.call_comments');\n $criteria->addSelectColumn($alias . '.call_referred_to');\n $criteria->addSelectColumn($alias . '.call_condition');\n $criteria->addSelectColumn($alias . '.investigator_support');\n $criteria->addSelectColumn($alias . '.investigation_date');\n $criteria->addSelectColumn($alias . '.investigation_lat_location');\n $criteria->addSelectColumn($alias . '.investigation_lon_location');\n $criteria->addSelectColumn($alias . '.investigation_location_accuracy');\n $criteria->addSelectColumn($alias . '.investigation_physical_location');\n $criteria->addSelectColumn($alias . '.investigation_species');\n $criteria->addSelectColumn($alias . '.animal_not_found');\n $criteria->addSelectColumn($alias . '.investigation_condition');\n $criteria->addSelectColumn($alias . '.tags');\n $criteria->addSelectColumn($alias . '.disposition');\n $criteria->addSelectColumn($alias . '.seal_pickup');\n $criteria->addSelectColumn($alias . '.sex');\n $criteria->addSelectColumn($alias . '.weight');\n $criteria->addSelectColumn($alias . '.straight_length');\n $criteria->addSelectColumn($alias . '.contour_length');\n $criteria->addSelectColumn($alias . '.girth');\n $criteria->addSelectColumn($alias . '.investigation_comments');\n $criteria->addSelectColumn($alias . '.is_photo_taken');\n $criteria->addSelectColumn($alias . '.is_con_sick');\n $criteria->addSelectColumn($alias . '.is_con_injured');\n $criteria->addSelectColumn($alias . '.is_con_out_of_habitat');\n $criteria->addSelectColumn($alias . '.is_con_deemed_releasable');\n $criteria->addSelectColumn($alias . '.is_con_abandoned');\n $criteria->addSelectColumn($alias . '.is_con_inaccessible');\n $criteria->addSelectColumn($alias . '.is_con_location_hazard_to_animal');\n $criteria->addSelectColumn($alias . '.is_con_location_hazard_to_humans');\n $criteria->addSelectColumn($alias . '.is_con_unknown');\n $criteria->addSelectColumn($alias . '.is_con_other');\n $criteria->addSelectColumn($alias . '.is_action_left_at_site');\n $criteria->addSelectColumn($alias . '.is_action_immediate_release_at_site');\n $criteria->addSelectColumn($alias . '.is_action_relocated');\n $criteria->addSelectColumn($alias . '.is_action_died_at_site');\n $criteria->addSelectColumn($alias . '.is_action_died_during_transport');\n $criteria->addSelectColumn($alias . '.is_action_euthanized_at_site');\n $criteria->addSelectColumn($alias . '.is_action_euthanized_during_transport');\n $criteria->addSelectColumn($alias . '.is_action_transferred_to_rehab');\n $criteria->addSelectColumn($alias . '.is_action_other');\n $criteria->addSelectColumn($alias . '.relocated_location');\n $criteria->addSelectColumn($alias . '.volunteer_id');\n $criteria->addSelectColumn($alias . '.investigation_nutritional_condition');\n $criteria->addSelectColumn($alias . '.investigation_age_class');\n $criteria->addSelectColumn($alias . '.live_animals_comments');\n }\n }", "public function column(string $name, ?string $alias = null, ?string $value = null, ?string $paramName = null): Query\n {\n $this->resetStatement();\n $key = $alias ?? $name;\n $paramName = $paramName ?? $key;\n $paramName = $this->sanitizeParameterName($paramName);\n $this->columns[$key] = new Column($name, $key, $paramName);\n $this->parameters[$paramName] = $value;\n return $this;\n }", "public function getTableAlias($bIncludeSeparator = false)\n {\n // @todo (Pablo - 2019-04-15) - Deprecate $this->tableAlias\n $sOut = static::TABLE_ALIAS ?? $this->tableAlias ?? '';\n\n if (empty($sOut)) {\n\n $sTable = strtolower($this->getTableName());\n $sTable = preg_replace('/[^a-z_]/', '', $sTable);\n $sTable = preg_replace('/_/', ' ', $sTable);\n $aTable = explode(' ', $sTable);\n\n foreach ($aTable as $sWord) {\n $sOut .= $sWord[0];\n }\n }\n\n return !empty($sOut) && $bIncludeSeparator\n ? $sOut . '.'\n : $sOut;\n }", "public function using($alias);", "public function aliases();", "public final function setAlias($alias)\n {\n if (isset($this->tbl) && isset($alias))\n $this->alias = $alias;\n\n return $this;\n }", "public function constructInnerJoinSql(Table $fromTable, $usingThrough=false, $alias=null)\n\t{\n\t\tif ($usingThrough)\n\t\t{\n\t\t\t$joinTable = $fromTable;\n\t\t\t$joinTableName = $fromTable->getFullyQualifiedTableName();\n\t\t\t$fromTableName = Table::load($this->className)->getFullyQualifiedTableName();\n \t\t}\n\t\telse\n\t\t{\n\t\t\t$joinTable = Table::load($this->className);\n\t\t\t$joinTableName = $joinTable->getFullyQualifiedTableName();\n\t\t\t$fromTableName = $fromTable->getFullyQualifiedTableName();\n\t\t}\n\n\t\t// need to flip the logic when the key is on the other table\n\t\tif ($this instanceof HasMany || $this instanceof HasOne)\n\t\t{\n\t\t\t$this->setKeys($fromTable->class->getName());\n\n\t\t\tif ($usingThrough)\n\t\t\t{\n\t\t\t\t$foreignKey = $this->primaryKey[0];\n\t\t\t\t$joinPrimaryKey = $this->foreignKey[0];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$joinPrimaryKey = $this->foreignKey[0];\n\t\t\t\t$foreignKey = $this->primaryKey[0];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$foreignKey = $this->foreignKey[0];\n\t\t\t$joinPrimaryKey = $this->primaryKey[0];\n\t\t}\n\n\t\tif (!is_null($alias))\n\t\t{\n\t\t\t$aliasedJoinTableName = $alias = $this->getTable()->conn->quoteName($alias);\n\t\t\t$alias .= ' ';\n\t\t}\n\t\telse\n\t\t\t$aliasedJoinTableName = $joinTableName;\n\n\t\treturn \"INNER JOIN $joinTableName {$alias}ON($fromTableName.$foreignKey = $aliasedJoinTableName.$joinPrimaryKey)\";\n\t}", "public function tableAliases()\n {\n return $this->_tableAliases;\n }", "protected function addColumn($table, $column, $alias)\n {\n if(!$this->checkColumn($table, $column, $alias)){\n array_push($this->columns, new Column($column, $alias, $table));\n }\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(CastleTypePeer::ID);\n $criteria->addSelectColumn(CastleTypePeer::USER_ID);\n $criteria->addSelectColumn(CastleTypePeer::TYPE);\n $criteria->addSelectColumn(CastleTypePeer::NAME);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_ST);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_SK);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_BS);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_AS);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_PR);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_LR);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_HK);\n $criteria->addSelectColumn(CastleTypePeer::TOTAL_OK);\n $criteria->addSelectColumn(CastleTypePeer::MISSION_ST);\n $criteria->addSelectColumn(CastleTypePeer::MISSION_SK);\n $criteria->addSelectColumn(CastleTypePeer::MISSION_BS);\n $criteria->addSelectColumn(CastleTypePeer::MISSION_AS);\n $criteria->addSelectColumn(CastleTypePeer::MISSION_PR);\n $criteria->addSelectColumn(CastleTypePeer::MISSION_LR);\n $criteria->addSelectColumn(CastleTypePeer::BERGFRIED);\n $criteria->addSelectColumn(CastleTypePeer::ZEUGHAUS);\n $criteria->addSelectColumn(CastleTypePeer::TAVERNE);\n $criteria->addSelectColumn(CastleTypePeer::BIBLIOTHEK);\n $criteria->addSelectColumn(CastleTypePeer::WEHRANLAGE);\n $criteria->addSelectColumn(CastleTypePeer::MARKT);\n $criteria->addSelectColumn(CastleTypePeer::BAUERNHOF);\n $criteria->addSelectColumn(CastleTypePeer::HOLZFAELLER);\n $criteria->addSelectColumn(CastleTypePeer::HOLZLAGER);\n $criteria->addSelectColumn(CastleTypePeer::STEINBRUCH);\n $criteria->addSelectColumn(CastleTypePeer::STEINLAGER);\n $criteria->addSelectColumn(CastleTypePeer::ERZMINE);\n $criteria->addSelectColumn(CastleTypePeer::ERZLAGER);\n $criteria->addSelectColumn(CastleTypePeer::LANGBOGEN);\n $criteria->addSelectColumn(CastleTypePeer::DREIFELDERWIRTSCHAFT);\n $criteria->addSelectColumn(CastleTypePeer::KUMMET);\n $criteria->addSelectColumn(CastleTypePeer::VORRATSKELLER);\n $criteria->addSelectColumn(CastleTypePeer::STEIGBUEGEL);\n $criteria->addSelectColumn(CastleTypePeer::WAFFENSCHMIED);\n $criteria->addSelectColumn(CastleTypePeer::RUESTUNGSSCHMIED);\n $criteria->addSelectColumn(CastleTypePeer::BIERPRUEFER);\n $criteria->addSelectColumn(CastleTypePeer::SCHWERTSCHMIED);\n $criteria->addSelectColumn(CastleTypePeer::EISENHAERTUNG);\n $criteria->addSelectColumn(CastleTypePeer::ARMBRUST);\n $criteria->addSelectColumn(CastleTypePeer::GIFTPFEILE);\n $criteria->addSelectColumn(CastleTypePeer::PFERDEZUCHT);\n $criteria->addSelectColumn(CastleTypePeer::WAFFENHERSTELLUNG);\n $criteria->addSelectColumn(CastleTypePeer::PFERDEPANZERUNG);\n $criteria->addSelectColumn(CastleTypePeer::SCHUBKARREN);\n $criteria->addSelectColumn(CastleTypePeer::BRANDPFEILE);\n $criteria->addSelectColumn(CastleTypePeer::HUFSCHMIED);\n $criteria->addSelectColumn(CastleTypePeer::UMGEBUNGSKARTE);\n $criteria->addSelectColumn(CastleTypePeer::ZISTERNE);\n $criteria->addSelectColumn(CastleTypePeer::MAX_POPULATION);\n $criteria->addSelectColumn(CastleTypePeer::FREE_POPULATION);\n $criteria->addSelectColumn(CastleTypePeer::CREATED_AT);\n $criteria->addSelectColumn(CastleTypePeer::UPDATED_AT);\n } else {\n $criteria->addSelectColumn($alias . '.id');\n $criteria->addSelectColumn($alias . '.user_id');\n $criteria->addSelectColumn($alias . '.type');\n $criteria->addSelectColumn($alias . '.name');\n $criteria->addSelectColumn($alias . '.total_st');\n $criteria->addSelectColumn($alias . '.total_sk');\n $criteria->addSelectColumn($alias . '.total_bs');\n $criteria->addSelectColumn($alias . '.total_as');\n $criteria->addSelectColumn($alias . '.total_pr');\n $criteria->addSelectColumn($alias . '.total_lr');\n $criteria->addSelectColumn($alias . '.total_hk');\n $criteria->addSelectColumn($alias . '.total_ok');\n $criteria->addSelectColumn($alias . '.mission_st');\n $criteria->addSelectColumn($alias . '.mission_sk');\n $criteria->addSelectColumn($alias . '.mission_bs');\n $criteria->addSelectColumn($alias . '.mission_as');\n $criteria->addSelectColumn($alias . '.mission_pr');\n $criteria->addSelectColumn($alias . '.mission_lr');\n $criteria->addSelectColumn($alias . '.bergfried');\n $criteria->addSelectColumn($alias . '.zeughaus');\n $criteria->addSelectColumn($alias . '.taverne');\n $criteria->addSelectColumn($alias . '.bibliothek');\n $criteria->addSelectColumn($alias . '.wehranlage');\n $criteria->addSelectColumn($alias . '.markt');\n $criteria->addSelectColumn($alias . '.bauernhof');\n $criteria->addSelectColumn($alias . '.holzfaeller');\n $criteria->addSelectColumn($alias . '.holzlager');\n $criteria->addSelectColumn($alias . '.steinbruch');\n $criteria->addSelectColumn($alias . '.steinlager');\n $criteria->addSelectColumn($alias . '.erzmine');\n $criteria->addSelectColumn($alias . '.erzlager');\n $criteria->addSelectColumn($alias . '.langbogen');\n $criteria->addSelectColumn($alias . '.dreifelderwirtschaft');\n $criteria->addSelectColumn($alias . '.kummet');\n $criteria->addSelectColumn($alias . '.vorratskeller');\n $criteria->addSelectColumn($alias . '.steigbuegel');\n $criteria->addSelectColumn($alias . '.waffenschmied');\n $criteria->addSelectColumn($alias . '.ruestungsschmied');\n $criteria->addSelectColumn($alias . '.bierpruefer');\n $criteria->addSelectColumn($alias . '.schwertschmied');\n $criteria->addSelectColumn($alias . '.eisenhaertung');\n $criteria->addSelectColumn($alias . '.armbrust');\n $criteria->addSelectColumn($alias . '.giftpfeile');\n $criteria->addSelectColumn($alias . '.pferdezucht');\n $criteria->addSelectColumn($alias . '.waffenherstellung');\n $criteria->addSelectColumn($alias . '.pferdepanzerung');\n $criteria->addSelectColumn($alias . '.schubkarren');\n $criteria->addSelectColumn($alias . '.brandpfeile');\n $criteria->addSelectColumn($alias . '.hufschmied');\n $criteria->addSelectColumn($alias . '.umgebungskarte');\n $criteria->addSelectColumn($alias . '.zisterne');\n $criteria->addSelectColumn($alias . '.max_population');\n $criteria->addSelectColumn($alias . '.free_population');\n $criteria->addSelectColumn($alias . '.created_at');\n $criteria->addSelectColumn($alias . '.updated_at');\n }\n }", "public function aliased($field)\n {\n return \"{$this->getAlias()}.{$field}\";\n }", "public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments = []);", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(SertifikasiPdPeer::ID_SERT_PD);\n $criteria->addSelectColumn(SertifikasiPdPeer::ID_JENIS_SERTIFIKASI);\n $criteria->addSelectColumn(SertifikasiPdPeer::PESERTA_DIDIK_ID);\n $criteria->addSelectColumn(SertifikasiPdPeer::BIDANG_STUDI_ID);\n $criteria->addSelectColumn(SertifikasiPdPeer::NO_SERT_PD);\n $criteria->addSelectColumn(SertifikasiPdPeer::TGL_SERT_PD);\n $criteria->addSelectColumn(SertifikasiPdPeer::TGL_EXP_SERT_PD);\n $criteria->addSelectColumn(SertifikasiPdPeer::NO_PESERTA_SERT_PD);\n $criteria->addSelectColumn(SertifikasiPdPeer::KODE_LEMB_SERT);\n $criteria->addSelectColumn(SertifikasiPdPeer::CREATE_DATE);\n $criteria->addSelectColumn(SertifikasiPdPeer::LAST_UPDATE);\n $criteria->addSelectColumn(SertifikasiPdPeer::SOFT_DELETE);\n $criteria->addSelectColumn(SertifikasiPdPeer::LAST_SYNC);\n $criteria->addSelectColumn(SertifikasiPdPeer::UPDATER_ID);\n } else {\n $criteria->addSelectColumn($alias . '.id_sert_pd');\n $criteria->addSelectColumn($alias . '.id_jenis_sertifikasi');\n $criteria->addSelectColumn($alias . '.peserta_didik_id');\n $criteria->addSelectColumn($alias . '.bidang_studi_id');\n $criteria->addSelectColumn($alias . '.no_sert_pd');\n $criteria->addSelectColumn($alias . '.tgl_sert_pd');\n $criteria->addSelectColumn($alias . '.tgl_exp_sert_pd');\n $criteria->addSelectColumn($alias . '.no_peserta_sert_pd');\n $criteria->addSelectColumn($alias . '.kode_lemb_sert');\n $criteria->addSelectColumn($alias . '.create_date');\n $criteria->addSelectColumn($alias . '.last_update');\n $criteria->addSelectColumn($alias . '.soft_delete');\n $criteria->addSelectColumn($alias . '.last_sync');\n $criteria->addSelectColumn($alias . '.updater_id');\n }\n }", "public function testJoinWithoutAlias()\n {\n $query = (new Select($this->mockConnection))->join('join', 'join.tableId', '=', 'table.id');\n $array = $query->toArray();\n\n $this->assertInstanceOf(Select::class, $query);\n $this->assertArrayHasKey('join', $array);\n $this->assertCount(1, $array['join']);\n $this->assertEquals([\n 'type' => 'inner',\n 'table' => 'join',\n 'alias' => null,\n 'statement' => [\n 'where' => [\n [\n 'column' => 'join.tableId',\n 'operator' => '=',\n 'value' => 'table.id',\n 'boolean' => 'and',\n ]\n ],\n ]\n ], $array['join'][0]);\n $this->assertInstanceOf(Column::class, $array['join'][0]['statement']['where'][0]['value']);\n }", "public function join(\n $table,\n $column1,\n $operator,\n $column2,\n $type\n );", "protected function getAliasedPivotColumns()\n {\n $defaults = array (\n $this->foreignKey,\n $this->otherKey\n );\n $columns = array ();\n foreach ( array_merge ( $defaults, $this->pivotColumns ) as $column ) {\n $columns [] = $this->table . '.' . $column . ' as pivot_' . $column;\n }\n return array_unique ( $columns );\n }", "public function addTableAlias($alias)\n {\n if (isset($this->_tableAliases[$alias])) {\n $this->_tableAliases[$alias]++;\n } else {\n $this->_tableAliases[$alias] = 1;\n }\n }", "public function innerJoin(Select $table, $alias, $on)\n {\n $this->joins[] = array(\"subject\"=>$table, \"ali\"=>$alias, \"on\"=>$on, \"join\"=>\"INNER JOIN\");\n //var_dump($this);\n return $this;\n \n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::BESTANDNUMMER);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::MUTATIEKODE);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::ATCCODE);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::DDDAANTAL);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::DDDEENHEID_THESAURUSNUMMER);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::DDDEENHEID);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::DDD_TOEDIENINGSWEG_THESAURUSNUMMER);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::DDDTOEDIENINGSWEG);\n $criteria->addSelectColumn(GsDailyDefinedDosePeer::DDD_STATUSAANDUIDING);\n } else {\n $criteria->addSelectColumn($alias . '.bestandnummer');\n $criteria->addSelectColumn($alias . '.mutatiekode');\n $criteria->addSelectColumn($alias . '.atccode');\n $criteria->addSelectColumn($alias . '.dddaantal');\n $criteria->addSelectColumn($alias . '.dddeenheid_thesaurusnummer');\n $criteria->addSelectColumn($alias . '.dddeenheid');\n $criteria->addSelectColumn($alias . '.ddd_toedieningsweg_thesaurusnummer');\n $criteria->addSelectColumn($alias . '.dddtoedieningsweg');\n $criteria->addSelectColumn($alias . '.ddd_statusaanduiding');\n }\n }", "public function useAlias($sAlias, $sTable)\n {\n if(false === $this->hasAlias($sAlias)) {\n $this->aAliasBag[$sAlias] = $sTable;\n }\n \n }", "public function joinUsing($table, $column, $type = 'INNER')\n\t{\n\t\treturn $this->join($table, $this->from . '.' . $column, '=', $table . '.' . $column, $type);\n\t}", "public function aliasField(string $field): string;", "public function getAlias($alias);", "public static function compoundAlias($alias, $name) {\n\t\t\treturn '`' . $alias . '.' . $name . '`';\n\t\t}", "public function joinExamen($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Examen');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Examen');\n }\n\n return $this;\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(AliFcTableMap::COL_AID);\n $criteria->addSelectColumn(AliFcTableMap::COL_RCODE);\n $criteria->addSelectColumn(AliFcTableMap::COL_MCODE);\n $criteria->addSelectColumn(AliFcTableMap::COL_NAME_T);\n $criteria->addSelectColumn(AliFcTableMap::COL_MPOSI);\n $criteria->addSelectColumn(AliFcTableMap::COL_UPA_CODE);\n $criteria->addSelectColumn(AliFcTableMap::COL_UPA_NAME);\n $criteria->addSelectColumn(AliFcTableMap::COL_BPOSI);\n $criteria->addSelectColumn(AliFcTableMap::COL_LEVEL);\n $criteria->addSelectColumn(AliFcTableMap::COL_GEN);\n $criteria->addSelectColumn(AliFcTableMap::COL_BTYPE);\n $criteria->addSelectColumn(AliFcTableMap::COL_PV);\n $criteria->addSelectColumn(AliFcTableMap::COL_PERCER);\n $criteria->addSelectColumn(AliFcTableMap::COL_TOTAL);\n $criteria->addSelectColumn(AliFcTableMap::COL_TOTAL_R);\n $criteria->addSelectColumn(AliFcTableMap::COL_CTAX);\n $criteria->addSelectColumn(AliFcTableMap::COL_CVAT);\n $criteria->addSelectColumn(AliFcTableMap::COL_AMT);\n $criteria->addSelectColumn(AliFcTableMap::COL_OON);\n $criteria->addSelectColumn(AliFcTableMap::COL_FDATE);\n $criteria->addSelectColumn(AliFcTableMap::COL_TDATE);\n $criteria->addSelectColumn(AliFcTableMap::COL_POS_CUR);\n $criteria->addSelectColumn(AliFcTableMap::COL_CRATE);\n $criteria->addSelectColumn(AliFcTableMap::COL_LOCATIONBASE);\n $criteria->addSelectColumn(AliFcTableMap::COL_SANO);\n $criteria->addSelectColumn(AliFcTableMap::COL_PCODE);\n $criteria->addSelectColumn(AliFcTableMap::COL_QTY);\n } else {\n $criteria->addSelectColumn($alias . '.aid');\n $criteria->addSelectColumn($alias . '.rcode');\n $criteria->addSelectColumn($alias . '.mcode');\n $criteria->addSelectColumn($alias . '.name_t');\n $criteria->addSelectColumn($alias . '.mposi');\n $criteria->addSelectColumn($alias . '.upa_code');\n $criteria->addSelectColumn($alias . '.upa_name');\n $criteria->addSelectColumn($alias . '.bposi');\n $criteria->addSelectColumn($alias . '.level');\n $criteria->addSelectColumn($alias . '.gen');\n $criteria->addSelectColumn($alias . '.btype');\n $criteria->addSelectColumn($alias . '.pv');\n $criteria->addSelectColumn($alias . '.percer');\n $criteria->addSelectColumn($alias . '.total');\n $criteria->addSelectColumn($alias . '.total_r');\n $criteria->addSelectColumn($alias . '.ctax');\n $criteria->addSelectColumn($alias . '.cvat');\n $criteria->addSelectColumn($alias . '.amt');\n $criteria->addSelectColumn($alias . '.oon');\n $criteria->addSelectColumn($alias . '.fdate');\n $criteria->addSelectColumn($alias . '.tdate');\n $criteria->addSelectColumn($alias . '.pos_cur');\n $criteria->addSelectColumn($alias . '.crate');\n $criteria->addSelectColumn($alias . '.locationbase');\n $criteria->addSelectColumn($alias . '.sano');\n $criteria->addSelectColumn($alias . '.pcode');\n $criteria->addSelectColumn($alias . '.qty');\n }\n }", "public function getTableAlias($property)\n {\n $associationParts = explode('.', $property);\n $tableAlias = $this->metadata->getTableName();\n\n while (count($associationParts) > 1) {\n $column = array_shift($associationParts);\n $found = false;\n foreach ($this->joins as $join) {\n if ($join['source'] == $tableAlias . '.' . $column) {\n $tableAlias = $join['target'];\n $found = true;\n }\n }\n if (!$found) {\n throw new Exception(\"Could not find join \" . $column . \". Might not exist\");\n }\n }\n\n return $tableAlias . \".\" . $associationParts[0];\n }", "public function join(string $name, ?string $alias = null, ?string $condition = null): Query\n {\n $this->resetStatement();\n $key = $alias ?? $name;\n $this->tables[$key] = new Table($name, $alias, 'JOIN', $condition);\n return $this;\n }", "function alias();", "public function innerJoin($fromAlias, $join, $alias, $condition = null)\n {\n return $this->add('join', array(\n $fromAlias => array(\n 'joinType' => 'inner',\n 'joinTable' => $join,\n 'joinAlias' => $alias,\n 'joinCondition' => $condition\n )\n ), true);\n }", "public function testQueryWithCustomAlias() {\n\t\t$model = 'lithium\\tests\\mocks\\data\\model\\MockQueryComment';\n\n\t\t$query = new Query([\n\t\t\t'type' => 'read',\n\t\t\t'model' => $model,\n\t\t\t'source' => 'my_custom_table',\n\t\t\t'alias' => 'MyCustomAlias'\n\t\t]);\n\t\t$result = $query->export($this->_db);\n\t\t$this->assertEqual('{my_custom_table}', $result['source']);\n\t\t$this->assertEqual('AS {MyCustomAlias}', $result['alias']);\n\t}" ]
[ "0.66060513", "0.6595331", "0.6355234", "0.633762", "0.6310247", "0.630587", "0.6303183", "0.6278325", "0.62193006", "0.6163846", "0.6160412", "0.611915", "0.6078692", "0.6072368", "0.600528", "0.59347546", "0.5932669", "0.5931049", "0.59169686", "0.58962625", "0.5871634", "0.57213193", "0.5706553", "0.5649433", "0.56479794", "0.562527", "0.56170255", "0.55962247", "0.55922306", "0.5569528", "0.55693406", "0.5564968", "0.5520159", "0.55061966", "0.55055356", "0.5479563", "0.5410971", "0.5399631", "0.53987163", "0.537368", "0.53644305", "0.53178525", "0.5299794", "0.5298633", "0.5298137", "0.52911395", "0.5256572", "0.5246851", "0.5245885", "0.5242463", "0.51929885", "0.51844317", "0.5169674", "0.5160769", "0.51545084", "0.51442504", "0.51394844", "0.5125778", "0.5122369", "0.5120846", "0.5119425", "0.51169854", "0.51125944", "0.51038325", "0.5098182", "0.5093405", "0.5086279", "0.50851136", "0.5065273", "0.5062698", "0.50455546", "0.5044939", "0.5044713", "0.50446683", "0.504359", "0.5039118", "0.50329244", "0.5029799", "0.50214857", "0.50077033", "0.4999593", "0.49932063", "0.4993178", "0.4992497", "0.49922588", "0.49850693", "0.49728212", "0.49662036", "0.4965834", "0.49424654", "0.492864", "0.49232703", "0.49057293", "0.48989522", "0.48959264", "0.48852208", "0.48713404", "0.48688707", "0.4868659", "0.48670676" ]
0.6651856
0
Add all the columns needed to create a new object. Note: any columns that were marked with lazyLoad="true" in the XML schema will not be added to the select list and only loaded on demand.
public static function addSelectColumns(Criteria $criteria, $alias = null) { if (null === $alias) { $criteria->addSelectColumn(CastleTypePeer::ID); $criteria->addSelectColumn(CastleTypePeer::USER_ID); $criteria->addSelectColumn(CastleTypePeer::TYPE); $criteria->addSelectColumn(CastleTypePeer::NAME); $criteria->addSelectColumn(CastleTypePeer::TOTAL_ST); $criteria->addSelectColumn(CastleTypePeer::TOTAL_SK); $criteria->addSelectColumn(CastleTypePeer::TOTAL_BS); $criteria->addSelectColumn(CastleTypePeer::TOTAL_AS); $criteria->addSelectColumn(CastleTypePeer::TOTAL_PR); $criteria->addSelectColumn(CastleTypePeer::TOTAL_LR); $criteria->addSelectColumn(CastleTypePeer::TOTAL_HK); $criteria->addSelectColumn(CastleTypePeer::TOTAL_OK); $criteria->addSelectColumn(CastleTypePeer::MISSION_ST); $criteria->addSelectColumn(CastleTypePeer::MISSION_SK); $criteria->addSelectColumn(CastleTypePeer::MISSION_BS); $criteria->addSelectColumn(CastleTypePeer::MISSION_AS); $criteria->addSelectColumn(CastleTypePeer::MISSION_PR); $criteria->addSelectColumn(CastleTypePeer::MISSION_LR); $criteria->addSelectColumn(CastleTypePeer::BERGFRIED); $criteria->addSelectColumn(CastleTypePeer::ZEUGHAUS); $criteria->addSelectColumn(CastleTypePeer::TAVERNE); $criteria->addSelectColumn(CastleTypePeer::BIBLIOTHEK); $criteria->addSelectColumn(CastleTypePeer::WEHRANLAGE); $criteria->addSelectColumn(CastleTypePeer::MARKT); $criteria->addSelectColumn(CastleTypePeer::BAUERNHOF); $criteria->addSelectColumn(CastleTypePeer::HOLZFAELLER); $criteria->addSelectColumn(CastleTypePeer::HOLZLAGER); $criteria->addSelectColumn(CastleTypePeer::STEINBRUCH); $criteria->addSelectColumn(CastleTypePeer::STEINLAGER); $criteria->addSelectColumn(CastleTypePeer::ERZMINE); $criteria->addSelectColumn(CastleTypePeer::ERZLAGER); $criteria->addSelectColumn(CastleTypePeer::LANGBOGEN); $criteria->addSelectColumn(CastleTypePeer::DREIFELDERWIRTSCHAFT); $criteria->addSelectColumn(CastleTypePeer::KUMMET); $criteria->addSelectColumn(CastleTypePeer::VORRATSKELLER); $criteria->addSelectColumn(CastleTypePeer::STEIGBUEGEL); $criteria->addSelectColumn(CastleTypePeer::WAFFENSCHMIED); $criteria->addSelectColumn(CastleTypePeer::RUESTUNGSSCHMIED); $criteria->addSelectColumn(CastleTypePeer::BIERPRUEFER); $criteria->addSelectColumn(CastleTypePeer::SCHWERTSCHMIED); $criteria->addSelectColumn(CastleTypePeer::EISENHAERTUNG); $criteria->addSelectColumn(CastleTypePeer::ARMBRUST); $criteria->addSelectColumn(CastleTypePeer::GIFTPFEILE); $criteria->addSelectColumn(CastleTypePeer::PFERDEZUCHT); $criteria->addSelectColumn(CastleTypePeer::WAFFENHERSTELLUNG); $criteria->addSelectColumn(CastleTypePeer::PFERDEPANZERUNG); $criteria->addSelectColumn(CastleTypePeer::SCHUBKARREN); $criteria->addSelectColumn(CastleTypePeer::BRANDPFEILE); $criteria->addSelectColumn(CastleTypePeer::HUFSCHMIED); $criteria->addSelectColumn(CastleTypePeer::UMGEBUNGSKARTE); $criteria->addSelectColumn(CastleTypePeer::ZISTERNE); $criteria->addSelectColumn(CastleTypePeer::MAX_POPULATION); $criteria->addSelectColumn(CastleTypePeer::FREE_POPULATION); $criteria->addSelectColumn(CastleTypePeer::CREATED_AT); $criteria->addSelectColumn(CastleTypePeer::UPDATED_AT); } else { $criteria->addSelectColumn($alias . '.id'); $criteria->addSelectColumn($alias . '.user_id'); $criteria->addSelectColumn($alias . '.type'); $criteria->addSelectColumn($alias . '.name'); $criteria->addSelectColumn($alias . '.total_st'); $criteria->addSelectColumn($alias . '.total_sk'); $criteria->addSelectColumn($alias . '.total_bs'); $criteria->addSelectColumn($alias . '.total_as'); $criteria->addSelectColumn($alias . '.total_pr'); $criteria->addSelectColumn($alias . '.total_lr'); $criteria->addSelectColumn($alias . '.total_hk'); $criteria->addSelectColumn($alias . '.total_ok'); $criteria->addSelectColumn($alias . '.mission_st'); $criteria->addSelectColumn($alias . '.mission_sk'); $criteria->addSelectColumn($alias . '.mission_bs'); $criteria->addSelectColumn($alias . '.mission_as'); $criteria->addSelectColumn($alias . '.mission_pr'); $criteria->addSelectColumn($alias . '.mission_lr'); $criteria->addSelectColumn($alias . '.bergfried'); $criteria->addSelectColumn($alias . '.zeughaus'); $criteria->addSelectColumn($alias . '.taverne'); $criteria->addSelectColumn($alias . '.bibliothek'); $criteria->addSelectColumn($alias . '.wehranlage'); $criteria->addSelectColumn($alias . '.markt'); $criteria->addSelectColumn($alias . '.bauernhof'); $criteria->addSelectColumn($alias . '.holzfaeller'); $criteria->addSelectColumn($alias . '.holzlager'); $criteria->addSelectColumn($alias . '.steinbruch'); $criteria->addSelectColumn($alias . '.steinlager'); $criteria->addSelectColumn($alias . '.erzmine'); $criteria->addSelectColumn($alias . '.erzlager'); $criteria->addSelectColumn($alias . '.langbogen'); $criteria->addSelectColumn($alias . '.dreifelderwirtschaft'); $criteria->addSelectColumn($alias . '.kummet'); $criteria->addSelectColumn($alias . '.vorratskeller'); $criteria->addSelectColumn($alias . '.steigbuegel'); $criteria->addSelectColumn($alias . '.waffenschmied'); $criteria->addSelectColumn($alias . '.ruestungsschmied'); $criteria->addSelectColumn($alias . '.bierpruefer'); $criteria->addSelectColumn($alias . '.schwertschmied'); $criteria->addSelectColumn($alias . '.eisenhaertung'); $criteria->addSelectColumn($alias . '.armbrust'); $criteria->addSelectColumn($alias . '.giftpfeile'); $criteria->addSelectColumn($alias . '.pferdezucht'); $criteria->addSelectColumn($alias . '.waffenherstellung'); $criteria->addSelectColumn($alias . '.pferdepanzerung'); $criteria->addSelectColumn($alias . '.schubkarren'); $criteria->addSelectColumn($alias . '.brandpfeile'); $criteria->addSelectColumn($alias . '.hufschmied'); $criteria->addSelectColumn($alias . '.umgebungskarte'); $criteria->addSelectColumn($alias . '.zisterne'); $criteria->addSelectColumn($alias . '.max_population'); $criteria->addSelectColumn($alias . '.free_population'); $criteria->addSelectColumn($alias . '.created_at'); $criteria->addSelectColumn($alias . '.updated_at'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }", "private function load_columns_information() {\n $query = \"SELECT ordinal_position,\n column_name,\n data_type,\n is_nullable::boolean::integer\n FROM information_schema.columns\n WHERE table_schema = 'public'\n AND table_name = '{$this->get_table_name()}';\";\n $this->columns_information = DB::fetch_all($query);\n\n // Cria os campos da tabela no objeto corrente\n foreach($this->columns_information as $column) {\n $this->$column['column_name'] = null;\n $this->{'_' . $column['column_name']} = null;\n }\n }", "protected function loadColumns(){\n\t\t\t$this->columns = array_diff(\n\t\t\t\tarray_keys(get_class_vars($this->class)),\n\t\t\t\t$this->getIgnoreAttributes()\n\t\t\t);\n\t\t}", "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_LASTNAME));\n \n parent::initialize_columns();\n }", "private function prepareColumns()\n {\n // start with the tableName and the primary key e.g. 'fos_user' and 'id'\n $this->addSelectColumn($this->metadata, $this->rootEntityIdentifier);\n\n foreach ($this->datatable->getColumns() as $column) {\n // association delimiter found (e.g. 'posts.comments.title')?\n if (strstr($column->getProperty(), '.') !== false) {\n $array = explode('.', $column->getProperty());\n $this->setAssociations($array, $this->metadata);\n } else {\n // no association found\n if ($column !== $this->rootEntityIdentifier) {\n $this->addSelectColumn($this->metadata, $column->getProperty());\n }\n\n $this->allColumns[] = $this->metadata->getTableName().'.'.$column->getProperty();\n }\n }\n\n return $this;\n }", "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_LASTNAME));\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_FIRSTNAME));\n\n $showEmail = Configuration::getInstance()->get_setting(array('Chamilo\\Core\\User', 'show_email_addresses'));\n\n if($showEmail)\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_EMAIL));\n }\n\n $this->add_column(new SortableStaticTableColumn('progress'));\n $this->add_column(new SortableStaticTableColumn('completed'));\n $this->add_column(new SortableStaticTableColumn('started'));\n\n if($this->getCurrentTreeNode()->supportsScore())\n {\n $this->add_column(new StaticTableColumn(self::COLUMN_LAST_SCORE));\n }\n }", "protected function generateColumns()\n\t{\n\t\tforeach ($this->dataSource->getColumns() as $name) {\n\t\t\t$this->addColumn($name);\n\t\t}\n\t}", "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(Right::class_name(), Right::PROPERTY_NAME));\n $this->add_column(new DataClassPropertyTableColumn(Right::class_name(), Right::PROPERTY_DESCRIPTION));\n }", "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n $this->allColumns[$i] = $column;\n continue;\n }\n $this->columns[$i] = $column;\n $this->allColumns[$i] = $column;\n }\n }", "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n continue;\n }\n $this->columns[$i] = $column;\n }\n }", "protected function initColumns()\n\t{\n\t\tif($this->columns===array())\n\t\t{\n\t\t\tif($this->dataProvider instanceof NActiveDataProvider)\n\t\t\t\t$this->columns=$this->dataProvider->model->attributeNames();\n\t\t\telse if($this->dataProvider instanceof IDataProvider)\n\t\t\t{\n\t\t\t\t// use the keys of the first row of data as the default columns\n\t\t\t\t$data=$this->dataProvider->getData();\n\t\t\t\tif(isset($data[0]) && is_array($data[0]))\n\t\t\t\t\t$this->columns=array_keys($data[0]);\n\t\t\t}\n\t\t}\n\t\t$id=$this->getId();\n\t\tforeach($this->columns as $i=>$column)\n\t\t{\n\t\t\tif ($column['name'] && (!isset($column['export']) || @$column['export']!=false)) {\n\t\t\t\tif(is_string($column))\n\t\t\t\t\t$column=$this->createDataColumn($column);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!isset($column['class']))\n\t\t\t\t\t\t$column['class']='NDataColumn';\n\t\t\t\t\t$column=Yii::createComponent($column, $this);\n\t\t\t\t}\n\t\t\t\tif(!$column->visible)\n\t\t\t\t{\n\t\t\t\t\tunset($this->columns[$i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($column->id===null)\n\t\t\t\t\t$column->id=$id.'_c'.$i;\n\t\t\t\t$this->columns[$i]=$column;\n\t\t\t} else {\n\t\t\t\tunset($this->columns[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tforeach($this->columns as $column)\n\t\t\t\t$column->init();\n\t}", "protected function _prepareColumns()\n\t{\n\t\t$this->addColumn('id',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('ID'),\n\t\t\t\t\t\t'align' =>'right',\n\t\t\t\t\t\t'width' => '50px',\n\t\t\t\t\t\t'index' => 'id'\n\t\t\t\t)\n\t\t);\n\t\t \n\t\t$this->addColumn('name',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Name'),\n\t\t\t\t\t\t'index' => 'name'\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t$this->addColumn('description',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Description'),\n\t\t\t\t\t\t'index' => 'description'\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t$this->addColumn('percentage',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('Percentage'),\n\t\t\t\t\t\t'index' => 'percentage'\n\t\t\t\t)\n\t\t);\n\t\t \n\t\treturn parent::_prepareColumns();\n\t}", "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new DataRowColumn)->setModel($this->model)->setField($column->Field)->fillModel();\n\n\t\t$this->DataType->dataRows()->saveMany($DataRows);\n\t}", "public function addColumn()\n {\n if ($this->name || $this->timestamps) {\n $this->columns[] = [\n 'column' => $this->name,\n 'length' => $this->length,\n 'dataType' => $this->dataType,\n 'nullable' => $this->nullable,\n 'unsigned' => $this->unsigned,\n 'pk' => $this->pk,\n 'timestamps' => $this->timestamps,\n 'autoIncrement' => $this->autoIncrement,\n 'default' => $this->default,\n 'comment' => $this->comment,\n 'unique' => $this->unique,\n ];\n $this->reset();\n }\n if ($this->foreignKey) {\n $this->columns[] = [\n 'foreignKey' => $this->foreignKey,\n 'references' => $this->references,\n 'on' => $this->on,\n 'onUpdate' => $this->onUpdate,\n 'onDelete' => $this->onDelete,\n ];\n $this->reset();\n }\n }", "protected function _prepareColumns()\n {\n $this->addColumn('recipetype_id', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('ID'),\n 'width' => '50px',\n 'index' => 'recipetype_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Nombre Clasificación'),\n 'index' => 'name',\n ));\n\n return parent::_prepareColumns();\n }", "protected function addVirtualColumns()\n {\n \n }", "private function prepare()\n {\n $this->selectFields[$this->tableName][] = $this->rootEntityIdentifier;\n\n $sColumns = explode(',', $this->requestParams['sColumns']);\n\n for ($i = 0; $i < $this->iColumns; $i++) {\n\n if ($this->requestParams['mDataProp_' . $i] != null) {\n\n $field = $this->requestParams['mDataProp_' . $i];\n\n if ($sColumns[$i] != '') {\n if ($field != $sColumns[$i]) {\n $field = $sColumns[$i];\n }\n }\n\n // association delimiter found\n if (strstr($field, '.') !== false) {\n\n // separate fields\n $fieldsArray = explode('.', $field);\n // set associations in selectFields[]\n $this->setAssociations($fieldsArray, 0, $this->metadata);\n\n } else {\n\n // no association found\n if ($field !== $this->rootEntityIdentifier) {\n array_push($this->selectFields[$this->tableName], $field);\n }\n\n $this->allFields[] = $this->tableName . '.' . $field;\n\n }\n\n } else {\n\n $this->allFields[] = '';\n\n }\n }\n\n return $this;\n }", "protected function setDbColumns()\n {\n $connection = $this->model()->eloquent()->getConnectionName();\n\n $this->dbColumns = collect(Schema::connection($connection)->getColumnListing($this->model()->getTable()));\n }", "protected function _prepareColumns()\n {\n $this->addColumn('hourbelt_id', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('ID'),\n 'width' => '50px',\n 'index' => 'hourbelt_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Nombre Franja'),\n 'index' => 'name',\n ));\n\n $this->addColumn('start', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Hora Inicio'),\n 'index' => 'start',\n ));\n\n $this->addColumn('finish', array(\n 'header' => Mage::helper('recomiendo_recipes')->__('Hora Fin'),\n 'index' => 'finish',\n ));\n\n return parent::_prepareColumns();\n }", "protected function initializeColumnMapping() {\n\t\t// add always available cols for filemetadata\n\t\tforeach ($this->metaColMapping as $damColName => $metaColName) {\n\t\t\t$this->columnMapping[$damColName] = $metaColName;\n\t\t}\n\n\t\t// add additional cols if ext:for filemetadata is installed\n\t\tif (ExtensionManagementUtility::isLoaded('filemetadata')) {\n\t\t\tforeach ($this->additionalMetaColMapping as $damColName => $metaColName) {\n\t\t\t\t$this->columnMapping[$damColName] = $metaColName;\n\t\t\t}\n\t\t}\n\t}", "private function initColumnArrays()\n {\n foreach ($this->columns as $key => $column) {\n $dql = $this->accessor->getValue($column, 'dql');\n $data = $this->accessor->getValue($column, 'data');\n\n $currentPart = $this->entityShortName;\n $currentAlias = $currentPart;\n $metadata = $this->metadata;\n\n if (true === $this->accessor->getValue($column, 'customDql')) {\n $columnAlias = str_replace('.', '_', $data);\n\n // Select\n $selectDql = preg_replace('/\\{([\\w]+)\\}/', '$1', $dql);\n $this->addSelectColumn(null, $selectDql.' '.$columnAlias);\n // Order on alias column name\n $this->addOrderColumn($column, null, $columnAlias);\n // Fix subqueries alias duplication\n $searchDql = preg_replace('/\\{([\\w]+)\\}/', '$1_search', $dql);\n $this->addSearchColumn($column, null, $searchDql);\n } elseif (true === $this->accessor->getValue($column, 'selectColumn')) {\n $parts = explode('.', $dql);\n\n while (count($parts) > 1) {\n $previousPart = $currentPart;\n $previousAlias = $currentAlias;\n\n $currentPart = array_shift($parts);\n $currentAlias = ($previousPart === $this->entityShortName ? '' : $previousPart.'_').$currentPart;\n\n if (!array_key_exists($previousAlias.'.'.$currentPart, $this->joins)) {\n $this->addJoin($previousAlias.'.'.$currentPart, $currentAlias, $this->accessor->getValue($column, 'joinType'));\n }\n\n $metadata = $this->setIdentifierFromAssociation($currentAlias, $currentPart, $metadata);\n }\n\n $this->addSelectColumn($currentAlias, $this->getIdentifier($metadata));\n $this->addSelectColumn($currentAlias, $parts[0]);\n $this->addSearchOrderColumn($column, $currentAlias, $parts[0]);\n } else {\n // Add Order-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'orderColumn') && true === $this->accessor->getValue($column, 'orderable')) {\n $orderColumn = $this->accessor->getValue($column, 'orderColumn');\n $orderParts = explode('.', $orderColumn);\n if (count($orderParts) < 2) {\n $orderColumn = $this->entityShortName.'.'.$orderColumn;\n }\n $this->orderColumns[] = $orderColumn;\n } else {\n $this->orderColumns[] = null;\n }\n\n // Add Search-Field for VirtualColumn\n if ($this->accessor->isReadable($column, 'searchColumn') && true === $this->accessor->getValue($column, 'searchable')) {\n $searchColumn = $this->accessor->getValue($column, 'searchColumn');\n $searchParts = explode('.', $searchColumn);\n if (count($searchParts) < 2) {\n $searchColumn = $this->entityShortName.'.'.$searchColumn;\n }\n $this->searchColumns[] = $searchColumn;\n } else {\n $this->searchColumns[] = null;\n }\n }\n }\n\n return $this;\n }", "protected function _prepareColumns()\n {\n $this->addColumn('ID',\n array(\n 'header'=> $this->__('ID'),\n 'width' => '50px',\n 'index' => 'ID'\n )\n );\n\n\n $this->addColumn('browser',\n array(\n 'header'=> $this->__('Browser Data'),\n 'width' => '50px',\n 'index' => 'browser',\n 'renderer' => 'Mage_Osc_Block_Renderers_Browser'\n )\n );\n\n\n $this->addColumn('quote_id',\n array(\n 'header'=> $this->__('ID do Carrinho'),\n 'width' => '50px',\n 'index' => 'quote_id'\n )\n );\n\n\n $this->addColumn('order_id',\n array(\n 'header'=> $this->__('ID do Pedido'),\n 'width' => '50px',\n 'index' => 'order_id',\n 'renderer' => 'Mage_Osc_Block_Renderers_Order'\n )\n );\n\n\n $this->addColumn('customer_id',\n array(\n 'header'=> $this->__('Cliente'),\n 'width' => '50px',\n 'index' => 'customer_id',\n 'renderer' => 'Mage_Osc_Block_Renderers_Customer'\n )\n );\n\n\n $this->addColumn('clickedfo',\n array(\n 'header'=> $this->__('Quantidade de Cliques'),\n 'width' => '50px',\n 'index' => 'clickedfo'\n )\n );\n\n\n $this->addColumn('payment_method',\n array(\n 'header'=> $this->__('Método de Pagamento'),\n 'width' => '50px',\n 'index' => 'payment_method'\n )\n );\n\n\n return parent::_prepareColumns();\n }", "public static function addSelectColumns(Criteria $criteria)\n\t{\n\t\t$criteria->addSelectColumn(TbprofessorPeer::ID_PESSOA);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::MATRICULA_PROF);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::CPF);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::SIAPE);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::NOME);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::CELULAR);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::FONE_RESIDENCIAL);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::EMAIL);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::FOTO);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::ID_NECES_ESPECIAL);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::COD_CURSO);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::ID_TIPO_VINCULO);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::ID_FORMACAO);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::ID_PROF_SIT);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::ID_SETOR);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::COORDENADOR);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::CREATED_AT);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::UPDATED_AT);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::CREATED_BY);\n\t\t$criteria->addSelectColumn(TbprofessorPeer::UPDATED_BY);\n\t}", "protected function _initAllFIeld() \n\t{\n\t\t$sql = 'select COLUMN_NAME from information_schema.COLUMNS where table_name = \"' . $this->table.'\"\n\t\t\t\tAND `TABLE_SCHEMA`=\"'. $this->db .'\";';\n\n\t\t$this->_fields = array_column($this->_getSelectResult($sql), 'COLUMN_NAME');\n\t}", "protected function _addDefaultFields()\n {\n $select = $this->clause('select');\n $this->_hasFields = true;\n\n if (!count($select) || $this->_autoFields === true) {\n $this->_hasFields = false;\n $this->select($this->repository()->getSchema()->columns());\n $select = $this->clause('select');\n }\n\n $aliased = $this->aliasFields($select, $this->repository()->getAlias());\n $this->select($aliased, true);\n }", "function add_columns_init() {\r\n\r\n\t\t// don't add the column for any taxonomy that has specifically\r\n\t\t// disabled showing the admin column when registering the taxonomy\r\n\t\tif( ! isset( $this->tax_obj->show_admin_column ) || ! $this->tax_obj->show_admin_column )\r\n\t\t\treturn;\r\n\r\n\t\t// also grab all the post types the tax is registered to\r\n\t\tif( isset( $this->tax_obj->object_type ) && is_array( $this->tax_obj->object_type ) ) foreach ( $this->tax_obj->object_type as $post_type ){\r\n\r\n\t\t\t//add some hidden data that we'll need for the quickedit\r\n\t\t\tadd_filter( \"manage_{$post_type}_posts_columns\", array( $this, 'add_tax_columns' ) );\r\n\t\t\tadd_action( \"manage_{$post_type}_posts_custom_column\", array( $this, 'custom_tax_columns' ), 99, 2);\r\n\r\n\t\t}\r\n\r\n\t}", "protected function _prepareColumns()\n {\n parent::_prepareColumns();\n\n $this->addColumn('attribute_code', array(\n 'header' => Mage::helper('eav')->__('Attribute Code'),\n 'sortable' => true,\n 'index' => 'attribute_code'\n ));\n\n $this->addColumn('frontend_label', array(\n 'header' => Mage::helper('eav')->__('Attribute Label'),\n 'sortable' => true,\n 'index' => 'frontend_label'\n ));\n }", "protected function fetch_fields()\n {\n if(empty($this->table_fields))\n {\n $fields = $this->_database->list_fields($this->table);\n foreach ($fields as $field) {\n $this->table_fields[] = $field;\n }\n }\n }", "protected function addColumns()\n {\n parent::addColumns();\n\n foreach ($this->config['fields'] as $key => $values) {\n\n switch ($values['type']) {\n case 'text':\n $this->table->addColumn($key, 'string', array('length' => 256, 'default' => ''));\n break;\n case 'textarea':\n case 'select':\n $this->table->addColumn($key, 'text', array('default' => ''));\n break;\n case 'checkbox':\n $this->table->addColumn($key, 'boolean', array('default' => 0));\n break;\n default:\n $this->table->addColumn($key, 'text', array('default' => ''));\n }\n\n }\n }", "abstract public function loadColumns();", "public function setColumnDetails()\n {\n if (empty($this->columns)) {\n $this->columns = DB::connection($this->getConnection())\n ->getDoctrineSchemaManager()\n ->listTableDetails($this->getTable());\n }\n\n return $this;\n }", "public function setDefaultColumns()\n {\n foreach ($this->Model->columnsInformation as $column) {\n // Set indexes\n if ($column['Key'] == \"PRI\") {\n $this->indexes[] = $this->table . \".\" . $column['Field'];\n }\n // Set columns\n $this->columns[] = $this->table . \".\" . $column['Field'];\n }\n // Set default columns\n $this->defaultColumns = $this->columns;\n // Add actions column\n $this->addCustomColumn($this->builtInCustomColumns['actions']);\n // Add no column\n $this->addCustomColumnAsFirstColumn($this->builtInCustomColumns['no']);\n }", "function generar()\r\n\t{\r\n\t\tforeach($this->columnas as $ef) {\r\n\t\t \t$this->datos->tabla('columnas')->nueva_fila($ef->get_datos());\r\n\t\t}\r\n\t\tparent::generar();\r\n\t}", "protected function _prepareColumns()\n\t{\n\t\t$this->addColumn('id',\n\t\t\tarray(\n\t\t\t\t'header'=> $this->__('ID'),\n\t\t\t\t'align' =>'right',\n\t\t\t\t'width' => '50px',\n\t\t\t\t'index' => 'id'\n\t\t\t)\n\t\t);\n\n\t\t$this->addColumn('product_id',\n\t\t\tarray(\n\t\t\t\t'header'=> $this->__('Product ID'),\n\t\t\t\t'index' => 'product_id'\n\t\t\t)\n\t\t);\n\n\t\t$this->addColumn('increment_id',\n\t\t\tarray(\n\t\t\t\t'header'=> $this->__('Order ID'),\n\t\t\t\t'index' => 'increment_id'\n\t\t\t)\n\t\t);\n\n $this->addColumn('sfo.order_id',\n array(\n 'header' => Mage::helper('core')->__('View Order'),\n 'width' => '100',\n 'type' => 'action',\n 'getter' => 'getOrderId',\n 'actions' => array(\n array(\n 'caption' => Mage::helper('core')->__('View'),\n 'url' => array('base'=> 'adminhtml/sales_order/view'),\n 'field' => 'order_id',\n 'target' => '_blank'\n )\n ),\n 'filter' => false,\n 'sortable' => false,\n 'index' => 'stores',\n 'is_system' => true\n )\n );\n\n $this->addColumn('email',\n array(\n 'header'=> $this->__('Customer Email'),\n 'index' => 'email'\n )\n );\n\n $statusOptions = array(\n '0' => 'Working',\n '1' => 'Requested',\n '2' => 'Collected'\n );\n $this->addColumn('status',\n array(\n 'header'=> $this->__('Status (WORKING=0,REQUESTED=1,COLLECTED=2)'),\n 'index' => 'status',\n 'filter_index' => '`main_table`.`status`',\n 'type' => 'options',\n 'options' => $statusOptions,\n )\n );\n\n $this->addColumn('collect_date',\n array(\n 'header'=> $this->__('Collect Date'),\n 'index' => 'collect_date'\n )\n );\n\n\t\treturn parent::_prepareColumns();\n\t}", "public function selectColumns()\n {\n $this->select(\n [\n ConfigService::$tableComments . '.id as id',\n ConfigService::$tableComments . '.content_id as content_id',\n ConfigService::$tableComments . '.comment as comment',\n ConfigService::$tableComments . '.parent_id as parent_id',\n ConfigService::$tableComments . '.user_id as user_id',\n ConfigService::$tableComments . '.temporary_display_name as display_name',\n ConfigService::$tableComments . '.created_on as created_on',\n ConfigService::$tableComments . '.deleted_at as deleted_at'\n ]\n );\n\n return $this;\n }", "public function addColumns()\n {\n add_filter( 'manage_edit-' . $this->post_type . '_columns', array($this, 'editColumns') ) ; // Add or Remove a Column\n add_action( 'manage_' . $this->post_type . '_posts_custom_column', array($this, 'manageColumns') ); //Show and Modify Column Data\n add_filter( 'manage_edit-' . $this->post_type . '_sortable_columns', array($this, 'sortableColumns') ); // Flags sortable Columns\n add_action( 'load-edit.php', array($this, 'loadSortColumns') );\n }", "private function initColumns(){\n //Initialize our custom post type column management\n $this->cptWPDSCols = new Columns($this->wpdsPostType);\n \n //Remove our title\n $this->cptWPDSCols->removeColumn('title');\n \n //Add our content column\n $this->cptWPDSCols->addColumn('content', 'Content', 2);\n \n //Add our content column content\n $this->cptWPDSCols->addColumnPostContent('content');\n \n //Add our content column content\n $this->cptWPDSCols->addColumnOptionData('content', 'site_url');\n \n //Reposition column\n $this->cptWPDSCols->reorderColumn('content', 1);\n }", "public function loadFields()\n\t{\n\t\t// Get only the fields from the class instance, not its descendants\n\t\t$getFields = create_function('$obj', 'return get_object_vars($obj);');\n\t\t$fields = $getFields($this);\n\n\t\t// Field defaults\n\t\t$defaults = array(\n\t\t\t'primary' => false,\n\t\t\t'relation' => false\n\t\t);\n\n\t\t// Go through and set up each field\n\t\tforeach ($fields as $name => $options)\n\t\t{\n\t\t\t// Merge the defaults\n\t\t\t$options = array_merge($defaults, $options);\n\n\t\t\t// Is this the primary field?\n\t\t\tif ($options['primary'] === true)\n\t\t\t{\n\t\t\t\t$this->primaryKeyField = $name;\n\t\t\t}\n\n\t\t\t// Is this a relation?\n\t\t\tif ($options['relation'] !== false)\n\t\t\t{\n\t\t\t\t$this->relations[$name] = $options;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$this->fields[$name] = array();\n\t\t}\n\t}", "protected function afterConstruct() {\n\t\tif(count($this->defaultColumns) == 0) {\n\t\t\t$this->defaultColumns[] = array(\n\t\t\t\t'header' => 'No',\n\t\t\t\t'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1'\n\t\t\t);\n\t\t\t$this->defaultColumns[] = 'id';\n\t\t\t$this->defaultColumns[] = 'complete_name';\n\t\t\t$this->defaultColumns[] = 'address';\n\t\t\t$this->defaultColumns[] = 'city_id';\n\t\t\t$this->defaultColumns[] = 'province_id';\n\t\t\t$this->defaultColumns[] = 'post_code';\n\t\t\t$this->defaultColumns[] = 'house_phone';\n\t\t\t$this->defaultColumns[] = 'mobile_phone';\n\t\t\t$this->defaultColumns[] = 'mobile_phone2';\n\t\t\t$this->defaultColumns[] = 'birth_place';\n\t\t\t$this->defaultColumns[] = 'birth_date';\n\t\t\t$this->defaultColumns[] = 'sex';\n\t\t\t$this->defaultColumns[] = 'religion';\n\t\t\t$this->defaultColumns[] = 'homepage';\n\t\t\t$this->defaultColumns[] = 'origin_status';\n\t\t\t$this->defaultColumns[] = 'origin_address';\n\t\t\t$this->defaultColumns[] = 'origin_city_id';\n\t\t\t$this->defaultColumns[] = 'origin_province_id';\n\t\t\t$this->defaultColumns[] = 'hobby';\n\t\t\t$this->defaultColumns[] = 'photo';\n\t\t\t$this->defaultColumns[] = 'status';\n\t\t\t$this->defaultColumns[] = 'child';\n\t\t\t$this->defaultColumns[] = 'is_data_changed';\n\t\t\t$this->defaultColumns[] = 'swt_users_id';\n\t\t}\n\t\tparent::afterConstruct();\n\t}", "public static function addSelectColumns(Criteria $criteria)\n\t{\n\t\t$criteria->addSelectColumn(AsignacionScPeer::ID);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::GRUPO_ID);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::EMAIL);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::TREE_ID);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::INDICADOR_ID);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::FLAG);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::USER_ID);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::CREATE_AT);\n\t\t$criteria->addSelectColumn(AsignacionScPeer::UPDATE_AT);\n\t}", "public static function addSelectColumns(Criteria $criteria)\n\t{\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSLASTNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::WEIGHT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSDAYPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSDAYPHONESEARCH);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSEVEPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSMOBILEPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSPAGERPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSOTHERPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSFAXPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSDAYCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSEVECOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSMOBILECOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSPAGERCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSOTHERCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PASSFAXCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQLASTNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQDAYPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQEVEPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQMOBILEPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQPAGERPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQOTHERPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQFAXPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQDAYCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQEVECOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQMOBILECOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQPAGERCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQOTHERCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::REQFAXCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTLASTNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTDAYPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTEVEPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTMOBILEPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTPAGERPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTOTHERPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTFAXPHONE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::HOMEBASE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTDAYCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTEVECOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTMOBILECOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTPAGERCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTOTHERCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::PILOTFAXCOMMENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::TOAIRPORTNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::TOAIRPORTIDENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::FROMAIRPORTNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::FROMAIRPORTIDENT);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::MISSION_DATE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::MISSION_TYPE_ID);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::MISSIONDISPLAYDATE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::MISSIONTYPE);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::MISSIONID);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::WING_ID);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::CANCELLED);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::COUNTYNAME);\n\n\t\t$criteria->addSelectColumn(RpMissionSummaryPeer::ID);\n\n\t}", "protected function _prepareColumns()\n\t{\n\t\tparent::_prepareColumns();\n\t\t\n\t\t// remove old columns\n\t\t$this->removeColumn('gender'); // futureproof\n $this->removeColumn('lastname');\n $this->removeColumn('firstname');\n\t\t\n\t\t// add new columns\n\t\t$this->addColumnAfter('gender', array(\n\t\t\t'header' => Mage::helper('newsletter')->__('Gender'),\n 'index' => 'customer_gender',\n 'type' => 'options',\n 'options' => array(\n 1 => Mage::helper('newsletter')->__('Mr'),\n 2 => Mage::helper('newsletter')->__('Ms/Mrs')\n ),\n\t\t\t'renderer'\t=> 'Mediarocks_NewsletterExtended_Adminhtml_Block_Newsletter_Subscriber_Grid_Renderer_Gender'\n\t\t), 'type');\n\t\t\n\t\t$this->addColumnAfter('firstname', array(\n\t\t\t'header' => Mage::helper('newsletter')->__('Firstname'),\n 'index' => 'customer_firstname',\n\t\t\t'renderer'\t=> 'Mediarocks_NewsletterExtended_Adminhtml_Block_Newsletter_Subscriber_Grid_Renderer_Firstname'\n\t\t), 'gender');\n\t\t\n\t\t$this->addColumnAfter('lastname', array(\n\t\t\t'header' => Mage::helper('newsletter')->__('Lastname'),\n 'index' => 'customer_lastname',\n\t\t\t'renderer'\t=> 'Mediarocks_NewsletterExtended_Adminhtml_Block_Newsletter_Subscriber_Grid_Renderer_Lastname'\n\t\t), 'firstname');\n\n\t\t// manually sort again, that our custom order works\n\t\t$this->sortColumnsByOrder();\n\t\t\n return $this;\n }", "public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }", "protected function _prepareColumns()\n {\n/*\n $this->addColumn('version_number', array(\n 'header' => Mage::helper('gri_cms')->__('Version #'),\n 'width' => 100,\n 'index' => 'version_number',\n 'type' => 'options',\n 'options' => Mage::helper('gri_cms')->getVersionsArray($this->getPage())\n ));\n*/\n $this->addColumn('label', array(\n 'header' => Mage::helper('gri_cms')->__('Version Label'),\n 'index' => 'label',\n 'type' => 'options',\n 'options' => $this->getCollection()\n ->getAsArray('label', 'label')\n ));\n\n $this->addColumn('owner', array(\n 'header' => Mage::helper('gri_cms')->__('Owner'),\n 'index' => 'username',\n 'type' => 'options',\n 'options' => $this->getCollection()->getUsersArray(false),\n 'width' => 250\n ));\n\n $this->addColumn('access_level', array(\n 'header' => Mage::helper('gri_cms')->__('Access Level'),\n 'index' => 'access_level',\n 'type' => 'options',\n 'width' => 100,\n 'options' => Mage::helper('gri_cms')->getVersionAccessLevels()\n ));\n\n $this->addColumn('revisions', array(\n 'header' => Mage::helper('gri_cms')->__('Revisions Qty'),\n 'index' => 'revisions_count',\n 'type' => 'number'\n ));\n\n $this->addColumn('created_at', array(\n 'width' => 150,\n 'header' => Mage::helper('gri_cms')->__('Created At'),\n 'index' => 'created_at',\n 'type' => 'datetime',\n ));\n\n return parent::_prepareColumns();\n }", "protected function _prepareColumns()\n {\n \t// Checkbox\n \t$checkboxColumnBody = new Lumia_DataGrid_Body_Checkbox('student_id[]');\n \t$checkboxColumnHeader = new Lumia_DataGrid_Header_Checkbox();\n $this->addColumn(new Lumia_DataGrid_Column($checkboxColumnBody, $checkboxColumnHeader));\n \n // Name\n $nameColumnBody = new Lumia_DataGrid_Body_Text('student_name');\n $nameColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Name');\n $this->addColumn(new Lumia_DataGrid_Column($nameColumnBody, $nameColumnHeader));\n \n // Code\n $codeColumnBody = new Lumia_DataGrid_Body_Text('student_code');\n $codeColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Code');\n $this->addColumn(new Lumia_DataGrid_Column($codeColumnBody, $codeColumnHeader));\n \n // Date of birth\n $dateColumnBody = new Lumia_DataGrid_Body_Date('student_birth');\n $dateColumnBody->setOptions(array('dateFormat' => 'dd/MM/yyyy'));\n $dateColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Date of birth');\n $this->addColumn(new Lumia_DataGrid_Column($dateColumnBody, $dateColumnHeader));\n \n // Gender\n $genderColumnBody = new Admin_DataGrid_Student_Body_Gender('student_gender');\n $genderColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Gender');\n $this->addColumn(new Lumia_DataGrid_Column($genderColumnBody, $genderColumnHeader));\n \n // Class\n $classColumnBody = new Lumia_DataGrid_Body_Text('class_department');\n $classColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Class/Department');\n $this->addColumn(new Lumia_DataGrid_Column($classColumnBody, $classColumnHeader));\n \n // Status\n $statusColumnBody = new Admin_DataGrid_Student_Body_Status('user_status');\n $statusColumnHeader = new Lumia_DataGrid_Header_Text('StudentListView:@Status');\n $this->addColumn(new Lumia_DataGrid_Column($statusColumnBody, $statusColumnHeader));\n \n // Action\n $actionColumnBody = new Admin_DataGrid_Student_Body_Action('actionColumn');\n $actionColumnHeader = new Lumia_DataGrid_Header_Text();\n $this->addColumn(new Lumia_DataGrid_Column($actionColumnBody, $actionColumnHeader));\n }", "protected function _prepareColumns() {\n $this->addColumn('period', array(\n 'header' => Mage::helper('webpos')->__('Period'),\n 'align' => 'left',\n 'total' => 'sum',\n 'sortable' => false,\n 'filter' => false,\n 'index' => 'period',\n 'width' => '100px',\n ));\n $this->addColumn('user', array(\n 'header' => Mage::helper('webpos')->__('User'),\n 'align' => 'left',\n 'total' => 'sum',\n 'sortable' => false,\n 'filter' => false,\n 'index' => 'user',\n 'width' => '200px',\n ));\n $this->addColumn('totals_sales', array(\n 'header' => Mage::helper('webpos')->__('Sales Total'),\n 'align' => 'left',\n 'total' => 'sum',\n 'sortable' => false,\n 'filter' => false,\n 'width' => '100px',\n 'index' => 'totals_sales',\n 'type' => 'price',\n 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode(),\n ));\n $this->addExportType('*/*/exportCsv', Mage::helper('webpos')->__('CSV'));\n $this->addExportType('*/*/exportXml', Mage::helper('webpos')->__('XML'));\n\n return parent::_prepareColumns();\n }", "public function addColumns($columns) {\n $this->columns = array_values(array_unique(array_merge($this->columns,$columns)));\n return $this;\n }", "static function setUpColumns($columns)\n {\n $columns->id = Column::AUTO_ID;\n $columns->name = Column::create(Column::STRING + Column::NOT_NULL)->setUnique();\n $columns->address = Column::STRING;\n $columns->createdAt = Column::TIMESTAMP;\n }", "protected function _prepareColumns()\n {\n $this->addColumn('ticket_id', array(\n 'header' => Mage::helper('inchoo_supportticket')->__('ID'),\n 'width' => '80px',\n 'index' => 'ticket_id'\n ));\n $this->addColumn('subject', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Subject'),\n 'type'=> 'text',\n 'width' => '300px',\n 'index' => 'subject',\n 'escape' => true\n ));\n $this->addColumn('content', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Content'),\n 'type' => 'text',\n 'index' => 'content',\n 'escape' => true\n ));\n $this->addColumn('status', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Status'),\n 'type'=> 'text',\n 'width' => '200px',\n 'index' => 'status',\n 'escape' => true\n ));\n $this->addColumn('created_at', array(\n 'header'=> Mage::helper('inchoo_supportticket')->__('Created at'),\n 'type' => 'text',\n 'width' => '170px',\n 'index' => 'created_at',\n ));\n return parent::_prepareColumns();\n }", "protected function _prepareColumns()\n {\n $this->addColumn($this->_productIdField, array(\n 'header' => $this->_getHelper()->__('ID'),\n 'sortable' => true,\n 'index' => $this->_productIdField,\n 'width' => 60,\n ));\n\n $this->addColumn('title', array(\n 'header' => $this->_getHelper()->__('Title'),\n 'index' => 'title'\n ));\n\n $this->addColumn('set_title', array(\n 'header' => $this->_getHelper()->__('Attachments Set'),\n 'index' => 'set_title',\n 'width' => 150,\n 'frame_callback' => array($this, 'prepareSetUrl')\n ));\n\n $this->addColumn('file_url', array(\n 'header' => $this->_getHelper()->__('Download'),\n 'index' => 'download',\n 'sortable' => false,\n 'filter' => false,\n 'width' => 150,\n 'frame_callback' => array($this, 'prepareFileUrl')\n ));\n\n $this->addColumn('type', array(\n 'header' => $this->_getHelper()->__('Type'),\n 'index' => 'type',\n 'filter' => false,\n 'width' => 50,\n 'frame_callback' => array($this, 'prepareType')\n ));\n\n $this->addColumn('updated_at', array(\n 'header' => $this->_getHelper()->__('Updated'),\n 'type' => 'date',\n 'index' => 'updated_at',\n 'width' => 150,\n ));\n\n return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns();\n }", "public function addFields()\n {\n // add field\n $this->addField(new DataObject([\n 'key' => 'css_class',\n 'type' => 'multiselect',\n 'values' => $this->cssClassRowModel->toOptionArray(),\n 'label' => __('CSS Class'),\n ]));\n\n // add save button\n $this->addField(new DataObject([\n 'key' => 'save',\n 'type' => 'note',\n 'label' => ' ',\n 'options' => [\n 'text' => $this->getButtonHtml(\n __('Save'),\n 'window.pageDesignerConfig.setSettings.bind(this)()',\n 'action-primary save-settings'\n ),\n ],\n ]));\n\n return $this;\n }", "protected function _initialize()\r\n {\r\n $this->metadata()->setTablename('comentarios');\r\n $this->metadata()->setPackage('system.application.models.dao');\r\n \r\n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\r\n \r\n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\r\n $this->metadata()->addField('comentario', 'comentario', 'varchar', 45, array());\r\n $this->metadata()->addField('dataAvaliacao', 'data_avaliacao', 'datetime', null, array());\r\n $this->metadata()->addField('coordenadorId', 'coordenador_id', 'int', 11, array());\r\n $this->metadata()->addField('itemAvaliado', 'item_avaliado', 'varchar', 45, array());\r\n $this->metadata()->addField('avaliador', 'avaliador', 'varchar', 45, array());\r\n $this->metadata()->addField('tipoAvaliacao', 'tipo_avaliacao', 'varchar', 45, array());\r\n $this->metadata()->addField('subtipoAvaliacao', 'subtipo_avaliacao', 'varchar', 45, array());\r\n\r\n \r\n }", "function __construct()\n\t{\n\t\t// changes the metaColumnsSQL, adds columns: attnum[6]\n\t}", "static function setUpColumns($columns)\n {\n $columns->id = Column::AUTO_ID;\n $columns->oneId = OneABBR::columns()->id;\n $columns->createdAt = Column::TIMESTAMP;\n $columns->updatedAt = Column::TIMESTAMP;\n $columns->info = Column::create(Column::STRING)->setIndexed();\n }", "protected function setupListOperation()\n {\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'Название',\n ],\n [\n 'name' => 'description',\n 'label' => 'Описание',\n\n ],\n [\n 'name' => 'price',\n 'label' => 'Цена',\n ],\n [\n 'name' => 'time_start',\n 'label' => 'Дата начало',\n 'type' => \"date\",\n ],\n [\n 'name' => 'time_finish',\n 'label' => 'Дата финиша',\n 'type' => \"date\",\n ],\n [\n 'name' => 'car_id',\n 'label' => 'Автомобиль',\n 'type' => 'select',\n 'entity' => 'car',\n 'attribute' => 'register_id',\n 'model' => 'App\\Models\\Car',\n ],\n [\n 'name' => 'employee_id',\n 'label' => 'Сотрудник',\n 'type' => 'select',\n 'entity' => 'employee',\n 'attribute' => 'full_name',\n 'model' => 'App\\Models\\Employee',\n ],\n ]);\n }", "public function addSelectTableColumns (Doctrine_Query $q)\n {\n $q->addSelect(\"{$q->getRootAlias()}.*\");\n\n return $this;\n }", "final public function addCol(YMKM_SQL_Entity_Select $s)\n {\n $this->doAddCol($s);\n return $this;\n }", "private function setAddColumnSql() {\n\n if (!empty($this->add_columns)) {\n\n foreach ($this->add_columns as $key => $value) {\n\n foreach ($value as $keys) {\n\n $column_data = $this->one_db_table_columns[$key][$keys];\n\n\n\n $add_colum_params = \"\";\n $default_is_string = false;\n $null_string = \"\";\n $default_string = \"\";\n\n\n\n\n //Sütun tipi\n $add_colum_params .= \" \" . $column_data['Type'] . \" \";\n\n\n if ($column_data['Null'] == \"NO\") {\n\n $null_string = \"NOT NULL\";\n } else if ($column_data['Null'] == \"YES\") {\n\n $null_string = \"NULL\";\n }\n\n\n\n $field_type_detect = substr($column_data['Type'], 0, 4);\n\n if (\n $field_type_detect == \"varc\" ||\n $field_type_detect == \"text\" ||\n $field_type_detect == \"date\") {\n\n $default_is_string = true;\n }\n\n\n\n if ($column_data['Default'] != \"\" || !empty($column_data['Default']) || $column_data['Default'] != NULL) {\n\n\n $default_string = \" DEFAULT \";\n\n\n if ($default_is_string) {\n\n\n $default_string .= \" '\" . $column_data['Default'] . \"' \";\n } else {\n\n $default_string .= \" \" . $column_data['Default'] . \" \";\n }\n }\n\n\n\n $add_colum_params .= $null_string . $default_string;\n\n $writesql = <<< EOT\nALTER TABLE {$key} ADD COLUMN {$column_data['Field']} {$add_colum_params};\nEOT;\n\n $this->execute_sql[\"add_columns\"][] = $writesql;\n }\n }\n }\n }", "protected function _prepareColumns() {\r\n $this->addColumn('entity_id', array(\r\n 'header' => Mage::helper('catalog')->__('ID'),\r\n 'width' => '50px',\r\n 'index' => 'entity_id',\r\n )); //Product Id\r\n $this->addColumn('name', array(\r\n 'header' => Mage::helper('catalog')->__('Name'),\r\n 'index' => 'name',\r\n )); //Product name\r\n\r\n $store = $this->_getStore();\r\n if ($store->getId()) {\r\n $this->addColumn('custom_name', array(\r\n 'header' => Mage::helper('catalog')->__('Name in %s', $store->getName()),\r\n 'index' => 'custom_name',\r\n ));\r\n }//Store Information \r\n\r\n $this->addColumn('type', array(\r\n 'header' => Mage::helper('catalog')->__('Type'),\r\n 'width' => '60px',\r\n 'index' => 'type_id',\r\n 'type' => 'options',\r\n 'options' => Mage::getSingleton('catalog/product_type')->getOptionArray(),\r\n )); //Product Type\r\n\r\n $sets = Mage::getResourceModel('eav/entity_attribute_set_collection')\r\n ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId())\r\n ->load()\r\n ->toOptionHash();\r\n\r\n $this->addColumn('sku', array(\r\n 'header' => Mage::helper('catalog')->__('SKU'),\r\n 'width' => '80px',\r\n 'index' => 'sku',\r\n )); //Product unique id SKU\r\n\r\n $store = $this->_getStore();\r\n $this->addColumn('price', array(\r\n 'header' => Mage::helper('catalog')->__('Price'),\r\n 'type' => 'price',\r\n 'currency_code' => $store->getBaseCurrency()->getCode(),\r\n 'index' => 'price',\r\n )); //Product Price\r\n\r\n\r\n\r\n $this->addColumn('reqcoupon_status', array(\r\n 'header' => Mage::helper('catalog')->__('Request Coupon Status'),\r\n 'width' => '70px',\r\n 'index' => 'reqcoupon_status',\r\n 'type' => 'options',\r\n 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(),\r\n )); //Status of the Product \r\n\r\n /**\r\n * To export the Grid date in XML / CSV file\r\n */\r\n $this->addExportType('*/*/exportCsv', Mage::helper('reqforcoupon')->__('CSV'));\r\n $this->addExportType('*/*/exportXml', Mage::helper('reqforcoupon')->__('XML'));\r\n\r\n return parent::_prepareColumns();\r\n }", "public function get($columns = ['*'])\n {\n if (count($this->append_columns) > 0) {\n $this->select($this->model->getTable() . '.*', ...$this->append_columns);\n }\n\n if ($columns == ['*']) {\n $dynaAttrs = DanamicAttributeFactory::getModelDynamicAttributes($this->model);\n foreach($dynaAttrs as $row) {\n if ($row['single']) {\n $this->withDynamicSingleAttribute($row['attribute']);\n } else {\n $this->withDynamicOptionAttribute($row['attribute']);\n }\n }\n }\n return parent::get($columns);\n }", "protected function _prepareColumns()\n {\n $this->addColumn('in_products', array(\n 'header_css_class' => 'a-center',\n 'type' => 'checkbox',\n 'field_name' => 'in_products',\n 'values' => $this->_getSelectedProducts(),\n 'align' => 'center',\n 'index' => 'entity_id'\n ));\n\n /*$this->addColumn('entity_id',\n array(\n 'header'=> Mage::helper('catalog')->__('ID'),\n 'width' => 50,\n 'sortable' => true,\n 'type' => 'number',\n 'index' => 'entity_id',\n ));*/\n $this->addColumn('product_name',\n array(\n 'header'=> Mage::helper('catalog')->__('Name'),\n 'index' => 'name',\n ));\n\n $this->addColumn('type',\n array(\n 'header' => Mage::helper('catalog')->__('Type'),\n 'width' => 100,\n 'index' => 'type_id',\n 'type' => 'options',\n 'options' => Mage::getSingleton('catalog/product_type')->getOptionArray(),\n ));\n\n $sets = Mage::getResourceModel('eav/entity_attribute_set_collection')\n ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId())\n ->load()\n ->toOptionHash();\n\n $this->addColumn('set_name',\n array(\n 'header' => Mage::helper('catalog')->__('Attrib. Set Name'),\n 'width' => 100,\n 'index' => 'attribute_set_id',\n 'type' => 'options',\n 'options' => $sets,\n ));\n\n $this->addColumn('sku',\n array(\n 'header'=> Mage::helper('catalog')->__('SKU'),\n 'width' => 80,\n 'index' => 'sku',\n ));\n\n $this->addColumn('price',\n array(\n 'header' => Mage::helper('catalog')->__('Price'),\n 'type' => 'price',\n 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode(),\n 'index' => 'price',\n ));\n\n $this->addColumn('visibility',\n array(\n 'header' => Mage::helper('catalog')->__('Visibility'),\n 'width' => 100,\n 'index' => 'visibility',\n 'type' => 'options',\n 'options' => Mage::getModel('catalog/product_visibility')->getOptionArray(),\n ));\n\n $this->addColumn('status',\n array(\n 'header' => Mage::helper('catalog')->__('Status'),\n 'width' => 70,\n 'index' => 'status',\n 'type' => 'options',\n 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(),\n ));\n\n $this->addColumn('source_store',\n array(\n 'header'=> Mage::helper('catalog')->__('Source Store'),\n 'width' => '100px',\n 'sortable' => false,\n 'index' => 'source_store_view',\n 'type' => 'options',\n 'options' => Mage::getModel('unl_core/store_source_filter')->toOptionArray(),\n ));\n\n return parent::_prepareColumns();\n }", "public function __construct() {\n $this->columnas = new ArrayCollection();\n }", "public function addCols($fieldWhitelist=array(),$autoAddFilter=false,$autoAddSort=false)\n\t{\n\t\tforeach ($this->metaData->getFieldNames() as $prop){\n\t\t\t$fieldName = $prop;\n\n\t\t\tif(!$this->isIncluded($prop, $fieldWhitelist)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$caption = $this->parseFormLabel($prop);\n\t\t\t$fieldType = $this->metaData->getTypeOfColumn($prop);\n\n\t\t\tswitch($fieldType){\n\t\t\t\tcase 'boolean' :\n\t\t\t\t\t$this->cols[$fieldName] = $this->dg->addColumnText($fieldName, $caption);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'integer':\n\t\t\t\tcase 'float':\n\t\t\t\t\t$this->cols[$fieldName] = $this->dg->addColumnNumber($fieldName, $caption);\n\n\t\t\t\t\tif($autoAddFilter){\n\t\t\t\t\t\t$this->cols[$fieldName]->setFilterNumber();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'datetime':\n\t\t\t\t\t$this->cols[$fieldName] = $this->dg->addColumnDate($fieldName, $caption);\n\t\t\t\t\tif($autoAddFilter){\n\t\t\t\t\t\t$this->cols[$fieldName]->setFilterDateRange();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->cols[$fieldName] = $this->dg->addColumnText($fieldName, $caption);\n\t\t\t\t\tif($autoAddFilter){\n\t\t\t\t\t\t$this->cols[$fieldName]->setFilterText();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif($autoAddSort){\n\t\t\t\t$this->cols[$fieldName]->setSortable();\n\t\t\t}\n\n\t\t}\n\t}", "protected function _prepareColumns()\n {\n\n $this->addColumn(\n 'entity_id',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Id'),\n 'index' => 'entity_id',\n 'type' => 'number'\n )\n );\n\n $this->addColumn(\n 'in_docwisements',\n array(\n 'header_css_class' => 'a-center',\n 'type' => 'checkbox',\n 'name' => 'in_docwisements',\n 'values'=> $this->_getSelectedDocwisements(),\n 'align' => 'center',\n 'index' => 'entity_id'\n )\n );\n\n $this->addColumn(\n 'doc_name',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Document Name'),\n 'align' => 'left',\n 'index' => 'doc_name',\n )\n );\n\n\n $this->addColumn(\n 'doc_type',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Document Type'),\n 'index' => 'doc_type',\n 'type' => 'options',\n 'options' => Mage::helper('bs_docwise')->convertOptions(\n Mage::getModel('bs_docwise/docwisement_attribute_source_doctype')->getAllOptions(false)\n )\n\n )\n );\n $this->addColumn(\n 'doc_date',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Date'),\n 'index' => 'doc_date',\n 'type'=> 'date',\n\n )\n );\n\n $this->addColumn(\n 'download',\n array(\n 'header' => Mage::helper('bs_docwise')->__('View/Download'),\n 'type' =>'text',\n 'renderer' => 'bs_docwise/adminhtml_helper_column_renderer_download',\n\n 'filter' => false,\n 'sortable' => false,\n )\n );\n\n $this->addColumn(\n 'position',\n array(\n 'header' => Mage::helper('catalog')->__('Position'),\n 'name' => 'position',\n 'width' => 60,\n 'type' => 'number',\n 'validate_class' => 'validate-number',\n 'index' => 'position',\n 'editable' => true,\n )\n );\n $this->addColumn(\n 'action',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Action'),\n 'width' => '100',\n 'type' => 'action',\n 'getter' => 'getId',\n 'actions' => array(\n array(\n 'caption' => Mage::helper('bs_docwise')->__('Edit'),\n 'url' => array('base'=> '*/docwise_docwisement/edit'),\n 'field' => 'id'\n )\n ),\n 'filter' => false,\n 'is_system' => true,\n 'sortable' => false,\n )\n );\n }", "public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event', 'eventId', ['alias' => 'event']);\n $this->hasOne('paymentId', '\\Soul\\Model\\Payment', 'paymentId', ['alias' => 'payment']);\n }", "protected function _prepareColumns()\n {\n if (!$this->getCategory()->getProductsReadonly()) {\n $this->addColumn('in_category', array(\n 'header_css_class' => 'a-center',\n 'type' => 'checkbox',\n 'name' => 'in_category',\n 'values' => $this->_getSelectedProducts(),\n 'align' => 'center',\n 'index' => 'entity_id',\n 'is_system' => true,\n ));\n }\n $this->addColumn('entity_id', array(\n 'header' => Mage::helper('catalog')->__('ID'),\n 'sortable' => true,\n 'width' => '60',\n 'index' => 'entity_id'\n ));\n $this->addColumn('name', array(\n 'header' => Mage::helper('catalog')->__('Name'),\n 'index' => 'name'\n ));\n $this->addColumn('sku', array(\n 'header' => Mage::helper('catalog')->__('SKU'),\n 'width' => '80',\n 'index' => 'sku'\n ));\n $this->addColumn('price', array(\n 'header' => Mage::helper('catalog')->__('Price'),\n 'type' => 'currency',\n 'width' => '1',\n 'currency_code' => (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE),\n 'index' => 'price'\n ));\n $this->addColumn('position', array(\n 'header' => Mage::helper('catalog')->__('Position'),\n 'width' => '1',\n 'type' => 'number',\n 'index' => 'position',\n 'editable' => !$this->getCategory()->getProductsReadonly(),\n //'renderer' => 'adminhtml/widget_grid_column_renderer_input'\n ));\n\n //Add export type for CSV\n $this->addExportType('*/*/exportCsv', Mage::helper('adminhtml')->__('CSV'));\n }", "static function custom_get_creatable_fields() {\n # use this functionality to get a list of all field in the table\n return self::default_get_updatable_fields();\n }", "public function initialize()\n {\n $this->belongsTo(\n 'users_id',\n Users::class,\n 'id',\n ['alias' => 'user']\n );\n\n $this->belongsTo(\n 'companies_id',\n Companies::class,\n 'id',\n ['alias' => 'company']\n );\n\n $this->setSource('users_associated_company');\n }", "public static function getColumns() {\n\t\tif (empty(self::$columns === false)) {\n\t\t\treturn self::$columns; \n\t\t}\n\t\t$columns = new WireData();\n\t\t$columns->tag = Document::aliasproperty('tag');\n\t\t$columns->reference1 = Document::aliasproperty('reference1');\n\t\t$columns->reference2 = Document::aliasproperty('reference2');\n\t\tself::$columns = $columns;\n\t\treturn self::$columns;\n\t}", "public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"usuario\");\r\n $this->hasMany('codUsuario', 'UsuarioSistema', 'codUsuario', ['alias' => 'UsuarioSistema']);\r\n $this->belongsTo('codPersona', '\\Empleado', 'codPersona', ['alias' => 'Empleado']);\n }", "private function prepareColumns()\n {\n $readOnlyAttribute = $this->readOnlyAttribute;\n\n $columns = [];\n if ($this->canMove) {\n $columns[] = [\n 'class' => MovingColumn::className(),\n 'movingDisabledAttribute' => $readOnlyAttribute,\n ];\n }\n foreach ($this->columns as $column) {\n if (is_string($column)) {\n $column = ['attribute' => $column];\n }\n\n if (empty($column['class'])) {\n $column['class'] = isset($column['items']) ? DropdownInputColumn::className() : TextInputColumn::className();\n }\n\n if ($this->itemClass === null && empty($column['label'])) {\n $column['label'] = Inflector::camel2words($column['attribute'], true);\n }\n\n $column = array_merge([\n 'readOnlyAttribute' => $readOnlyAttribute,\n ], $column);\n\n $columns[] = $column;\n }\n\n if ($this->canRemove) {\n $columns[] = [\n 'class' => 'smart\\grid\\ActionColumn',\n 'options' => ['style' => 'width: 25px;'],\n 'template' => '{remove}',\n 'buttons' => [\n 'remove' => function ($url, $model, $key) use ($readOnlyAttribute) {\n $readOnly = false;\n if ($readOnlyAttribute !== null) {\n $readOnly = ArrayHelper::getValue($model, $readOnlyAttribute);\n }\n\n if ($readOnly) {\n return '';\n }\n\n return Html::a('<span class=\"fas fa-remove\"></span>', '#', [\n 'class' => 'item-remove',\n 'title' => $this->removeLabel,\n ]);\n },\n ],\n ];\n }\n\n $this->_columns = $columns;\n }", "public function install()\n {\n $tables = $this->getTables();\n foreach($tables as $table) {\n ORM::registerTableOnFly($table);\n }\n $tables['pages']->bindTable('template', 'id', 'templates', OrmTable::MANY_TO_ONE, false, true);\n $pagesBind = $this->tables['pages']->bindTable('parent', 'id', 'pages', OrmTable::MANY_TO_ONE, false, true);\n $pagesBind->setCustomLeftField(\"parentPage\");\n\n $pageToIncludeBind = $tables['pages']->bindTable('id', 'page', 'includes', OrmTable::ONE_TO_MANY, true, true);\n $pageToIncludeBind->setCustomLeftField(\"includes\");\n\n\n //@TODO includes table must be binded to blocks, blocks to templates. Templates need no bind to includes.\n $templateToIncludeBind = $tables['templates']->bindTable('id', 'template', 'includes', OrmTable::ONE_TO_MANY, true, true);\n $templateToIncludeBind->setCustomLeftField(\"includes\");\n\n $templateToBlockBind = $tables['templates']->bindTable('id', 'template', 'blocks', OrmTable::ONE_TO_MANY, true, true);\n $templateToBlockBind->setCustomLeftField(\"blocks\");\n\n foreach($tables as $table) {\n ORM::createTable($table);\n }\n $this->addBaseDataToDatabase();\n }", "public static function addSelectColumns(Criteria $criteria)\n\t{\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::ID);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::FIRST_NAME);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::LAST_NAME);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::SUBMISSION_DATE);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::MISSION_DATE);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::PASSENGER_NAME);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::PILOT_NAME);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::ORIGIN);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::DESTINATION);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::CAPTION);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::COMMENT);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::PHOTO_FILENAME);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::MISSION_ID);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::REVIEW_DATE);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::REVIEW_BY);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::APPROVED);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::FILESIZE);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::HEIGHT);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::WIDTH);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::FILE_FORMAT);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::PHOTO_QUALITY);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::EVENT_ID);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::LEG_ID);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::CATEGORY);\n\n\t\t$criteria->addSelectColumn(MissionPhotoPeer::PHOTO_USE);\n\n\t}", "function migrate()\n {\n if (!$this->object->_columns) {\n throw new E_ColumnsNotDefinedException(\"Columns not defined for {$this->get_table_name()}\");\n }\n $added = FALSE;\n $removed = FALSE;\n // Add any missing columns\n foreach ($this->object->_columns as $key => $properties) {\n if (!in_array($key, $this->object->_table_columns)) {\n if ($this->object->_add_column($key, $properties['type'], $properties['default_value'])) {\n $added = TRUE;\n }\n }\n }\n // Remove any columns not defined\n //\t\tforeach ($this->object->_table_columns as $key) {\n //\t\t\tif (!isset($this->object->_columns[$key])) {\n //\t\t\t\t$this->object->_remove_column($key);\n // $removed = TRUE;\n //\t\t\t}\n //\t\t}\n if ($added or $removed) {\n // var_dump($this->object->_table_columns);\n $this->object->lookup_columns();\n // var_dump($added, $removed);\n }\n }", "public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }", "public function columns()\n {\n return $this->hasMany(Column::class);\n }", "protected function load_col_info()\n {\n }", "public function initialize()\n {\n $this->setSource('custom_fields_types');\n\n $this->hasMany(\n 'id',\n 'Canvas\\Models\\CustomFieldsTypesSettings',\n 'custom_fields_types_id',\n ['alias' => 'typesSetting']\n );\n }", "public static function addSelectColumns(Criteria $criteria, $alias = null)\n {\n if (null === $alias) {\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_ID);\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_ORDER_ID);\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_ORDER_XML);\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_ORDER_DATE);\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_XML_FILENAME);\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_XML_FILESIZE);\n $criteria->addSelectColumn(CKOrderXmlTableMap::COL_CREATED_AT);\n } else {\n $criteria->addSelectColumn($alias . '.id');\n $criteria->addSelectColumn($alias . '.order_id');\n $criteria->addSelectColumn($alias . '.order_xml');\n $criteria->addSelectColumn($alias . '.order_date');\n $criteria->addSelectColumn($alias . '.xml_filename');\n $criteria->addSelectColumn($alias . '.xml_filesize');\n $criteria->addSelectColumn($alias . '.created_at');\n }\n }", "public function initialize()\n {\n $this->setSchema(\"bd_diagnostico\");\n $this->setSource(\"categoria\");\n $this->hasMany('id_categoria', 'diag\\cc\\Pregunta', 'id_categoria', ['alias' => 'Pregunta']);\n $this->hasMany('id_categoria', 'diag\\cc\\Visita', 'id_categoria', ['alias' => 'Visita']);\n }", "public function add_select($columns)\r\n {\r\n if ($this->columns) {\r\n array_add($this->columns, $columns);\r\n } else {\r\n $this->select($columns);\r\n }\r\n\r\n return $this;\r\n }", "protected function _prepareColumns()\n {\n $this->addColumn('solutionpartner_id', array(\n 'header' => Mage::helper('solutionpartner')->__('ID'),\n 'align' =>'right',\n 'width' => '50px',\n 'index' => 'solutionpartner_id',\n ));\n\n $this->addColumn('name', array(\n 'header' => Mage::helper('solutionpartner')->__('Name'),\n 'align' =>'left',\n 'index' => 'name',\n ));\n\n $this->addColumn('email', array(\n 'header' => Mage::helper('solutionpartner')->__('Email'),\n 'align' =>'left',\n 'index' => 'email',\n 'renderer' => 'solutionpartner/adminhtml_solutionpartner_renderer_customer',\n ));\n\n $this->addColumn('website', array(\n 'header' => Mage::helper('solutionpartner')->__('Website'),\n 'align' => 'left',\n 'index' => 'website',\n 'renderer' => 'solutionpartner/adminhtml_solutionpartner_renderer_website',\n ));\n\n $this->addColumn('country', array(\n 'header' => Mage::helper('solutionpartner')->__('Country'),\n 'align' => 'left',\n 'index' => 'country',\n 'type' => 'options',\n 'options' => Mage::helper('solutionpartner')->getCountryList(),\n ));\n\n $this->addColumn('number_qtys', array(\n 'header' => Mage::helper('solutionpartner')->__('Order Qty'),\n 'align' => 'center',\n 'index' => 'number_qtys',\n 'filter_index' => 'count(order.entity_id)',\n 'type' => 'number',\n 'filter_condition_callback' => array($this, '_filterTotalProductsCallback'),\n // 'renderer' => 'partner/adminhtml_partner_renderer_orderquantity',\n ));\n\n// $this->addColumn('cumulative_amount', array(\n// 'header' => Mage::helper('solutionpartner')->__('Accumulated Revenue'),\n// 'type' => 'price',\n// 'index' => 'cumulative_amount',\n// 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode(),\n// ));\n//\n// $this->addColumn('cumulative_amount_history', array(\n// 'header' => Mage::helper('solutionpartner')->__('Revenue History'),\n// 'type' => 'price',\n// 'index' => 'cumulative_amount_history',\n// 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode(),\n// ));\n\n $this->addColumn('registered_date', array(\n 'header' => Mage::helper('solutionpartner')->__('Registered Date'),\n 'align' => 'left',\n 'index' => 'registered_date',\n 'type' => 'datetime'\n ));\n\n $this->addColumn('status', array(\n 'header' => Mage::helper('solutionpartner')->__('Status'),\n 'align' => 'left',\n 'width' => '80px',\n 'index' => 'status',\n 'type' => 'options',\n 'options' => array(\n 1 => 'Enabled',\n 2 => 'Disabled',\n ),\n ));\n\n $this->addColumn('action',\n array(\n 'header' => Mage::helper('solutionpartner')->__('Action'),\n 'width' => '100',\n 'type' => 'action',\n 'getter' => 'getId',\n 'actions' => array(\n array(\n 'caption' => Mage::helper('solutionpartner')->__('Edit'),\n 'url' => array('base'=> '*/*/edit'),\n 'field' => 'id'\n )),\n 'filter' => false,\n 'sortable' => false,\n 'index' => 'stores',\n 'is_system' => true,\n ));\n\n $this->addExportType('*/*/exportCsv', Mage::helper('solutionpartner')->__('CSV'));\n $this->addExportType('*/*/exportXml', Mage::helper('solutionpartner')->__('XML'));\n\n return parent::_prepareColumns();\n }", "abstract protected function columns();", "protected function build()\n {\n if ($this->relations) {\n $this->addRelational();\n }\n $this->loadSubQueries();\n }", "public function initialize()\n\t{\n\t // attributes\n\t\t$this->setName('pago_efectivo');\n\t\t$this->setPhpName('PagoEfectivo');\n\t\t$this->setClassname('PagoEfectivo');\n\t\t$this->setPackage('scc');\n\t\t$this->setUseIdGenerator(true);\n\t\t// columns\n\t\t$this->addPrimaryKey('ID_PAGO_EFECTIVO', 'IdPagoEfectivo', 'INTEGER', true, null, null);\n\t\t$this->addForeignKey('ID_PERSONA', 'IdPersona', 'INTEGER', 'persona', 'ID_PERSONA', true, null, null);\n\t\t$this->addForeignKey('ID_AUTORIZA', 'IdAutoriza', 'INTEGER', 'persona', 'ID_PERSONA', true, null, null);\n\t\t$this->addForeignKey('ID_CUADRE_CAJA', 'IdCuadreCaja', 'INTEGER', 'cuadre_caja', 'ID_CUADRE_CAJA', true, null, null);\n\t\t$this->addColumn('FECHA_HORA', 'FechaHora', 'TIMESTAMP', true, null, null);\n\t\t$this->addColumn('VALOR', 'Valor', 'DECIMAL', true, 10, null);\n\t\t$this->addColumn('CONCEPTO', 'Concepto', 'LONGVARCHAR', true, null, null);\n\t\t$this->addColumn('RECEPTOR', 'Receptor', 'VARCHAR', true, 200, null);\n\t\t$this->addColumn('ESTADO', 'Estado', 'VARCHAR', true, 1, null);\n\t\t// validators\n\t}", "public function initialize()\n {\n $this->setSchema(\"sistema\");\n $this->setSource(\"comentarios\");\n $this->belongsTo('id_usuario', '\\Usuarios', 'id_usuario', ['alias' => 'Usuarios']);\n $this->belongsTo('id_reporte', '\\Reporte', 'id_reporte', ['alias' => 'Reporte']);\n }", "public function initialize()\n {\n $this->setSchema(\"mydb\");\n $this->setSource(\"paying\");\n $this->belongsTo('cid', 'Customers', 'cid', array('alias' => 'alias_customers'));\n $this->belongsTo('loanid', 'LoanInformation', 'loanid', array('alias' => 'alias_loan'));\n $this->hasManyToMany(\n 'payingid',\n 'Tracking',\n 'payingid', 'oid',\n 'DeptTrackers',\n 'oid',\n array(\n 'alias' => 'alias_depttrackers'\n )\n );\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "protected function _initialize()\r\n {\r\n $this->metadata()->setTablename('funcionario');\r\n $this->metadata()->setPackage('system.application.models.dao');\r\n \r\n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\r\n \r\n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\r\n $this->metadata()->addField('nome', 'nome', 'varchar', 255, array());\r\n $this->metadata()->addField('login', 'login', 'varchar', 45, array());\r\n $this->metadata()->addField('senha', 'senha', 'varchar', 255, array());\r\n $this->metadata()->addField('email', 'email', 'varchar', 255, array());\r\n $this->metadata()->addField('lotacao', 'lotacao', 'varchar', 45, array());\r\n\r\n \r\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function addSelect(string ...$columns)\n {\n $this->select = array_merge($this->select, $columns);\n\n return $this;\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function setColumnsHeadData()\n\t{\n\t\tFileStorage::getInstance()->store([], 'league_table_columns_head');\n\t}", "public function getColumns()\n {\n return $this->select_list;\n }", "protected function _prepareColumns() {\n /**\n * Add columa 'id','name'.\n */\n $this->addCustomColumn ( 'id' );\n $this->addCustomColumn ( 'name' );\n /**\n * Get the Collection of subscriptiontype\n */\n $subscriptionTitle = Mage::getModel ( 'airhotels/subscriptiontype' )->getCollection ();\n $data = $subscriptionTitle->getData ();\n $substitle = null;\n foreach ( $data as $value ) {\n $i = $value ['id'];\n $substitle [$i] = $value ['title'];\n }\n /**\n * When building a module always utilise the installation and\n * upgrade scripts so that any database additions or changes are automatically modified\n * on module installation.\n * There are a number of built in functions to these modules allowing you to add attributes,\n * create new tables etc.\n *\n * Add Column for subscription_type\n */\n $this->addColumn ( 'subscription_type', array (\n 'header' => Mage::helper ( 'airhotels' )->__ ( 'Subscription Type' ),\n 'align' => 'left',\n 'width' => '80px',\n 'index' => 'subscription_type',\n 'type' => 'options',\n 'options' => $substitle,\n 'renderer' => 'Apptha_Airhotels_Block_Adminhtml_Managesubscriptions_Grid_Renderer_Type' \n ) );\n /**\n * When building a module always utilise the installation and\n * upgrade scripts so that any database additions or changes are automatically modified\n * on module installation.\n * There are a number of built in functions to these modules allowing you to add attributes,\n * create new tables etc.\n *\n * Add Column for action\n */\n $this->addColumn ( 'action', array (\n 'header' => Mage::helper ( 'airhotels' )->__ ( 'Action' ),\n 'filter' => false,\n 'width' => '100',\n 'type' => 'action',\n 'getter' => 'getId', \n 'index' => 'stores',\n 'actions' => array (\n array (\n 'caption' => Mage::helper ( 'airhotels' )->__ ( 'Edit' ),\n 'url' => array (\n 'base' => '*/*/edit'\n ),\n 'field' => 'id'\n )\n ),\n 'sortable' => false,\n 'is_system' => true \n ) );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareColumns ();\n }", "public function initialize()\n {\n $this->setSchema(\"fox_zeus\");\r\n $this->setSource(\"ubicacion\");\r\n $this->hasMany('codUbicacion', 'HistoricoMovimientos', 'codUbicacion', ['alias' => 'HistoricoMovimientos']);\r\n $this->belongsTo('codSecion', '\\Seccion', 'codSecion', ['alias' => 'Seccion']);\r\n $this->belongsTo('codZona', '\\Zona', 'codZona', ['alias' => 'Zona']);\r\n $this->belongsTo('codSector', '\\Sector', 'codSector', ['alias' => 'Sector']);\r\n $this->belongsTo('codAlmacen', '\\Almacen', 'codAlmacen', ['alias' => 'Almacen']);\r\n $this->belongsTo('codProducto', '\\Producto', 'codProducto', ['alias' => 'Producto']);\n }", "protected function _configureColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n $this->_sourceColumns = $this->columns;;\n\n $columnsByKey = [];\n foreach ($this->columns as $column) {\n $columnKey = $this->_getColumnKey($column);\n for ($j = 0; true; $j++) {\n $suffix = ($j) ? '_' . $j : '';\n $columnKey .= $suffix;\n if (!array_key_exists($columnKey, $columnsByKey)) {\n break;\n }\n }\n $columnsByKey[$columnKey] = $column;\n }\n\n $this->columns = $columnsByKey;\n }" ]
[ "0.6556401", "0.62286067", "0.61727834", "0.6072637", "0.6064973", "0.6050672", "0.6040348", "0.5969455", "0.59326607", "0.5920098", "0.59177065", "0.5807557", "0.5775123", "0.5671909", "0.56617016", "0.5597815", "0.55917406", "0.5585443", "0.55843353", "0.5539637", "0.55300474", "0.5513528", "0.54872996", "0.54786146", "0.5475999", "0.5442002", "0.54186016", "0.53995645", "0.53726304", "0.53707504", "0.53564125", "0.53558344", "0.53120005", "0.53045756", "0.52803844", "0.5269085", "0.5225997", "0.5216371", "0.5213655", "0.5207434", "0.5203001", "0.5196179", "0.5186887", "0.51677537", "0.51674837", "0.51543546", "0.51510614", "0.514928", "0.5140776", "0.5132458", "0.51205456", "0.5120103", "0.5114249", "0.5111113", "0.50873643", "0.50553757", "0.5050328", "0.50413376", "0.50318617", "0.50308734", "0.5023091", "0.5014284", "0.5006809", "0.5004746", "0.49942484", "0.49857342", "0.49843478", "0.49807268", "0.49798977", "0.49784154", "0.4976709", "0.49751335", "0.49748176", "0.49746665", "0.49690154", "0.49686664", "0.49669886", "0.4962839", "0.49449807", "0.49352327", "0.49196336", "0.49193138", "0.49138552", "0.4912407", "0.49051985", "0.48894906", "0.48894784", "0.48856297", "0.48853204", "0.48822486", "0.48822486", "0.4881136", "0.48805374", "0.48805374", "0.48805374", "0.48805374", "0.48776346", "0.4877236", "0.48732534", "0.48690912", "0.48579103" ]
0.0
-1
Returns the number of rows matching criteria.
public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null) { // we may modify criteria, so copy it first $criteria = clone $criteria; // We need to set the primary table name, since in the case that there are no WHERE columns // it will be impossible for the BasePeer::createSelectSql() method to determine which // tables go into the FROM clause. $criteria->setPrimaryTableName(CastleTypePeer::TABLE_NAME); if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { $criteria->setDistinct(); } if (!$criteria->hasSelectClause()) { CastleTypePeer::addSelectColumns($criteria); } $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count $criteria->setDbName(CastleTypePeer::DATABASE_NAME); // Set the correct dbName if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_READ); } // BasePeer returns a PDOStatement $stmt = BasePeer::doCount($criteria, $con); if ($row = $stmt->fetch(PDO::FETCH_NUM)) { $count = (int) $row[0]; } else { $count = 0; // no rows returned; we infer that means 0 matches. } $stmt->closeCursor(); return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function row_count();", "public function countRows()\n {\n return count($this->rows);\n }", "public function count_rows()\n {\n $m_num_rows = $this->c_obj_stmt->rowCount();\n return $m_num_rows;\n }", "public function countRows(): int\n {\n $result = $this->_getResult()->numRows(); // Returns an integer on success and an \\PEAR_Error object on failure\n return is_int($result) ? $result : 0;\n }", "public function count()\n\t{\n\t\treturn $this->query->rowCount();\n\t}", "public function count() {\n return count($this->__rows__);\n }", "public function getNumberOfRows();", "public function get_rows_count()\n\t{\n\t\treturn count($this->get_rows());\n\t}", "public function count()\n {\n return count($this->_rows);\n }", "public function getNumRows();", "public function rowCount()\n {\n return sasql_num_rows($this->result);\n }", "public function getNumberOfRows()\r\n {\r\n return count($this->data);\r\n }", "public function count()\n\t{\n\t\treturn (int) $this->getStatement()->rowCount();\n\t}", "public function rowCount()\n {\n return oci_num_rows($this->sth);\n }", "public function count_rows() {\r\n return $this->db->count_all_results($this->table_name);\r\n }", "function found($criteria=NULL) {\n\t\t$result=$this->exec(\n\t\t\tarray(\n\t\t\t\t'method'=>'count',\n\t\t\t\t'criteria'=>$criteria\n\t\t\t)\n\t\t);\n\t\treturn $result['count'];\n\t}", "public function get_found_rows() {\n\t\treturn (int) $this->found_rows;\n\t}", "public function getNumberOfRows() {\n return count($this->rows);\n }", "public function countRows()\n {\n return $this->_result !== null ? $this->_result->rowCount() : 0;\n }", "function get_num_records()\n\t{\n\t\t$this->sql = 'SELECT COUNT(*) FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\treturn db_getOne($this->sql, $this->use_db);\n\t}", "function getMatchedRowsNum( $sql ) {\r\n\t\t\t$result = $this->_connectAndExec( $sql );\r\n\t\t\treturn ocirowcount( $result );\r\n\t\t}", "public function numOfRows();", "public function count() {\n $this->_active_query->fields($this->func()->count());\n $query = $this->query( $this->_active_query->getQuery(), $this->_active_query->getParams() );\n return (int)$query->rowCount();\n }", "function RowCount() {}", "function count_filtered()\n {\n $this->_get_datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function num_rows() {\n\t\t\treturn $this->count();\n\t\t}", "public function count() {\n return $this->row_count();\n }", "public function count() {\n $s = $this->buildSelect(true, null, false, false);\n return $s->numRows();\n }", "public function num_rows() {\n\t\treturn $this->GetNumRows();\n\t}", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "public function rowCount () {\n return $this->query->rowCount();\n }", "public function numberOfRows();", "abstract public function getNumRows();", "abstract public function getNumRows();", "public function getNumRows() {\n\t\treturn $this->_num_rows;\n\t}", "public function getCount() {\n return $this->db->fetchColumn(\"SELECT COUNT(id) FROM $this->table\");\n }", "public function getNumRows()\n {\n \treturn $this->previouslyExecuted->num_rows;\n }", "function count()\n{\n\tif (!$this->getSql()) return 0;\n\t$rows = $this->getClone()->select('count(*) as n');\n\treturn (int)$rows[0]['n'];\n}", "public function count()\n {\n $query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n return $row['total_rows'];\n }", "public function totalNumRows()\n {\n try {\n\n $sql = 'SELECT DISTINCT gil.id_item\n FROM geocontexter.gc_item AS gil\n '.$this->_sql_tables.'\n WHERE gil.title ILIKE ?\n '.$this->_sql_in_id_list;\n\n $res = $this->query($sql, array($this->search . '%'));\n return (int)count($res);\n\n } catch(\\Exception $e) {\n throw $e;\n }\n }", "public function count_filtered(){\n $this->datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function nbRows();", "public function GetRowCount() : INT\r\n {\r\n return($this->preparedStatement->rowCount());\r\n }", "public function getRowCount()\n {\n return $this->statement->rowCount();\n }", "public function getNumberOfRows(){\r\n $this->setTable('subscribed');\r\n $table = $this->getTable();\r\n\r\n $sql = \"SELECT * FROM \" . $table;\r\n $stmt = $this->fetch()->query($sql);\r\n return $stmt->rowCount();\r\n }", "public function numRows() {\n\t\t$q = \"SELECT COUNT(*) FROM {$this->_name}\";\n\t\t$r = @sqlite_query($q, $this->_connection);\n\t\tlist($numRows) = sqlite_fetch_array($r, SQLITE_NUM);\n\t\treturn $numRows;\n\t}", "function numRows()\n {\n $this->getRows();\n return $this->row_counter;\n }", "function NumRows() {\n\t\t\t$result = pg_num_rows($this->result);\n\t\t\treturn $result;\n\t\t}", "public function count(){\n\t\t\t$query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n\t\t\n\t\t\t$stmt = $this->conn->prepare( $query );\n\t\t\t$stmt->execute();\n\t\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t\treturn $row['total_rows'];\n\t\t}", "public function count(): int\n {\n return $this->statement->rowCount();\n }", "function getNumRows() {\r\n\t\t\tif($this->privateVars['resultset']) {\r\n\t\t\t\tif(@mysql_num_rows($this->privateVars['resultset']))\r\n\t\t\t\t\treturn mysql_num_rows($this->privateVars['resultset']);\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t}", "public function getRowCount() {\n return $this->statement->rowCount();\n }", "public function number_of_rows()\n {\n if (is_bool($this->result))\n {\n return $this->mysqli->affected_rows;\n }\n else\n {\n return $this->result->num_rows;\n }\n }", "public function getNumRows() {\n\t\t$this->_numRows = mysqli_num_rows($this->_result);\n\t\treturn $this->_numRows;\n\t}", "function nbrRows() {\n return mysqli_num_rows($this->result);\n }", "public function getNumRows(): int\n {\n if (is_int($this->numRows)) {\n return $this->numRows;\n }\n if ($this->resultArray !== []) {\n return $this->numRows = count($this->resultArray);\n }\n if ($this->resultObject !== []) {\n return $this->numRows = count($this->resultObject);\n }\n\n return $this->numRows = count($this->getResultArray());\n }", "public function getNumberOfRows() {\n\n $query = $this->db->prepare(\"SELECT COUNT(*) FROM `products`\");\n\n try {\n\n $query->execute();\n $rows = $query->fetchColumn();\n\n return $rows;\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "public abstract function GetNumRows();", "public function count(){\n $query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n return $row['total_rows'];\n }", "public function getRowsCount()\n {\n if ($this->num_rows === 0 && count($this->resultArray()) > 0) {\n $this->num_rows = count($this->resultArray());\n @oci_execute($this->stmt_id, OCI_DEFAULT);\n\n if ($this->curs_id) {\n @oci_execute($this->curs_id, OCI_DEFAULT);\n }\n }\n\n return $this->num_rows;\n }", "public function GetNumberOfRows() {\n return $this->num_rows;\n }", "public function count()\n {\n return $this->rows;\n }", "public function count() {\n\t\t$results = $this->execute();\n\t\treturn $results ? count($results) : 0;\n\t}", "public function num_rows()\n\t{\n\t\t$regex = '/^SELECT\\s+(?:ALL\\s+|DISTINCT\\s+)?(?:.*?)\\s+FROM\\s+(.*)$/i';\n\t\t$output = array();\n\n\t\tif (preg_match($regex, $this->last_query, $output) > 0)\n\t\t{\n\t\t\t$stmt = $this->query(\"SELECT COUNT(*) FROM {$output[1]}\");\n\t\t\treturn (int) $stmt->fetchColumn();\n\t\t}\n\n\t\treturn NULL;\n\t}", "public function count(){\n $query = \"SELECT COUNT(*) as total_rows FROM \".$this->table_name. \"\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n return $row['total_rows'];\n }", "public function getRowCount()\n {\n return $this->row_count;\n }", "public function getRowCount()\n {\n return $this->row_count;\n }", "public function getRowCount()\n {\n return $this->row_count;\n }", "function getNRows() \n { \n if($this->rsQry)\n {\n return true;\n }\n else\n {\n\t\t\t return mysql_num_rows($this->rsQry);\n }\n\t\t}", "public function rowCount() {\n return $this->stmt->rowCount();\n }", "public function rowCount()\n {\n return $this->exec()->rowCount();\n }", "public function count(array $criteria = array()) {\n\t\t$record_count = $this->getCollection()->count($criteria);\n\t\treturn $record_count;\n\t}", "public function rowCount() {\n return $this->stmt->rowCount();\n }", "abstract public function NumRows();", "public function count() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n # close connection\n Connection::disconnect();\n\n return $prepareStatement->rowCount();\n }", "protected function getCount($criteria)\r\n\t{\r\n\t\treturn $this->getManager()->getCount($criteria);\r\n\t}", "public function getFoundRows()\n\t{\n\t\treturn (int) $this->value('SELECT FOUND_ROWS()', [], null);\n\t}", "function getCount() {\n\t\t$where = (sizeof($this->wheres) > 0) ? ' WHERE '.implode(\" \\n AND \\n\\t\", $this->wheres) : '';\n\t\t$group = (sizeof($this->groups) > 0) ? ' GROUP BY '.implode(\", \", $this->groups) : '' ;\n\t\t$query = \"SELECT count(*) FROM \\n\\t\".$this->class->table.\"\\n \".implode(\"\\n \", $this->joins).$where.' '.$group.' ';\n\n\t\t$count =self::$global['dbCon']->fetchRow($query,MYSQLI_NUM);\n\t\treturn $count[0];\n\n\t}", "function numResults() {\n\t\treturn $this->num_rows();\n\t}", "public function count(): int\n {\n if ($this->numberOfRows === null) {\n if (is_array($this->rows)) {\n $this->numberOfRows = count($this->rows);\n } else {\n $this->numberOfRows = $this->query->count();\n }\n }\n return $this->numberOfRows;\n }", "function num_rows() {\r\n\t\treturn $this->dbh->num_rows();\r\n\t}", "public function getNbResults()\n {\n return $this->select->count();\n }", "public function getNumResults(string $searchCriteria): int {\n return $this->imageModel->findCount($searchCriteria);\n }", "public function getNumRows()\n {\n $db = DB::conn();\n $query = \"SELECT COUNT(*) FROM \" . self::COMMENT_TABLE . \" WHERE thread_id = ?\";\n $where_params = array($this->thread_id);\n $count = $db->value($query, $where_params);\n return $count; \n }", "public function count(): int\n {\n $query = clone $this;\n $table = current($this->from);\n return $query->select(\"(COUNT($table.id))\")->execute()->fetchColumn();\n }", "public abstract function getRowsCount($clause, $options = [], $result_set = null);", "function getNumRows() {\r\n return mysql_num_rows($this->m_Result);\r\n }", "public function count($where = NULL)\n {\n $this->where($where);\n $this->_database->from($this->table);\n $number_rows = $this->_database->count_all_results();\n return $number_rows;\n }", "public function getNumRows(){\n\t\treturn $this->instance->getNumRows();\n\t}", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "public function count(array $conditions = []): int;", "public function count()\n\t{\n\t\t// Execute query and return count\n\t\t$result = $this->execute();\n\t\treturn ($result !== false) ? count($result) : 0;\n\t}", "public function getRowCount() {\n return $this->Read->rowCount();\n }", "public function count() {\n if ($this->_count <= 0) {\n $where = new Where();\n if (isset($this->_options[\"eventData\"]) && $this->_options[\"eventData\"] != '') {\n $where->expression($this->_sql_search_expression, \"%\" . $this->_options[\"eventData\"] . \"%\");\n }\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from($this->table)->where($where)->columns(array('count' => new Expression('COUNT(*)')));\n $sqlTxt = $sql->getSqlStringForSqlObject($select);\n $resultSet = $this->adapter->query($sqlTxt, Adapter::QUERY_MODE_EXECUTE);\n foreach ($resultSet as $row) {\n $this->_count = intval($row->count);\n break;\n }\n }\n return $this->_count;\n }", "function num_rows()\r\n\t{\r\n\t\tif ( ! $this->pdo_results ) {\r\n\t\t\t$this->pdo_results = $this->result_id->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t}\r\n\t\treturn sizeof($this->pdo_results);\r\n\t}", "public function count(){\n\t\t\t$query = \"SELECT COUNT(*) as total_rows \n\t\t\tFROM\n\t\t\t\tStudent st, Faculty f, Studies ss\n\t\t\tWHERE st.stds = ss.id_stds\n\t\t\tAND ss.fac = f.id_fac\";\n\t\t\n\t\t\t$stmt = $this->conn->prepare( $query );\n\t\t\t$stmt->execute();\n\t\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t\treturn $row['total_rows'];\n\t\t}", "public function rowCount() {\n\t\tif( !$this->_result ) return 0;\n\t\treturn mssql_num_rows($this->_result);\n\t}", "public static function rowCount(){\n $dbCon = self::getPdoCon();\n return $dbCon::rowCount;\n }", "public function getNumberOfRecords() {\r\n\t\treturn mysqli_num_rows($this->result);\r\n\t}", "public function count(string $condition='',?array $parameters=null):int {\n\t\treturn DAO::count($this->getModel(),$condition,$parameters);\n\t}", "public function num_rows()\n\t{\n\t\tif ( ! is_int($this->num_rows))\n\t\t{\n\t\t\tif (count($this->result_array) > 0)\n\t\t\t{\n\t\t\t\treturn $this->num_rows = count($this->result_array);\n\t\t\t}\n\t\t\telseif (count($this->result_object) > 0)\n\t\t\t{\n\t\t\t\treturn $this->num_rows = count($this->result_array);\n\t\t\t}\n\n\t\t\treturn $this->num_rows = count($this->result_array());\n\t\t}\n\n\t\treturn $this->num_rows;\n\t}" ]
[ "0.7814829", "0.76461774", "0.76306206", "0.76248515", "0.7610322", "0.7601381", "0.7569516", "0.75337154", "0.75239164", "0.75204575", "0.7497446", "0.7475283", "0.7471234", "0.7456455", "0.74432975", "0.7425854", "0.7408996", "0.7392882", "0.7389839", "0.73875904", "0.7376293", "0.7363973", "0.7355549", "0.7354037", "0.73503566", "0.73485625", "0.7344736", "0.73124254", "0.72928077", "0.7291731", "0.7291029", "0.72897136", "0.7279062", "0.7279062", "0.72512907", "0.7244239", "0.72420055", "0.7227273", "0.7223274", "0.72183657", "0.7217654", "0.7209184", "0.7208491", "0.72065586", "0.7205463", "0.7198685", "0.7196627", "0.71961284", "0.7175813", "0.7173448", "0.7165421", "0.7163215", "0.7152389", "0.7149985", "0.7139416", "0.71367496", "0.7135781", "0.7134046", "0.712867", "0.7128641", "0.71278185", "0.71273184", "0.7125862", "0.7119696", "0.7117739", "0.71049887", "0.71049887", "0.71049887", "0.707994", "0.7075393", "0.70734847", "0.70721483", "0.7071005", "0.7063542", "0.706016", "0.7059642", "0.70519954", "0.70458674", "0.7045273", "0.7044605", "0.70387745", "0.7032981", "0.7032048", "0.7031272", "0.7030201", "0.7029109", "0.70141655", "0.70112866", "0.70050335", "0.70027053", "0.70016533", "0.7000497", "0.6998002", "0.6997466", "0.6992363", "0.69793504", "0.697706", "0.6977042", "0.69763446", "0.6972067", "0.6964208" ]
0.0
-1
Selects one object from the DB.
public static function doSelectOne(Criteria $criteria, PropelPDO $con = null) { $critcopy = clone $criteria; $critcopy->setLimit(1); $objects = CastleTypePeer::doSelect($critcopy, $con); if ($objects) { return $objects[0]; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function selectSingle() {\n $suffix = $this->formQuerySuffix();\n $arr = $this->table->selectSingle($suffix);\n $class = $this->className;\n $result = null;\n\n DBRecord::$fromPostData = false;\n if ($arr) $result = new $class($arr);\n DBRecord::$fromPostData = true;\n\n return $result;\n }", "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "public function read_single()\n {\n // Create query\n $query = \"\n SELECT\n id,\n name\n FROM\n $this->table\n WHERE \n id = ?\n LIMIT 1;\";\n\n //Prepare statement\n $stmt = $this->conn->prepare($query);\n \n // Bind ID\n $stmt->bindParam(1, $this->id);\n \n // Execute query\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set properties\n $this->id = $row['id'];\n $this->name = $row['name'];\n }", "public function single() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "public function single(){\r\n $this->execute();\r\n return $this->stmt->fetch(PDO::FETCH_OBJ);\r\n }", "protected function getOne()\n {\n $statement = $this->connection->query($this->sqlToString());\n return $this->fetch($statement);\n }", "public function fetchSingle() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "public function single()\n\t{\n\t\t$this->execute();\n\t\treturn $this->stm->fetch(PDO::FETCH_OBJ);\n\t}", "public function single()\n {\n $this->executeQuery($this->statement);\n return $this->fetch($this->statement);\n }", "function readOne(){\n\t $query = \"SELECT * FROM \" . $this->table_name . \" WHERE id = ? LIMIT 0,1\";\n\t // prepare query statement\n\t $stmt = $this->conn->prepare( $query );\n\t // sanitize\n\t $this->id=htmlspecialchars(strip_tags($this->id));\n\t // bind product id value\n\t $stmt->bindParam(1, $this->id);\n\t // execute query\n\t $stmt->execute();\n\t // get row values\n\t $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t // assign retrieved row value to object properties\n\t $this->id = $row['id'];\n\t $this->created = $row['created'];\n\t $this->modified = $row['modified'];\n\t}", "public function getOne(){\n //hacemos la consulta y lo guardamos en una variable\n $producto=$this->db->query(\"SELECT * FROM pedidos where id={$this->getId()};\");\n //devolvemos un valor en especifico y lo comvertimos a un objeto completamente usable.\n return $producto->fetch_object();\n }", "public function getOne() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n Connection::disconnect();\n\n if ($this->fetch !== PDO::FETCH_CLASS) {\n if (1 == $prepareStatement->columnCount())\n return $prepareStatement->fetch(PDO::FETCH_COLUMN);\n return $prepareStatement->fetch($this->fetch);\n }\n\n return $prepareStatement->fetchObject();\n }", "final public function first()\n {\n $queryBuilder = $this->createQueryBuilder();\n $queryBuilder->selectAll();\n $queryBuilder->limit(1);\n\n return $this->fetchOne($queryBuilder);\n }", "public function first() {\n\t\treturn $this->execute()->first();\n\t}", "public function getOne(){\n\n $pedido = $this->db->query(\"SELECT * FROM pedidos WHERE id = {$this->getId()}\");\n\n \n return $pedido->fetch_object();\n }", "public function findOne()\r\n {\r\n $records = $this->find(1);\r\n \r\n return isset($records[0]) ? $records[0] : null;\r\n }", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\t\t\t\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE lp_id = ?\";\r\n\t\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\t\t\t\t\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->id = $row ['lp_id'];\r\n\t\t\t\t\t$this->userid = $row ['lp_userid'];\r\n\t\t\t\t\t$this->random = $row ['lp_random'];\r\n\t\t\t\t\t$this->deadline = $row ['lp_deadline'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with id ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\t\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function readOne(){\r\n\t$query = \"SELECT\r\n\t\t\t\tname, description, price\r\n\t\t\tFROM\r\n\t\t\t\t\" . $this->table_name . \"\r\n\t\t\tWHERE\r\n\t\t\t\tid = ?\r\n\t\t\tLIMIT\r\n\t\t\t\t0,1\";\r\n\r\n\t// prepare query statement\r\n\t$stmt = $this->conn->prepare( $query );\r\n\r\n\t// sanitize\r\n\t$this->id=htmlspecialchars(strip_tags($this->id));\r\n\r\n\t// bind product id value\r\n\t$stmt->bindParam(1, $this->id);\r\n\r\n\t// execute query\r\n\t$stmt->execute();\r\n\r\n\t// get row values\r\n\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n\t// assign retrieved row value to object properties\r\n\t$this->name = $row['name'];\r\n\t$this->description = $row['description'];\r\n\t$this->price = $row['price'];\r\n}", "static function first() {\n list($record) = self::collection(null, \"id LIMIT 1\");\n return isset($record) ? $record : null;\n }", "public function selectFirst()\n {\n return $this->pdoConnection->query('SELECT * FROM ' . $this->table . ' LIMIT 1 ', \\PDO::FETCH_CLASS, $this->className)->fetch();\n }", "public function first()\n {\n $sql = $this->get() . ' LIMIT 1';\n $this->query = $sql;\n }", "public function getOne($id)\n {\n $sql = \"SELECT * FROM \".$this->table.\" WHERE id =\" . $id;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetch(PDO::FETCH_OBJ);\n }", "function readOne() {\n $query = \"SELECT\n id, name, description, created \n FROM\n \" . $this->table_name . \" \n WHERE\n id = ?\n LIMIT\n 0,1\";\n \n $stmt = $this->conn->prepare($query);\n \n $stmt->bindParam(1, $this->id); //ambil id dr bukunya\n\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC); //mengembalikan barisnya\n\n //set values objek bukunya berdasarkan id tadi\n $this->name = $row['name'];\n $this->description = $row['description'];\n $this->created = $row['created'];\n }", "public function one($id);", "public function fetchOne() {\r\n\t\t$data = $this->fetch();\r\n\r\n\t\t$this->freeResult();\r\n\r\n\t\treturn $data ? current($data) : null;\r\n\t}", "public function selectOneById(int $id)\n {\n // prepared request\n $statement = self::$pdoConnection->prepare(\"SELECT * FROM $this->table WHERE id=:id\");\n $statement->setFetchMode(\\PDO::FETCH_CLASS, $this->className);\n $statement->bindValue(':id', $id, \\PDO::PARAM_INT);\n $statement->execute();\n\n return $statement->fetch();\n }", "public function selectOneById(int $id)\n {\n // prepared request\n $statement = $this->pdoConnection->prepare(\"SELECT * FROM $this->table WHERE id=:id\");\n $statement->setFetchMode(\\PDO::FETCH_CLASS, $this->className);\n $statement->bindValue('id', $id, \\PDO::PARAM_INT);\n $statement->execute();\n\n return $statement->fetch();\n }", "public function findOne() {\n return parent::findOne();\n }", "public function first(){\n return $this->find(1);\n }", "public function fetchSingleById($id);", "public function fetchSingleById($id);", "public function readOne()\n {\n $sql = 'SELECT id_producto, nombre_producto, descripcion_producto, precio_producto, imagen_producto, stock, id_marca, estado_producto\n FROM productos\n WHERE id_producto = ?';\n $params = array($this->id);\n return Database::getRow($sql, $params);\n }", "public function selectOne(Query\\Select $query): ?Entity\n {\n return $this->db->selectOne($this->klass, $query);\n }", "function readOne(){\n\n\t\t// query to read single record\n\t\t$query = \"SELECT\n\t\t\t\t\ttype, color, price\n\t\t\t\tFROM\n\t\t\t\t\t\" . $this->table_name . \"\n\t\t\t\tWHERE\n\t\t\t\t\tclothe_id = ?\n\t\t\t\tLIMIT\n\t\t\t\t\t0,1\";\n\n\t\t// prepare query statement\n\t\t$stmt = $this->conn->prepare( $query );\n\n\t\t// bind id of product to be updated\n\t\t$stmt->bindParam(1, $this->clothe_id);\n\n\t\t// execute query\n\t\t$stmt->execute();\n\n\t\t// get retrieved row\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t// set values to object properties\n\t\t$this->type = $row['type'];\n\t\t$this->color = $row['color'];\n\t\t$this->price = $row['price'];\n\t}", "public function findOne(PDO $con)\n\t{\n\t\t$class = $this->resultClass;\n\t\t$stmt = $this->doExecute($con);\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$record = new $class();\n\t\t\t$record->load($row);\n\t\t\treturn $record;\n\t\t} \n\t}", "public function first()\n\t{\n\t\treturn $this->find()->first();\n\t}", "function readOne(){\n\n\t\t$query = \"SELECT * FROM \" . $this->table_name . \" WHERE id=? LIMIT 0,1\";\n\n\t\t$stmt = $this->conn->prepare( $query );\n\t\t$stmt->bindParam(1, $this->id);\n\t\t$stmt->execute();\n\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t$this->id = $row['id'];\n\t\t$this->nmp = $row['nama_pondok'];\n\t\t$this->almt = $row['alamat_pondok'];\n\t\t$this->komp = $row['komputer_pondok'];\n\t\t$this->sms = $row['no_sms_gateway'];\n\t}", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE dsh_id = ?\";\r\n\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\r\n\t\t\t\t\t$this->id = $row ['dsh_id'];\r\n\t\t\t\t\t$this->title = $row ['dsh_title'];\r\n\t\t\t\t\t$this->desc = $row ['dsh_desc'];\r\n\t\t\t\t\t$this->portlet = $row ['dsh_portlet'];\r\n\t\t\t\t\t$this->hide = $row ['dsh_hide'];\r\n\t\t\t\t\t$this->createdBy = $row ['dsh_created_by'];\r\n\t\t\t\t\t$this->modifiedBy = $row ['dsh_modified_by'];\r\n\t\t\t\t\t$this->createdDate = $row ['dsh_created_date'];\r\n\t\t\t\t\t$this->modifiedDate = $row ['dsh_modified_date'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with primary column ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function read_single() {\n $query = 'SELECT id, author\n FROM ' . $this->table . ' WHERE id = :id';\n\n //prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Bind ID\n $stmt->bindParam(':id', $this->id);\n\n //excuted query\n $stmt->execute();\n //GET the array \n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n //set properties\n $this->id = $row['id'];\n $this->author = $row['author'];\n }", "public static function fetchOne($result=null) {\n\treturn self::$instance->fetchOne($result);\n }", "public function first()\n {\n if (!$this->_result) {\n $this->limit(1);\n }\n\n return $this->all()->first();\n }", "function readOne(){\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \"\n WHERE\n id_actividad = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $sql = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $sql->bindParam(1, $this->id_actividad);\n \n // execute query\n $sql->execute();\n \n // get retrieved row\n $row = $sql->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->id_actividad = $row['id_actividad'];\n $this->nombre = $row['nombre'];\n $this->fecha_inicio = $row['fecha_inicio'];\n $this->fecha_fin = $row['fecha_fin'];\n $this->descripcion = $row['descripcion'];\n $this->id_evento = $row['id_evento'];\n }", "function readOne(){\r\n $query = \"SELECT s.ID, s.Name FROM \r\n \" . $this->tableName . \"\r\n AS b \r\n INNER JOIN BookSubjects AS bs ON b.ID = bs.BookID \r\n INNER JOIN Subjects AS s on s.ID = bs.SubjectID \r\n WHERE ID = ? LIMIT 0,1\";\r\n \r\n $final = $this->dbConn->prepare($query);\r\n $final->bindParam(1, $this->ID);\r\n $final->execute();\r\n \r\n $row = $final->fetch(PDO::FETCH_ASSOC);\r\n \r\n $this->ID = $row['ID'];\r\n $this->Name = $row['Name'];\r\n }", "public function getOne(){\n $categorias = $this ->db->query(\"SELECT * FROM categorias WHERE id={$this->getId()}\");\n return $categorias->fetch_object(); //devuelvo un objeto ya utilizable\n }", "public function single(){\n $this->debugBacktrace();\n $this->selectModifier = \"single\";\n return $this;\n }", "public function findOne() {\n $this->buildSql();\n $rows = $this->db->findOne($this->sql);\n return $rows;\n }", "public function getOneById($id)\n {\n return reset($this->prepare(array(DB::load($this->table, $id))));\n }", "public function getOne(){\n\n $categoria = $this->db->query(\"SELECT * from categorias WHERE id_categoria = '{$this->getIdCategoria()}'\");\n\n return $categoria->fetch_object();\n }", "function readOne(){\n \n // query to read single record\n $query = \n \"SELECT\n idpublisher, name\n FROM\n publishers\n WHERE\n idpublisher = ?\"; \n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of publisher to be updated\n $stmt->bindParam(1, $this->idpublisher);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->idpublisher = $row['idpublisher'];\n $this->name = $row['name'];\n }", "public function fetchOne( $type = null ){\n if( is_null( $type ) ){\n $type = PDO::FETCH_OBJ;\n }\n\n return $this->stmt->fetch( $type );\n }", "function readOne()\n {\n // query to read single record\n $query = \"SELECT\n s.id, s.email, s.name, s.state\n FROM\n \" . $this->table_name . \" s\n WHERE\n s.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of subscriber to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->email = $row['email'];\n $this->name = $row['name'];\n $this->state = $row['state'];\n }", "public function first()\n {\n return $this->retrieveOrCreateQueryInstance()->firstOrFail();\n }", "function get_one_by( $conds = array()) {\n\n\t\t// where clause\n\t\t$this->custom_conds( $conds );\n\n\t\t// query the record\n\t\t$query = $this->db->get( $this->table_name );\n\n\t\tif ( $query->num_rows() == 1 ) {\n\t\t// if there is one row, return the record\n\t\t\treturn $query->row();\n\t\t} else {\n\t\t// if there is no row or more than one, return the empty object\n\t\t\t return $this->get_empty_object( $this->table_name );\n\t\t\t\n\t\t}\n\n\t}", "public function fetch_one($sql) {\n\t\t\tglobal $db;\n\t\t\t$result = mysqli_query($db,$sql);\n\t\t\treturn mysqli_fetch_object($result);\n\t\t}", "public static function first()\n\t{\n\t\treturn self::new_instance_records()->first();\n\t}", "public function singleRow(){\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "public function single()\n {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "function findFirst($sql) {\n\t\t$args = func_get_args();\n\t\tarray_shift($args);\n\n\t\t$statement = $this->execute($sql, $args);\n\t\t$obj = $statement->fetchObject($this->resultClass, array($this));\n\t\treturn $obj;\n\t}", "public function getOneByUser(){\n //hacemos la consulta y lo guardamos en una variable\n $sql=\"SELECT id,coste FROM pedidos\"\n .\" where usuario_id={$this->getUsuario_id()} order by id desc limit 1\";\n $pedido=$this->db->query($sql);\n //devolvemos un valor en especifico y lo comvertimos a un objeto completamente usable.\n return $pedido->fetch_object();\n }", "function readOne(){\n \n // query to read single record\n $query = \"SELECT * FROM \" . $this->table_name . \" WHERE ROId = ? LIMIT 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of roUnit to be updated\n $stmt->bindParam(1, $this->ROId);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->ROId = $row['ROId'];\n $this->unit = $row['unit'];\n $this->created_on = $row['created_on'];\n $this->modified_on = $row['modified_on'];\n }", "public function findOne(int $id);", "public function first()\n {\n return $this->execute(\n $this->syntax->selectSyntax(get_object_vars($this->order($this->key, 'ASC')->limit(1)))\n );\n }", "function readOne(){\r\n //Query to read single record\r\n $query = \"SELECT text, author, category FROM quotes WHERE id = ?\";\r\n \r\n // Query statement\r\n $statement = $this->conn->prepare( $query );\r\n \r\n //Bind id of product to be updated\r\n $statement->bindParam(1, $this->id);\r\n \r\n // execute query\r\n $statement->execute();\r\n \r\n //Get retrieved row\r\n $row = $statement->fetch(PDO::FETCH_ASSOC);\r\n \r\n //If there is text at the given id, then we will display the quote information\r\n if (isset($row['text'])) {\r\n //Set values to object properties\r\n $this->text = $row['text'];\r\n $this->author = $row['author'];\r\n $this->category = $row['category'];\r\n } else {\r\n //Does nothing if nothing exists for the given id\r\n }\r\n\r\n }", "public function selectSingleObject() {\n\t\t$Object = $this->urlParams['ID'];\n\t\t$ID = $this->urlParams['OtherID'];\n\t\tif($result = DataObject::get_by_id($Object,(int)$ID)) {\n\t\t\t$f = new JSONDataFormatter();\n\t\t\t$json = $f->convertDataObject($result);\n\t\t\treturn \"{\\\"success\\\":true, \\\"data\\\":[$json]}\";\n\t\t} else {\n\t\t\treturn '{\"success\": false, \"data\":[]}';\n\t\t}\n\t}", "public function getOne($query = array())\n\t{\n\t\t// Check if database query has been given\n\t\tif (!$query instanceof Kohana_Database_Query)\n\t\t{\n\t\t\t// Query not given so create one\n\t\t\t$query = $this->populateWhere(DB::select(), $query);\n\t\t}\n\t\t$query->from($this->table); // Use the specified entity table\n\t\t$query->limit(1); // Limit to only 1 record\n\t\t$query->as_object($this->entityClass); // Use the defined entity class\n\t\t$result = $query->execute(); // Execute the query\n\n\t\t// Did we get a result?\n\t\tif ($result->count() === 0)\n\t\t{\n\t\t\t// No result\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Return the first (and only) row\n\t\t\treturn $this->loadRelations($result[0]);\n\t\t}\n\t}", "public function actionOne()\n {\n return $this->findModel(Yii::$app->request->get('id'));\n }", "public function fetchOne($sql, $params = array());", "public function findFirst() {\r\n\t\t$aux = $this->fetchAllPg(1);\r\n\t\tif($aux == null)\r\n\t\t\treturn null;\r\n\t\treturn $aux[0];\r\n\t}", "public function fetch_single(): mixed\n {\n $sth = $this->query(func_get_args());\n if(is_object($sth)) {\n return $sth->fetch();\n } else {\n return $sth;\n }\n }", "function mSelectOne ($q, $escapelist = null) {\n $res = mysql_query( mEscape($q,$escapelist) );\n if (!$res || mysql_num_rows($res) <= 0) return null;\n \n return mysql_fetch_assoc($res);\n}", "public function first($limit = 1)\r\n {\r\n $rs = $this->limit($limit);\r\n\r\n if ($limit == 1) {\r\n $this->type = 'select_one';\r\n }\r\n\r\n return $this->execute();\r\n }", "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n *\n FROM\n products p\n WHERE\n p.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->name=$row['name'];\n $this->price=$row['price'];\n $this->description=$row['description'];\n $this->category_id=$row['category_id'];\n $this->product_image=$row['product_image'];\n $this->detail_image=$row['detail_image'];\n $this->distributor=$row['distributor'];\n $this->quantity=$row['quantity'];\n $this->status=$row['status'];\n $this->purcharse_number=$row['purcharse_number'];\n $this->created_time=$row['created_time'];\n }", "public function getFirst()\r\n {\r\n return $this->dao->select('*')->from(TABLE_COMPANY)->orderBy('id')->limit(1)->fetch();\r\n }", "public function read_single() {\n \n //create query and prepare\n $query = \"SELECT * FROM $this->table WHERE id = ?\";\n $stmt = $this->conn->prepare($query);\n\n //bind params\n $stmt->bind_param('i', $id);\n\n //set parameter and execute\n $id = $this->id;\n $stmt->execute();\n\n //get result\n $result = $stmt->get_result();\n\n //fetch resulting as array\n $product = mysqli_fetch_assoc($result);\n\n //set product properties\n $this->id = $product['id'];\n $this->name = $product['name'];\n $this->price = $product['price'];\n $this->created_at = $product['created_at'];\n\n }", "public function first($select='*', $condition = null){\r\n\t\treturn $this->mask()->getOne($select, $condition, get_class($this));\r\n\t}", "function readOne(){\n\t\t\n\t\t$query = \"SELECT * FROM \" . $this->table_name . \" WHERE ID=? LIMIT 0,1\";\n\n\t\t$stmt = $this->conn->prepare( $query );\n\t\t$stmt->bindParam(1, $this->id);\n\t\t$stmt->execute();\n\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t$this->id = $row['ID'];\n\t\t$this->sms = $row['TextDecoded'];\n\t\t$this->by = $row['SenderNumber'];\n\t\t$this->recieve = $row['ReceivingDateTime'];\n\t\t// $this->update = $row['UpdateInDB'];\n\t}", "public function selectById()\n {\n $sql = \"SELECT * FROM \" . self::TABLE_NAME . \" WHERE id=?\";\n $stmt = $this->prepare($sql);\n $stmt->bind_param(\"s\", $this->getId());\n $stmt->execute();\n $result = $stmt->get_result();\n $stmt->close();\n return $result->fetch_assoc();\n }", "public static function findOne($condition)\n {\n $object = Server::$container->make(get_called_class(), [get_called_class()]);\n $conn = self::getMongoReadConn($object);\n $collection = $conn->selectCollection($object->getDBName(), $object->getCollectionName());\n if (isset($condition[\"_id\"])) {\n if (!is_object($condition[\"_id\"])) {\n $condition[\"_id\"] = new ObjectID($condition[\"_id\"]);\n }\n }\n // var_dump($conn);\n $res = $collection->findOne($condition);\n // var_dump($res);\n return $object;\n }", "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n g.name as group_name, u.id, u.name, u.surname, u.email, u.group_id, u.created\n FROM\n \" . $this->table_name . \" u\n LEFT JOIN\n groups g\n ON u.group_id = g.id\n WHERE\n u.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of user to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->name = $row['name'];\n $this->surname = $row['surname'];\n $this->email = $row['email'];\n $this->group_id = $row['group_id'];\n $this->created = $row['created'];\n \n }", "public function first()\n {\n return $this->take(1)->get()->first();\n }", "public function read_single(){\n $query='SELECT * FROM '.$this->table.' WHERE id=?';\n\n $stmt = $this->conn->prepare($query);\n\n $stmt->bindparam(1,$this->id);\n\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n $this->name=$row['name'];\n $this->email=$row['email'];\n $this->status=$row['status'];\n \n }", "public function getOneProducto()\n {\n $sql = \"SELECT * FROM productos WHERE id = {$this->getId()}\";\n $query = $this->conexion->query($sql);\n\n if ($query == true) {\n\n $resultado = $query->fetch_object();\n return $resultado;\n }\n }", "public function readOne ()\n {\n $query = \"SELECT\n book_id,type_id,name,isbn,publisher,author,price\n FROM\n \" . $this->table_name . \"\n WHERE\n book_id = $this->book_id\";\n\n $stmt = $this->conn->prepare( $query );\n\n $stmt->execute();\n\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n $this->book_id = $row['book_id'];\n $this->type_id = $row['type_id'];\n $this->name = $row['name'];\n $this->isbn = $row['isbn'];\n $this->publisher=$row['publisher'];\n $this->author=$row['author'];\n $this->price=$row['price'];\n\n\n }", "function getOneFromSQL( $sql ) {\r\n\r\n\t\tif( $resID = $this->query( $sql ) )\r\n\t\t\t\t\treturn $this->getOne( $resID );\r\n\t\telse\r\n\t\t\treturn false;\r\n\t\t\r\n\t}", "public function getOne($sql, $bind = null)\r\n {\r\n $result = $this->_execute($sql, $bind);\r\n\r\n return $result->fetchSingle();\r\n }", "public function get_one($id)\n {\n }", "public function readOne(){\n $query=\"SELECT c.name as category_name, p.id, p.name, p.description, p.price, p.category_id, p.created FROM \".$this->tabla.\" p LEFT JOIN categories c ON p.category_id=c.id WHERE p.id=? limit 0,1\";\n\n $consulta = $this->conn->prepare($query);\n \n //Pasamos parámetro \"?\"\n $consulta->bindParam(1,$this->id);\n $consulta->execute();\n\n if($consulta->rowCount()>0){\n $row=$consulta->fetch(PDO::FETCH_ASSOC);\n $this->name=$row[\"name\"];\n $this->price=$row[\"price\"];\n $this->description=$row[\"description\"];\n $this->category_id=$row[\"category_id\"];\n $this->category_name=$row[\"category_name\"];\n }\n }", "protected function getOne($sql, $model_name)\n\t{\n\t\t$item = self::$db->query($sql, PDO::FETCH_ASSOC)->fetch();\n\n\t\tif (!$item) {\n\t\t\tthrow new FrameworkException(FrameworkException::NOT_FOUND_IN_DATABASE,\n\t\t\t\t\"Kunde inte hitta resursen i databasen.\");\n\t\t}\n\n\t\treturn (is_array($item) ? new $model_name($item) : false);\n\t}", "public function first() {\n $this->limit(1);\n $query = $this->query( $this->_active_query->getQuery(), $this->_active_query->getParams() );\n return new QueryResult($query, TRUE);\n }", "public function fetchOne($id) : object\n {\n $sql = \"SELECT * FROM content WHERE id = ?;\";\n $content = $this->db->executeFetch($sql, [$id]);\n\n return $content;\n }", "public static function fetchSingle($args)\n\t{\n\t\t$args = func_get_args();\n\t\treturn self::getConnection()->query($args)->fetchSingle();\n\t}", "public function selectOne($productID){\n\t\t$this->db->where('ID = ', $productID);\n\t\treturn $this->db->get('products')->result()[0];\n\n\t}", "function first( $sql ){\n\t\tif( $this->db == null ){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$result = null;\n\t\tif ( $results = $this->db->query( $sql ) ) {\n\t\t $result = $results->fetch_object();\n\t\t\t$results->close();\n\t\t}\n\n\t\treturn $result;\n\t}", "public function selectRecord()\n {\n $sql = \"SELECT * FROM Cubans WHERE Id = :Id\";\n $statement = $this->connect->prepare($sql);\n $statement->bindValue(':Id', $this->id);\n $statement->execute();\n return $statement->fetch(PDO::FETCH_ASSOC);\n }", "function readOne(){\n $query = \"SELECT *\n FROM\n \" . $this->table . \"\n WHERE\n email = \" . $this->email . \"\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->email);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->agencyName = $row['agencyName'];\n $this->type = $row['type'];\n $this->email = $row['email'];\n $this->phone = $row['phone'];\n $this->password = $row['password'];\n }", "public function first()\n\t{\n\t\treturn Model::first();\n\t}", "function readOne(){\n \n // query to read single record\n $query = \"SELECT * FROM trabajo where id_Trabajo = ? LIMIT 0,1;\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id_Trabajo);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->Nombre = $row['Nombre'];\n $this->Requisitos = $row['Requisitos'];\n $this->Conocimientos = $row['Conocimientos'];\n $this->Beneficios = $row['Beneficios'];\n $this->Fecha_Publicacion = $row['Fecha_Publicacion'];\n }", "public function one($id)\n\t{\n\t\t$query = \"SELECT * from {$this->table}\n\t\t\t\t\tWHERE {$this->key} = :id\";\n\n\t\t$params = array(':id' => $id);\n\n\t\t$stmt = static::$dbh->prepare($query);\n\n\t\t$stmt->execute($params);\n\n\t\treturn $stmt->fetch(\\PDO::FETCH_ASSOC);\n\t}", "public function selectById($id);", "public function selectById($id);", "function readOne(){\r\n // query to read single record\r\n $query = \"SELECT\r\n id_pelanggan, nama_pelanggan, alamat, telepon, email, tgl_lahir\r\n FROM\r\n \" . $this->table_name . \"\r\n WHERE\r\n id_pelanggan = ?\";\r\n\r\n // prepare query statement\r\n $stmt = $this->conn->prepare($query);\r\n \r\n // bind id of product to be updated\r\n $stmt->bindParam(1, $this->id);\r\n \r\n // execute query\r\n $stmt->execute();\r\n \r\n // get retrieved row\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n \r\n // set values to object properties\r\n $this->nama_pelanggan = $row['nama'];\r\n $this->alamat = $row['alamat'];\r\n $this->telepon = $row['telepon'];\r\n $this->email = $row['email'];\r\n $this->tgl_lahir = $row['tgl_lahir'];\r\n }" ]
[ "0.73373353", "0.73347527", "0.73248285", "0.72701573", "0.72666776", "0.7239744", "0.72131133", "0.7209748", "0.71983886", "0.71252334", "0.70911306", "0.7057644", "0.70491564", "0.70462257", "0.70269436", "0.6976685", "0.69732434", "0.6968088", "0.69540846", "0.6942822", "0.68814033", "0.6860734", "0.68523043", "0.68333507", "0.67524105", "0.67454374", "0.67073363", "0.670707", "0.6701241", "0.66988325", "0.66988325", "0.66970134", "0.6687902", "0.6679791", "0.6630293", "0.66241133", "0.66216207", "0.6613872", "0.6610435", "0.66074765", "0.6598424", "0.65934527", "0.6592434", "0.6586785", "0.65784085", "0.65778875", "0.65776354", "0.6575195", "0.65744466", "0.6562481", "0.6554491", "0.6553761", "0.65505344", "0.6545138", "0.6537364", "0.6537068", "0.6520907", "0.6496908", "0.64936864", "0.64879036", "0.64736694", "0.64648956", "0.64614856", "0.6429755", "0.6426871", "0.64210296", "0.6395662", "0.63891137", "0.63847077", "0.6378423", "0.63739663", "0.6373739", "0.63610077", "0.6351724", "0.63434684", "0.6342895", "0.6334258", "0.6325963", "0.6323119", "0.6307926", "0.6307542", "0.62974024", "0.6290988", "0.6287735", "0.628411", "0.62824976", "0.62790626", "0.627435", "0.62649566", "0.62586445", "0.6253584", "0.62398297", "0.62299037", "0.6229227", "0.62233686", "0.62226766", "0.6222299", "0.6219052", "0.621742", "0.621742", "0.6215891" ]
0.0
-1
Selects several row from the DB.
public static function doSelect(Criteria $criteria, PropelPDO $con = null) { return CastleTypePeer::populateObjects(CastleTypePeer::doSelectStmt($criteria, $con)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function select();", "public function select();", "public function select();", "private function _selMultipleRowCustom($sql)\n\t{\n\t\tglobal $con;\n $query=mysqli_query($con,$sql);\n\t\t\n\t\t$result=array();\n\t\twhile($res=mysqli_fetch_object($query))\n\t\t{\n\t\t\t$result[]=$res;\n }\n mysqli_free_result($query);\n if(mysqli_more_results($con))\n {\n mysqli_next_result($con);\n }\n\t\t\n\t\tif(!empty($result))\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t}", "public function selectRow($row);", "function mSelectRows ($q, $escapelist = null) {\n $res = mysql_query( mEscape($q,$escapelist) );\n if (!$res || mysql_num_rows($res) <= 0) return null;\n \n return res2array($res);\n}", "function selectAll() {\n $query = $this->getStatement(\n \"SELECT * FROM `$this->table` WHERE 1 ORDER BY id\"\n );\n $query->execute();\n return $query->fetchAll();\n }", "public function select() \n {\n $this->select->execute();\n\n if ($this->select->errorCode() != 0) \n {\n print_r($this->select->errorInfo());\n }\n\n return $this->select->fetchAll();\n }", "public function selectAll();", "function select($columns)\n{\n\t$this->tryModify();\n\t$this->query['select'] = is_array($columns)? $columns : explode(',', $columns);\n\t$this->execute();\n\t$rows = $this->db->fetchAll($this->result);\n\t$this->close();\n\t$this->query['select'] = array('*');\n\treturn $rows;\n}", "private function _selMultipleRow($arr=NULL,$tablename,$where=NULL)\n\t{\n\t\tglobal $con;\n\t\tif(!empty($arr))\n\t\t{\n\t\t\t$selstr=implode(\",\",$arr);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$selstr=\"*\";\n\t\t}\n\t\tif(!empty($where))\n\t\t{\n\t\t\t$wherearr=array();\n\t\t\tforeach($where as $wherekey=>$whereval)\n\t\t\t{\n\t\t\t\t$wherearr[] = $wherekey.\"='\".$whereval.\"'\";\n\t\t\t}\n\t\t\t$wherestr=\" where \".implode(' AND ',$wherearr);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$wherestr=\"\";\n\t\t}\n\t\t$sql=\"select \".$selstr.\" from `\".$tablename.\"`\".$wherestr;\n\t\t$query=mysqli_query($con,$sql);\n\n\t\t$result=array();\n\t\twhile($res=mysqli_fetch_object($query))\n\t\t{\n\t\t\t$result[]=$res;\n\t\t}\n\t\tif(!empty($result))\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t}", "function selectMultipleRows($dbConnection, $sql) {\n \n\t// This line uses the builtin function mysqli_query\n\t// to get whatever we've specified in the $sql variable.\n \n\t$selectedRows = mysqli_query($dbConnection, $sql);\n \n\t// This is in case we get an error instead of a result:\n\tif(mysqli_errno($dbConnection)) \n\t{\n\t\techo \"There was an error in selectMultipleRows! Here is a var_dump of it:<br />\";\n\t\tvar_dump(mysqli_connect_error());\n\t}\n \n\t// We need to do a bit of processing to make a nice array out of\n\t// the results. So this next part creates an empty array, then populates\n\t// it with each row of our results\n \n\t$resultsArray = array();\n \n\twhile ($row = mysqli_fetch_assoc($selectedRows)) {\n\t\t$resultsArray[] = $row;\t\n\t}\n\t\n\t// And then return the finished array:\n\treturn $resultsArray;\n}", "public function select($table, $rows = \"*\", $where = null, $order = null, $limit = null){\n\t\t$q = 'SELECT '.$rows.' FROM '.$table;\n\t\tif($where != null){\n\t\t\t$q .= ' WHERE '.$where;\n\t\t}\n\t\tif($order != null){\n\t\t\t$q .= ' ORDER BY '.$order;\n\t\t}\n\t\tif ($limit != null){\n\t\t\t$q .= ' LIMIT '.$limit;\n\t\t}\n\t\t$result = mysqli_query($this->mysqli,$q);\n\t\twhile ($row = mysqli_fetch_assoc($result)){\n\t\t\t$data[] = $row;\n\t\t}\n\t\treturn $data;\n\t}", "protected function selMultipleRowCustom($sql)\n\t{\n\t\t$res=$this->_selMultipleRowCustom($sql);\n\t\treturn $res;\n\t}", "protected function selMultipleRow($arr=NULL,$tablename,$where=NULL)\n\t{\n\t\t$res=$this->_selMultipleRow($arr,$tablename,$where);\n\t\treturn $res;\n\t}", "public function fewSelection()\n {\n $selection = func_num_args() > 0 ? func_get_args() : $this->fewSelection;\n\n return call_user_func_array([$this, 'select'], $selection);\n }", "public function selectAllactor() {\n\t\t$this->dbAdapter->dbOpen();\n\t\t$result = $this->dbAdapter->actorSelectAll();\n\t\t$this->dbAdapter->dbClose();\n\t\t$this->error = $this->dbAdapter->lastError();\n\t\t\n\t\treturn $result;\t\t\n\t}", "function readByIds($ids){\r\n\r\n\t$ids_arr = str_repeat('?,', count($ids) - 1) . '?';\r\n\r\n\t// query to select products\r\n\t$query = \"SELECT id, name, price FROM \" . $this->table_name . \" WHERE id IN ({$ids_arr}) ORDER BY name\";\r\n\r\n\t// prepare query statement\r\n\t$stmt = $this->conn->prepare($query);\r\n\r\n\t// execute query\r\n\t$stmt->execute($ids);\r\n\r\n\t// return values from database\r\n\treturn $stmt;\r\n}", "public function selectRow ($sql,$array) {\n $this->quick_prepare($sql,$array);\n return $this->fetch();\n }", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "function select($q)\n {\n return $this->dbh->query($q, PDO::FETCH_ASSOC)->fetchAll();\n }", "function selectItems($select, $from, $where = 1, $value = array(), $order = 1, $limit = NULL){\n\t\tglobal $con;\n\t\t$limit = $limit != NULL ? ' LIMIT ' . $limit : '';\n\n\t\t$stmt = $con->prepare('SELECT ' . $select . ' FROM ' . $from . ' WHERE ' . $where . ' ORDER BY ' . $order . ' ' . $limit);\n\t\t$stmt->execute($value);\n\t\treturn $stmt->fetchAll();\n\t}", "public function fetch_multi($s_where=null,$i_start=null,$i_limit=null)\r\n {\r\n \r\n }", "public function select($rows){\r\n if(\\is_array($rows)){\r\n $this->select = array_merge($rows, $this->select);\r\n }else{\r\n array_push($this->select, $rows);\r\n }\r\n return $this;\r\n }", "public function selectMultiple() {\n $suffix = $this->formQuerySuffix();\n $select = $this->outerJoin ? $this->tableName : null;\n $arrs = $this->table->selectMultiple($suffix, $select);\n $class = $this->className;\n $result = array();\n\n foreach ($arrs as $key => $arr) {\n DBRecord::$fromPostData = false;\n $obj = new $class($arr);\n DBRecord::$fromPostData = true;\n\n $pass = true;\n foreach ($this->filters as $filterMethod => $params) {\n if (!call_user_func_array(array($obj, $filterMethod), $params)) $pass = false;\n }\n if ($this->indexBy) {\n $index = $this->indexBy;\n if (method_exists($obj, $index)) {\n $key = call_user_func(array($obj, $index));\n } else {\n $key = $obj->$index;\n }\n }\n if ($this->map) {\n $index = $this->map;\n if (method_exists($obj, $index)) {\n $obj = call_user_func(array($obj, $index));\n } else {\n $obj = $obj->$index;\n }\n }\n if ($pass) $result[$key] = $obj;\n }\n\n\n return $result;\n }", "public function select()\r\n\t{\r\n\t\t$this->clear();\r\n\t\t$where = null;\r\n\t\t// no args, so I'm searching for ALL... or doing a specific search\r\n\t\tif(func_num_args() === 0\r\n\t\t || ($where = call_user_func_array(array($this->obj, 'buildWhere'), func_get_args())))\r\n\t\t{\r\n\t\t\t$query = 'SELECT *\r\n\t\t\t\tFROM '.$this->obj->buildFrom();\r\n\t\t\t// pass args to where generator\r\n\t\t\tif($where)\r\n\t\t\t{\r\n\t\t\t\t$query .= ' WHERE '.$where;\r\n\t\t\t}\r\n\t\t\t$results = $this->site->db->query($query);\r\n\t\t\t$success = ($results->num_rows > 0);\r\n\t\t\twhile($row = $results->fetch_assoc())\r\n\t\t\t{\r\n\t\t\t\t$obj = new $this->obj->__CLASS__($this->obj->site);\r\n\t\t\t\tif($obj->loadRow($row))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->push($obj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $success;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function test_to_select($value1,$value2){\r\n\t\t\t$limit=10;\r\n\t\t$sql=\"select * from \".$this->table.\" where course_id=$value1 and chapter_id=$value2 order by test_name asc\";\r\n\t\t$objSql = new SqlClass();\r\n\t\t$record = $objSql->executeSql($sql);\r\n\t\treturn $record;\r\n\t\t//echo $sql;\r\n\t\t//$pagination_qatar = new pagination_qatar();\r\n\t\t//$pagination_qatar->createPaging($sql,$limit);\r\n\t\twhile($row=mysql_fetch_object($pagination_qatar->resultpage)){\r\n\t\t$rowdc[]=$row;\r\n\t\t}\r\n\t\t \r\n\t\t \r\n\t\treturn $rowdc;\r\n\t\t}", "private function _select(){\n $this->debugBacktrace();\n $parameter = $this->selectParam; //transfer to local variable.\n $this->selectParam = \"\"; //reset updateParam.\n\n \n \n $sql = \"\";\n if($this->hasRawSql){\n $sql = $parameter;\n $this->hasRawSql = false;\n }\n else{\n $tableName = $this->tableName;\n $this->tableName = \"\"; //reset.\n\n $columns = \"\";\n if(!isset($parameter) || empty($parameter)){\n $columns = \"*\";\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n else{\n //first check whether it has 'select' keyword\n $parameter = trim($parameter);\n $keyWord = substr($parameter,0,6);\n if(strtoupper($keyWord)==\"SELECT\") {\n $sql = $parameter;\n }\n else{\n $columns = $parameter;\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n }\n }\n\n \n $queryObject = $this->_perform_mysql_query($sql);\n \n if(empty($this->selectModifier)){\n //No select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $quantity = 0;\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n if(isset($tableName)){\n $meta = new stdClass();\n $meta->type = $tableName;\n $row->__meta = $meta;\n }\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n }\n\n if($quantity>0){\n mysqli_free_result($queryObject);\n }\n\n return $rows;\n //<----No select modifier (first, firstOrDefault, single, singleOrDefault) found \n }\n else{ \n //select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $selectModifier = $this->selectModifier;\n $this->selectModifier = \"\";\n $row;\n switch($selectModifier){\n case \"first\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n break;\n \n case \"firstOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n break;\n\n case \"single\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n if($numRows > 1){\n throw new ZeroException(\"Multiple records found.\");\n }\n break;\n\n case \"singleOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n if($numRows > 1){\n return NULL;\n }\n break;\n }\n\n return $this->_prepareSingleRecord($queryObject);\n //<---- select modifier (first, firstOrDefault, single, singleOrDefault) found *212*062#\n }\n }", "public function select($otros_votos);", "public function select($table, $fields, $where, $order, $start);", "function select_many($sql, $type='{}',$key=null){\n $result = $this->execute($sql) or $this->error($sql);\n $recordset = array();\n //$key = trim($type,'[]{}<>()');\n switch($type[0]){\n case '[' : $type = '[]'; break;\n case '{' : $type = '{}'; break;\n case '<' : $type = '<>'; break;\n case '(' : $type = '()'; break;\n default: $type = $type;\n }\n while ($row = $this->next($result,$type)) {\n if(!empty($key)){\n $idx = is_object($row)?($row->$key):$row[$key];\n $recordset[$idx] = $row;\n } else {\n $recordset[] = $row;\n }\n }\n mysql_free_result($result);\n return $recordset;\n }", "abstract public function prepareSelect();", "public function select()\n\t{\n\t\treturn call_user_func_array([$this->queryFactory->__invoke('select'), 'select'], func_get_args());\n\t}", "abstract public function get_rows();", "public function select($fields);", "static public function all_row ($a1, $a2, $a3 = null){ return self::all_rows($a1,$a2,$a3);}", "static public function rows ($a1, $a2 = null, $a3 = null) { return new DBIterator( self::do_the_query($a1, $a2, $a3), PDO::FETCH_NUM ); }", "public function select()\n {\n return curl_multi_select( $this->mh );\n }", "public function selectMany($sql, $options = array()) {\n if (($req = $this->execute($sql, $options)) === false)\n return false;\n\n $data = array();\n\n if (in_array(DB_NUM, $options))\n $mysqlFetchCmd = 'mysql_fetch_row';\n else\n $mysqlFetchCmd = 'mysql_fetch_assoc';\n\n while ($row = $mysqlFetchCmd($req))\n $data[] = $row;\n\n return $data;\n }", "public function select( array $value )\n {\n $this->query('select', $value);\n }", "function fetchList($select,$where = \"\",$order = \"\",$values = null){\n //if( ! is_object($this)) {\n // print_pre(debug_backtrace(),\"fetchList: debug_backtrace\");\n //}\n \n $qstr = \"select $select\";\n if( $where != \"\" ) $qstr .= \" where $where\";\n if( $order != \"\" ) $qstr .= \" order by $order\";\n \n //print \"fetchVal: qstr: $qstr<br>\\n\";\n $result = $this->query(\"$qstr\",$values);\n //print_pre($result,\"dbh\");\n $r = $result->fetchAll(PDO::FETCH_COLUMN);\n //print_pre($r,\"result fetchAll\");\n //print_pre($dbh,\"dbh\");\n return $r;\n }", "public function select($fields=null) { if ($fields) $this->fields($fields); return $this->execute($this->get_select()); }", "function selectAll()\r\n\t\t{\r\n\t\t\t$query = \"select * from prodi\";\r\n\t\t\treturn mysql_query($query);\r\n\t\t}", "public function fetchRowset()\n\t{\n\t\t$this->_query();\n\n\t\treturn $this->stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "function select($chosenElements, $table, $conditionsElement, $conditionsResults) {\n\n if(!is_array($chosenElements)) {\n throw new Exception(\"Vybírané prvky musí být pole.\");\n }else if(!is_string($table)) {\n throw new Exception(\"Tabulka musí být zadaná jako string.\");\n }else if(!is_array($conditionsElement)){\n throw new Exception(\"Podmínkové prvky musí být pole.\");\n }else if(!is_array($conditionsResults)){\n throw new Exception(\"Podmínkové prvky musí být pole.\");\n }else if(count($conditionsElement) !== count($conditionsResults)) {\n throw new Exception(\"Podmínkové prvky musí být stejně dlouhé.\");\n }\n $connect = NULL;\n /**Pripojeni do databaze */\n try {\n $connect = require(\"connect.php\");\n }catch(Exception $e) {\n throw $e;\n }\n \n $chosenElements = implode(\",\", $chosenElements);\n /**Podmnky jsou zadavany otazniky pro obranu pred SQL utokum */\n $conditions = implode(\"=? AND \",$conditionsElement);\n $conditions .= '=?';\n\n /**Kontrola poctu podminek */\n if(count($conditionsElement) === 0 && count($conditionsResults) === 0) {\n /**Formatovani metody */\n $statement = $connect->prepare('SELECT '.$chosenElements.' FROM '.$table);\n if(!$statement->execute($conditionsResults)) {\n throw new Exception(\"Chyba při SELECT dotazu.\");\n }\n return $statement->fetchAll();\n }\n\n $statement = $connect->prepare('SELECT '.$chosenElements.' FROM '.$table.' WHERE '.$conditions);\n if(!$statement->execute($conditionsResults)) {\n throw new Exception(\"Chyba při SELECT dotazu.\");\n }\n \n return $statement->fetchAll();\n}", "public function fetchRow();", "function selectAll()\n {\n $query = \"SELECT DocID, DocTitle, `Path`, `Blob` FROM Docs;\";\n $stmt = $this->conn->prepare( $query );\n\n // execute query\n $stmt->execute();\n return $stmt;\n }", "public function selectRows($fields='*', $table='users' ,$limit=10) {\n\t\tif(is_array($fields))\n\t\t{\n\t\t\t$fields = implode(\",\",$fields);\n\t\t}\n\t $sql = \"SELECT $fields from $table LIMIT $limit\"; \n $result = mysql_query($sql);\n\t\t$returnArray = array();\n\t\twhile($row = mysql_fetch_assoc($result))\n\t\t{\n\t\t\t$returnArray[] = $row;\n\t\t}\n\t\treturn $returnArray;\n }", "public function select_all(string $query)\n{\n $this->strquery = $query;\n $result = $this->conexion->prepare($this->strquery);\n $result->execute();\n $data = $result->fetchall(PDO::FETCH_ASSOC);\n return $data; \n}", "static function select($sql, $params = array()) {\n $sth = static::execute($sql, $params);\n\n $result = $sth->fetchAll();\n\n return $result;\n }", "function select_by_id($tbl, $cols='*', $value=null, $id='id', $limit=1){\n $where = 1;\n if(isset($value)) $where=\"$id='$value'\";\n $sql = \"SELECT $cols FROM $tbl WHERE $where LIMIT $limit\";\n $result = $this->execute($sql) or $this->error($sql);\n $row = $this->next($result,'{}');\n return $row;\n }", "public function select($single = false)\n {\n if ($single) {\n $this->limit(1);\n }\n $list = $this->__select();\n if ($single) {\n return isset($list[0])?$list[0]:array();\n }\n return $list;\n }", "static function selectAll() : Array {\r\n $selectAll = \"SELECT * FROM Orders;\";\r\n\r\n self::$db->query($selectAll);\r\n self::$db->execute();\r\n return self::$db->resultSet();\r\n }", "function adv_select($table, array $where = null, array $fields = null, $order = '', $limit = null, $offset = null);", "public function select($query)\n {\n $con = $this->getActiveConnection();\n $q= $con->query($query);\n $q->setFetchMode(PDO::FETCH_NUM); // Set like MySQL fetch ROW\n $rows = array();\n while($r = $q->fetch())\n {\n array_push($rows, $r);\n }\n $con= null; \n return $rows;\n \n \n }", "private function fetchSelect(String $query, bool $all)\n {\n $result = [];\n try {\n\n $sql = $this->driver->query($query);\n if($all){\n $result = $sql->fetchAll();\n }\n else{\n $result = $sql->fetch();\n }\n\n } catch (\\PDOException $e) {\n\n if ($e->getCode() === 1062) {\n //not sure here either\n return;\n } else {\n throw $e;\n }\n }\n return $result;\n }", "public function select($columns);", "public function fetchAll(){\n $adapter = $this->adapter;\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from('flota');\n $selectString = $sql->getSqlStringForSqlObject($select);\n $data = $adapter->query($selectString, $adapter::QUERY_MODE_EXECUTE);\n \n return $data;\n }", "public function queryRow()\n\t{\n\t\treturn $this->queryInternal('fetch',$this->_fetchMode);\n\t}", "public function exec_SELECTgetSingleRow() {}", "public function fetchMulti($query, Database_Config $databaseConfig = NULL);", "public function testSelectWithConditions(): void\n {\n $this->_insert();\n $result = $this->connection->selectQuery('id', 'ordered_uuid_items')\n ->where(['id' => '48298a29-81c0-4c26-a7fb-413140cf8569'], ['id' => 'ordered_uuid'])\n ->execute()\n ->fetchAll('assoc');\n\n $this->assertCount(1, $result);\n $this->assertSame('4c2681c048298a29a7fb413140cf8569', $result[0]['id']);\n }", "function get_row($keys,$sql_select='*',$type='array',$db_table='') {\r\n $db_table = $db_table == '' ? $this->db_table : $GLOBALS['dbpre'].$db_table;\r\n $sql_where = '';\r\n if (is_array($keys) and count($keys) > 0) {\r\n $sql_wheres = array();\r\n foreach ($keys as $key=>$val) {\r\n if (is_array($val)) die('getrow: multi value does not supported');\r\n $sql_wheres[] = \"`$key`='$val'\";\r\n }\r\n $sql_where = ' where '.join(' and ',$sql_wheres);\r\n }\r\n elseif (is_string($keys) and $keys != '') {\r\n $sql_where = ' where '.$keys;\r\n }\r\n $sql = 'select '.$sql_select.' from '.$db_table.$sql_where.' limit 0,1';\r\n #~ echo '<br>'.$sql;\r\n $res = mysql_query($sql) or die('<br>'.$sql.'<br>'.mysql_error()); #do to database\r\n if ($type == 'array')\r\n return mysql_fetch_array($res,MYSQL_ASSOC);\r\n else\r\n return mysql_fetch_row($res);\r\n\r\n }", "public static function getMultiRecord(){\n $sql = \"SELECT user_id, user_name, email, password, phone, address, type, signup_day, del_flag FROM user_t\";\n $records = Database::currentDb()->getMultiRecord($sql, $total_row);\n return $records;\n }", "public function select($table)\n {\n $select = \"SELECT * FROM $table ORDER BY id DESC LIMIT 10\";\n $result = $this->connect(\"student\")->query($select);\n if ($result->rowCount() > 0) {\n while ($row = $result->fetch()) {\n //puttting the value of the database in the array\n $data[] = $row;\n }\n return $data;\n }\n }", "public function select_all()\n {\n // TODO: Limit to id_user\n $query = $this->db->get($this->table);\n return $query;\n }", "public function selectAll($table){\n $requete = \"SELECT * FROM $table\";\n $result = array();\n foreach($this->_dbh->query($requete) as $raw){\n array_push($result,$raw);\n }\n return $result;\n }", "function select($fields = '*', $fetch_type = \\PDO::FETCH_ASSOC)\n {\n $this->db->table($this->getTableFullName());\n return call_user_func_array([$this->db, __FUNCTION__], func_get_args());\n }", "function select($item,$table,$s_cul=0,$value=0){\r\n global $con;\r\n $query=$con->prepare(\"SELECT $item FROM $table where $s_cul=? \");\r\n $query->execute(array($value));\r\n $content=$query->fetchall();\r\n return $content;\r\n}", "public function selectRows($fields=array())\n {\n if (!is_array($fields)) {\n throw new DatabaseException(\n \"Fields parameter [$fields] must be an array\"\n );\n }\n try {\n $query = $this->queries->selectRows($fields);\n $stmt = $this->db->prepare($query);\n $binds = $this->row->toBinds($fields);\n $binds = !empty($binds) ? $binds : null;\n $stmt->execute($binds);\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n yield $row;\n }\n } catch (\\PDOException $ex) {\n throw new DatabaseException($ex->getMessage(), 0, $ex);\n }\n }", "public function readAll(){\n //select all data\n $query = \"SELECT\n id, num_compte, cle_rib, num_agence, duree_epargne, frais, solde, created\n FROM\n \" . $this->table_name . \"\n ORDER BY\n num_compte\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n return $stmt;\n }", "public function fetchAll()\n {\n $result = $this->select();\n return $result;\n }", "function selectRow($table,$field,$where) {\n\t\tif($where!='')\n\t\t\t$where= ' WHERE '.$where;\n \t$query = \"SELECT \".$field.\"\n \t FROM \".$this->tablePrefix .$table.$where ;\n $res = $this->execute($query);\n \treturn $this->fetchOne($res);\n }", "public function selectAll() {\n\t\t\tif(!$this->selectAllStatement->execute()) return false; // if the query didn't execute, return false\n\t\t\t$result = $this->selectAllStatement->get_result(); // frees memory\n\t\t\t$resultArray = $result->fetch_all(MYSQLI_ASSOC);\n\t\t\treturn $resultArray;\n\t\t}", "public function selectAll() {\n\t\t\tif(!$this->selectAllStatement->execute()) return false; // if the query didn't execute, return false\n\t\t\t$result = $this->selectAllStatement->get_result(); // frees memory\n\t\t\t$resultArray = $result->fetch_all(MYSQLI_ASSOC);\n\t\t\treturn $resultArray;\n\t\t}", "public function fetchAll() {\n\t\t$queryBuilder = $this->db->createQueryBuilder();\n\t\t$queryBuilder\n\t\t\t->select('*')\n\t\t\t->from($this->table_name, 't1')\n\t\t;\n\t\t$result = $queryBuilder->execute()->fetchAll();\n\n\t\treturn $result;\n\t}", "public static function selectAll() {\n $select = self::select(Option::getTableName());\n\n return self::getInstanceData($select);\n }", "public function kamerselecteren(){\n $this->stmt = $this->conn->prepare(\"SELECT kamerid, kamernummer from kamer\");\n $result = $this->stmt->execute();\n\n if(!$result){\n die('<pre>Oops, Error execute query ' . $result . '</pre><br><pre>' . 'Result code: ' . $result . '</pre>');\n }\n $this->resultSet = $this->stmt->fetchALL(PDO::FETCH_ASSOC);\n\n $result = $this->resultSet;\n\n // return $result so we can use the data\n return $result;\n\n }", "public function Do_Allselect_Example1(){\n\n\t}", "protected function select() {\r\n $this->service->connect();\r\n $res = $this->service->execute_query(\"SELECT * FROM Users\");\r\n $this->assert_equals(3,sizeof($res[1]));\r\n $this->assert_equals(\"[email protected]\",$res[1][0]['Email']);\r\n }", "function select($query)\n\t{\n\t\t\n\t\tglobal $connection;\n\t\t$resuts = $connection->query($query);\n\t\treturn $resuts;\n\t}", "public function select($query){\n return pg_fetch_all($this -> query($query));\n }", "function select($idMedicalRecord) // Implementation \r\n\t\t{\r\n\t\t $this->idMedicalRecord = $idMedicalRecord;\r\n\t\t\t$dbo = database::getInstance(); // pass back that database object already created perhaps\r\n\t\t\t$sql = $this->buildQuery('select'); // what we want to do (select records)\r\n\r\n\t\t\t$dbo->doQuery($sql); // execute query statement\r\n\t\t\t$row = $dbo->loadObjectList(); //get list of all returned values as assoc array\r\n\t\t\r\n\t\t\treturn $row;\r\n\t\t}", "public function fetchAll()\r\n {\r\n $sql = new Sql($this->dbAdapter);\r\n $select = $sql->select();\r\n $select\r\n ->from(array('a_s' => $this->table))\r\n ->order('a_s.sector_order ASC');\r\n \r\n $selectString = $sql->getSqlStringForSqlObject($select);\r\n $execute = $this->dbAdapter->query($selectString, Adapter::QUERY_MODE_EXECUTE);\r\n $result = $execute->toArray();\r\n return $result;\r\n }", "public function select($perifericos);", "function readAll(){\n \n $query = \"SELECT * FROM \".$this->table_name.\" ORDER BY id_alternatif ASC\";\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n\n return $stmt;\n }", "function select( $sql ){\n\t\tif( $this->db == null ){\n\t\t\treturn false;\n\t\t}\n\n\t\t$results = array();\n\t\tif ( $result = $this->db->query( $sql ) ) {\n\t\t while ($row = $result->fetch_object()) {\n \t$results[] = $row;\n }\n\n\t\t\t$result->close();\n\t\t}\n\n\t\treturn $results;\n\t}", "public function selectById($table, $rows = '*', $where = null, $order = null, $limit = null, $join = null) {\n $query = 'SELECT ' . $rows . ' FROM ' . $table;\n if ($join != null) {\n $query .= ' JOIN ' . $join;\n }\n if ($where != null) {\n $query .= ' WHERE ' . $where;\n }\n if ($order != null) {\n $query .= ' ORDER BY ' . $order;\n }\n if ($limit != null) {\n $query .= ' LIMIT ' . $limit;\n }\n $result = $this->query($query);\n // Check to see if the table exists\n if ($result) {\n $this->result_array['result'] = true;\n $this->result_array['number_of_rows'] = mysqli_num_rows($result);\n if ($this->result_array['number_of_rows'] == 1) {\n $record = mysqli_fetch_array($result);\n// $record[]=mysqli_fetch_array($result);\n $this->result_array['resultset'] = $record;\n } else {\n $empty = \"this table is empty\";\n $this->result_array['resultset'] = $empty;\n }\n } else {\n $this->result_array['result'] = false;\n $this->result_array['error_no'] = mysqli_errno($this->connection);\n $this->result_array['error_message'] = mysqli_error($this->connection);\n }\n\n// $this->close_connection();\n return $this->result_array;\n }", "public function select($id)\t{\n\t\t\t$this->data = (array) \n\t\t\t\tself::$db->queryFetch(\n\t\t\t\t\t\"SELECT * FROM `{$this->table}` WHERE `id`=:id\",\n\t\t\t\t\tarray(':id'=>$id)\n\t\t\t\t);\n\t\t}", "public function selectAll($where) {\r\n $this->db->where($where);\r\n return $this->db->get($this->_table)->result();\r\n }", "protected static function select()\n {\n }", "public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function select( $rows = NULL ) {\n if ( $rows == NULL ) {\n throw new Exception( \"Invalid argument [rows] Type, excepted types are [array|string]\" );\n }\n\n if ( is_array($rows) ) {\n $this->_lastSelect = $rows;\n } else if ( $rows == '*' ) {\n $this->_lastSelect = array( '*' );\n } else if ( is_string($rows) ) {\n $this->_lastSelect = explode( $this->_arraySplitChar, $rows );\n }\n\n if ( !empty($this->_lastJoin) ) {\n $this->_currentImplement['select'][] = join( array_map(function($item ) {\n if ( $item !== '*' ) {\n return '`' . $this->_lastJoin . '`.' . '`' . $item . '`';\n } else {\n return '`' . $this->_lastJoin . '`.' . '' . $item . '';\n }\n }, $this->_lastSelect), ', ');\n }\n\n return $this;\n }", "function selectAll($dsstr)\n{\n\t$args = func_get_args();\n\t$sql = $this->getSelectSql($dsstr, $args);\n\t$res = $this->query($sql);\n\treturn $this->fetchAll($res);\n}", "public function selectuser($userids)\n { \n try{\n $sql = 'SELECT * FROM users\n WHERE userid = :userid';\n $aa = $this->conns->prepare($sql);\n $aa->bindParam(':userid', $userids);\n $aa->execute();\n // echo \"Record selected successfully\\n\";\n $aa->setFetchMode(PDO::FETCH_ASSOC);\n return ($aa->fetchAll());\n }catch (PDOException $e)\n {\n /*echo $sql . \"<br>\" . */$e->getMessage();\n }\n }", "public function select($params = []) {\n\t\t\t// Get the target table\n\t\t\t$table = $params['table'] ?? $this->table;\n\t\t\t// Get columns names [col1, col2, col3] => \"col1, col2, col3\"\n\t\t\t$columns = isset($params['columns']) ? implode(', ', $params['columns']) : '*';\n\t\t\t// Get WHERE condition\n\t\t\t$where = $this->get_where_condition($params['where'] ?? []);\n\t\t\t// Get the params to bind\n\t\t\t$bindings = $this->bindings;\n\n\t\t\t// Execute the query and return results\n\t\t\treturn $this->query(\"SELECT $columns FROM $table $where\", $bindings);\n\t\t}", "private function selectQuestions(){\n $this->selectLimit();\n $this->arrResultQuestions=parent::selectSomething('*', 'posts', '', '', '', null, null, null, null, 'lastanswer',\n 'desc', $this->questionsPerPage);\n }", "function getMany($query, array $binds = [], $conn)\n{\n $statement = $conn->prepare($query);\n foreach($binds as $key => $value) {\n $statement->bindValue($key, $value);\n }\n $statement->execute();\n $results = $statement->fetchAll();\n $statement->closeCursor();\n return $results;\n}", "public function select($sql, $data = array(), $fetchMode = PDO::FETCH_OBJ) {\n $sth = $this->prepare($sql);\n if(is_array($data)) {\n foreach($data as $key => $value) {\n $sth->bindValue(\":$key\", $value);\n }\n }\n $sth->execute();\n\n return $sth->fetchAll($fetchMode);\n }", "public function select($columns = array('*'));", "public function select($arguments)\n {\n $this->_validate($arguments);\n $this->_QUERYCOUNT++;\n\n return $this->_query->select($arguments);\n }" ]
[ "0.659016", "0.659016", "0.659016", "0.6564762", "0.65396285", "0.64876956", "0.63859034", "0.6288914", "0.62882006", "0.6231486", "0.62199694", "0.62159276", "0.62096107", "0.6179504", "0.6164087", "0.6125296", "0.61129975", "0.6088336", "0.60871804", "0.6058274", "0.60497224", "0.6039025", "0.6025959", "0.5981709", "0.59629387", "0.5945575", "0.59442884", "0.59413546", "0.5928462", "0.59248424", "0.5910861", "0.58997136", "0.5899208", "0.5877657", "0.58637375", "0.5861518", "0.5856561", "0.58497185", "0.5846997", "0.58443904", "0.58416975", "0.58413035", "0.5823106", "0.58073705", "0.57930535", "0.5790505", "0.5779435", "0.57784617", "0.5773379", "0.57729715", "0.576932", "0.57589805", "0.5749151", "0.57470614", "0.57430285", "0.5727275", "0.5722624", "0.57216406", "0.5715338", "0.5712934", "0.5709173", "0.5705237", "0.57003206", "0.5696774", "0.56854796", "0.5677305", "0.56754816", "0.5672328", "0.56717145", "0.5668486", "0.56597257", "0.56593364", "0.56470925", "0.56402105", "0.56402105", "0.56356984", "0.56297946", "0.56219244", "0.56061715", "0.5600474", "0.55989957", "0.55989134", "0.5596564", "0.5595705", "0.5592906", "0.5592051", "0.5590753", "0.55690247", "0.5568821", "0.5568569", "0.5567794", "0.5556862", "0.55554336", "0.55474657", "0.5546906", "0.55467767", "0.5543523", "0.554019", "0.5538713", "0.553005", "0.55253834" ]
0.0
-1
Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement. Use this method directly if you want to work with an executed statement directly (for example to perform your own object hydration).
public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_READ); } if (!$criteria->hasSelectClause()) { $criteria = clone $criteria; CastleTypePeer::addSelectColumns($criteria); } // Set the correct dbName $criteria->setDbName(CastleTypePeer::DATABASE_NAME); // BasePeer returns a PDOStatement return BasePeer::doSelect($criteria, $con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareSelectStatement() {}", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AsignacionScPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\t$criteria = clone $criteria;\n\t\t\tAsignacionScPeer::addSelectColumns($criteria);\n\t\t}\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\t\t// symfony_behaviors behavior\n\t\tforeach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)\n\t\t{\n\t\t call_user_func($sf_hook, 'BaseAsignacionScPeer', $criteria, $con);\n\t\t}\n\n\n\t\t// BasePeer returns a PDOStatement\n\t\treturn BasePeer::doSelect($criteria, $con);\n\t}", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbprofessorPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\t$criteria = clone $criteria;\n\t\t\tTbprofessorPeer::addSelectColumns($criteria);\n\t\t}\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\t// BasePeer returns a PDOStatement\n\t\treturn BasePeer::doSelect($criteria, $con);\n\t}", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(CoursePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\t$criteria = clone $criteria;\n\t\t\tCoursePeer::addSelectColumns($criteria);\n\t\t}\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\t// BasePeer returns a PDOStatement\n\t\treturn BasePeer::doSelect($criteria, $con);\n\t}", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(SertifikasiPdPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n if (!$criteria->hasSelectClause()) {\n $criteria = clone $criteria;\n SertifikasiPdPeer::addSelectColumns($criteria);\n }\n\n // Set the correct dbName\n $criteria->setDbName(SertifikasiPdPeer::DATABASE_NAME);\n\n // BasePeer returns a PDOStatement\n return BasePeer::doSelect($criteria, $con);\n }", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n\t{\n\n foreach (sfMixer::getCallables('BaseMissionPhotoPeer:doSelectStmt:doSelectStmt') as $callable)\n {\n call_user_func($callable, 'BaseMissionPhotoPeer', $criteria, $con);\n }\n\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(MissionPhotoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\t$criteria = clone $criteria;\n\t\t\tMissionPhotoPeer::addSelectColumns($criteria);\n\t\t}\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\t// BasePeer returns a PDOStatement\n\t\treturn BasePeer::doSelect($criteria, $con);\n\t}", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n\t{\n\n foreach (sfMixer::getCallables('BaseRpMissionSummaryPeer:doSelectStmt:doSelectStmt') as $callable)\n {\n call_user_func($callable, 'BaseRpMissionSummaryPeer', $criteria, $con);\n }\n\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RpMissionSummaryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\t$criteria = clone $criteria;\n\t\t\tRpMissionSummaryPeer::addSelectColumns($criteria);\n\t\t}\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\t// BasePeer returns a PDOStatement\n\t\treturn BasePeer::doSelect($criteria, $con);\n\t}", "abstract public function prepareSelect();", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(GsDailyDefinedDosePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n if (!$criteria->hasSelectClause()) {\n $criteria = clone $criteria;\n GsDailyDefinedDosePeer::addSelectColumns($criteria);\n }\n\n // Set the correct dbName\n $criteria->setDbName(GsDailyDefinedDosePeer::DATABASE_NAME);\n\n // BasePeer returns a PDOStatement\n return BasePeer::doSelect($criteria, $con);\n }", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(ReportPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n if (!$criteria->hasSelectClause()) {\n $criteria = clone $criteria;\n ReportPeer::addSelectColumns($criteria);\n }\n\n // Set the correct dbName\n $criteria->setDbName(ReportPeer::DATABASE_NAME);\n\n // BasePeer returns a PDOStatement\n return BasePeer::doSelect($criteria, $con);\n }", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(GsGeneriekeProductenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n if (!$criteria->hasSelectClause()) {\n $criteria = clone $criteria;\n GsGeneriekeProductenPeer::addSelectColumns($criteria);\n }\n\n // Set the correct dbName\n $criteria->setDbName(GsGeneriekeProductenPeer::DATABASE_NAME);\n\n // BasePeer returns a PDOStatement\n return BasePeer::doSelect($criteria, $con);\n }", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(RuangLongitudinalPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n if (!$criteria->hasSelectClause()) {\n $criteria = clone $criteria;\n RuangLongitudinalPeer::addSelectColumns($criteria);\n }\n\n // Set the correct dbName\n $criteria->setDbName(RuangLongitudinalPeer::DATABASE_NAME);\n\n // BasePeer returns a PDOStatement\n return BasePeer::doSelect($criteria, $con);\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\treturn TbprofessorPeer::populateObjects(TbprofessorPeer::doSelectStmt($criteria, $con));\n\t}", "public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(GsSupplementaireProductenHistoriePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n if (!$criteria->hasSelectClause()) {\n $criteria = clone $criteria;\n GsSupplementaireProductenHistoriePeer::addSelectColumns($criteria);\n }\n\n // Set the correct dbName\n $criteria->setDbName(GsSupplementaireProductenHistoriePeer::DATABASE_NAME);\n\n // BasePeer returns a PDOStatement\n return BasePeer::doSelect($criteria, $con);\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n {\n return SertifikasiPdPeer::populateObjects(SertifikasiPdPeer::doSelectStmt($criteria, $con));\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\treturn AsignacionScPeer::populateObjects(AsignacionScPeer::doSelectStmt($criteria, $con));\n\t}", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\treturn CoursePeer::populateObjects(CoursePeer::doSelectStmt($criteria, $con));\n\t}", "protected function prepareQuery()\n {\n if (false === $this->isQueryPrepared) {\n $options = array(\n SelectorSourceInterface::RESULT => SelectorSourceInterface::RESULT_IDENTIFIERS,\n SelectorSourceInterface::LIMIT => $this->limit,\n SelectorSourceInterface::OFFSET => $this->offset,\n SelectorSourceInterface::ORDERBY => $this->orderBy,\n SelectorSourceInterface::GROUPBY => $this->groupBy,\n );\n $this->setIdsArray(\n $this->source->loadIds(\n $this->criterias,\n array_merge($this->options, $options)\n ),\n array_merge($this->options, $options)\n );\n $this->isQueryPrepared = true;\n }\n\n return $this;\n }", "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "protected function doExecute(PDO $con)\n\t{\n\t\t$stmt = $con->prepare($this->getSQL());\n\t\tforeach ($this->wheres as $key => $where) {\n\t\t\tif (null === $where['value']) {\n\t\t\t\t$stmt->bindValue($key + 1, null, PDO::PARAM_NULL);\n\t\t\t} else {\n\t\t\t\t$stmt->bindValue($key + 1, $where['value'], $where['type']);\n\t\t\t}\n\t\t}\n\t\t$stmt->execute();\n\t\treturn $stmt;\n\t}", "public function selectPrepare($sql, $bind = null, $fetch_mode = null)\r\n {\r\n $stmt = $this->getSlave()->prepare($sql);\r\n $stmt->execute($this->_bind($bind));\r\n if (null !== $fetch_mode) {\r\n $stmt->setFetchMode($fetch_mode);\r\n }\r\n return $stmt;\r\n }", "public function prepare($where, $className, $query, $fetchRows = 'all')\n {\n $wqp = new WhereQueryParser();\n $util = new Utils();\n $rows = null;\n\n try {\n $ar = $wqp->parseWhereQuery($where);\n $stmt = Connection::get()->prepare($this->queryPrefix($query));\n $stmt->execute($ar);\n\n if ($fetchRows == 'first') {\n $results = $stmt->fetch(\\PDO::FETCH_ASSOC);\n } else{\n $results = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n }\n\n if($this->checkCountable($results) ){\n // now turn this stdClass object to the object type of calling model\n $rows = $util->turnObjects($className, $results);\n }\n\n return $rows;\n } catch (\\PDOException $ex) {\n throw new \\PDOException($ex->getMessage(), 1);\n } catch (Exception $e) {\n throw new Exception($e->getMessage(), 1);\n }\n }", "private function _prepareQuery() \n\t{\n\t\t\t// Establish connection to the database if not already connected\n\t\tif (! $this->_connection || empty($this->_connection)) {\n\t\t\t\n\t\t\t // retrieve the database configuration from the registry\n\t\t\t$config = Registry::getSetting('dbConfig');\n\t\t\t\n\t\t\t$this->_newConnection(\n\t\t\t\t\t$config['host'], \n\t\t\t\t\t$config['database'], \n\t\t\t\t\t$config['user'], \n\t\t\t\t\t$config['password']);\n\t\t}\n\t\t\n\t\tif (! $stmt = $this->_connection->prepare ( $this->_query )) {\n\t\t\ttrigger_error ( 'Problem preparing query', E_USER_ERROR );\n\t\t}\n\t\t$this->_stmt = $stmt;\n\t}", "public function byCriterion()\n {\n $mockCriterion = $this->getMock('stubCriterion');\n $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example'));\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->exactly(2))\n ->method('fetchAll')\n ->will($this->onConsecutiveCalls(false, array(array('bar' => 'Here is bar.', 'default' => 'And this is default.'))));\n $finderResult = $this->dbFinder->findByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockSinglePrimaryKeyEntity'));\n $this->assertEquals(0, $finderResult->count());\n $finderResult = $this->dbFinder->findByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockSinglePrimaryKeyEntity'));\n $this->assertEquals(1, $finderResult->count());\n $data = $finderResult->current();\n $this->assertEquals('Here is bar.', $data->withAnnotation());\n $this->assertEquals('And this is default.', $data->withDefaultValue());\n $select = $this->mockQueryBuilder->getSelect();\n $this->assertEquals('foo', $select->getBaseTableName());\n $this->assertEquals('bar ASC', $select->getOrderedBy());\n $this->assertTrue($select->hasCriterion());\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n {\n return ReportPeer::populateObjects(ReportPeer::doSelectStmt($criteria, $con));\n }", "private function PrepStatement()\n\t{\n\t\t$this->stmt = $this->prepare($this->query->statement);\n\t\tif($this->query->parameters !==NULL && $this->query->paramtype !==NULL\n\t\t\t&& count($this->query->parameters) == count($this->query->paramtype))\n\t\t{\n\t\t\tforeach ($this->query->parameters as $parameter => $value)\n\t\t\t{\n\t\t\t\t$this->stmt->bindValue($parameter, $value, $this->query->paramtype[$parameter]);\n\t\t\t}\n\t\t}\n\t\telseif ($this->query->parameters!==NULL)\n\t\t{\n\t\t\tforeach ($this->query->parameters as $parameter => $value)\n\t\t\t{\n\t\t\t\t$this->stmt->bindValue($parameter, $value, pdo::PARAM_STR);\n\t\t\t}\n\t\t}\n\t}", "private function execute() {\n $this->statement = $this->pdo->prepare($this->queryString);\n\n foreach ($this->params as $boundParam) {\n $this->statement->bindValue($boundParam->name, $boundParam->value, $boundParam->type);\n }\n\n $this->statement->execute();\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n {\n return GsDailyDefinedDosePeer::populateObjects(GsDailyDefinedDosePeer::doSelectStmt($criteria, $con));\n }", "protected function prepareOrderByStatement() {}", "public function prepare($statement)\n {\n try {\n $stmt = new Statement($statement, $this);\n } catch (Exception $ex) {\n throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $statement);\n }\n\n $stmt->setFetchMode($this->defaultFetchMode);\n\n return $stmt;\n }", "public function query($statement, $mode = null, ...$fetch_mode_args): PDOStatement\n {\n $stmt = $this->prepare($statement);\n $stmt->execute();\n\n if ($mode) {\n $stmt->setFetchMode($mode, $fetch_mode_args);\n }\n\n return $stmt;\n }", "protected function basePreSelect(PropelPDO $con)\n {\n // event behavior\n EventDispatcherProxy::trigger('query.select.pre', new QueryEvent($this));\n\n return $this->preSelect($con);\n }", "protected function basePreSelect(PropelPDO $con)\n {\n // event behavior\n EventDispatcherProxy::trigger('query.select.pre', new QueryEvent($this));\n\n return $this->preSelect($con);\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n {\n return CastleTypePeer::populateObjects(CastleTypePeer::doSelectStmt($criteria, $con));\n }", "public function prepareQuery()\n {\n //prepare where conditions\n foreach ($this->where as $where) {\n $this->prepareWhereCondition($where);\n }\n\n //prepare where not conditions\n foreach ($this->whereNot as $whereNot) {\n $this->prepareWhereNotCondition($whereNot);\n }\n\n // Add a basic range clause to the query\n foreach ($this->inRange as $inRange) {\n $this->prepareInRangeCondition($inRange);\n }\n\n // Add a basic not in range clause to the query\n foreach ($this->notInRange as $notInRange) {\n $this->prepareNotInRangeCondition($notInRange);\n }\n\n // add Terms to main query\n foreach ($this->whereTerms as $term) {\n $this->prepareWhereTermsCondition($term);\n }\n\n // add exists constrains to the query\n foreach ($this->exist as $exist) {\n $this->prepareExistCondition($exist);\n }\n\n // add matcher queries\n foreach ($this->match as $match) {\n $this->prepareMatchQueries($match);\n }\n\n $this->query->addFilter($this->filter);\n\n return $this->query;\n }", "public function prepare($statement, array $driver_options=[]) {\n $this->queries[] = $statement;\n if (count($driver_options)) {\n return parent::prepare($statement, $driver_options);\n } else {\n return parent::prepare($statement);\n }\n }", "public function prepare() {\n\t\tif ($this->_statement == null) \n\t\t{\n\t\t\ttry {\n\t\t\t\t$this->_statement = $this->_connection->getPdoInstance()->prepare($this->getText());\n\t\t\t\t$this->_paramLog = array();\n\t\t\t} catch (\\Exception $e) {\n\t\t\t\t$errorInfo = $e instanceof PDOException ? $e->errorInfo : null;\n\t\t\t\tthrow new \\GO\\Base\\Exception\\Database('DbCommand failed to prepare the SQL statement: '. $e->getMessage(), $e->getCode(), $errorInfo);\n\t\t\t}\n\t\t}\n\t}", "private function executeAndFetchStatement($select){\n $this->statement = $this->connection->prepare($select);\n $this->statement->execute();\n $result = $this->statement->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }", "public function executePreparedSelect(string $queryString, string $types, array $vars, &...$results) {\n\n foreach($vars as $var) {\n $var = $this->dbConnection->real_escape_string($var);\n }\n\n $sqlStatement = $this->dbConnection->prepare($queryString);\n $sqlStatement->bind_param($types, ...$vars);\n\n $sqlStatement->execute();\n $sqlStatement->bind_result(...$results);\n $sqlStatement->store_result();\n return $sqlStatement;\n }", "public function select(string $columns, array $where = [], int $fetch_mode = PDO::FETCH_ASSOC) : self {\n $this->query_builder->resetProperties();\n $this->query_builder->setMode('select');\n $this->query_builder->setColumns($columns);\n\n if (!empty($where)) {\n $this->query_builder->setWhere($where);\n $where = $this->formatWhereData($where);\n }\n\n try {\n $stmt = parent::prepare($this->query_builder->getQuery());\n $stmt->execute($where);\n $this->results = $stmt->fetchAll($fetch_mode);\n } catch (PDOException $e) {\n $this->pdo_exception = $e;\n $this->query_failed = true;\n }\n\n return $this;\n }", "public function testFetchWithParameters()\n {\n $this->mockPdoStatement->shouldReceive('execute')->once()->withNoArgs();\n $this->mockPdoStatement->shouldReceive('setFetchMode')->once()->with('parameters', 'value')->andReturnSelf();\n $this->mockPdoStatement->shouldReceive('fetch')->once()->withNoArgs()->andReturn('fetched');\n $this->mockPdo->shouldReceive('prepare')->once()->with('SQL')->andReturn($this->mockPdoStatement);\n\n\n $query = (new Select($this->mockConnection));\n $query->query('SQL', []);\n $this->assertEquals('fetched', $query->fetch('parameters', 'value'));\n }", "public function prepareQueryForCategory()\n {\n $sql = new SqlStatement();\n $sql->select(array('p.*'))\n ->from(array('p' => self::RESULTS_TABLE))\n ->innerJoin(array('pp' => 'product'), 'p.product_id = pp.product_id')\n ->innerJoin(array('pd' => 'product_description'), 'p.product_id = pd.product_id')\n ->where('pd.language_id = ?', (int)$this->config->get('config_language_id'))\n ->order($this->sortOrder)\n ->limit($this->productsLimit, $this->productsStart);\n \n if ($this->conditions->price) {\n if ($this->conditions->price->min) {\n $sql->where(\"{$this->subquery->actualPrice} >= ?\", array($this->conditions->price->min));\n }\n if ($this->conditions->price->max) {\n $sql->where(\"{$this->subquery->actualPrice} <= ?\", array($this->conditions->price->max));\n }\n }\n \n if ($this->conditions->rating) {\n $sql->where('ROUND(total) IN ('. implode(',', $this->conditions->rating[0]) . ')');\n } \n \n return $sql;\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\treturn MissionPhotoPeer::populateObjects(MissionPhotoPeer::doSelectStmt($criteria, $con));\n\t}", "public function query($statement, $class_name = null, bool $one = false)\n {\n // $parts = end($classe);\n // $table = strtolower(str_replace('Entity', '', $parts));\n // var_dump($class_name);\n \n $req = $this->getPdo()->query($statement);\n if ($this->checkStatement($statement,$req)) {\n # code...\n }\n else{\n $request= $this->checkFetchPdo($class_name,$req);\n if ($one) {\n $datas = $request->fetch();\n } else {\n\n $datas = $request->fetchAll();\n }\n \n return $datas;\n }\n }", "protected function _transformQuery()\n {\n if (!$this->_dirty || $this->_type !== 'select') {\n return;\n }\n\n if (empty($this->_parts['from'])) {\n $this->from([$this->_repository->getAlias() => $this->_repository->table()]);\n }\n $this->_addDefaultFields();\n $this->getEagerLoader()->attachAssociations($this, $this->_repository, !$this->_hasFields);\n $this->_addDefaultSelectTypes();\n }", "protected function _execute()\n {\n $this->triggerBeforeFind();\n if ($this->_results) {\n $decorator = $this->_decoratorClass();\n\n return new $decorator($this->_results);\n }\n\n $statement = $this->getEagerLoader()->loadExternal($this, $this->execute());\n\n return new ResultSet($this, $statement);\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n {\n return GsGeneriekeProductenPeer::populateObjects(GsGeneriekeProductenPeer::doSelectStmt($criteria, $con));\n }", "public function execute()\n {\n /* If there's a select limit, capitalize on it */\n if($this->limit) {\n $this->query .= ' LIMIT ' . $this->limit;\n }\n \n /* If executement arguments has values, execute statement with\n the values */\n if(count($this->values) != 0) {\n /* Execute query in prepared format */\n $request = $this->pdo->prepare($this->getQuery());\n \n /* Append values to execute */\n $request->execute($this->values);\n }else if(count($this->values) == 0) {\n /* Run query if values is empty */\n $request = $this->pdo->query($this->getQuery());\n }\n /* Reset values array for next query */\n $this->values = [];\n \n /* If execution action is fetch, return ->fetchAll(); */\n if($this->action == 'fetch') {\n return $request->fetchAll();\n }\n \n /* If execution action is rows, return ->rowCount(); */\n if($this->action == 'rows') {\n return $request->rowCount();\n }\n \n /* Else return self */\n return $this;\n }", "public function prepareAndExecute (PDO $connection, string $query, array $params = []);", "protected function setupPdoQueries()\n {\n $this->conf['select-user'] = sprintf('\n\t\t\tSELECT username as user, name, email as mail, password as hash, id as uid\n\t\t\tFROM %s WHERE username = :user',\n $this->getTableName('users'));\n\n $this->conf['select-user-groups'] = sprintf('\n\t\t\tSELECT title as `group` FROM %s as groups\n\t\t\tLEFT JOIN %s as groupmap ON groups.id = groupmap.group_id\n\t\t\tLEFT JOIN %s as user ON groupmap.user_id = user.id\n\t\t\tWHERE user.username = :user OR user.id = :uid ',\n $this->getTableName('usergroups'),\n $this->getTableName('user_usergroup_map'),\n $this->getTableName('users'));\n\n $this->conf['select-groups'] = sprintf('\n\t\t\tSELECT title as `group`, id as gid FROM %s',\n $this->getTableName('usergroups'));\n }", "public function Prepare($statement, $driver_options=NULL)\n {\n// $this->Handle->closeCursor();\n\n $this->Handle = parent::prepare($statement,\n array(PDO::ATTR_STATEMENT_CLASS =>\n array('ExDatabaseStatement')));\n\n if (!$this->Handle instanceof PDOStatement) {\n $error_info = parent::errorInfo();\n throw new ExDatabaseException('Could not prepare query: ' . $error_info[2]);\n }\n\n return $this->Handle;\n }", "public function prepare($query)\n {\n $stmt = new Doctrine_Adapter_Statement_Oracle($this, $query, $this->executeMode);\n\n return $stmt;\n }", "public function preExecute(SelectInterface $query = NULL);", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n\t{\n\t\treturn RpMissionSummaryPeer::populateObjects(RpMissionSummaryPeer::doSelectStmt($criteria, $con));\n\t}", "public function select($statement, $named_placeholder){\n\n // prepared statement (send statement to server + checks syntax)\n $stmt = $this->conn->prepare($statement);\n\n $stmt->execute($named_placeholder);\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n\n }", "protected function processSelect(\\Zend_Db_Select $select)\n { }", "public function PREPARE_STATEMENT($PREPARED_SQL)\r\n {\r\n return $this->statement = $this->Connection->prepare($PREPARED_SQL);\r\n }", "public function testFetch()\n {\n $this->mockPdoStatement->shouldReceive('execute')->once()->withNoArgs();\n $this->mockPdoStatement->shouldReceive('setFetchMode')->once()->with(\\PDO::FETCH_ASSOC)->andReturnSelf();\n $this->mockPdoStatement->shouldReceive('fetch')->once()->withNoArgs()->andReturn('fetched');\n $this->mockPdo->shouldReceive('prepare')->once()->with('SQL')->andReturn($this->mockPdoStatement);\n\n\n $query = (new Select($this->mockConnection));\n $query->query('SQL', []);\n $this->assertEquals('fetched', $query->fetch());\n }", "protected function prepareExecute()\n {\n parent::prepareExecute();\n }", "public function findCriteria()\r\n\t{\n\t\t$result = $this -> connection -> setTable($this -> entity)\n\t\t\t\t\t\t\t\t\t -> fetch();\r\n\n\t\treturn $result;\r\n\t}", "function executeAsPrepared($sql, $data, $onlyExecute = false)\n {\n if ($this->debug_mode == 2) {\n echo \"executeAsPrepared - $sql<br>\";\n printr($data);\n }\n try {\n if ($sql != $this->lastPrepared) {\n $this->statement = $this->connection->prepare($sql);\n $this->lastPrepared = $sql;\n }\n\n /*\n * Execution de la requete\n */\n $this->lastResultExec = $this->statement->execute($data);\n if ($this->lastResultExec && !$onlyExecute) {\n return $this->statement->fetchAll(PDO::FETCH_ASSOC);\n } else {\n return $this->lastResultExec;\n }\n } catch (PDOException $e) {\n $this->lastResultExec = false;\n if ($this->debug_mode > 0) {\n $this->addMessage($e->getMessage());\n }\n throw new ObjetBDDException($e->getMessage());\n }\n }", "public function select($statement, $named_placeholder){\n $statement = $this->dbh->prepare($statement);\n\n $statement->execute($named_placeholder);\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n var_dump($result);\n\n }", "public static function prepare( $stmt )\n {\n $_options = array();\n if ( self::$CURSOR_MODE ):\n switch ( self::$CURSOR_MODE ):\n case 'fw':\n $_options[\\PDO::ATTR_CURSOR] = \\PDO::CURSOR_FWDONLY;\n break;\n case 'scroll':\n $_options[\\PDO::ATTR_CURSOR] = \\PDO::CURSOR_SCROLL;\n break;\n endswitch;\n\n // has type?\n if ( self::$CURSOR_TYPE ):\n //SQL_SRV \n if ( bcDB::resource( 'RDBMS' ) === 'sqlsrv' ):\n switch ( self::$CURSOR_TYPE ):\n case 'static':\n $_options[\\PDO::SQLSRV_ATTR_CURSOR_SCROLL_TYPE] = \\PDO::SQLSRV_CURSOR_STATIC;\n break;\n case 'dynamic':\n $_options[\\PDO::SQLSRV_ATTR_CURSOR_SCROLL_TYPE] = \\PDO::SQLSRV_CURSOR_DYNAMIC;\n break;\n case 'keyset':\n $_options[\\PDO::SQLSRV_ATTR_CURSOR_SCROLL_TYPE] = \\PDO::SQLSRV_CURSOR_KEYSET_DRIVEN;\n break;\n case 'buffered':\n $_options[\\PDO::SQLSRV_ATTR_CURSOR_SCROLL_TYPE] = \\PDO::SQLSRV_CURSOR_BUFFERED;\n break;\n endswitch;\n endif;\n //todo other drivers if any\n endif;\n endif;\n\n self::$stmt = bcDB::resource( 'CONNECTION' )->prepare( $stmt, $_options );\n }", "private function execute () {\n if($this->_query->execute()) {\n\n // It has been succesful so add the output to $this->results and set it as an object\n $this->_results = $this->_query->fetchAll(PDO::FETCH_OBJ);\n\n // Set the affected row count to $this->_count\n $this->_count = $this->_query->rowCount();\n\n } else {\n\n // The query failed so set $this->_error to true. MORE WORK NEEDED HERE\n $this->_error = true;\n\n }\n }", "public function prepareUnwrapped(string $sql): \\Doctrine\\DBAL\\Driver\\Statement\n {\n // returns the actual statement\n return parent::prepare($sql);\n }", "public function prepare( $sql ){\n $this->stmt = $this->pdo->prepare( $sql );\n }", "public function select_pure ( $SQL, $params, $fetch_class = null )\n {\n return $this->pdoFetch($SQL, $params, $fetch_class);\n\n }", "protected function setUp() {\n $this->object = new SelectQuery();\n $this->object->setEntity('table t');\n $this->object->addColumn('column');\n $criteria = new SqlCriteria();\n $criteria->add(new SqlFilter('t.id', '=', 5));\n $criteria->setBlockStatus('order', 't.id');\n $criteria->setBlockStatus('limit', 1);\n $criteria->setBlockStatus('offset', 1);\n $this->object->setCriteria($criteria);\n }", "public function walkSelectStatement(SelectStatement $AST): void\n {\n $query = $this->_getQuery();\n $queriedValue = $query->getHint(self::HINT_PAGINATOR_FILTER_VALUE);\n $columns = $query->getHint(self::HINT_PAGINATOR_FILTER_COLUMNS);\n $filterCaseInsensitive = $query->getHint(self::HINT_PAGINATOR_FILTER_CASE_INSENSITIVE);\n $components = $this->getQueryComponents();\n $filterExpressions = [];\n $expressions = [];\n foreach ($columns as $column) {\n $alias = false;\n $parts = explode('.', $column, 2);\n $field = end($parts);\n if (2 <= count($parts)) {\n $alias = trim(reset($parts));\n if (!array_key_exists($alias, $components)) {\n throw new InvalidValueException(\"There is no component aliased by [$alias] in the given Query\");\n }\n $meta = $components[$alias];\n if (!$meta['metadata']->hasField($field)) {\n throw new InvalidValueException(\"There is no such field [$field] in the given Query component, aliased by [$alias]\");\n }\n $pathExpression = new PathExpression(PathExpression::TYPE_STATE_FIELD, $alias, $field);\n $pathExpression->type = PathExpression::TYPE_STATE_FIELD;\n } else {\n if (!array_key_exists($field, $components)) {\n throw new InvalidValueException(\"There is no component field [$field] in the given Query\");\n }\n $pathExpression = $components[$field]['resultVariable'];\n }\n $expression = new ConditionalPrimary();\n if (isset($meta) && $meta['metadata']->getTypeOfField($field) === 'boolean') {\n if (in_array(strtolower($queriedValue), ['true', 'false'])) {\n $expression->simpleConditionalExpression = new ComparisonExpression($pathExpression, '=', new Literal(Literal::BOOLEAN, $queriedValue));\n } elseif (is_numeric($queriedValue)) {\n $expression->simpleConditionalExpression = new ComparisonExpression($pathExpression, '=', new Literal(Literal::BOOLEAN, $queriedValue == '1' ? 'true' : 'false'));\n } else {\n continue;\n }\n unset($meta);\n } elseif (is_numeric($queriedValue)\n && (\n !isset($meta)\n || in_array(\n $meta['metadata']->getTypeOfField($field),\n [\n Type::SMALLINT,\n Type::INTEGER,\n Type::BIGINT,\n Type::FLOAT,\n Type::DECIMAL,\n ],\n true\n )\n )\n ) {\n $expression->simpleConditionalExpression = new ComparisonExpression($pathExpression, '=', new Literal(Literal::NUMERIC, $queriedValue));\n } else {\n $likePathExpression = $pathExpression;\n $likeQueriedValue = $queriedValue;\n\n if ($filterCaseInsensitive) {\n $lower = new LowerFunction('lower');\n $lower->stringPrimary = $pathExpression;\n $likePathExpression = $lower;\n $likeQueriedValue = strtolower($queriedValue);\n }\n\n $expression->simpleConditionalExpression = new LikeExpression($likePathExpression, new Literal(Literal::STRING, $likeQueriedValue));\n }\n $filterExpressions[] = $expression->simpleConditionalExpression;\n $expressions[] = $expression;\n }\n if (count($expressions) > 1) {\n $conditionalPrimary = new ConditionalExpression($expressions);\n } elseif (count($expressions) > 0) {\n $conditionalPrimary = reset($expressions);\n } else {\n return;\n }\n if ($AST->whereClause) {\n if ($AST->whereClause->conditionalExpression instanceof ConditionalTerm) {\n if (!$this->termContainsFilter($AST->whereClause->conditionalExpression, $filterExpressions)) {\n array_unshift(\n $AST->whereClause->conditionalExpression->conditionalFactors,\n $this->createPrimaryFromNode($conditionalPrimary)\n );\n }\n } elseif ($AST->whereClause->conditionalExpression instanceof ConditionalPrimary) {\n if (!$this->primaryContainsFilter($AST->whereClause->conditionalExpression, $filterExpressions)) {\n $AST->whereClause->conditionalExpression = new ConditionalTerm([\n $this->createPrimaryFromNode($conditionalPrimary),\n $AST->whereClause->conditionalExpression,\n ]);\n }\n } elseif ($AST->whereClause->conditionalExpression instanceof ConditionalExpression) {\n if (!$this->expressionContainsFilter($AST->whereClause->conditionalExpression, $filterExpressions)) {\n $previousPrimary = new ConditionalPrimary();\n $previousPrimary->conditionalExpression = $AST->whereClause->conditionalExpression;\n $AST->whereClause->conditionalExpression = new ConditionalTerm([\n $this->createPrimaryFromNode($conditionalPrimary),\n $previousPrimary,\n ]);\n }\n }\n } else {\n $AST->whereClause = new WhereClause(\n $conditionalPrimary\n );\n }\n }", "protected function basePreSelect(PropelPDO $con)\n\t{\n\t\t// soft_delete behavior\n\t\tif (TblAdherentQuery::isSoftDeleteEnabled() && $this->localSoftDelete) {\n\t\t\t$this->addUsingAlias(TblAdherentPeer::DELETED_AT, null, Criteria::ISNULL);\n\t\t} else {\n\t\t\tTblAdherentPeer::enableSoftDelete();\n\t\t}\n\n\t\treturn $this->preSelect($con);\n\t}", "public function select($query, $bindParams = array(), $overrideFetchMode = null) {\n /** Store the SQL for use with fetching it when desired */\n $this->_sql = $query;\n\n /** Make sure bindParams is an array, I mess this up a lot when overriding fetch! */\n if (!is_array($bindParams)) {\n throw new Exception(\"$bindParams must be an array\");\n }\n\n /** Run Query and Bind the Values */\n $sth = $this->_prepareAndBind($bindParams);\n\n $result = $sth->execute();\n\n /** Throw an exception for an error */\n $this->_handleError($result, __FUNCTION__);\n\n /** Automatically return all the goods */\n if ($overrideFetchMode != null) {\n return $sth->fetchAll($overrideFetchMode);\n } else {\n return $sth->fetchAll($this->_fetchMode);\n }\n }", "function exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '') {\n\t\t// Added to log select queries\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->exec_SELECTquery_preProcessAction($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit, $this);\n\t\t}\n\n\t\t$res = parent::exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit);\n\n\t\t// Added to log select queries\n\t\tforeach($this->postProcessHookObjects as $postProcessHookObject) { /* @var $postProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPostProcessHookInterface */\n\t\t\t$postProcessHookObject->exec_SELECTquery_postProcessAction($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit, $this);\n\t\t}\n\n\t\treturn $res;\n\t}", "function exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '') {\n\t\t// Added to log select queries\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->exec_SELECTquery_preProcessAction($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit, $this);\n\t\t}\n\n\t\t$res = parent::exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit);\n\n\t\t// Added to log select queries\n\t\tforeach($this->postProcessHookObjects as $postProcessHookObject) { /* @var $postProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPostProcessHookInterface */\n\t\t\t$postProcessHookObject->exec_SELECTquery_postProcessAction($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit, $this);\n\t\t}\n\n\t\treturn $res;\n\t}", "public function select($opt) {\n\t\t\n\t\t\t$statement = $this->buildSelect($opt);\n\t\t\t$pdoStatement = $this->prepare($statement);\n\t\t\t$this->__bindValues($pdoStatement);\n\t\t\t\n\t\t\t$pdoStatement->execute();\n\t\t\t$result = $pdoStatement->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t$pdoStatement->closeCursor();\n\t\t\t$this->__reset();\n\t\t\treturn $result;\n\t\t}", "protected function _preparePaidContentItemConditions(array $conditions, array &$fetchOptions, array &$sqlConditions)\r\n {\r\n }", "public function prepare($sql, array $parameters = array())\n {\n $this->statement = $this->connection->prepare($sql, $parameters);\n $this->statement->setFetchMode($this->fetchMode, $this->mappedModelClass->getName());\n }", "public function prepare(string $statement, array $driver_options = []): PDOStatement\n {\n return parent::prepare($statement, $driver_options);\n }", "public function prepare($statement, $driver_options = array())\n {\n $this->last_query = new MockPDOStatement($statement);\n\n return $this->last_query;\n }", "private function runQuery () {\n\n // Prepare the constructed SQL statement\n if ($this->_query = $this->_pdo->prepare($this->_sql)) {\n\n // Set a counter to one to use when binding\n $x = 1;\n \n // Loop through the binding array\n foreach($this->_bindArray as $param) {\n \n // Run the bindValue function to match the correct value to the correct placing\n $this->_query->bindValue($x, $param);\n\n // Increment the counter\n $x++;\n \n }\n \n // Run the execute function\n $this->execute();\n }\n }", "public function prepare(): Query\n {\n if (null === $this->dbc) {\n throw new RuntimeException('No database connection set for query.');\n }\n $this->statement = $this->dbc->getStatement($this->generateQuery());\n return $this;\n }", "private function prepare()\n {\n $this->selectFields[$this->tableName][] = $this->rootEntityIdentifier;\n\n $sColumns = explode(',', $this->requestParams['sColumns']);\n\n for ($i = 0; $i < $this->iColumns; $i++) {\n\n if ($this->requestParams['mDataProp_' . $i] != null) {\n\n $field = $this->requestParams['mDataProp_' . $i];\n\n if ($sColumns[$i] != '') {\n if ($field != $sColumns[$i]) {\n $field = $sColumns[$i];\n }\n }\n\n // association delimiter found\n if (strstr($field, '.') !== false) {\n\n // separate fields\n $fieldsArray = explode('.', $field);\n // set associations in selectFields[]\n $this->setAssociations($fieldsArray, 0, $this->metadata);\n\n } else {\n\n // no association found\n if ($field !== $this->rootEntityIdentifier) {\n array_push($this->selectFields[$this->tableName], $field);\n }\n\n $this->allFields[] = $this->tableName . '.' . $field;\n\n }\n\n } else {\n\n $this->allFields[] = '';\n\n }\n }\n\n return $this;\n }", "public function execute()\n\t{\n\t\t$this->query->setFetchMode($this->fetchMode);\n\n\t\t$this->query->execute($this->params);\t\n\n\t\t// Fetch the data in the appropriate format\n\t\tswitch ($this->fetchMethod) {\n\t\t\tcase 'row':\n\t\t\t\t$this->result = $this->query->fetch();\n\t\t\t\tbreak;\n\t\t\tcase 'field':\n\t\t\t\t$this->result = $this->query->fetchColumn();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->result = $this->query->fetchAll();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function processSelect(Builder $query, $results);", "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "public static function doSelectJoinTbcurso(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\t$criteria = clone $criteria;\n\n\t\t// Set the correct dbName if it has not been overridden\n\t\tif ($criteria->getDbName() == Propel::getDefaultDB()) {\n\t\t\t$criteria->setDbName(self::DATABASE_NAME);\n\t\t}\n\n\t\tTbprofessorPeer::addSelectColumns($criteria);\n\t\t$startcol = (TbprofessorPeer::NUM_COLUMNS - TbprofessorPeer::NUM_LAZY_LOAD_COLUMNS);\n\t\tTbcursoPeer::addSelectColumns($criteria);\n\n\t\t$criteria->addJoin(TbprofessorPeer::COD_CURSO, TbcursoPeer::COD_CURSO, $join_behavior);\n\n\t\t// symfony_behaviors behavior\n\t\tforeach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)\n\t\t{\n\t\t call_user_func($sf_hook, 'BaseTbprofessorPeer', $criteria, $con);\n\t\t}\n\n\t\t$stmt = BasePeer::doSelect($criteria, $con);\n\t\t$results = array();\n\n\t\twhile ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$key1 = TbprofessorPeer::getPrimaryKeyHashFromRow($row, 0);\n\t\t\tif (null !== ($obj1 = TbprofessorPeer::getInstanceFromPool($key1))) {\n\t\t\t\t// We no longer rehydrate the object, since this can cause data loss.\n\t\t\t\t// See http://propel.phpdb.org/trac/ticket/509\n\t\t\t\t// $obj1->hydrate($row, 0, true); // rehydrate\n\t\t\t} else {\n\n\t\t\t\t$cls = TbprofessorPeer::getOMClass(false);\n\n\t\t\t\t$obj1 = new $cls();\n\t\t\t\t$obj1->hydrate($row);\n\t\t\t\tTbprofessorPeer::addInstanceToPool($obj1, $key1);\n\t\t\t} // if $obj1 already loaded\n\n\t\t\t$key2 = TbcursoPeer::getPrimaryKeyHashFromRow($row, $startcol);\n\t\t\tif ($key2 !== null) {\n\t\t\t\t$obj2 = TbcursoPeer::getInstanceFromPool($key2);\n\t\t\t\tif (!$obj2) {\n\n\t\t\t\t\t$cls = TbcursoPeer::getOMClass(false);\n\n\t\t\t\t\t$obj2 = new $cls();\n\t\t\t\t\t$obj2->hydrate($row, $startcol);\n\t\t\t\t\tTbcursoPeer::addInstanceToPool($obj2, $key2);\n\t\t\t\t} // if obj2 already loaded\n\n\t\t\t\t// Add the $obj1 (Tbprofessor) to $obj2 (Tbcurso)\n\t\t\t\t$obj2->addTbprofessor($obj1);\n\n\t\t\t} // if joined row was not null\n\n\t\t\t$results[] = $obj1;\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $results;\n\t}", "function pdo_stmt($stmt) {\r\n\r\n if (is_object($stmt)) {\r\n return $stmt;\r\n }\r\n else {\r\n return new pdo_dummy(\"Your last query was unsuccessful and returned FALSE instead of a fetchable result. See pdo_error() to find out why.\");\r\n }\r\n }", "private function initializeResult(PDOStatement $statement) {\n $isColumnsSet = false;\n\n while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n if (!$isColumnsSet) {\n foreach ($row as $columnName => $value) {\n $this->columns[] = $columnName;\n }\n\n $isColumnsSet = true;\n }\n\n $this->rows[] = $row;\n }\n\n $this->columnCount = count($this->columns);\n $this->rowCount = count($this->rows);\n }", "protected function query(string $sql, array $params = [], array $options = []): \\PDOStatement {\n $options += [\n Db::OPTION_FETCH_MODE => $this->getFetchArgs()\n ];\n\n $stm = $this->getPDO()->prepare($sql);\n\n\n if ($options[Db::OPTION_FETCH_MODE]) {\n $stm->setFetchMode(...(array)$options[Db::OPTION_FETCH_MODE]);\n }\n\n $r = $stm->execute($params);\n\n // This is a kludge for those that don't have errors turning into exceptions.\n if ($r === false) {\n list($state, $code, $msg) = $stm->errorInfo();\n throw new \\PDOException($msg, $code);\n }\n\n return $stm;\n }", "protected function _authenticateCreateSelect()\n {\n // build credential expression\n if (empty($this->_credentialTreatment)\n || (strpos($this->_credentialTreatment, \"?\") === false)\n ) {\n $this->_credentialTreatment = '?';\n }\n\n $credentialExpression = \n '(CASE WHEN ' . \n $this->_db->escape($this->_credentialColumn, true)\n . ' = ' . $this->_credentialTreatment \n . ' THEN 1 ELSE 0 END) AS '\n . $this->_db->escape('zend_auth_credential_match', true);\n\n // get select\n \n $dbSelect = \"SELECT *, $credentialExpression \" \n . \" FROM \" . $this->_tableName\n . ' WHERE '\n . $this->_db->escape($this->_identityColumn, true) . ' = ?';\n if ($this->_conditionStatement) { \n $dbSelect .= ' AND ' . $this->_conditionStatement;\n }\n return $dbSelect;\n }", "protected function initQuery(): SelectQuery\n {\n return $this->source->getDatabase()->select()->from($this->getJoinTable());\n }", "public function byCriterionOverruleOrderBy()\n {\n $mockCriterion = $this->getMock('stubCriterion');\n $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example'));\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->once())\n ->method('fetchAll')\n ->will($this->returnValue(array(array('bar' => 'Here is bar.', 'default' => 'And this is default.'))));\n $finderResult = $this->dbFinder->findByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockSinglePrimaryKeyEntity'), 'blub DESC');\n $this->assertEquals(1, $finderResult->count());\n $data = $finderResult->current();\n $this->assertEquals('Here is bar.', $data->withAnnotation());\n $this->assertEquals('And this is default.', $data->withDefaultValue());\n $select = $this->mockQueryBuilder->getSelect();\n $this->assertEquals('foo', $select->getBaseTableName());\n $this->assertEquals('blub DESC', $select->getOrderedBy());\n $this->assertFalse($select->hasLimit());\n $this->assertNull($select->getOffset());\n $this->assertNull($select->getAmount());\n $this->assertTrue($select->hasCriterion());\n }", "abstract public function get($table, array $where, array $options = []): \\PDOStatement;", "private function RunBasicQuery() {\n // Prepare the Query\n $this->stmt = $this->db->prepare($this->sql);\n \n // Run the Query in the Database\n $this->stmt->execute();\n \n // Store the Number Of Rows Returned\n $this->num_rows = $this->stmt->rowCount();\n \n // Work with the results (as an array of objects)\n $this->rs = $this->stmt->fetchAll();\n \n // Free the statement\n $this->stmt->closeCursor(); \n }", "protected function applyCriteria(){\n\n if( $this->skipCriteria === true )\n return $this;\n\n $criteria = $this->getCriteria();\n\n foreach($criteria as $c){\n if( $c instanceof Criteria ){\n $this->query = $c->apply($this->query, $this);\n }\n }\n\n return $this;\n }", "abstract protected function _setData(PDOStatement $stm);", "public function prepare()\n\t{\n\t\tif ($this->pdoStatement == null) {\n\t\t\t$sql = $this->getSql();\n\t\t\ttry {\n\t\t\t\t$this->pdoStatement = $this->connection->pdo->prepare($sql);\n\t\t\t\t$this->_paramLog = array();\n\t\t\t}\n\t\t\tcatch(\\Exception $e) {\n\t\t\t\t\\Yii::error(\"Failed to prepare SQL ($sql): \" . $e->getMessage(), __CLASS__);\n $errorInfo = $e instanceof \\PDOException ? $e->errorInfo : null;\n\t\t\t\t$message = YII_DEBUG ? 'Failed to prepare SQL: ' . $e->getMessage() : 'Failed to prepare SQL.';\n\t\t\t\tthrow new Exception($message, (int)$e->getCode(), $errorInfo);\n\t\t\t}\n\t\t}\n\t}", "public function prepare(string $statement, array $driverOptions = []): Statement;", "public function preparedStatement($sql, $args = NULL)\n\t{\n\t if (!$args)\n\t {\n\t return $this->query($sql);\n\t }\n\t $stmt = $this->pdo->prepare($sql);\n\t $stmt->execute($args);\n\t return $stmt;\n\t}", "public function &prepare_self($q)\n {\n $st = &$this->prepare($q);\n $st->setFetchMode(PDO::FETCH_INTO, $this->type);\n //$st->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n return $st;\n }" ]
[ "0.69063497", "0.6700506", "0.66852635", "0.6515803", "0.6507905", "0.64959544", "0.64364994", "0.6393098", "0.6390393", "0.6330055", "0.61734337", "0.595632", "0.5931575", "0.5903895", "0.58597666", "0.5770534", "0.567535", "0.5659574", "0.56227124", "0.56227124", "0.5617776", "0.56127524", "0.55389714", "0.55375963", "0.5525437", "0.5511423", "0.54946053", "0.5473643", "0.5366267", "0.5346895", "0.53108877", "0.5295306", "0.5291519", "0.5291519", "0.52868176", "0.5254844", "0.5247202", "0.5200187", "0.51959544", "0.51926076", "0.5188225", "0.5185421", "0.51798004", "0.51703614", "0.51630545", "0.51562756", "0.51540375", "0.5149174", "0.514613", "0.5127484", "0.512145", "0.5114796", "0.51099867", "0.5105347", "0.5086478", "0.5084188", "0.5084101", "0.5068707", "0.50623626", "0.5049054", "0.50426406", "0.5040156", "0.5038658", "0.50341624", "0.50254637", "0.50227135", "0.5022535", "0.50188684", "0.5010435", "0.5007317", "0.5000053", "0.4991794", "0.4990679", "0.4990679", "0.4981641", "0.49798816", "0.49790677", "0.4978474", "0.49543875", "0.49538493", "0.49487558", "0.4946686", "0.49457195", "0.4945508", "0.49428582", "0.4940701", "0.4938409", "0.49343944", "0.49328405", "0.4910183", "0.48981422", "0.48880714", "0.48806998", "0.4879662", "0.48642328", "0.486235", "0.4858738", "0.48564288", "0.48546028", "0.48497286" ]
0.6510698
4
Adds an object to the instance pool. Propel keeps cached copies of objects in an instance pool when they are retrieved from the database. In some cases especially when you override doSelect() methods in your stub classes you may need to explicitly add objects to the cache in order to ensure that the same objects are always returned by doSelect() and retrieveByPK() calls.
public static function addInstanceToPool($obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getId(); } // if key === null CastleTypePeer::$instances[$key] = $obj; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = (string) $obj->getGeneriekeproductcode();\n } // if key === null\n GsGeneriekeProductenPeer::$instances[$key] = $obj;\n }\n }", "public function add($object, $forceInsert = FALSE, &$queryCount = 0);", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = (string) $obj->getId();\n } // if key === null\n ReportPeer::$instances[$key] = $obj;\n }\n }", "public function add($object)\n {\n return $this->addToCollection($object);\n }", "public function add($object)\n {\n $record = R::dispense( $this->table_name() );\n\n $this->map_object_to_record($object, $record);\n\n $id = R::store( $record );\n\n $object->set_id( $id );\n\n return $this;\n }", "static public function add($object) {\n self::debug('*ADD*');\n $object = self::checkRequirments($object);\n return self::_add($object);\n }", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = (string) $obj->getIdSertPd();\n } // if key === null\n SertifikasiPdPeer::$instances[$key] = $obj;\n }\n }", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = serialize(array((string) $obj->getIdRuang(), (string) $obj->getSemesterId()));\n } // if key === null\n RuangLongitudinalPeer::$instances[$key] = $obj;\n }\n }", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = serialize(array((string) $obj->getDatumProduct('U'), (string) $obj->getZindexNummer()));\n } // if key === null\n GsSupplementaireProductenHistoriePeer::$instances[$key] = $obj;\n }\n }", "public static function addInstanceToPool(MissionPhoto $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getId();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "public function add ($obj) {\n\t\treturn $this->append($obj);\t\n\t}", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if ($key === null) {\n $key = serialize(array((string) $obj->getAtccode(), (string) $obj->getDddaantal(), (string) $obj->getDddeenheid(), (string) $obj->getDddtoedieningsweg()));\n } // if key === null\n GsDailyDefinedDosePeer::$instances[$key] = $obj;\n }\n }", "public function add($object): void;", "public function add($entity)\r\n {\r\n \t$cacheKey = $this->getCacheKey($entity->getPrimaryKey());\r\n \t$this->_entities[$cacheKey] = $entity;\r\n }", "public static function addInstanceToPool(AsignacionSc $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getId();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "public function registerInstance($object) {\n $this->_pool->putref($object->hashCode(), $object);\n return TRUE;\n }", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if (null === $key) {\n $key = serialize([(null === $obj->getApvevendid() || is_scalar($obj->getApvevendid()) || is_callable([$obj->getApvevendid(), '__toString']) ? (string) $obj->getApvevendid() : $obj->getApvevendid()), (null === $obj->getApihpaytokey() || is_scalar($obj->getApihpaytokey()) || is_callable([$obj->getApihpaytokey(), '__toString']) ? (string) $obj->getApihpaytokey() : $obj->getApihpaytokey()), (null === $obj->getApihponbr() || is_scalar($obj->getApihponbr()) || is_callable([$obj->getApihponbr(), '__toString']) ? (string) $obj->getApihponbr() : $obj->getApihponbr()), (null === $obj->getApihctrlnbr() || is_scalar($obj->getApihctrlnbr()) || is_callable([$obj->getApihctrlnbr(), '__toString']) ? (string) $obj->getApihctrlnbr() : $obj->getApihctrlnbr()), (null === $obj->getApihinvnbr() || is_scalar($obj->getApihinvnbr()) || is_callable([$obj->getApihinvnbr(), '__toString']) ? (string) $obj->getApihinvnbr() : $obj->getApihinvnbr()), (null === $obj->getApihseq() || is_scalar($obj->getApihseq()) || is_callable([$obj->getApihseq(), '__toString']) ? (string) $obj->getApihseq() : $obj->getApihseq())]);\n } // if key === null\n self::$instances[$key] = $obj;\n }\n }", "public static function addInstanceToPool(RpMissionSummary $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getId();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "public static function addInstanceToPool(Course $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getCode();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "public function addObject($object)\n\t{\n\t\t$this->tableObjects[$this->count++] = $object;\n\t}", "public function add($obj) {\n\t}", "function add( $obj )\r\n\t{\r\n\t\tif ( $this->signUseID == true) {\r\n\t\t\t$pos = $obj->primary_key_value();\r\n\t\t\t$this->data[ $pos ] = $obj;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->data[] = $obj;\r\n\t\t}\r\n\t}", "public function add_object ($obj)\n {\n $this->_objects [] = $obj;\n }", "public static function addInstanceToPool($obj, $key = null)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if (null === $key) {\n $key = serialize([(null === $obj->getOehhnbr() || is_scalar($obj->getOehhnbr()) || is_callable([$obj->getOehhnbr(), '__toString']) ? (string) $obj->getOehhnbr() : $obj->getOehhnbr()), (null === $obj->getOedhline() || is_scalar($obj->getOedhline()) || is_callable([$obj->getOedhline(), '__toString']) ? (string) $obj->getOedhline() : $obj->getOedhline()), (null === $obj->getInititemnbr() || is_scalar($obj->getInititemnbr()) || is_callable([$obj->getInititemnbr(), '__toString']) ? (string) $obj->getInititemnbr() : $obj->getInititemnbr()), (null === $obj->getOeshtag() || is_scalar($obj->getOeshtag()) || is_callable([$obj->getOeshtag(), '__toString']) ? (string) $obj->getOeshtag() : $obj->getOeshtag()), (null === $obj->getOeshlotser() || is_scalar($obj->getOeshlotser()) || is_callable([$obj->getOeshlotser(), '__toString']) ? (string) $obj->getOeshlotser() : $obj->getOeshlotser()), (null === $obj->getOeshbin() || is_scalar($obj->getOeshbin()) || is_callable([$obj->getOeshbin(), '__toString']) ? (string) $obj->getOeshbin() : $obj->getOeshbin()), (null === $obj->getOeshplltnbr() || is_scalar($obj->getOeshplltnbr()) || is_callable([$obj->getOeshplltnbr(), '__toString']) ? (string) $obj->getOeshplltnbr() : $obj->getOeshplltnbr()), (null === $obj->getOeshcrtnnbr() || is_scalar($obj->getOeshcrtnnbr()) || is_callable([$obj->getOeshcrtnnbr(), '__toString']) ? (string) $obj->getOeshcrtnnbr() : $obj->getOeshcrtnnbr())]);\n } // if key === null\n self::$instances[$key] = $obj;\n }\n }", "public function addObject($object) {\n\t\t$this->_object = $object;\n\t\treturn $this;\n\t}", "public static function addInstanceToPool(Tbprofessor $obj, $key = null)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled()) {\n\t\t\tif ($key === null) {\n\t\t\t\t$key = (string) $obj->getMatriculaProf();\n\t\t\t} // if key === null\n\t\t\tself::$instances[$key] = $obj;\n\t\t}\n\t}", "public function addObjectWithID($object, $objectID)\n\t{\n\t\t$this->tableObjects[$objectID] = $object;\n\t\t$this->count++;\n\t}", "function add(/** @noinspection PhpUnusedParameterInspection */\n Object $object = NULL) {\n $value = $this->value();\n foreach (func_get_args() as $arg) {\n if ($arg instanceof object)\n $value[] = $arg;\n }\n return $this->returnObjectWith($value);\n }", "function object_cache_add($key, $data, $flag = '', $expire = 0) {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->add($key, $data, $flag, $expire);\n}", "public static function store($object){\n\t\t\tif(!is_object($object)){\n\t\t\t\tLogger::warning(MessageUtility::CACHE_LOAD_WARNING, \"A primitive value of type \".gettype($object).\" cannot be cached.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t//Check that the specified $object is an object of PersistentClass\n\t\t\t$objectClass = Mirror::reflectClass($object);\n\t\t\tif(!$objectClass->descendsFrom(\"Wadapi\\Persistence\\PersistentClass\")){\n\t\t\t\tLogger::warning(MessageUtility::CACHE_LOAD_WARNING, \"Object of class \".get_class($object).\" is not a descendant \".\n\t\t\t\t\t\t\t\t \"of PersistentClass and cannot be stored in cache.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tself::$cache[$object->getId()] = $object;\n\t\t}", "public final function _addInstance(AutoRecord $record)\n {\n $this->_recordInstances[$record->getTableName()][$record->getPrimaryKeyValue()] = $record;\n }", "public function add($id, $object)\n \t{\n \t\tif (isset($this->_map[$id]) == 0) {\n \t\t\t$this->_map[$id] = array();\n \t\t}\n\n\t\tif (array_search($object, $this->_map[$id]) !== false) {\n\t\t\treturn false;\n\t\t}\n\n\t\tarray_push($this->_map[$id], $object);\n\t\treturn true;\n\t}", "public function addObj($_select, $_where = array(), $_order = \"\", $_limit = 30, $_offset = 0)\n {\n if (!$_select) {\n return false;\n }\n if ($_where) {\n $_select->where($_where);\n }\n if ($_order) {\n $_select->order($_order);\n }\n $_select->limit($_limit);\n $_select->offset($_offset);\n return $_select;\n }", "public function add($object)\n {\n if (!$object instanceof $this->objectType) {\n throw new \\TYPO3\\CMS\\Extbase\\Persistence\\Exception\\IllegalObjectTypeException('The object given to add() was not of the type (' . $this->objectType . ') this repository manages.', 1248363335);\n }\n $this->persistenceManager->add($object);\n }", "public function addObject(Mage_Core_Model_Abstract $object, $alias='')\n {\n $this->_objects[] = $object;\n if (!empty($alias)) {\n $this->_objectsByAlias[$alias] = $object;\n }\n return $this;\n }", "function add() {\n\t\tif (True) {\n\n\t\t\t// create an empty product.\n\t\t\t$o =& new ufo_product(0);\n\t\t\t$this->addedObject =& $o;\n\t\t\n\t\t\t// create an entry in the db.\n\t\t\t$o->initialize();\n\t\t\t$o->create();\n\t\t\t$o->edit();\n\n\t\t\t// add it to the product array.\n\t\t\t$this->product[] = $o;\n\t\t}\n\t}", "public function addObject(string $name) : \\Shelby\\Dao\\Mongodb\\Field\\Object {\n\t\t$field = new Object();\n\t\t$this->fields[$name] = $field;\n\t\treturn $field;\n\t}", "public function add(Model $model)\n {\n if ($this->_queryResult !== null) {\n Model_Collection::getLogger()->fatal('Could not add item in collection created by query', __FILE__, __LINE__);\n }\n\n $this->_queryResult = new Query_Result([Query_Result::RESULT_MODEL_CLASS => get_class($model)]);\n\n $this->_queryResult->setRow($model->getPk(), $model->get());\n\n return $this;\n }", "public function add();", "public function add();", "static private function _add($object) {\n $object->_className = get_class($object);\n $exists = self::doesExist($object);\n if ($exists) {\n return self::update($object);\n }\n $fileName = self::getFileNameByObject($object);\n if (!file_exists($fileName)) {\n @mkdir(dirname($fileName), '0755', TRUE);\n file_put_contents($fileName, NULL);\n }\n $data = json_encode($object);\n $data = $data . self::getConfig('delimiter') . PHP_EOL;\n if (file_put_contents($fileName, $data, FILE_APPEND)) {\n return $object->_id;\n }\n self::fail('Can not add ' . $object->_id);\n }", "public function add ($item) {\n $objData = get_object_vars($item);\n $keys = array_keys($objData);\n // Query time.\n $sql = 'INSERT INTO ' . $this->table . ' (' . implode(',', $keys) . ') VALUES (:' . implode(',:', $keys) . ')';\n $this->query($sql, $objData);\n // Update the item primary key if single before returning it.\n/*\n if (count($this->keys) === 1) {\n $pk = current($this->keys);\n $item->$pk = $this->pdo->lastInsertId();\n }\n*/\n return $item;\n }", "public function add($object) {\n\t\tif (!($object instanceof $this->objectType)) {\n\t\t\tthrow new \\F3\\FLOW3\\Persistence\\Exception\\IllegalObjectTypeException('The object given to add() was not of the type (' . $this->objectType . ') this repository manages.', 1248363335);\n\t\t}\n\n\t\t$this->addedObjects->attach($object);\n\t\t$this->removedObjects->detach($object);\n\t}", "public function add($exists=false) {\n if (method_exists($this, 'beforeAdd') && $this->beforeAdd() === false) {\n return $this;\n }\n if (method_exists($this, 'afterAdd')) {\n $this->__lastActions__[] = array('Add', Binder::pull($this));\n }\n\n $nulls = is_array($this->__nulls__)? $this->__nulls__: array();\n $newVals = array();\n /* self attributes */\n foreach ($this->__def__[0] as $col => $def) {\n if (!isset($nulls[$col]) && ($val=self::midware($this->$col, $def, 1)) !== null) {\n $newVals[$col] = strtolower($val=is_array($val)? serialize($val): $val) === self::N? null: $val;\n }\n }\n /* object attributes */\n foreach ($this->__def__[1] as $col => $def) {\n if (!isset($nulls[$col]) && ($that=$this->$col) !== null && ($val=is_object($that)?\n $that->{$that->__key__}: (is_array($that)? null: $that))) {\n $newVals[$def['fk']] = strtolower($val)===self::N? null: $val;\n }\n }\n /* add to dbo execute/transaction que */\n $dbo = $this->__dbo__;\n $dbo->__activeQue__ = $this->__instanceId__;\n $table = $this->__table__;\n if ($exists && $dbo->exists($table, $newVals)) {\n return $this;\n }\n $dbo->insert($table, $newVals);\n /* locale/object list */\n if (($m3=$this->__def__[2]) || $this->__def__[3]) {\n $thisRef[$this->__fk__] = $dbo->serialSequence($table, $this->__key__);\n /* object list */\n if ($m3) {\n foreach ($m3 as $col => $def) {\n if (!isset($nulls[$col]) && ($vals=$this->$col)) {\n $this->__objectList('Add', $vals, $def, $thisRef);\n }\n }\n }\n /* locale */\n if ($m4=$this->__def__[3]) {\n foreach ((array)$this->__locale__ as $locale) {\n $newVals = array();\n foreach ($m4 as $col => $def) {\n if (!isset($nulls[$col]) && ($val=self::midware($this->$col, $def, 1)) !== null) {\n $newVals[$col] = is_array($val)?\n (isset($val[$locale])? $val[$locale]: null):\n (strtolower($val)===self::N? null: $val);\n }\n }\n $newVals['lang'] = $locale;\n $dbo->insert($table.'_lang', $newVals, $thisRef);\n }\n }\n }\n return $this;\n }", "public function addObject(ObjectInterface $object)\n {\n $id = ++$this->objectCount;\n $this->objects[$id] = $object;\n $this->indirectObjects[$object] = new IndirectObject($id, 0, $this);\n }", "static function add($object)\n\t{\n\t\tself::$CallStack[] = $object;\n\t}", "public function add(GroupObject $object) : Group;", "protected function addElem($element)\r\n\t{\r\n\t\tforeach($this->getPools() as $pool) {\r\n\t\t\t$pool->add($element);\r\n\t\t}\r\n\t\treturn $this;\r\n\t}", "public function add()\r\n {\r\n $this->start();\r\n $this->write_to_db();\r\n }", "public function add($object) {\n $this->_object = $this->createRow();\n $this->_object->name = $object->name;\n $this->_object->login = $object->login;\n $this->_object->password = $object->password;\n $this->_object->save();\n return $this->_object;\n }", "public function enableObjectCache() {\n\t\t$this->asset_model->useObjectCaching = true;\n\t}", "public function addRecord($pObject) {\r\n $this->records[] = $pObject;\r\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function add($entity);", "public function add(object $entity): void\n {\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function addPoint($point) {\n $this->sessionData[\"points\"][] = $point;\n // Ensure that we don't exceed the maximum number of points stored in\n // memcached.\n while (count($this->sessionData[\"points\"]) > getConfig(\"max_cached_pts\")) {\n array_shift($this->sessionData[\"points\"]);\n }\n return $this;\n }", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "function addObject($inObject) {\n\t\tif ( !$inObject instanceof mofilmEvent ) {\n\t\t\t$inObject = mofilmEvent::getInstance($inObject);\n\t\t}\n\t\treturn $this->_setValue($inObject);\n\t}", "public function push($obj)\r\n\t{\r\n\t\t$this->isLoaded = true;\r\n\t\t$this->keyAssocation[$obj->get($this->obj->primaryKey)] = $this->count++;\r\n\t\t$this->elements[] = $obj;\r\n\t}", "public function fetch()\n {\n foreach ($this->getData() as $id => $model_data) {\n if (!isset($model_data->id)) {\n $model_data->id = $id;\n }\n $this->add($model_data);\n }\n return $this;\n }", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "public function addObject(string $class, object $object): void\n {\n $this->objects[$class] = $object;\n }", "public function Add($oItem) {\n\t\tif (!is_object($oItem)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// call abstract function onBeforeAdd\n\t\t$r = $this->onBeforeAdd($oItem);\n\t\tif (!$r) {\n\t\t return false;\n\t\t}\n\t\t\n\t\t// compose the SQL strings\n\t\t$sFields = '';\n\t\t$sValues = '';\n\t\t$aParams = array();\n\t\t$aMarkers = array();\n\t\t$aData = get_object_vars($oItem);\n\t\t\n\t\t$aFields = array_keys($this->columnNames($aData));\n\t\t$sFields = implode('`,`', $aFields);\n\t\t$sFields = '`' . $sFields . '`';\n\t\tforeach ($aData as $field => $value) {\n\t\t\t$aParams[] = $value;\n\t\t\t$aMarkers[] = '?';\n\t\t}\n\t\t$sValues = implode(',', $aMarkers);\n\t\t\n\t\t// execute the query\n\t\t$sql = \"INSERT INTO \".$this->getTableName()\n\t\t\t\t.\" (\".$sFields.\")\"\n\t\t\t\t.\" VALUES (\".$sValues.\")\";\n\t\t$res = db::query($sql, $aParams);\n\t\tif (!$res || $res->errorCode() != '00000') {\n\t\t\treturn false;\n\t\t}\n\t\t$iLastId = db::lastInsertId();\n\n\t\t// call abstract function onAdd\n\t\treturn $this->onAdd($iLastId);\n\t}", "public static function retrieveById($id) {\n\t\tif (apc_exists(__CLASS__ . '_' . $id)) {\n\t\t\t$ret_val = apc_fetch(__CLASS__ . '_' . $id);\n\t\t\treturn $ret_val;\n\t\t}\n\t\t$obj = new self();\n\t\t$obj->setId($id);\n\t\t$obj->query();\n\t\tapc_add(__CLASS__ . '_' . $id, $obj);\n\t\treturn $obj;\n\t}", "public static function getById($id){\n #If caching is enabled, search in cache first\n if( static::$cachePrefix ){\n $obj = Memc::get(static::$cachePrefix . $id);\n\n #if instance was not found in cache, query MongoDB\n if( !$obj ){\n $obj = static::getInstance( array('_id' => static::parseId($id)) );\n\n #object found, cache it\n if( $obj ){\n Memc::set(static::$cachePrefix . $id, $obj);\n }\n }else{\n $obj->_autosave = false;\n }\n\n return $obj;\n\n #If caching is disabled, query object from Mongo\n }else{\n return static::getInstance( array('_id' => static::parseId($id)) );\n }\n }", "function get($object_name){\r\n if(isset($this->singleton_instances[$object_name]))\r\n return $this->singleton_instances[$object_name];\r\n \r\n $definition = parent::get($object_name);\r\n $this->singleton_instances[$object_name] = new lako_object($definition);\r\n return $this->singleton_instances[$object_name];\r\n }", "public function hydrateAdd($element)\n {\n $this->collection->add($element);\n // If _backRefFieldName is set and its a one-to-many association,\n // we need to set the back reference.\n if ($this->backRefFieldName && $this->association['type'] === ApiMetadata::ONE_TO_MANY) {\n // Set back reference to owner\n $this->metadata->getReflectionProperty($this->backRefFieldName)->setValue(\n $element,\n $this->owner\n );\n $this->manager->getUnitOfWork()->setOriginalEntityProperty(\n spl_object_hash($element),\n $this->backRefFieldName,\n $this->owner\n );\n }\n }", "function createObject()\n {\n $stmt = $this->mysqli->prepare(\"INSERT INTO object(`name`, `description`, `price`, `typeCoin`, `weight`, `volume`, `limitationStrength`,\n `limitationDex`, `limitationCons`, `limitationInt`, `limitationWis`,`typeObject`, `primal`)\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n $stmt->bind_param(\n \"ssisiiiiiiisi\",\n $this->name,\n $this->description,\n $this->price,\n $this->typeCoin,\n $this->weight,\n $this->volume,\n $this->limitationStrength,\n $this->limitationDex,\n $this->limitationCons,\n $this->limitationInt,\n $this->limitationWis,\n $this->typeObject,\n $this->primal\n );\n $stmt->execute();\n $this->id = $this->mysqli->insert_id;\n $stmt->close();\n }", "function roshine_add_instance(stdClass $roshine, mod_roshine_mod_form $mform = null) {\n global $DB;\n $roshine->timecreated = time();\n return $DB->insert_record('roshine', $roshine);\n}", "protected function add() {\n\t}", "private function createObject($name,$object)\n {\n $this->cache->set($name, $object);\n }", "public function add($object){\n if($object instanceof $this->type){\n $this->items[] = $object;\n }elseif($this->type === null && gettype($object) == 'array'){\n $this->items[] = $object;\n }else{\n throw new Exception(get_class($object) . ' is not an instances of ' . $this->type);\n }\n return $this;\n }", "public function add(Criterion $criterion)\n {\n $this->criteria[] = $criterion;\n }", "public function load()\n\t{\n\t\tparent::load();\n\n\t\t$item = $this->db->loadObject();\n\n\t\tif ($item !== null) {\n\t\t\tforeach (get_object_vars($item) as $key => $value) {\n\t\t\t\tif ($key == 'params') {\n\t\t\t\t\t$item->$key = new CRegistry($value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->item = $item;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function fetchObject(){\n $this->debugBacktrace();\n $this->fetchType = \"fetch_object\";\n return $this;\n }", "public function save()\n {\n $this->_startTransaction();\n $error = false;\n\n try {\n foreach ($this->_objects as $object) {\n $object->save();\n }\n } catch (Exception $e) {\n $error = $e;\n }\n\n if ($error === false) {\n try {\n $this->_runCallbacks();\n } catch (Exception $e) {\n $error = $e;\n }\n }\n\n if ($error) {\n $this->_rollbackTransaction();\n throw $error;\n } else {\n $this->_commitTransaction();\n }\n\n return $this;\n }", "public function push($object): \\IvoPetkov\\DataList\n {\n $this->update();\n array_push($this->data, $object);\n return $this;\n }", "function wp_cache_add($key, $value, $group = '', $expiration = 0)\n{\n global $wp_object_cache;\n\n return $wp_object_cache->add($key, $value, $group, $expiration);\n}", "public function add($item) {\n $this->items[$item->id()] = $item;\n }", "public function save() {\n\t\t$args = func_get_args();\n\t\t\n\t\t// no argument, so save current object\n\t\tif (empty($args))\n\t\t\t$o = $this;\n\t\t// argument given, so save that object\n\t\telse\n\t\t\t$o = $args[0];\n\n\t\t// ID is set, so update existing object\n\t\tif (isset($o->id))\n\t\t\treturn $this->update($o->id, $o);\n\n\t\t// ID is not set, so create new object\n\t\treturn $this->add($o);\n\t}", "public function addObjectDescriptor(DescriptorInterface $objectDescriptor, $merge = false)\n {\n $this->getObjectManager()->addObjectDescriptor($objectDescriptor, $merge);\n }", "function addResource($resObject)\n{\n\t\n\t\n\t$sql = \"INSERT INTO `\".DB_NAME.\"`.`resources` (\n\t\t`rid` ,\n\t\t`title` ,\n\t\t`link` ,\n\t\t`author` ,\n\t\t`timecreated` ,\n\t\t`rating` ,\n\t\t`description` ,\n\t\t`tags` ,\n\t\t`voteips`\n\t\t)\n\t\tVALUES (\n\t\tNULL , '\".sanitize($resObject->name).\"', '\".sanitize($resObject->url).\"', '\".$resObject->owner.\"',\n\t\t\".time().\" , '\".$resObject->score.\"', '\".sanitize($resObject->description).\"', '\".sanitize(dcSemicolonArrayToString($resObject->tags)).\"',\n\t\t'\".dcSemicolonArrayToString($resObject->voteips).\"'\n\t\t)\";\n\n\t$result = mysql_query($sql);\n\n\tif($result)\n\t\t$result = mysql_insert_id();\n\t\t\n\treturn $result;\n}", "public abstract function fetchObject();", "private function add_record_or_update_record() {\n\t\t\t$this->before_custom_save();\n\t\t\t$this->before_save();\n\t\t\tif($this->new_record) {\n\t\t\t\t$this->before_create();\n\t\t\t\t$result = $this->add_record();\n\t\t\t\t$this->after_create();\n\t\t\t} else {\n\t\t\t\t$this->before_update();\n\t\t\t\t$result = $this->update_record();\n\t\t\t\t$this->after_update();\n\t\t\t}\n\t\t\t$this->after_save();\n\n\t\t\t// init user custom cache\n\t\t\tif (is_array($this->cache)) {\n\t\t\t\t$this->rebuild_cache();\n\t\t\t}\n\n\t\t\tif($this->blob_fields) {\n\t\t\t\t$this->update_blob_fields();\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "public function add(Request $request)\n {\n $handle = $request->prepare()->getHandle();\n $this->_requests[(int)$handle->getResource()] = $request;\n $this->_multi->addHandle($handle->getResource());\n if ($this->_executeEagerly) {\n $running = 0;\n $this->_multi->byRef('exec', $running);\n }\n // Reap enough to clear out the threshold\n if (count($this->_requests) > $this->_threshold) {\n $this->complete($this->_threshold);\n }\n return $this;\n }", "function add($object){if(is_array($this->arrayObj))\n \n {$tmp = count($this->arrayObj);$this->arrayObj[$tmp]=$object;\n\n }else{$this->arrayObj[0]=$object;}\n }", "function add($object){if(is_array($this->arrayObj))\n \n {$tmp = count($this->arrayObj);$this->arrayObj[$tmp]=$object;\n\n }else{$this->arrayObj[0]=$object;}\n }", "public function add($object, array $identifiers = array())\n {\n if ($this->has($object)) {\n return;\n }\n\n $data = array('reference' => null);\n if (!empty($this->reference)) {\n $access = new Accessor($object);\n $reference = $access->get($this->reference);\n $data['reference'] = $reference;\n }\n\n $this->getRegistry()->store($object, $identifiers, Registry::STATE_NEW, $data);\n }", "public function add_obj_save_db($obj){\n\t\t$tmp = $obj ; \n\t\tif( ! is_object($obj))\n\t\t\t$tmp = null ;\n\t\t$this->objs_save_db [] = $tmp ;\n\t}", "public function save(PropelPDO $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getConnection(OperationPrimesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n }\n\n $con->beginTransaction();\n $isInsert = $this->isNew();\n try {\n $ret = $this->preSave($con);\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n OperationPrimesPeer::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n $con->commit();\n\n return $affectedRows;\n } catch (Exception $e) {\n $con->rollBack();\n throw $e;\n }\n }", "public function add($item);", "public function add($item);", "protected function doInsert( \\gb\\domain\\DomainObject $object ) {\n }", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\t\t\t\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE lp_id = ?\";\r\n\t\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\t\t\t\t\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->id = $row ['lp_id'];\r\n\t\t\t\t\t$this->userid = $row ['lp_userid'];\r\n\t\t\t\t\t$this->random = $row ['lp_random'];\r\n\t\t\t\t\t$this->deadline = $row ['lp_deadline'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with id ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\t\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function add_to_pool($data)\n {\n //If the data provided is not an array ~ return false\n if(!is_array($data))\n { return FALSE; }\n\n // Generate a random id\n $id = mt_rand(LOWER_ID_BOUND,UPPER_ID_BOUND); \n \n #TODO: Consider checking if we have run out of ids (We have 99 million possible ids ~ should be enough for a while. Means 99 million hookup attempts)\n \n $this->db->select(TBL_POOL.'.id');\n $this->db->where(TBL_POOL.'.id',$id);\n $pool_entry = $this->db->get(TBL_POOL)->row_object();\n\n //If a pool entry with that id exists ~ try again\n if(isset($pool_entry))\n { \n $this->add_to_pool($data);#Recursively try again\n }\n else //The pool entry does not exist ~ the id is unique\n {\n $data['id'] = $id;\n return $this->db->insert(TBL_POOL,$data);\n }\n }", "public function setPropelCacheObject($object2ClassName, $object2Pk, $object = false)\n {\n $pk = $object2Pk;\n if ($pk === null && $object) {\n $pk = $object->getPrimaryKey();\n }\n\n if (is_array($pk)) {\n $npk = '';\n foreach ($pk as $k) {\n $npk .= urlencode($k) . '_';\n }\n } else {\n $pk = urlencode($pk);\n }\n\n $cacheKey = 'core/object-caching.' . strtolower(preg_replace('/[^\\w]/', '.', $object2ClassName)) . '/' . $pk;\n\n $clazz = $object2ClassName . 'Query';\n $object2 = $object;\n if (!$object2) {\n $object2 = $clazz::create()->findPk($object2Pk);\n }\n\n if (!$object2) {\n return false;\n }\n\n $this->getKrynCore()->setDistributedCache($cacheKey, serialize($object2));\n\n return $object2;\n\n }", "public function addRecord()\n {\n $rec = new Record($this, true);\n $rec->markForInsert();\n $this->records[] = $rec;\n return $rec;\n }", "final public function set(object $value): CacheItemInterface\n\t{\n\t\tif ($stm = $this->_prepare('INSERT INTO `Cache` (\n\t\t\t\t`key`,\n\t\t\t\t`value`,\n\t\t\t\t`expires`\n\t\t\t) VALUES (:key, :value, :expires)\n\t\t\tON DUPLIATE KEY UPDATE\n\t\t\t\t`value` = :value,\n\t\t\t\t`expires`= COALESCE(:expires, NULL);')) {\n\t\t\t$stm->bindValue(':key', $this->getKey());\n\t\t\t$stm->bindValue(':value', serialize($value));\n\n\t\t\tif (isset($this->_expires)) {\n\t\t\t\t$stm->bindValue(':expires', $this->_expires->format(DateTimeInterface::W3C));\n\t\t\t}\n\n\t\t\t$stm->execute();\n\t\t}\n\n\t\treturn $this;\n\t}", "private static function createObject()\n\t{\n\t\t$obj = new Customer;\n\t\tself::$_memcache->set(\"customer_object\", $obj, MEMCACHE_COMPRESSED, 60*60);\n\t\treturn $obj;\n\t}" ]
[ "0.5762509", "0.5721631", "0.5667468", "0.559863", "0.55765325", "0.55045956", "0.547133", "0.5468822", "0.5449773", "0.5449681", "0.5448071", "0.5440235", "0.5410676", "0.5374523", "0.5338368", "0.53204876", "0.5245372", "0.52235866", "0.5198615", "0.51939356", "0.51845485", "0.51845044", "0.5153638", "0.51490414", "0.5135008", "0.5109624", "0.50255376", "0.49962735", "0.49647042", "0.49526867", "0.49399325", "0.49288067", "0.49176785", "0.49033266", "0.4902046", "0.48825696", "0.48799038", "0.48536348", "0.47793683", "0.47793683", "0.4754308", "0.47509974", "0.47253224", "0.46952486", "0.46762624", "0.46739894", "0.46736655", "0.46398687", "0.4639829", "0.46344954", "0.46315575", "0.46090165", "0.4598747", "0.45847487", "0.45787522", "0.45678577", "0.45656592", "0.45373195", "0.4529078", "0.4522459", "0.451262", "0.44862682", "0.44773412", "0.44586363", "0.44486773", "0.44452775", "0.44334418", "0.4421189", "0.44174707", "0.44136378", "0.44121626", "0.44100386", "0.4404221", "0.43935263", "0.43879128", "0.43729454", "0.43706307", "0.43672013", "0.43669212", "0.43610168", "0.43460548", "0.4344724", "0.4343725", "0.43435326", "0.43355313", "0.43178698", "0.43146893", "0.43146893", "0.43023372", "0.42925468", "0.42883167", "0.42876506", "0.42876506", "0.42730623", "0.42697757", "0.42497918", "0.42495647", "0.4249325", "0.42366233", "0.42349267" ]
0.55740684
5
Removes an object from the instance pool. Propel keeps cached copies of objects in an instance pool when they are retrieved from the database. In some cases especially when you override doDelete methods in your stub classes you may need to explicitly remove objects from the cache in order to prevent returning objects that no longer exist.
public static function removeInstanceFromPool($value) { if (Propel::isInstancePoolingEnabled() && $value !== null) { if (is_object($value) && $value instanceof CastleType) { $key = (string) $value->getId(); } elseif (is_scalar($value)) { // assume we've been passed a primary key $key = (string) $value; } else { $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or CastleType object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true))); throw $e; } unset(CastleTypePeer::$instances[$key]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($object);", "public function remove($object);", "public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContext()->addQuery($qry);\n //$this->removeFromParentCollection();\n }", "protected function removeInstance() {}", "public function removeRetainsObjectForObjectsNotInCurrentSession() {}", "public function remove($object): void;", "public function remove ($obj) {}", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n SkillTableMap::clearInstancePool();\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n HbfVasosTableMap::clearInstancePool();\n }", "public function remove() {\n $this->getObjectManager()->remove($this);\n return $this;\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof MissionPhoto) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or MissionPhoto object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t\t// invalidate objects in TbturmaProfessorPeer instance pool, since one or more of them may be deleted by ON DELETE CASCADE rule.\n\t\tTbturmaProfessorPeer::clearInstancePool();\n\n\t}", "function delete()\n {\n // Create a fresh slate\n $this->object->_init();\n $this->object->_delete_clause = \"DELETE\";\n return $this->object;\n }", "protected function removeOldInstanceIfExists() {}", "public function delete()\n\t{\n\t\t//delete our cache.\n\t\tif ($this->useObjectCaching)\n\t\t\t$this->deleteCache();\n\t\t\n\t\treturn $this->deleteDb();\n\t}", "public function remove() {}", "public function remove() {}", "public function remove($object)\n {\n $this->setObjectState($object, self::OBJ_REMOVED);\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof GsGeneriekeProducten) {\n $key = (string) $value->getGeneriekeproductcode();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or GsGeneriekeProducten object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(GsGeneriekeProductenPeer::$instances[$key]);\n }\n }", "public function removeObjectReallyRemovesTheObjectFromStorage() {\n\t\t$originalObject = new \\F3\\FLOW3\\Fixture\\DummyClass();\n\t\t$this->objectRegistry->putObject('DummyObject', $originalObject);\n\t\t$this->objectRegistry->removeObject('DummyObject');\n\t\t$this->assertFalse($this->objectRegistry->objectExists('DummyObject'), 'removeObject() did not really remove the object.');\n\t}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof Report) {\n $key = (string) $value->getId();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Report object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(ReportPeer::$instances[$key]);\n }\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof RpMissionSummary) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or RpMissionSummary object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function remove($object)\n {\n parent::delete($object); // TODO: Change the autogenerated stub\n }", "public function delete()\n {\n $this->_startTransaction();\n $error = false;\n\n try {\n foreach ($this->_objects as $object) {\n $object->delete();\n }\n } catch (Exception $e) {\n $error = $e;\n }\n\n if ($error === false) {\n try {\n $this->_runCallbacks();\n } catch (Exception $e) {\n $error = $e;\n }\n }\n\n if ($error) {\n $this->_rollbackTransaction();\n throw $error;\n } else {\n $this->_commitTransaction();\n }\n return $this;\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof AsignacionSc) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or AsignacionSc object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Course) {\n\t\t\t\t$key = (string) $value->getCode();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Course object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "function destroy(){\n\t\tif(!$this->id)\n\t\t\tthrow new APortalException(\"Can't destroy object does not exist in database\",$this);\n\n\t\t$this->hook('destroy'); // can be used for access control or cache deletion\n\n\t\t// STEP1 - destroy relations\n\t\t$this->api->deleteRel($this,null);\n\t\t$this->api->deleteRel(null,$this);\n\n\t\t// STEP2 - destroy supplimentary table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table($this->table_name)\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\n\t\t// STEP3 - delete obj table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table('obj')\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\t}", "private function removeObjectFromObjects(){\n\t\t$object_id = $this->object->id;\n\t\t//remove object from total objects\n\t\tif($this->objects->contains( 'id', $object_id)){\n\t\t\t$this->objects = $this->objects->reject( function($item, $key) use($object_id) {\n\t\t\t\treturn $item->id == $object_id;\n\t\t\t});\n\t\t}\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public function remove($entity)\r\n {\r\n \t$cacheKey = $this->getCacheKey($entity->getPrimaryKey());\r\n \tunset($this->_entities[$cacheKey]);\r\n \t$this->getCache()->remove($cacheKey);\r\n }", "public function delete( &$object );", "public function delete($object)\n {\n $this->setObjectState($object, self::OBJ_REMOVED);\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Tbprofessor) {\n\t\t\t\t$key = (string) $value->getMatriculaProf();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Tbprofessor object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function removePropelCacheObject($objectClassName, $objectPk = null)\n {\n $pk = $objectPk;\n if ($pk !== null) {\n if (is_array($pk)) {\n $npk = '';\n foreach ($pk as $k) {\n $npk .= urlencode($k) . '_';\n }\n } else {\n $pk = urlencode($pk);\n }\n }\n $cacheKey = 'core/object-caching.' . strtolower(preg_replace('/[^\\w]/', '.', $objectClassName));\n\n if ($objectPk) {\n $this->getKrynCore()->deleteDistributedCache($cacheKey . '/' . $pk);\n } else {\n $this->getKrynCore()->invalidateCache($cacheKey);\n }\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof SertifikasiPd) {\n $key = (string) $value->getIdSertPd();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or SertifikasiPd object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(SertifikasiPdPeer::$instances[$key]);\n }\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public function destroy()\n {\n /**\n * We don't clean up swap because of performance considerations\n * Cleaning is performed by Memory Manager destructor\n */\n\n $this->_memManager->unlink($this, $this->_id);\n }", "public function delete()\n {\n $this->repository->delete($this->id);\n }", "private function deleteObject($name){\n $this->cache->delete($name);\n }", "public function delete($object)\n {\n $start = microtime(true);\n $result = parent::delete($object);\n\n //is captured separately\n $this->dispatch('model_resource_db_delete', [\n 'object' => $object,\n 'time' => microtime(true) - $start\n ]);\n\n return $result;\n }", "public function destroyObjectPermanently(\n PhabricatorDestructionEngine $engine) {\n\n $this->openTransaction();\n $this->delete();\n $this->saveTransaction();\n }", "private function remove()\n {\n $this->checkPersister();\n\n $this->persister->beginTransaction();\n foreach ($this as $entity) {\n if (!empty($entity)) {\n $this->persister->remove($entity);\n }\n }\n\n $this->persister->commitTransaction();\n }", "public function destroyObjectPermanently(\n PhabricatorDestructionEngine $engine) {\n\n $this->openTransaction();\n $this->delete();\n $this->saveTransaction();\n }", "public function removeItemByID($objectID)\n\t{\n\t\treturn $this->tableObjects[$objectID];\n\t}", "public function remove(Objective $object)\n {\n return $this->map->removeKey($object);\n }", "function destroy()\n {\n return $this->get_mapper()->destroy($this->_stdObject);\n }", "public function destroy()\n {\n return $this->remove();\n }", "public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "public function destroy() {\n\t\t$this->removeInstance();\n\t\t$this->tearDownTestDatabase();\n\t}", "public function unpersist($object)\n {\n $this->removeObject($object);\n }", "static function dropInstance($name){\n\t\tif( $name instanceof cacheItem )\n\t\t\t$name = $name->name;\n\t\tif( isset( self::$_instances[$name]))\n\t\t\tunset(self::$_instances[$name]);\n\t\treturn null;\n\t}", "public function remove($object)\n {\n // create property accessor\n $accessor = PropertyAccess::createPropertyAccessor();\n\n // delete existing documents with same id\n foreach ($this->index->find('id:' . $accessor->getValue($object, 'id')) as $hit) {\n $this->index->delete($hit->id);\n }\n }", "public function destroy() {\n\t\t$sql = 'DELETE FROM ' . static::$table . ' WHERE id = ' . $this->get('id') . ';';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute();\n\t}", "public function destroyObjectPermanently(\n PhabricatorDestructionEngine $engine) {\n\n $this->openTransaction();\n $conn_w = $this->establishConnection('w');\n\n queryfx(\n $conn_w,\n 'DELETE FROM %T WHERE packageID = %d',\n id(new PhabricatorOwnersPath())->getTableName(),\n $this->getID());\n\n queryfx(\n $conn_w,\n 'DELETE FROM %T WHERE packageID = %d',\n id(new PhabricatorOwnersOwner())->getTableName(),\n $this->getID());\n\n $this->delete();\n $this->saveTransaction();\n }", "public function delete(Pickup $object);", "public function delete()\n {\n $conn = $this->getConnection();\n\n if (!isset($this->attributes->{$this->primaryKey})) {\n $trace = debug_backtrace()[0];\n throw new ModelException(\n 'No object has been loaded',\n 8000,\n $trace['file'],\n $trace['line']\n );\n }\n $key = $this->attributes->{$this->primaryKey};\n\n $bind = $this->getNamedParam();\n\n $statement = $this->getStatement();\n $statement->setWhere($this->primaryKey, '=', $bind);\n $statement->setBindings($bind, $key);\n\n $this->query = $statement->getDelete();\n $delete = $conn->prepare($this->query);\n\n return $this->execute($delete, $statement);\n }", "public static function remove() {\n $qb = new QB();\n\n $caller = get_called_class();\n $object = new $caller;\n\n $qb->object = $object;\n $qb->type = 'Delete';\n\n return $qb;\n }", "function unlockCacheObject ()\n {\n return unlink($this->cacheObjectId.'.lock');\n }", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function delete() {\n $this->logger->debug(\"Deleting session\");\n $this->repository->removeByKey($this->getKeys());\n self::$instance = null;\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof GsDailyDefinedDose) {\n $key = serialize(array((string) $value->getAtccode(), (string) $value->getDddaantal(), (string) $value->getDddeenheid(), (string) $value->getDddtoedieningsweg()));\n } elseif (is_array($value) && count($value) === 4) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1], (string) $value[2], (string) $value[3]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or GsDailyDefinedDose object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(GsDailyDefinedDosePeer::$instances[$key]);\n }\n }", "public function removeAll()\n {\n foreach ($this->findAll() as $object) {\n $this->remove($object);\n }\n }", "abstract public function remove();", "abstract public function remove();", "abstract public function remove();", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof GsSupplementaireProductenHistorie) {\n $key = serialize(array((string) $value->getDatumProduct(), (string) $value->getZindexNummer()));\n } elseif (is_array($value) && count($value) === 2) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or GsSupplementaireProductenHistorie object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(GsSupplementaireProductenHistoriePeer::$instances[$key]);\n }\n }", "public function unsetObject($key)\n {\n if (isset($this->objectCache[$key])) {\n unset($this->objectCache[$key]);\n }\n }", "public function release() {\n\t\tself::delete_by_id( $this->get_id() );\n\t}", "public static function destroyObject()\n {\n static::$bxObject = null;\n }", "public function remove() {\n\t\t$this->setRemoved(TRUE);\n\t}", "public function delete($object){\n\t\t$facade = FacadeGenerico::getInstance();\n\t\treturn $facade->deletar($object);\n\t}", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof RuangLongitudinal) {\n $key = serialize(array((string) $value->getIdRuang(), (string) $value->getSemesterId()));\n } elseif (is_array($value) && count($value) === 2) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or RuangLongitudinal object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(RuangLongitudinalPeer::$instances[$key]);\n }\n }", "function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}", "public function delete() {\n\t\t$args = func_get_args();\n\n\t\t// no argument, so delete current object\n\t\tif (empty($args))\n\t\t\treturn $this->db->where('id', $this->id)->delete($this->table);\n\n\t\t// argument given, so delete that object\n\t\treturn $this->db->where('id', $args[0])->delete($this->table);\n\t}", "public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }", "function erase() {\n\t\tif (method_exists($this,'beforeErase') && !$this->beforeErase())\n\t\t\treturn;\n\t\t$this->exec(array('method'=>'remove','criteria'=>$this->criteria));\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t$this->afterErase();\n\t}", "public function remove(string $object): void\n {\n if ($this->exists($object)) {\n unset($this->registry[$object]);\n }\n }", "public function delete() \n {\n DomainWatcher::addDeletedObject($this);\n }", "public static function destroy()\n {\n self::$instance = NULL;\n }", "public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}", "public function delete($instance)\n {\n $this->em->remove($instance);\n $this->em->flush();\n }", "public function remove($object) {\n\t\tif (!($object instanceof $this->objectType)) {\n\t\t\tthrow new \\F3\\FLOW3\\Persistence\\Exception\\IllegalObjectTypeException('The object given to remove() was not of the type (' . $this->objectType . ') this repository manages.', 1248363426);\n\t\t}\n\n\t\tif ($this->addedObjects->contains($object)) {\n\t\t\t$this->addedObjects->detach($object);\n\t\t} else {\n\t\t\t$this->removedObjects->attach($object);\n\t\t}\n\t}", "function object_cache_delete($id, $flag = '') {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->delete($id, $flag);\n}" ]
[ "0.6329556", "0.6329556", "0.624261", "0.6240583", "0.60868263", "0.608277", "0.6075955", "0.6043572", "0.60361296", "0.59740263", "0.5900129", "0.58921576", "0.5873221", "0.5857909", "0.5844167", "0.58420444", "0.5834691", "0.5806754", "0.5803742", "0.5796559", "0.579554", "0.5773493", "0.5741174", "0.57173", "0.5715497", "0.5715497", "0.5715497", "0.5715497", "0.57080084", "0.57061243", "0.5691075", "0.569", "0.56817824", "0.56657505", "0.56650764", "0.5653626", "0.56512755", "0.56420106", "0.56420106", "0.56420106", "0.56420106", "0.56420106", "0.56420106", "0.56420106", "0.56259316", "0.56250656", "0.5622", "0.5621835", "0.5621239", "0.56024325", "0.56012774", "0.556648", "0.556648", "0.5550361", "0.55180585", "0.55018014", "0.55006206", "0.5499223", "0.5499122", "0.54928356", "0.54894614", "0.5482346", "0.54566336", "0.5455646", "0.54547584", "0.5429122", "0.5429009", "0.54193676", "0.5381296", "0.5374354", "0.53710204", "0.53686994", "0.53676456", "0.53502095", "0.53368723", "0.5336508", "0.5330123", "0.53239167", "0.52980477", "0.5288295", "0.5288295", "0.5288295", "0.5273605", "0.526964", "0.52545905", "0.5251423", "0.52507615", "0.5243114", "0.52342933", "0.5213362", "0.5210193", "0.5204945", "0.5199466", "0.51994497", "0.51944244", "0.51786226", "0.51749927", "0.51725525", "0.5167161", "0.5146432" ]
0.57889897
21
removeInstanceFromPool() Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. For tables with a singlecolumn primary key, that simple pkey value will be returned. For tables with a multicolumn primary key, a serialize()d version of the primary key will be returned.
public static function getInstanceFromPool($key) { if (Propel::isInstancePoolingEnabled()) { if (isset(CastleTypePeer::$instances[$key])) { return CastleTypePeer::$instances[$key]; } } return null; // just to be explicit }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof SertifikasiPd) {\n $key = (string) $value->getIdSertPd();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or SertifikasiPd object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(SertifikasiPdPeer::$instances[$key]);\n }\n }", "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "function db_drop_primary_key(&$ret, $table) {\n $ret[] = update_sql('ALTER TABLE {'. $table .'} DROP PRIMARY KEY');\n}", "public function offsetUnset($primary_key) {\n if (isset($this->_pool[$primary_key[0]])) {\n unset($this->_pool[$primary_key[0]]);\n } else\n throw new Exception(\"key '{$primary_key[0]}' not found\");\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && null !== $value) {\n if (is_object($value) && $value instanceof \\ApInvoice) {\n $key = serialize([(null === $value->getApvevendid() || is_scalar($value->getApvevendid()) || is_callable([$value->getApvevendid(), '__toString']) ? (string) $value->getApvevendid() : $value->getApvevendid()), (null === $value->getApihpaytokey() || is_scalar($value->getApihpaytokey()) || is_callable([$value->getApihpaytokey(), '__toString']) ? (string) $value->getApihpaytokey() : $value->getApihpaytokey()), (null === $value->getApihponbr() || is_scalar($value->getApihponbr()) || is_callable([$value->getApihponbr(), '__toString']) ? (string) $value->getApihponbr() : $value->getApihponbr()), (null === $value->getApihctrlnbr() || is_scalar($value->getApihctrlnbr()) || is_callable([$value->getApihctrlnbr(), '__toString']) ? (string) $value->getApihctrlnbr() : $value->getApihctrlnbr()), (null === $value->getApihinvnbr() || is_scalar($value->getApihinvnbr()) || is_callable([$value->getApihinvnbr(), '__toString']) ? (string) $value->getApihinvnbr() : $value->getApihinvnbr()), (null === $value->getApihseq() || is_scalar($value->getApihseq()) || is_callable([$value->getApihseq(), '__toString']) ? (string) $value->getApihseq() : $value->getApihseq())]);\n\n } elseif (is_array($value) && count($value) === 6) {\n // assume we've been passed a primary key\";\n $key = serialize([(null === $value[0] || is_scalar($value[0]) || is_callable([$value[0], '__toString']) ? (string) $value[0] : $value[0]), (null === $value[1] || is_scalar($value[1]) || is_callable([$value[1], '__toString']) ? (string) $value[1] : $value[1]), (null === $value[2] || is_scalar($value[2]) || is_callable([$value[2], '__toString']) ? (string) $value[2] : $value[2]), (null === $value[3] || is_scalar($value[3]) || is_callable([$value[3], '__toString']) ? (string) $value[3] : $value[3]), (null === $value[4] || is_scalar($value[4]) || is_callable([$value[4], '__toString']) ? (string) $value[4] : $value[4]), (null === $value[5] || is_scalar($value[5]) || is_callable([$value[5], '__toString']) ? (string) $value[5] : $value[5])]);\n } elseif ($value instanceof Criteria) {\n self::$instances = [];\n\n return;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or \\ApInvoice object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value, true)));\n throw $e;\n }\n\n unset(self::$instances[$key]);\n }\n }", "public function getPrimaryKey(phpDataMapper_Model_Row $row)\n\t{\n\t\t$pkField = $this->getPrimaryKeyField();\n\t\treturn $row->$pkField;\n\t}", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Tbprofessor) {\n\t\t\t\t$key = (string) $value->getMatriculaProf();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Tbprofessor object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Course) {\n\t\t\t\t$key = (string) $value->getCode();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Course object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof GsSupplementaireProductenHistorie) {\n $key = serialize(array((string) $value->getDatumProduct(), (string) $value->getZindexNummer()));\n } elseif (is_array($value) && count($value) === 2) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or GsSupplementaireProductenHistorie object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(GsSupplementaireProductenHistoriePeer::$instances[$key]);\n }\n }", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof GsGeneriekeProducten) {\n $key = (string) $value->getGeneriekeproductcode();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or GsGeneriekeProducten object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(GsGeneriekeProductenPeer::$instances[$key]);\n }\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof AsignacionSc) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or AsignacionSc object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public static function getPk(){\n return static::$_primaryKey;\n }", "protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof MissionPhoto) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or MissionPhoto object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public static function findByPrimaryKeyAndRemove($primary_key)\n {\n return DB::table(static::$schema)\n ->delete()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fulfil();\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "function getPrimKey($fk1, $fk2, $pkCol, $fk1Col, $fk2Col, $table)\n\t{\n\t\t//intialize variable\n\t\t$pkId\t= 0;\n\t\t\n\t\t//statement\n\t\t$sql\t= \"SELECT \".$pkCol.\" FROM \".$table. \n\t\t\t\t \" WHERE \".$fk1Col.\"='\".$fk1.\"' \n\t\t\t\t AND \".$fk2Col.\"='\".$fk2.\"'\";\n\t\t\n\t\t$query\t= mysql_query($sql);\n\t\t\n\t\t\n\t\tif(mysql_num_rows($query) > 0)\n\t\t{\t\n\t\t\twhile($result = mysql_fetch_object($query))\n\t\t\t{\n\t\t\t\t$pkId\t= $result->$pkCol;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return\n\t\treturn $pkId;\n\t\t\n\t}", "abstract function getPrimaryKey();", "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof RpMissionSummary) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or RpMissionSummary object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public function removePrimaryKey($name)\n {\n //Argument 1 must be a string\n Argument::i()->test(1, 'string');\n \n $this->removePrimaryKeys[] = $name;\n return $this;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }", "public function getPrimaryKey()\n {\n return $this->getProdId();\n }", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey()\n {\n return $this->getid();\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof RuangLongitudinal) {\n $key = serialize(array((string) $value->getIdRuang(), (string) $value->getSemesterId()));\n } elseif (is_array($value) && count($value) === 2) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or RuangLongitudinal object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(RuangLongitudinalPeer::$instances[$key]);\n }\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof CastleType) {\n $key = (string) $value->getId();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or CastleType object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(CastleTypePeer::$instances[$key]);\n }\n }", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}", "public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }", "public function getIdKey();", "public function primaryKey()\n {\n return $this->set('primary_key', true);\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && null !== $value) {\n if (is_object($value) && $value instanceof \\SalesHistoryLotserial) {\n $key = serialize([(null === $value->getOehhnbr() || is_scalar($value->getOehhnbr()) || is_callable([$value->getOehhnbr(), '__toString']) ? (string) $value->getOehhnbr() : $value->getOehhnbr()), (null === $value->getOedhline() || is_scalar($value->getOedhline()) || is_callable([$value->getOedhline(), '__toString']) ? (string) $value->getOedhline() : $value->getOedhline()), (null === $value->getInititemnbr() || is_scalar($value->getInititemnbr()) || is_callable([$value->getInititemnbr(), '__toString']) ? (string) $value->getInititemnbr() : $value->getInititemnbr()), (null === $value->getOeshtag() || is_scalar($value->getOeshtag()) || is_callable([$value->getOeshtag(), '__toString']) ? (string) $value->getOeshtag() : $value->getOeshtag()), (null === $value->getOeshlotser() || is_scalar($value->getOeshlotser()) || is_callable([$value->getOeshlotser(), '__toString']) ? (string) $value->getOeshlotser() : $value->getOeshlotser()), (null === $value->getOeshbin() || is_scalar($value->getOeshbin()) || is_callable([$value->getOeshbin(), '__toString']) ? (string) $value->getOeshbin() : $value->getOeshbin()), (null === $value->getOeshplltnbr() || is_scalar($value->getOeshplltnbr()) || is_callable([$value->getOeshplltnbr(), '__toString']) ? (string) $value->getOeshplltnbr() : $value->getOeshplltnbr()), (null === $value->getOeshcrtnnbr() || is_scalar($value->getOeshcrtnnbr()) || is_callable([$value->getOeshcrtnnbr(), '__toString']) ? (string) $value->getOeshcrtnnbr() : $value->getOeshcrtnnbr())]);\n\n } elseif (is_array($value) && count($value) === 8) {\n // assume we've been passed a primary key\";\n $key = serialize([(null === $value[0] || is_scalar($value[0]) || is_callable([$value[0], '__toString']) ? (string) $value[0] : $value[0]), (null === $value[1] || is_scalar($value[1]) || is_callable([$value[1], '__toString']) ? (string) $value[1] : $value[1]), (null === $value[2] || is_scalar($value[2]) || is_callable([$value[2], '__toString']) ? (string) $value[2] : $value[2]), (null === $value[3] || is_scalar($value[3]) || is_callable([$value[3], '__toString']) ? (string) $value[3] : $value[3]), (null === $value[4] || is_scalar($value[4]) || is_callable([$value[4], '__toString']) ? (string) $value[4] : $value[4]), (null === $value[5] || is_scalar($value[5]) || is_callable([$value[5], '__toString']) ? (string) $value[5] : $value[5]), (null === $value[6] || is_scalar($value[6]) || is_callable([$value[6], '__toString']) ? (string) $value[6] : $value[6]), (null === $value[7] || is_scalar($value[7]) || is_callable([$value[7], '__toString']) ? (string) $value[7] : $value[7])]);\n } elseif ($value instanceof Criteria) {\n self::$instances = [];\n\n return;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or \\SalesHistoryLotserial object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value, true)));\n throw $e;\n }\n\n unset(self::$instances[$key]);\n }\n }", "function get_pk($key_id)\n\t{\n\t\t$key_id\t= $this->prepare_input($key_id, 42);\n\t\t$key\t= $this->call(\"{$this->context} --export $key_id\");\n\n\t\tif (false === $error = $this->get_error())\n\t\t{\n\t\t\treturn $key;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie($error);\n\t\t}\n\t}", "public function getTablePrimaryKey()\n {\n return 'p.id';\n }", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}", "public static function getInstanceFromPool($key)\n {\n if (Propel::isInstancePoolingEnabled()) {\n if (isset(SertifikasiPdPeer::$instances[$key])) {\n return SertifikasiPdPeer::$instances[$key];\n }\n }\n\n return null; // just to be explicit\n }", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "protected abstract function getPrimaryKeyName();", "public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}", "public function getPrimaryKey($value = FALSE) {\n\t\t$pK = self::$primaryKey[$this->table];\n\t\tif ($value)\t\n\t\t\treturn $this->$pK;\n\t\treturn $pK;\n\t}", "public function dropPrimaryKey($name,$table)\n\t{\n\t\treturn $this->setText($this->getConnection()->getSchema()->dropPrimaryKey($name,$table))->execute();\n\t}", "public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }", "public function getPk()\n {\n return $this->_pk;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}", "public function key()\n\t{\n\t\t$this->databaseResult->key();\n\t}", "public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }", "public function getPrimaryKeys();", "public function getPrimaryKeys();", "public function getIDKey(){\n\t\treturn $this->ID_key;\n\t}", "public function deleteRowByPrimaryKey()\n {\n if ($this->getCuboId() === null) {\n $this->_logger->log('The value for CuboId cannot be null in deleteRowByPrimaryKey for ' . get_class($this), \\Zend_Log::ERR);\n throw new \\Exception('Primary Key does not contain a value');\n }\n\n return $this->getMapper()->getDbTable()->delete(\n 'cuboId = ' .\n $this->getMapper()->getDbTable()->getAdapter()->quote($this->getCuboId())\n );\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }", "public function getPrimaryKeyStr()\n {\n return $this->venda->getPrimaryKeyStr() . '-' . $this->getParcela();\n }", "public function getPrimaryKey()\n {\n $pks = array();\n $pks[0] = $this->getId();\n $pks[1] = $this->getNickname();\n\n return $pks;\n }", "public function getPrimaryKey($tableName)\n\t{\n\t\tif (Cache::has('getPrimaryKey', $tableName)) {\n\t\t\treturn Cache::get('getPrimaryKey', $tableName);\n\t\t}\n\t\t$key = [];\n\t\tif ('mysql' === $this->getDriverName()) {\n\t\t\t$tableKeys = $this->getTableKeys($tableName);\n\t\t\t$key = isset($tableKeys['PRIMARY']) ? ['PRIMARY' => array_keys($tableKeys['PRIMARY'])] : [];\n\t\t}\n\t\tCache::save('getPrimaryKey', $tableName, $key, Cache::LONG);\n\t\treturn $key;\n\t}", "public function json_primary_key($table_name){\n\t\tif( in_array( $table_name, array_keys(Model_Kiwi::$kiwi_pk_hash))){\n\t\t\treturn Model_Kiwi::$kiwi_pk_hash[ $table_name ];\n\t\t}\n\t\treturn Model_Kiwi::singularize($table_name) . '_id';\n\t}", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}" ]
[ "0.59381914", "0.5931325", "0.5813825", "0.5756741", "0.5742803", "0.5726756", "0.57168186", "0.57064676", "0.5678229", "0.56456375", "0.56192636", "0.56042445", "0.5597152", "0.5597152", "0.5597152", "0.55932724", "0.5577148", "0.55755895", "0.5575556", "0.5565924", "0.5534614", "0.5521623", "0.5512991", "0.5512991", "0.5509137", "0.5500968", "0.54913414", "0.5485589", "0.54796195", "0.54796195", "0.5459858", "0.544641", "0.54439455", "0.5430017", "0.54217356", "0.5416182", "0.5378907", "0.5372664", "0.5372664", "0.53674585", "0.536355", "0.53631306", "0.5352214", "0.53489274", "0.534829", "0.53448796", "0.53371245", "0.53296363", "0.531658", "0.5299718", "0.5299718", "0.5287939", "0.52778405", "0.5277662", "0.5260208", "0.52593756", "0.52592576", "0.5252262", "0.52503747", "0.52436095", "0.52426684", "0.52421075", "0.5235474", "0.5229769", "0.5229625", "0.52159256", "0.52159256", "0.52159256", "0.5213493", "0.5210343", "0.52092785", "0.5207037", "0.51817095", "0.517304", "0.51706415", "0.5166986", "0.5162946", "0.5158051", "0.51548535", "0.51516265", "0.5146304", "0.51421624", "0.51394945", "0.51394945", "0.5133038", "0.51323533", "0.5124703", "0.5124703", "0.51229554", "0.5117672", "0.51160645", "0.5101469", "0.51011944", "0.5094508", "0.5091544", "0.5091544", "0.5091544", "0.5091544", "0.5091544", "0.5091544", "0.5091544" ]
0.0
-1
Clear the instance pool.
public static function clearInstancePool($and_clear_all_references = false) { if ($and_clear_all_references) { foreach (CastleTypePeer::$instances as $instance) { $instance->clearAllReferences(true); } } CastleTypePeer::$instances = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function clearInstancePool()\n\t{\n\t\tself::$instances = array();\n\t}", "public static function clearInstancePool()\n\t{\n\t\tself::$instances = array();\n\t}", "public static function clearInstancePool()\n\t{\n\t\tself::$instances = array();\n\t}", "public static function clearInstancePool()\n\t{\n\t\tself::$instances = array();\n\t}", "public static function clearInstancePool()\n\t{\n\t\tself::$instances = array();\n\t}", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n {\n }", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n HbfVasosTableMap::clearInstancePool();\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n SkillTableMap::clearInstancePool();\n }", "public static function purgeInstances() {}", "public static function purgeInstances() {}", "public static function clearRelatedInstancePool()\n\t{\n\t\t// invalidate objects in TbturmaProfessorPeer instance pool, since one or more of them may be deleted by ON DELETE CASCADE rule.\n\t\tTbturmaProfessorPeer::clearInstancePool();\n\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "public function clearPools()\r\n\t{\r\n\t\tforeach (array_keys($this->getPools()) as $key) {\r\n\t\t\t$this->clearPool($key);\r\n\t\t}\r\n\t\treturn $this;\r\n\t}", "public static function clearResolvedInstances()\n {\n }", "public static function clearResolvedInstances()\n {\n }", "public static function clearResolvedInstances()\n {\n }", "public static function clearResolvedInstances()\n {\n }", "public static function reset()\n {\n self::resetDefault();\n self::$instances = array();\n }", "public function clearPool($target_pool = self::POOL_MAIN)\r\n\t{\r\n\t\t$this->getPool($target_pool)->reset();\r\n\t\treturn $this;\r\n\t}", "public static function reset()\n\t{\n\t\tstatic::$instances = [];\n\t}", "public static function clearInstance(){\n self::$instance = null;\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references)\n {\n foreach (SertifikasiPdPeer::$instances as $instance)\n {\n $instance->clearAllReferences(true);\n }\n }\n SertifikasiPdPeer::$instances = array();\n }", "public static function reset() {\n\t\t\tself::$instance = null;\n\t\t}", "public static function reset() {\n\t\t\tself::$instance = null;\n\t\t}", "public static function clear()\n {\n self::$map = array();\n self::$instances = array();\n }", "public function forgetInstances()\n {\n $this->instances = [];\n }", "public static function clear(): void\n {\n if (static::$Instance !== NULL) {\n static::$Instance = NULL;\n }\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references) {\n foreach (GsGeneriekeProductenPeer::$instances as $instance) {\n $instance->clearAllReferences(true);\n }\n }\n GsGeneriekeProductenPeer::$instances = array();\n }", "public static function clear()\n {\n static::getInstance()->clear();\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references) {\n foreach (GsDailyDefinedDosePeer::$instances as $instance) {\n $instance->clearAllReferences(true);\n }\n }\n GsDailyDefinedDosePeer::$instances = array();\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references) {\n foreach (ReportPeer::$instances as $instance) {\n $instance->clearAllReferences(true);\n }\n }\n ReportPeer::$instances = array();\n }", "public function clear() {\n $this->redis = null;\n }", "public static function resetInstance()\n {\n static::$_instance = null;\n }", "public function clear() {\n\t\t$this->backends = [];\n\t\t$this->initializedBackends = [];\n\t}", "public function clear()\n {\n try {\n $this->imagick->clear();\n $this->imagick->destroy();\n } catch (Exception $e) {\n\n }\n }", "public function clear()\n {\n foreach ($this->backends as $b) {\n $b->clear();\n }\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references)\n {\n foreach (RuangLongitudinalPeer::$instances as $instance)\n {\n $instance->clearAllReferences(true);\n }\n }\n RuangLongitudinalPeer::$instances = array();\n }", "public static function clearInstancePool($and_clear_all_references = false)\n {\n if ($and_clear_all_references) {\n foreach (GsSupplementaireProductenHistoriePeer::$instances as $instance) {\n $instance->clearAllReferences(true);\n }\n }\n GsSupplementaireProductenHistoriePeer::$instances = array();\n }", "public function keyPoolRefill();", "public static function clearResolvedInstances()\n {\n static::$resolvedInstance = [];\n }", "public static function reset()\n {\n if (self::$_instance != null) {\n self::$_instance->_wrapperRegistry = array();\n }\n self::$_instance = null;\n }", "public static function reset_caches() {\n self::$instance = null;\n }", "public function clear()\n\t{\n\t\tforeach($this->all() as $ip)\n\t\t{\n\t\t\t$this->delete($ip['ip_address']);\n\t\t}\n\t}", "public function clear($name)\n {\n if (true===$this->instances->isEntry($name)) {\n $this->instances->setEntry($name, null);\n }\n }", "public static function destroy()\n {\n self::$instance = NULL;\n }", "static public function reset()\n\t{\n\t\tstatic::$instance = null;\n\t}", "public function purge(): void\n {\n $this->boot();\n $this->configuration->eventDispatcher()->dispatch(new Clear($this));\n }", "final public static function clear() {\n static::free_all();\n }", "protected function clear()\n {\n static::destroyApplication();\n }", "public function destroySingletons ();", "public function __destruct(){\n if (!empty($this->_connPool)){\n foreach ($this->_connPool as $conn){\n $this->close($conn);\n }\n }\n }", "public static function clear($key) {\n unset(self::$instances[$key]);\n }", "public static function pruneInstance()\n {\n self::$instance = null;\n self::$refIdList = array();\n self::$refIdDefinitions = array();\n }", "public function reset(): void\n {\n $this->_add = new SplObjectStorage();\n $this->_delete = new SplObjectStorage();\n }", "public function __destruct()\n {\n $this->clear();\n }", "public function __destruct()\n {\n $this->clear();\n }", "function clear() {\r\n /* clear datasource. you should call this before calling another populate() to avoid datasource gets appended\r\n */\r\n $this->ds = new DataSource;\r\n $this->db_count = 0;\r\n }", "public function garbageCollection();", "public function clear(): void\n {\n $this->collectionStatsById = [];\n $this->proxyStatsByClass = [];\n }", "public function reset()\n {\n $this->values[self::_INSTANCE_INFO] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_LOOTS] = array();\n $this->values[self::_HP_DROP] = array();\n }", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public static function resetSharedInstance()\n {\n static::$sharedInstance = null;\n }", "protected static function _resetInstance($class)\r\n {\r\n self::$_instances[$class] = null;\r\n }", "protected function resetSingletons() {}", "public static function reset()\n {\n self::$instance = null;\n\n return self::instance();\n }", "protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}", "protected function clear() {}", "public function clearCollection()\n {\n $this->collections = [];\n }", "public function __destruct() \n {\n Benchmark::stop('GridModule Loading');\n \n }", "public function clearProviders();", "public static function reset()\n {\n $container = static::getInstance();\n $container->values = array();\n $container->factories = array();\n $container->raw = array();\n }", "public function removeAllTasks() {\n\t\t$this->tasks = new Tx_Extbase_Persistence_ObjectStorage();\n\t}", "public function clear()\n {\n $this->repository = array();\n }", "public function clear ()\n {\n\n $this->groups = null;\n $this->groups = array();\n $this->names = null;\n $this->names = array();\n\n }", "function __destruct()\n {\n $this->db = null;\n static::$instance = null;\n }", "public static function clear()\n {\n self::$drivers = array();\n }", "public function clear()\n {\n $this->tags = [];\n }", "public function purge() {}", "public final function destroy_all()\n {\n }", "public function __destruct()\n {\n if ($this == self::$instance) {\n self::$instance = null;\n }\n }", "public static function clear(): void\n {\n static::getCache()->clear();\n }", "public function destroy() {\n\t\t$this->removeInstance();\n\t\t$this->tearDownTestDatabase();\n\t}", "protected function removeInstance() {}", "public static function cleanUpNamedInstanceCache($name = null) {}", "public static function resetInstance() {\n \t// Reset the instance\n \tself::$oInsance = null;\n }", "function clearContainer()\r\n {\r\n foreach ($this->container as $k => $v)\r\n unset($this->container[$k]);\r\n }", "public function clear();", "public function clear();", "public function clear();" ]
[ "0.8837235", "0.8837235", "0.8837235", "0.8837235", "0.8837235", "0.87216514", "0.87216514", "0.87216514", "0.87216514", "0.87216514", "0.87216514", "0.87216514", "0.86158293", "0.86158293", "0.7671361", "0.74862856", "0.7373576", "0.7373576", "0.7254292", "0.70665246", "0.6921835", "0.6894511", "0.6894511", "0.6894511", "0.6894511", "0.67533296", "0.6712309", "0.67110527", "0.6643681", "0.64765334", "0.64745", "0.64745", "0.64458793", "0.6439805", "0.64393795", "0.6428614", "0.63897544", "0.63870674", "0.63559914", "0.6284846", "0.62754893", "0.62527835", "0.62406117", "0.62389773", "0.62352103", "0.621595", "0.6198107", "0.61640126", "0.61305755", "0.6124239", "0.6089397", "0.6037898", "0.6016904", "0.600256", "0.5980442", "0.5936843", "0.5913235", "0.5889247", "0.58485126", "0.5789804", "0.57602257", "0.57362986", "0.57340896", "0.57340896", "0.57078487", "0.57057273", "0.57026356", "0.5699624", "0.5686474", "0.5686474", "0.5686474", "0.5686474", "0.5683535", "0.56800807", "0.5669524", "0.56369376", "0.5594029", "0.558695", "0.55863214", "0.55710906", "0.5557354", "0.55510306", "0.5539055", "0.553887", "0.5525802", "0.5521571", "0.5506537", "0.5501871", "0.54915947", "0.5483141", "0.5480154", "0.54770005", "0.54723036", "0.54719853", "0.5463303", "0.54626954", "0.54519165", "0.54462576", "0.54462576", "0.54462576" ]
0.6461653
32
Method to invalidate the instance pool of all tables related to castle_type by a foreign key with ON DELETE CASCADE
public static function clearRelatedInstancePool() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "function __destructor() {\n /**\n * Re-enable foreign key checks \n */\n if ($this->disableForeignKeyChecks === true) {\n mysqli_query($this->conn, 'SET foreign_key_checks = 1');\n }\n }", "public static function clearRelatedInstancePool()\n\t{\n\t\t// invalidate objects in TbturmaProfessorPeer instance pool, since one or more of them may be deleted by ON DELETE CASCADE rule.\n\t\tTbturmaProfessorPeer::clearInstancePool();\n\n\t}", "function __destruct()\n\t{\n\t\t$query = \"set foreign_key_checks = 1\";\n\t\t$this->pdo_source->query($query);\t\t\n\t\t\n\t}", "public function wipeAll() {\n\t\tforeach($this->getTables() as $t) {\n\t\t\tforeach($this->getKeys($t) as $k) {\n\t\t\t\t$this->adapter->exec(\"ALTER TABLE \\\"{$k['FKTABLE_NAME']}\\\" DROP FOREIGN KEY \\\"{$k['FK_NAME']}\\\"\");\n\t\t\t}\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t\tforeach($this->getTables() as $t) {\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t}", "public function drop ()\n {\n //delete the records of the lookup value\n $records = LookupValue::where('lookup_type_id', 1)->get();\n foreach ( $records as $record )\n $record->forceDelete();\n\n //delete the lookup definition itself\n $record = LookupType::find(1);\n $record->forceDelete();\n }", "public function unSetInheritance(){\n\t\t$pdo = Env::getDbConnectionForShare();\n\t\t$this->delete($pdo);\n\t\tself::updateInheritancesCache();\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public static function clearRelatedInstancePool()\n\t{\n\t}", "public function onAfterDeleteCleaning() {\n\t\t$classHierarchyProbe = new DataObjectOnDeleteDecorator_ClassHierarchyProbe($this->owner);\n\t\t$relatedClasses = $classHierarchyProbe->getRelatedClasses();\n\t\t\n\t\t$this->cleanRelatedRelations($relatedClasses);\n\t\t$this->cleanRelatedTables($relatedClasses);\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n HbfVasosTableMap::clearInstancePool();\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in related instance pools,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n SkillTableMap::clearInstancePool();\n }", "public function delete()\n {\n DB::beginTransaction();\n $res=parent::delete();\n \n if($res==true)\n {\n $relations=$this->morphMany('App\\Models\\Image', 'imageable');\n\n \n $relations->delete(); \n }\n\n DB::commit(); \n }", "public function dropForeignKeys()\n\t{\n\t\t$table = $this->getTableName();\n\n\t\t// Does the table exist?\n\t\tif (blx()->db->getSchema()->getTable('{{'.$table.'}}'))\n\t\t{\n\t\t\tforeach ($this->getBelongsToRelations() as $name => $config)\n\t\t\t{\n\t\t\t\t$otherModel = new $config[1];\n\t\t\t\t$otherTable = $otherModel->getTableName();\n\n\t\t\t\t// Does the other table exist?\n\t\t\t\tif (blx()->db->getSchema()->getTable('{{'.$otherTable.'}}'))\n\t\t\t\t{\n\t\t\t\t\t$fkName = \"{$table}_{$name}_fk\";\n\t\t\t\t\tblx()->db->createCommand()->dropForeignKey($fkName, $table);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3B514973B');\n $this->addSql('ALTER TABLE visite DROP FOREIGN KEY FK_B09C8CBBCF22540A');\n $this->addSql('ALTER TABLE constance DROP FOREIGN KEY FK_629ACEFFC2BE0752');\n $this->addSql('ALTER TABLE visite DROP FOREIGN KEY FK_B09C8CBBD89133B9');\n $this->addSql('ALTER TABLE constance DROP FOREIGN KEY FK_629ACEFF6B899279');\n $this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA36B899279');\n $this->addSql('ALTER TABLE visite DROP FOREIGN KEY FK_B09C8CBB6B899279');\n $this->addSql('ALTER TABLE docteur DROP FOREIGN KEY FK_83A7A4392195E0F0');\n $this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA375039D49');\n $this->addSql('ALTER TABLE caissier DROP FOREIGN KEY FK_1F038BC2B64944F6');\n $this->addSql('ALTER TABLE docteur DROP FOREIGN KEY FK_83A7A439A76ED395');\n $this->addSql('ALTER TABLE infirmier DROP FOREIGN KEY FK_BFEC55B9A76ED395');\n $this->addSql('ALTER TABLE patient DROP FOREIGN KEY FK_1ADAD7EBA76ED395');\n $this->addSql('DROP TABLE caissier');\n $this->addSql('DROP TABLE constance');\n $this->addSql('DROP TABLE docteur');\n $this->addSql('DROP TABLE infirmier');\n $this->addSql('DROP TABLE maladie');\n $this->addSql('DROP TABLE ordenance');\n $this->addSql('DROP TABLE patient');\n $this->addSql('DROP TABLE specialite');\n $this->addSql('DROP TABLE ticket');\n $this->addSql('DROP TABLE type_visite');\n $this->addSql('DROP TABLE user');\n $this->addSql('DROP TABLE visite');\n }", "private function cleanDatabase()\n {\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n foreach($this->tables as $table)\n {\n\n DB::table($table)->truncate();\n\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n\n }", "public static function gc()\n {\n Dba::write('DELETE FROM `album` USING `album` LEFT JOIN `song` ON `song`.`album` = `album`.`id` WHERE `song`.`id` IS NULL');\n }", "public function destroy() {\n $this->connection->schema()->dropTable($this->mapTable);\n $this->connection->schema()->dropTable($this->messageTable);\n }", "protected function deleteAll()\n {\n Yii::$app->db->createCommand()\n ->delete($this->tableName, [$this->primaryKey => $this->owner->{$this->primaryKey}])\n ->execute();\n }", "public function down()\n {\n $this->table('accounting_entries')\n ->dropForeignKey(\n 'accounting_entry_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('associations_events')\n ->dropForeignKey(\n 'event_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('events')\n ->dropForeignKey(\n 'event_type_id'\n )->save();\n\n $this->table('members')\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics')\n ->dropForeignKey(\n 'statistics_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics_event')\n ->dropForeignKey(\n 'statistics_id'\n )\n ->dropForeignKey(\n 'event_id'\n )->save();\n\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('accounting_entries')->drop()->save();\n $this->table('accounting_entry_type')->drop()->save();\n $this->table('associations')->drop()->save();\n $this->table('associations_events')->drop()->save();\n $this->table('event_type')->drop()->save();\n $this->table('events')->drop()->save();\n $this->table('members')->drop()->save();\n $this->table('roles')->drop()->save();\n $this->table('statistics')->drop()->save();\n $this->table('statistics_event')->drop()->save();\n $this->table('statistics_type')->drop()->save();\n $this->table('users')->drop()->save();\n }", "function afterDelete() {\n \t\t$this->_ownerModel->deleteAll(array(\n \t\t\t\t'model' => $this->_Model->alias,\n \t\t\t\t'foreign_key' => $this->_Model->id,\n \t\t\t\t$this->settings[$this->_Model->alias]['userPrimaryKey'] => $this->_User,\n \t\t));\n\t\t}", "public function uninstall(){\n MergeRequestComment::dropTable();\n MergeRequest::dropTable();\n CommitCache::dropTable();\n Repo::dropTable();\n Project::dropTable();\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE encherir_acheteur (encherir_id INT NOT NULL, acheteur_id INT NOT NULL, INDEX IDX_41ABAAFBB0BA17BB (encherir_id), INDEX IDX_41ABAAFB96A7BB5F (acheteur_id), PRIMARY KEY(encherir_id, acheteur_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE encherir_lot (encherir_id INT NOT NULL, lot_id INT NOT NULL, INDEX IDX_3C56919BB0BA17BB (encherir_id), INDEX IDX_3C56919BA8CBA5F7 (lot_id), PRIMARY KEY(encherir_id, lot_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFB96A7BB5F FOREIGN KEY (acheteur_id) REFERENCES acheteur (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFBB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BA8CBA5F7 FOREIGN KEY (lot_id) REFERENCES lot (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EB576A8');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EFC101A');\n $this->addSql('DROP INDEX IDX_503B7C878EB576A8 ON encherir');\n $this->addSql('DROP INDEX IDX_503B7C878EFC101A ON encherir');\n $this->addSql('ALTER TABLE encherir DROP id_acheteur_id, DROP id_lot_id');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443B42F4634A');\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443B7AC2280A');\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443BC4531AA');\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443B2F7FAB3F');\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443B8D48E193');\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443B4E2F28D');\n $this->addSql('ALTER TABLE agriculteur DROP FOREIGN KEY FK_2366443BB108249D');\n $this->addSql('DROP INDEX IDX_2366443B42F4634A ON agriculteur');\n $this->addSql('DROP INDEX IDX_2366443B7AC2280A ON agriculteur');\n $this->addSql('DROP INDEX IDX_2366443BC4531AA ON agriculteur');\n $this->addSql('DROP INDEX IDX_2366443B2F7FAB3F ON agriculteur');\n $this->addSql('DROP INDEX IDX_2366443B8D48E193 ON agriculteur');\n $this->addSql('DROP INDEX IDX_2366443B4E2F28D ON agriculteur');\n $this->addSql('DROP INDEX IDX_2366443BB108249D ON agriculteur');\n $this->addSql('ALTER TABLE agriculteur DROP typologie_id, DROP bvpi_id, DROP zone_technicien_id, DROP op_id, DROP ce_id, DROP elevage_id, DROP culture_id');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE candidat_offre_emploi DROP FOREIGN KEY FK_B1E2339A8D0EB82');\n $this->addSql('ALTER TABLE critere DROP FOREIGN KEY FK_7F6A80538D0EB82');\n $this->addSql('ALTER TABLE cv DROP FOREIGN KEY FK_B66FFE928D0EB82');\n $this->addSql('ALTER TABLE critere_secteur_activite DROP FOREIGN KEY FK_29A2BFEA9E5F45AB');\n $this->addSql('ALTER TABLE critere_langue DROP FOREIGN KEY FK_8637AAD99E5F45AB');\n $this->addSql('ALTER TABLE critere_region DROP FOREIGN KEY FK_1A022E219E5F45AB');\n $this->addSql('ALTER TABLE experience DROP FOREIGN KEY FK_590C103CFE419E2');\n $this->addSql('ALTER TABLE formation DROP FOREIGN KEY FK_404021BFCFE419E2');\n $this->addSql('ALTER TABLE entreprise_secteur_activite DROP FOREIGN KEY FK_743F81E1A4AEAFEA');\n $this->addSql('ALTER TABLE offre_emploi DROP FOREIGN KEY FK_132AD0D1A4AEAFEA');\n $this->addSql('ALTER TABLE critere_langue DROP FOREIGN KEY FK_8637AAD92AADBACD');\n $this->addSql('ALTER TABLE offre_emploi_langue DROP FOREIGN KEY FK_BC3349072AADBACD');\n $this->addSql('ALTER TABLE critere DROP FOREIGN KEY FK_7F6A8053ED16FA20');\n $this->addSql('ALTER TABLE offre_emploi DROP FOREIGN KEY FK_132AD0D1ED16FA20');\n $this->addSql('ALTER TABLE cv DROP FOREIGN KEY FK_B66FFE92FEAD13D1');\n $this->addSql('ALTER TABLE offre_emploi DROP FOREIGN KEY FK_132AD0D1FEAD13D1');\n $this->addSql('ALTER TABLE cv DROP FOREIGN KEY FK_B66FFE925649FBA6');\n $this->addSql('ALTER TABLE offre_emploi DROP FOREIGN KEY FK_132AD0D15649FBA6');\n $this->addSql('ALTER TABLE candidat_offre_emploi DROP FOREIGN KEY FK_B1E2339AB08996ED');\n $this->addSql('ALTER TABLE offre_emploi_langue DROP FOREIGN KEY FK_BC334907B08996ED');\n $this->addSql('ALTER TABLE offre_emploi_secteur_activite DROP FOREIGN KEY FK_E39849D8B08996ED');\n $this->addSql('ALTER TABLE user_offre_emploi DROP FOREIGN KEY FK_93E6ACD3B08996ED');\n $this->addSql('ALTER TABLE critere_region DROP FOREIGN KEY FK_1A022E2198260155');\n $this->addSql('ALTER TABLE offre_emploi DROP FOREIGN KEY FK_132AD0D198260155');\n $this->addSql('ALTER TABLE critere_secteur_activite DROP FOREIGN KEY FK_29A2BFEA5233A7FC');\n $this->addSql('ALTER TABLE entreprise_secteur_activite DROP FOREIGN KEY FK_743F81E15233A7FC');\n $this->addSql('ALTER TABLE offre_emploi_secteur_activite DROP FOREIGN KEY FK_E39849D85233A7FC');\n $this->addSql('ALTER TABLE critere DROP FOREIGN KEY FK_7F6A8053520D03A');\n $this->addSql('ALTER TABLE offre_emploi DROP FOREIGN KEY FK_132AD0D1520D03A');\n $this->addSql('ALTER TABLE candidat DROP FOREIGN KEY FK_6AB5B471A76ED395');\n $this->addSql('ALTER TABLE entreprise DROP FOREIGN KEY FK_D19FA60A76ED395');\n $this->addSql('ALTER TABLE user_offre_emploi DROP FOREIGN KEY FK_93E6ACD3A76ED395');\n $this->addSql('DROP TABLE candidat');\n $this->addSql('DROP TABLE candidat_offre_emploi');\n $this->addSql('DROP TABLE critere');\n $this->addSql('DROP TABLE critere_secteur_activite');\n $this->addSql('DROP TABLE critere_langue');\n $this->addSql('DROP TABLE critere_region');\n $this->addSql('DROP TABLE cv');\n $this->addSql('DROP TABLE entreprise');\n $this->addSql('DROP TABLE entreprise_secteur_activite');\n $this->addSql('DROP TABLE experience');\n $this->addSql('DROP TABLE formation');\n $this->addSql('DROP TABLE langue');\n $this->addSql('DROP TABLE metier');\n $this->addSql('DROP TABLE niveau_etude');\n $this->addSql('DROP TABLE niveau_experience');\n $this->addSql('DROP TABLE offre_emploi');\n $this->addSql('DROP TABLE offre_emploi_langue');\n $this->addSql('DROP TABLE offre_emploi_secteur_activite');\n $this->addSql('DROP TABLE region');\n $this->addSql('DROP TABLE secteur_activite');\n $this->addSql('DROP TABLE type_contrat');\n $this->addSql('DROP TABLE `user`');\n $this->addSql('DROP TABLE user_offre_emploi');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE livrer DROP FOREIGN KEY FK_E576B73267C663E7');\n $this->addSql('ALTER TABLE membre DROP FOREIGN KEY FK_F6B4FB2967C663E7');\n $this->addSql('ALTER TABLE recette DROP FOREIGN KEY FK_49BB6390E6ADA943');\n $this->addSql('ALTER TABLE ligne_commande DROP FOREIGN KEY FK_3170B74B82EA2E54');\n $this->addSql('ALTER TABLE fournisseur DROP FOREIGN KEY FK_369ECA32EF7EB489');\n $this->addSql('ALTER TABLE commande DROP FOREIGN KEY FK_6EEAA67D7F2DEE08');\n $this->addSql('ALTER TABLE livrer DROP FOREIGN KEY FK_E576B732E5AC00A4');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27E5AC00A4');\n $this->addSql('ALTER TABLE cb DROP FOREIGN KEY FK_ACB52AEF6A99F74A');\n $this->addSql('ALTER TABLE commande DROP FOREIGN KEY FK_6EEAA67D6A99F74A');\n $this->addSql('ALTER TABLE commentaires DROP FOREIGN KEY FK_D9BEC0C46A99F74A');\n $this->addSql('ALTER TABLE produit_favori DROP FOREIGN KEY FK_18D769F66A99F74A');\n $this->addSql('ALTER TABLE recette DROP FOREIGN KEY FK_49BB639055AB140');\n $this->addSql('ALTER TABLE favorite DROP FOREIGN KEY FK_68C58ED96A99F74A');\n $this->addSql('ALTER TABLE streamer DROP FOREIGN KEY FK_2DF6AE326A99F74A');\n $this->addSql('ALTER TABLE ingredient DROP FOREIGN KEY FK_6BAF7870F347EFB');\n $this->addSql('ALTER TABLE ligne_commande DROP FOREIGN KEY FK_3170B74BF347EFB');\n $this->addSql('ALTER TABLE produit_favori DROP FOREIGN KEY FK_18D769F6F347EFB');\n $this->addSql('ALTER TABLE commentaires DROP FOREIGN KEY FK_D9BEC0C489312FE9');\n $this->addSql('ALTER TABLE ingredient DROP FOREIGN KEY FK_6BAF787089312FE9');\n $this->addSql('ALTER TABLE favorite DROP FOREIGN KEY FK_68C58ED989312FE9');\n $this->addSql('ALTER TABLE stream DROP FOREIGN KEY FK_F0E9BE1C25F432AD');\n $this->addSql('ALTER TABLE recette DROP FOREIGN KEY FK_49BB639059027487');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27384F0DAC');\n $this->addSql('DROP TABLE pointretrait');\n $this->addSql('DROP TABLE categorie');\n $this->addSql('DROP TABLE cb');\n $this->addSql('DROP TABLE commande');\n $this->addSql('DROP TABLE commentaires');\n $this->addSql('DROP TABLE commercial');\n $this->addSql('DROP TABLE facture');\n $this->addSql('DROP TABLE fournisseur');\n $this->addSql('DROP TABLE livrer');\n $this->addSql('DROP TABLE membre');\n $this->addSql('DROP TABLE produit');\n $this->addSql('DROP TABLE ingredient');\n $this->addSql('DROP TABLE ligne_commande');\n $this->addSql('DROP TABLE produit_favori');\n $this->addSql('DROP TABLE recette');\n $this->addSql('DROP TABLE favorite');\n $this->addSql('DROP TABLE stream');\n $this->addSql('DROP TABLE streamer');\n $this->addSql('DROP TABLE theme');\n $this->addSql('DROP TABLE type_produit');\n }", "public function delete()\n\t{\n\t\t$transaction = $this->dbConnection->beginTransaction();\n\t\ttry {\n\t\t\tforeach ($this->previnterventions as $prev) {\n\t\t\t\t$prev->delete();\n\t\t\t}\n\t\t\tforeach ($this->relevantinterventions as $relv) {\n\t\t\t\t$relv->delete();\n\t\t\t}\n\t\t\tforeach ($this->deviationreasons as $devr) {\n\t\t\t\t$devr->delete();\n\t\t\t}\n\t\t\tforeach ($this->filecollection_assignments as $fca) {\n\t\t\t\t$fca->delete();\n\t\t\t}\n\t\t\tif (parent::delete()) {\n\t\t\t\t$transaction->commit();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new Exception('unable to delete');\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t$transaction->rollback();\n\t\t\tthrow $e;\n\t\t}\n\n\t}", "public function delete()\n {\n DB::transaction(function () {\n $this->devedores()->delete();\n parent::delete();\n });\n }", "public static function gc() {\n\t\t// iterate over our types and delete the images\n\t\tforeach (array('album', 'artist') as $type) {\n\t\t\t$sql = \"DELETE FROM `image` USING `image` LEFT JOIN `\" .\n\t\t\t\t$type . \"` ON `\" . $type . \"`.`id`=\" .\n\t\t\t\t\"`image`.`object_id` WHERE `object_type`='\" .\n\t\t\t\t$type . \"' AND `\" . $type . \"`.`id` IS NULL\";\n\t\t\t$db_results = Dba::write($sql);\n\t\t} // foreach\n\t}", "public function forceDeleted(Instance $instance)\n {\n //\n }", "public function truncate_all_tables_associated_with_contract_table()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n ContractParticipant::truncate();\n Contract::truncate();\n Participant::truncate();\n Payment::truncate();\n Invoice::truncate();\n Legal::truncate();\n Individual::truncate();\n Client::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->assertNull(ContractParticipant::first());\n $this->assertNull(Contract::first());\n $this->assertNull(Participant::first());\n $this->assertNull(Payment::first());\n $this->assertNull(Invoice::first());\n $this->assertNull(Legal::first());\n $this->assertNull(Individual::first());\n $this->assertNull(Client::first());\n }", "public function truncate_all_tables_associated_with_contract_table()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n ContractParticipant::truncate();\n Contract::truncate();\n Participant::truncate();\n Payment::truncate();\n Invoice::truncate();\n Legal::truncate();\n Individual::truncate();\n Client::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->assertNull(ContractParticipant::first());\n $this->assertNull(Contract::first());\n $this->assertNull(Participant::first());\n $this->assertNull(Payment::first());\n $this->assertNull(Invoice::first());\n $this->assertNull(Legal::first());\n $this->assertNull(Individual::first());\n $this->assertNull(Client::first());\n }", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "function clear() {\n\n switch ($this->type) {\n case 'sqlite':\n case 'mysql':\n $query[0] = 'DROP TABLE `enrolled`;';\n\n $query[1] = 'DROP TABLE `paid`;';\n\n $query[2] = 'DROP TABLE `admin`;';\n\n $query[3] = 'DROP TABLE `log`';\n\n $query[4] = 'DROP TABLE `stage`';\n\n\t\t\t\t$query[5] = 'DROP TABLE `guest`';\n\n break;\n\n default:\n throw new Exception($this->type . \" is not a valid database type.\");\n break;\n\n }\n\n foreach ($query as $drop) {\n $this->query($drop);\n }\n\n /**\n * Integrity Checking goes here\n */\n\n }", "public function deletePersons()\n {\n $conn = $this->_em->getConnection();\n $conn->executeUpdate('DELETE FROM person_person;');\n $conn->executeUpdate('DELETE FROM person_league;');\n $conn->executeUpdate('DELETE FROM person_cert;');\n $conn->executeUpdate('DELETE FROM person;');\n \n $conn->executeUpdate('ALTER TABLE person_person AUTO_INCREMENT = 1;');\n $conn->executeUpdate('ALTER TABLE person_league AUTO_INCREMENT = 1;');\n $conn->executeUpdate('ALTER TABLE person_cert AUTO_INCREMENT = 1;');\n }", "public function deleteAll(){\n try {\n $this->getTable()->delete();\n } catch (\\Exception $e) {\n $this->handleException($e);\n }\n return;\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_350001418F5EA509');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8B8F5EA509');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA148F5EA509');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0E8F5EA509');\n $this->addSql('ALTER TABLE cours DROP FOREIGN KEY FK_FDCA8C9CF46CD258');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8BF46CD258');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14F46CD258');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7F46CD258');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9A21BD112');\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_35000141A21BD112');\n $this->addSql('ALTER TABLE contacte DROP FOREIGN KEY FK_C794A022A21BD112');\n $this->addSql('ALTER TABLE demande DROP FOREIGN KEY FK_2694D7A5A21BD112');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14A6CC7B2');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7A21BD112');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EE455FCC0');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EBDDFA3C9');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EDC304035');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9E3797A94');\n $this->addSql('ALTER TABLE personne DROP FOREIGN KEY FK_FCEC9EFA76ED395');\n $this->addSql('ALTER TABLE reset_password_request DROP FOREIGN KEY FK_7CE748AA76ED395');\n $this->addSql('DROP TABLE absence');\n $this->addSql('DROP TABLE classe');\n $this->addSql('DROP TABLE classe_personne');\n $this->addSql('DROP TABLE contacte');\n $this->addSql('DROP TABLE cours');\n $this->addSql('DROP TABLE demande');\n $this->addSql('DROP TABLE matiere');\n $this->addSql('DROP TABLE matiere_classe');\n $this->addSql('DROP TABLE news');\n $this->addSql('DROP TABLE note');\n $this->addSql('DROP TABLE personne');\n $this->addSql('DROP TABLE personne_matiere');\n $this->addSql('DROP TABLE reset_password_request');\n $this->addSql('DROP TABLE salle');\n $this->addSql('DROP TABLE seance');\n $this->addSql('DROP TABLE user');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE domaine_equipement DROP FOREIGN KEY FK_23C6DFED4272FC9F');\n $this->addSql('ALTER TABLE domaine_equipement DROP FOREIGN KEY FK_23C6DFED806F0F5C');\n $this->addSql('DROP INDEX IDX_23C6DFED4272FC9F ON domaine_equipement');\n $this->addSql('DROP INDEX IDX_23C6DFED806F0F5C ON domaine_equipement');\n $this->addSql('ALTER TABLE domaine_equipement ADD id INT AUTO_INCREMENT NOT NULL, ADD id_domaine_equip_id INT NOT NULL, ADD id_equipement_id INT NOT NULL, DROP domaine_id, DROP equipement_id, DROP PRIMARY KEY, ADD PRIMARY KEY (id)');\n $this->addSql('ALTER TABLE domaine_equipement ADD CONSTRAINT FK_23C6DFED3E47DE39 FOREIGN KEY (id_equipement_id) REFERENCES equipement (id) ON UPDATE NO ACTION ON DELETE NO ACTION');\n $this->addSql('ALTER TABLE domaine_equipement ADD CONSTRAINT FK_23C6DFEDDE2F4FD7 FOREIGN KEY (id_domaine_equip_id) REFERENCES domaine (id) ON UPDATE NO ACTION ON DELETE NO ACTION');\n $this->addSql('CREATE INDEX IDX_23C6DFED3E47DE39 ON domaine_equipement (id_equipement_id)');\n $this->addSql('CREATE INDEX IDX_23C6DFEDDE2F4FD7 ON domaine_equipement (id_domaine_equip_id)');\n }", "public function destroy(TypesConges $typesConges)\n {\n //\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE apprenant_livrable_partiel DROP FOREIGN KEY FK_8572D6ADC5697D6D');\n $this->addSql('ALTER TABLE competences_valides DROP FOREIGN KEY FK_9EEA096EC5697D6D');\n $this->addSql('ALTER TABLE group_promo_apprenant DROP FOREIGN KEY FK_52B2BC4CC5697D6D');\n $this->addSql('ALTER TABLE competences_valides DROP FOREIGN KEY FK_9EEA096E15761DAB');\n $this->addSql('ALTER TABLE group_competence_competence DROP FOREIGN KEY FK_C6C6E39E15761DAB');\n $this->addSql('ALTER TABLE niveau DROP FOREIGN KEY FK_4BDFF36B15761DAB');\n $this->addSql('ALTER TABLE group_competence_competence DROP FOREIGN KEY FK_C6C6E39E4A9FD3E9');\n $this->addSql('ALTER TABLE referentiel_group_competence DROP FOREIGN KEY FK_F8515CB24A9FD3E9');\n $this->addSql('ALTER TABLE group_promo_apprenant DROP FOREIGN KEY FK_52B2BC4CD9F03680');\n $this->addSql('ALTER TABLE groupe_tag_tag DROP FOREIGN KEY FK_C430CACFD1EC9F2B');\n $this->addSql('ALTER TABLE apprenant_livrable_partiel DROP FOREIGN KEY FK_8572D6AD519178C4');\n $this->addSql('ALTER TABLE livrable_partiel DROP FOREIGN KEY FK_37F072C5B3E9C81');\n $this->addSql('ALTER TABLE utilisateur DROP FOREIGN KEY FK_1D1C63B3275ED078');\n $this->addSql('ALTER TABLE apprenant DROP FOREIGN KEY FK_C4EB462E6409EF73');\n $this->addSql('ALTER TABLE apprenant DROP FOREIGN KEY FK_C4EB462ED0C07AFF');\n $this->addSql('ALTER TABLE group_promo DROP FOREIGN KEY FK_E03FB19CD0C07AFF');\n $this->addSql('ALTER TABLE promo DROP FOREIGN KEY FK_B0139AFB805DB139');\n $this->addSql('ALTER TABLE referentiel_group_competence DROP FOREIGN KEY FK_F8515CB2805DB139');\n $this->addSql('ALTER TABLE groupe_tag_tag DROP FOREIGN KEY FK_C430CACFBAD26311');\n $this->addSql('ALTER TABLE group_promo DROP FOREIGN KEY FK_E03FB19C155D8F51');\n $this->addSql('DROP TABLE administrateur');\n $this->addSql('DROP TABLE apprenant');\n $this->addSql('DROP TABLE apprenant_livrable_partiel');\n $this->addSql('DROP TABLE cm');\n $this->addSql('DROP TABLE competence');\n $this->addSql('DROP TABLE competences_valides');\n $this->addSql('DROP TABLE formateur');\n $this->addSql('DROP TABLE group_competence');\n $this->addSql('DROP TABLE group_competence_competence');\n $this->addSql('DROP TABLE group_promo');\n $this->addSql('DROP TABLE group_promo_apprenant');\n $this->addSql('DROP TABLE groupe_tag');\n $this->addSql('DROP TABLE groupe_tag_tag');\n $this->addSql('DROP TABLE livrable_partiel');\n $this->addSql('DROP TABLE niveau');\n $this->addSql('DROP TABLE profil');\n $this->addSql('DROP TABLE profil_sortie');\n $this->addSql('DROP TABLE promo');\n $this->addSql('DROP TABLE referentiel');\n $this->addSql('DROP TABLE referentiel_group_competence');\n $this->addSql('DROP TABLE tag');\n $this->addSql('DROP TABLE utilisateur');\n }", "public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }", "function delete(){\n // Delete subclauses\n foreach($this->subClause as $clause){\n $clause->delete();\n }\n \n mysql_query(\"DELETE FROM resolution WHERE id='$this->clauseId'\") or die(mysql_error());\n }", "static function reset_foreignKeyChecks() {\r\n global $db;\r\n \r\n $query = \"SET FOREIGN_KEY_CHECKS=1\";\r\n\r\n $statement = $db->prepare($query);\r\n \r\n if ($statement == FALSE) {\r\n display_db_error($db->error);\r\n }\r\n \r\n $success = $statement->execute();\r\n\r\n if ($success) {\r\n $statement->close();\r\n } else {\r\n display_db_error($db->error);\r\n }\r\n }", "public function clearDb ()\n {\n // Empty tables and reset auto-increment values\n $this->_dbh->query('SET FOREIGN_KEY_CHECKS = 0');\n foreach (self::$dbTables as $table) {\n $stmt = $this->_dbh->prepare('TRUNCATE `' . $table . '`');\n $stmt->execute();\n $stmt = $this->_dbh->prepare('ALTER TABLE `' . $table . '` AUTO_INCREMENT = 1');\n $stmt->execute();\n }\n // Re-enable checks only if set as such in config\n $config = parse_ini_file('config/AcToBs.ini', true);\n if (isset($config['checks']['fk_constraints']) && $config['checks']['fk_constraints'] == 1) {\n $this->_dbh->query('SET FOREIGN_KEY_CHECKS = 1');\n }\n // Delete denormalized tables\n foreach (self::$dbDenormalizedTables as $table) {\n $stmt = $this->_dbh->prepare('DROP TABLE IF EXISTS `' . $table . '`');\n $stmt->execute();\n }\n // Delete non-standard taxonomic ranks\n $stmt = $this->_dbh->prepare(\n 'DELETE FROM `taxonomic_rank` WHERE `standard` = ?');\n $stmt->execute(array(\n 0\n ));\n unset($stmt);\n }", "public function disableForeignKeyConstraints($connection);", "public function delete()\n {\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products;\");\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products_tiers;\");\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products_tiers_payment_options;\");\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE recipe DROP FOREIGN KEY FK_DA88B13736ABA6B8');\n $this->addSql('ALTER TABLE recipe_category DROP FOREIGN KEY FK_70DCBC5F12469DE2');\n $this->addSql('ALTER TABLE recipe_ingredient DROP FOREIGN KEY FK_22D1FE13933FE08C');\n $this->addSql('ALTER TABLE recipe DROP FOREIGN KEY FK_DA88B1375FB14BA7');\n $this->addSql('ALTER TABLE recipe DROP FOREIGN KEY FK_DA88B137713C4367');\n $this->addSql('ALTER TABLE comment DROP FOREIGN KEY FK_9474526C59D8A214');\n $this->addSql('ALTER TABLE image DROP FOREIGN KEY FK_C53D045F59D8A214');\n $this->addSql('ALTER TABLE `like` DROP FOREIGN KEY FK_AC6340B359D8A214');\n $this->addSql('ALTER TABLE recipe_category DROP FOREIGN KEY FK_70DCBC5F59D8A214');\n $this->addSql('ALTER TABLE recipe_ingredient DROP FOREIGN KEY FK_22D1FE1359D8A214');\n $this->addSql('ALTER TABLE comment DROP FOREIGN KEY FK_9474526CF675F31B');\n $this->addSql('ALTER TABLE `like` DROP FOREIGN KEY FK_AC6340B3F675F31B');\n $this->addSql('ALTER TABLE recipe DROP FOREIGN KEY FK_DA88B137F675F31B');\n $this->addSql('DROP TABLE budget');\n $this->addSql('DROP TABLE category');\n $this->addSql('DROP TABLE comment');\n $this->addSql('DROP TABLE image');\n $this->addSql('DROP TABLE ingredient');\n $this->addSql('DROP TABLE level');\n $this->addSql('DROP TABLE `like`');\n $this->addSql('DROP TABLE prep');\n $this->addSql('DROP TABLE recipe');\n $this->addSql('DROP TABLE recipe_category');\n $this->addSql('DROP TABLE recipe_ingredient');\n $this->addSql('DROP TABLE user');\n }", "public function deleteConnectionWithEducations(){\n $respondent_id = $this->id;\n $sql = 'DELETE FROM '.Yii::app()->getModule('respondent')->tableRespondentsEducations.' WHERE respondent_id=:respondent';\n $command = Yii::app()->db->createCommand($sql);\n $command->bindParam(\":respondent\", $respondent_id);\n $command->execute();\n //Yii::app()->db->createCommand('DELETE FROM `tbl_users_clients` WHERE users_id=:user')->bindParam(\":user\",$model->id)->execute();\n }", "protected function _delete()\r\n {\r\n parent::_delete();\r\n }", "public static function bootTicketable()\n {\n static::deleted(function (self $model) {\n $model->bookings()->delete();\n });\n }", "public function down(): void\n {\n $this->table('services')\n ->dropForeignKey(\n ['currency_id','billing_period_id']\n )->save();\n $this->execute('DELETE FROM currencies');\n $this->execute('DELETE FROM billing_periods');\n $this->table('services')->drop()->save();\n $this->table('currencies')->drop()->save();\n $this->table('billing_periods')->drop()->save();\n }", "public function forceDelete();", "public function run()\n {\n Model::unguard();\n\n DB::table('documents__objects')->delete();\n DB::table('documents__pool')->delete();\n }", "public function wipe($type) {\n\t\t$table = $this->safeTable($type);\n\t\t$this->adapter->exec(\"DELETE FROM $table\");\n\t}", "public function __destruct() {\r\n \r\n // It looks like the $statement object are destroyed just after leaving foreach().\r\n foreach(SimpleRdf::$statements as $id => $statement) {\r\n $statement->removeOwner($this->getRdfResourceId());\r\n if ($statement->isOrphan()) {\r\n\tunset(SimpleRdf::$statements[$id]);\r\n }\r\n }\r\n }", "public function cleanup(){\n\t\t$accountBookings = Billing_Controller_AccountBooking::getInstance()->getByBookingId($this->getId());\n\t\t\n\t\tforeach($accountBookings as $accountBooking){\n\t\t\tBilling_Controller_AccountBooking::getInstance()->delete(array($accountBooking->getId()));\n\t\t}\n\t}", "public function afterDelete()\n {\n $this->resetPolymorphicRelation();\n if ($this->getPolymorphicRelation() !== null) {\n $this->getPolymorphicRelation()->delete();\n }\n\n parent::afterDelete();\n }", "function dropTables(Doctrine\\DBAL\\Connection $connection)\n{\n $connection->query('SET FOREIGN_KEY_CHECKS=0');\n foreach ($connection->getSchemaManager()->listTableNames() as $table) {\n $connection->getSchemaManager()->dropTable($table);\n }\n $connection->query('SET FOREIGN_KEY_CHECKS=1');\n}", "public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}", "public function delete()\n {\n $this->abilities()->detach();\n parent::delete();\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public function removeAll() {\n $sql = 'SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE course';\n \n $connection_manager = new connection_manager();\n $conn = $connection_manager->connect();\n \n $stmt = $conn->prepare($sql);\n \n $stmt->execute();\n $count = $stmt->rowCount();\n }", "public function rebuild()\r\n {\r\n $this->delete(array());\r\n\r\n $table = new Car_Types();\r\n\r\n $this->rebuildStep($table, array(0), 0);\r\n }", "public function shutdown()\n {\n $this->dbTable = null;\n }", "function cleanDBonPurge() {\n $sl = new SoftwareLicense();\n $sl->deleteByCriteria(['softwares_id' => $this->fields['id']]);\n\n $this->deleteChildrenAndRelationsFromDb(\n [\n Item_Project::class,\n SoftwareVersion::class,\n ]\n );\n }", "public function deleteCascade() {\n\t\tif (((int)$this->id)==0) {\n\t\t\trequire_once(\"CORE/Lucterios_Error.inc.php\");\n\t\t\tthrow new LucteriosException( IMPORTANT,\"Suppression impossible{[newline]}Enregistrement vide.\");\n\t\t}\n\t\trequire_once\"Lucterios_Error.inc.php\";\n\t\t$res=$this->canBeDelete();\n\t\tif ($res==1)\n\t\t\tthrow new LucteriosException(GRAVE,\"Suppression impossible: Des references existent\");\n\t\tif ($res==2)\n\t\t\tthrow new LucteriosException(GRAVE,\"Suppression impossible: Enregistrement protege\");\n\t\tglobal $connect;\n\t\t$connect->begin();\n\t\ttry {\n\t\t\tif(!$this->is_super) {\n\t\t\t\t$son = $this->getSon();\n\t\t\t\tif($son != null) {\n\t\t\t\t\treturn $son->deleteCascade();\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach($this->__DBMetaDataField as $fieldname=>$values) {\n\t\t\t\tif ($values['type']==9) {\n\t\t\t\t\t$children=$this->getField($fieldname);\n\t\t\t\t\twhile ($children->fetch())\n\t\t\t\t\t\t$children->deleteCascade();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($this->Heritage != \"\")\n\t\t\t\t$this->Super->deleteCascade();\n\t\t\t$this->delete();\n\t\t\t$connect->commit();\n\t\t} catch(Exception $e) {\n\t\t\t$connect->rollback();\n\t\t\tthrow $e;\n\t\t}\n\t}", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABLE accueil DROP FOREIGN KEY FK_2994CBEA4AEAFEA');\n $this->addSql('ALTER TABLE accueil DROP FOREIGN KEY FK_2994CBEFB88E14F');\n $this->addSql('ALTER TABLE accueil DROP FOREIGN KEY FK_2994CBE1E5D0459');\n $this->addSql('DROP INDEX IDX_2994CBEA4AEAFEA ON accueil');\n $this->addSql('DROP INDEX IDX_2994CBEFB88E14F ON accueil');\n $this->addSql('DROP INDEX IDX_2994CBE1E5D0459 ON accueil');\n $this->addSql('ALTER TABLE accueil DROP entreprise_id, DROP utilisateur_id, DROP test_id');\n $this->addSql('ALTER TABLE entreprise DROP FOREIGN KEY FK_D19FA60F1CE403E');\n $this->addSql('ALTER TABLE entreprise DROP FOREIGN KEY FK_D19FA607ABED9F2');\n $this->addSql('DROP INDEX UNIQ_D19FA60F1CE403E ON entreprise');\n $this->addSql('DROP INDEX UNIQ_D19FA607ABED9F2 ON entreprise');\n $this->addSql('ALTER TABLE entreprise DROP contenu_visiteur_id, DROP contenu_prestataire_id');\n $this->addSql('ALTER TABLE modalite_connexion DROP FOREIGN KEY FK_C4558D92A4AEAFEA');\n $this->addSql('DROP INDEX UNIQ_C4558D92A4AEAFEA ON modalite_connexion');\n $this->addSql('ALTER TABLE modalite_connexion DROP entreprise_id');\n $this->addSql('ALTER TABLE reponse_choisi DROP FOREIGN KEY FK_568BDD717C9E3DC1');\n $this->addSql('DROP INDEX IDX_568BDD717C9E3DC1 ON reponse_choisi');\n $this->addSql('ALTER TABLE reponse_choisi DROP accueil_id');\n $this->addSql('ALTER TABLE test DROP FOREIGN KEY FK_D87F7E0C7ABED9F2');\n $this->addSql('ALTER TABLE test DROP FOREIGN KEY FK_D87F7E0CF1CE403E');\n $this->addSql('DROP INDEX UNIQ_D87F7E0C7ABED9F2 ON test');\n $this->addSql('DROP INDEX UNIQ_D87F7E0CF1CE403E ON test');\n $this->addSql('ALTER TABLE test DROP contenu_prestataire_id, DROP contenu_visiteur_id');\n }", "public function destroy(consumable $consumable)\n {\n //\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE admin_comment DROP FOREIGN KEY FK_5048D0E5642B8210');\n $this->addSql('ALTER TABLE book DROP FOREIGN KEY FK_CBE5A3313057DB96');\n $this->addSql('ALTER TABLE book DROP FOREIGN KEY FK_CBE5A331B09E220E');\n $this->addSql('ALTER TABLE event DROP FOREIGN KEY FK_3BAE0AA7B09E220E');\n $this->addSql('ALTER TABLE author_book DROP FOREIGN KEY FK_2F0A2BEEF675F31B');\n $this->addSql('ALTER TABLE admin_comment DROP FOREIGN KEY FK_5048D0E516A2B381');\n $this->addSql('ALTER TABLE author_book DROP FOREIGN KEY FK_2F0A2BEE16A2B381');\n $this->addSql('ALTER TABLE book_photo DROP FOREIGN KEY FK_1A75916116A2B381');\n $this->addSql('ALTER TABLE customer_comment DROP FOREIGN KEY FK_88A9F6D216A2B381');\n $this->addSql('ALTER TABLE customer_notation DROP FOREIGN KEY FK_2EADFFBA16A2B381');\n $this->addSql('ALTER TABLE customer_order_book DROP FOREIGN KEY FK_7BDD9DA416A2B381');\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDE9395C3F3');\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDEFEF918E2');\n $this->addSql('ALTER TABLE customer_comment DROP FOREIGN KEY FK_88A9F6D29395C3F3');\n $this->addSql('ALTER TABLE customer_notation DROP FOREIGN KEY FK_2EADFFBA9395C3F3');\n $this->addSql('ALTER TABLE customer_order DROP FOREIGN KEY FK_3B1CE6A39395C3F3');\n $this->addSql('ALTER TABLE customer_order_book DROP FOREIGN KEY FK_7BDD9DA4A15A2E17');\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDE71F7E88B');\n $this->addSql('ALTER TABLE event DROP FOREIGN KEY FK_3BAE0AA740A73EBA');\n $this->addSql('DROP TABLE admin');\n $this->addSql('DROP TABLE admin_comment');\n $this->addSql('DROP TABLE age_group');\n $this->addSql('DROP TABLE author');\n $this->addSql('DROP TABLE author_book');\n $this->addSql('DROP TABLE book');\n $this->addSql('DROP TABLE book_photo');\n $this->addSql('DROP TABLE booking');\n $this->addSql('DROP TABLE customer');\n $this->addSql('DROP TABLE customer_comment');\n $this->addSql('DROP TABLE customer_notation');\n $this->addSql('DROP TABLE customer_order');\n $this->addSql('DROP TABLE customer_order_book');\n $this->addSql('DROP TABLE event');\n $this->addSql('DROP TABLE venue');\n }", "public function instance_deleted() {\n $this->purge_all_definitions();\n @rmdir($this->filestorepath);\n }", "public function cleanUp();", "public function cleanUp();", "public function cleanUp();", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE semester DROP FOREIGN KEY FK_F7388EEDC54F3401');\n $this->addSql('ALTER TABLE answer DROP FOREIGN KEY FK_DADD4A257096A49F');\n $this->addSql('ALTER TABLE claim DROP FOREIGN KEY FK_A769DE27456C5646');\n $this->addSql('ALTER TABLE matter_specialty DROP FOREIGN KEY FK_F634AF615FB14BA7');\n $this->addSql('ALTER TABLE registration DROP FOREIGN KEY FK_62A8A7A75FB14BA7');\n $this->addSql('ALTER TABLE evaluation DROP FOREIGN KEY FK_1323A575D614E59F');\n $this->addSql('ALTER TABLE matter_specialty DROP FOREIGN KEY FK_F634AF61D614E59F');\n $this->addSql('ALTER TABLE user_matter DROP FOREIGN KEY FK_D58C8052D614E59F');\n $this->addSql('ALTER TABLE evaluation DROP FOREIGN KEY FK_1323A5754A798B6F');\n $this->addSql('ALTER TABLE registration DROP FOREIGN KEY FK_62A8A7A74A798B6F');\n $this->addSql('ALTER TABLE matter_specialty DROP FOREIGN KEY FK_F634AF619A353316');\n $this->addSql('ALTER TABLE registration DROP FOREIGN KEY FK_62A8A7A79A353316');\n $this->addSql('ALTER TABLE answer DROP FOREIGN KEY FK_DADD4A25F675F31B');\n $this->addSql('ALTER TABLE claim DROP FOREIGN KEY FK_A769DE27F675F31B');\n $this->addSql('ALTER TABLE registration DROP FOREIGN KEY FK_62A8A7A7A76ED395');\n $this->addSql('ALTER TABLE user_matter DROP FOREIGN KEY FK_D58C8052A76ED395');\n $this->addSql('DROP TABLE academic_year');\n $this->addSql('DROP TABLE answer');\n $this->addSql('DROP TABLE claim');\n $this->addSql('DROP TABLE evaluation');\n $this->addSql('DROP TABLE level');\n $this->addSql('DROP TABLE matter');\n $this->addSql('DROP TABLE matter_specialty');\n $this->addSql('DROP TABLE registration');\n $this->addSql('DROP TABLE semester');\n $this->addSql('DROP TABLE specialty');\n $this->addSql('DROP TABLE `user`');\n $this->addSql('DROP TABLE user_matter');\n }", "function cemhub_cleanup_webform_references($nid) {\n $tables = array(\n 'cemhub_forms_config',\n 'cemhub_fields',\n 'cemhub_campaign_source',\n );\n\n foreach ($tables as $table) {\n db_delete($table)->condition('nid', $nid)->execute();\n }\n}", "private function removeExpiredCarpools()\n {\n $this->db->query(CaronaDAO::QUERY_SET_EXPIRED_CARPOOLS);\n\n $this->db->execute();\n error_log(\"Erro: \" . $this->db->getError());\n\n }", "public function cleanRoleAndPermissionTables() : void\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('roles')->truncate();\n DB::table('permissions')->truncate();\n DB::table('role_has_permissions')->truncate();\n DB::table('model_has_roles')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE modele DROP FOREIGN KEY FK_10028558543EC5F0');\n $this->addSql('ALTER TABLE modele DROP FOREIGN KEY FK_10028558BCF5E72D');\n $this->addSql('ALTER TABLE reservation DROP FOREIGN KEY FK_42C8495585C0B3BE');\n $this->addSql('ALTER TABLE reservation DROP FOREIGN KEY FK_42C8495519EB6921');\n $this->addSql('ALTER TABLE modele DROP FOREIGN KEY FK_100285584827B9B2');\n $this->addSql('ALTER TABLE voiture DROP FOREIGN KEY FK_E9E2810FAC14B70A');\n $this->addSql('ALTER TABLE reservation DROP FOREIGN KEY FK_42C84955181A8BA');\n $this->addSql('DROP TABLE admin');\n $this->addSql('DROP TABLE annee');\n $this->addSql('DROP TABLE categorie');\n $this->addSql('DROP TABLE chauffeur');\n $this->addSql('DROP TABLE client');\n $this->addSql('DROP TABLE marque');\n $this->addSql('DROP TABLE modele');\n $this->addSql('DROP TABLE reservation');\n $this->addSql('DROP TABLE voiture');\n }", "function drop_all_tables($db)\n{\n $db->query(\"SET foreign_key_checks = 0\");\n\n if ($result = $db->query(\"SHOW TABLES\")) {\n while ($row = $result->fetch_array(MYSQLI_NUM)) {\n $db->query(\"DROP TABLE IF EXISTS \" . $row[0]);\n }\n }\n\n $db->query(\"SET foreign_key_checks = 1\");\n}", "public function __destruct()\n {\n static $depth = 0;\n // destruct can be called several times\n if ($depth < self::$maximumDepthLevelAllowed\n && isset($this->rows)\n ) {\n $depth++;\n foreach ($this->getRows() as $row) {\n destroy($row);\n }\n unset($this->rows);\n Piwik_DataTable_Manager::getInstance()->setTableDeleted($this->getId());\n $depth--;\n }\n }", "protected function tearDown(): void\n {\n foreach (['default'] as $connection) {\n $this->schema($connection)->drop('users');\n $this->schema($connection)->drop('friends');\n $this->schema($connection)->drop('posts');\n $this->schema($connection)->drop('photos');\n }\n\n Relation::morphMap([], false);\n }", "public static function purgeInstances() {}", "public static function purgeInstances() {}", "function uninstall() {\n $rec = SQLSELECT('Select distinct LINKED_OBJECT,LINKED_PROPERTY from myconditions');\n $total = count($rec);\n if ($total) {\n for($i=0;$i<$total;$i++) {\n removeLinkedProperty($rec[$i]['LINKED_OBJECT'], $rec[$i]['LINKED_PROPERTY'], 'myrules');\n }\n }\n SQLExec('DROP TABLE IF EXISTS myrules');\n SQLExec('DROP TABLE IF EXISTS myconditions');\n SQLExec('DROP TABLE IF EXISTS myactions');\n\n parent::uninstall();\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('DROP TABLE categorie_produit');\n $this->addSql('ALTER TABLE categorie DROP FOREIGN KEY FK_497DD634BCF5E72D');\n $this->addSql('DROP INDEX IDX_497DD634BCF5E72D ON categorie');\n $this->addSql('ALTER TABLE categorie DROP categorie_id');\n $this->addSql('ALTER TABLE estimation DROP FOREIGN KEY FK_D0527024AABEFE2C');\n $this->addSql('ALTER TABLE estimation DROP FOREIGN KEY FK_D0527024CA8C2027');\n $this->addSql('DROP INDEX IDX_D0527024AABEFE2C ON estimation');\n $this->addSql('DROP INDEX IDX_D0527024CA8C2027 ON estimation');\n $this->addSql('ALTER TABLE estimation DROP id_produit_id, DROP id_commissaire_id');\n $this->addSql('ALTER TABLE lot DROP FOREIGN KEY FK_B81291B2D1CFB9F');\n $this->addSql('DROP INDEX IDX_B81291B2D1CFB9F ON lot');\n $this->addSql('ALTER TABLE lot DROP id_vente_id');\n $this->addSql('ALTER TABLE offre DROP FOREIGN KEY FK_AF86866FAABEFE2C');\n $this->addSql('ALTER TABLE offre DROP FOREIGN KEY FK_AF86866F8EB576A8');\n $this->addSql('DROP INDEX IDX_AF86866FAABEFE2C ON offre');\n $this->addSql('DROP INDEX IDX_AF86866F8EB576A8 ON offre');\n $this->addSql('ALTER TABLE offre DROP id_produit_id, DROP id_acheteur_id');\n $this->addSql('ALTER TABLE photo DROP FOREIGN KEY FK_14B78418AABEFE2C');\n $this->addSql('DROP INDEX IDX_14B78418AABEFE2C ON photo');\n $this->addSql('ALTER TABLE photo DROP id_produit_id');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC27A8CBA5F7');\n $this->addSql('ALTER TABLE produit DROP FOREIGN KEY FK_29A5EC2720068689');\n $this->addSql('DROP INDEX IDX_29A5EC27A8CBA5F7 ON produit');\n $this->addSql('DROP INDEX IDX_29A5EC2720068689 ON produit');\n $this->addSql('ALTER TABLE produit DROP lot_id, DROP id_vendeur_id');\n $this->addSql('ALTER TABLE utilisateur DROP FOREIGN KEY FK_1D1C63B3BA091CE5');\n $this->addSql('DROP INDEX UNIQ_1D1C63B3BA091CE5 ON utilisateur');\n $this->addSql('ALTER TABLE utilisateur DROP id_personne_id');\n }", "public function refreshTables()\n {\n $em = $this->container->get('doctrine')->getManager();\n $repository = $this->container->get('doctrine')->getRepository('OpiferManualBundle:Category');\n $categories = $repository->findAll();\n\n foreach($categories as $category)\n {\n $em->remove($category);\n }\n $em->flush();\n }", "public function truncate_legal_individual_and_client_table()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Legal::truncate();\n Individual::truncate();\n Client::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->assertNull(Legal::first());\n $this->assertNull(Individual::first());\n $this->assertNull(Client::first());\n }", "public function down(Schema $schema): void\n {\n $this->addSql('ALTER TABLE assessment DROP FOREIGN KEY FK_F7523D70539EC087');\n $this->addSql('ALTER TABLE job_offer DROP FOREIGN KEY FK_288A3A4E979B1AD6');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649979B1AD6');\n $this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094FF92F3E70');\n $this->addSql('ALTER TABLE inscription DROP FOREIGN KEY FK_5E90F6D6888579EE');\n $this->addSql('ALTER TABLE job_offer_crop DROP FOREIGN KEY FK_794D8391888579EE');\n $this->addSql('ALTER TABLE user_crop DROP FOREIGN KEY FK_97437152888579EE');\n $this->addSql('ALTER TABLE user_gang DROP FOREIGN KEY FK_9C894FAA9266B5E');\n $this->addSql('ALTER TABLE inscription DROP FOREIGN KEY FK_5E90F6D63481D195');\n $this->addSql('ALTER TABLE job_offer_crop DROP FOREIGN KEY FK_794D83913481D195');\n $this->addSql('ALTER TABLE job_offer_machinery DROP FOREIGN KEY FK_74D375B73481D195');\n $this->addSql('ALTER TABLE job_offer_machinery DROP FOREIGN KEY FK_74D375B7C1282CE4');\n $this->addSql('ALTER TABLE user_machinery DROP FOREIGN KEY FK_3C6ACAF8C1282CE4');\n $this->addSql('ALTER TABLE assessment DROP FOREIGN KEY FK_F7523D70A76ED395');\n $this->addSql('ALTER TABLE assessment DROP FOREIGN KEY FK_F7523D70321BAFCA');\n $this->addSql('ALTER TABLE gang DROP FOREIGN KEY FK_E6080363A76ED395');\n $this->addSql('ALTER TABLE inscription DROP FOREIGN KEY FK_5E90F6D6A76ED395');\n $this->addSql('ALTER TABLE job_offer DROP FOREIGN KEY FK_288A3A4EA76ED395');\n $this->addSql('ALTER TABLE user_crop DROP FOREIGN KEY FK_97437152A76ED395');\n $this->addSql('ALTER TABLE user_machinery DROP FOREIGN KEY FK_3C6ACAF8A76ED395');\n $this->addSql('ALTER TABLE user_gang DROP FOREIGN KEY FK_9C894FAAA76ED395');\n $this->addSql('CREATE TABLE migration_versions (version VARCHAR(14) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, executed_at DATETIME NOT NULL COMMENT \\'(DC2Type:datetime_immutable)\\', PRIMARY KEY(version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('DROP TABLE assessment');\n $this->addSql('DROP TABLE company');\n $this->addSql('DROP TABLE country');\n $this->addSql('DROP TABLE crop');\n $this->addSql('DROP TABLE gang');\n $this->addSql('DROP TABLE inscription');\n $this->addSql('DROP TABLE job_offer');\n $this->addSql('DROP TABLE job_offer_crop');\n $this->addSql('DROP TABLE job_offer_machinery');\n $this->addSql('DROP TABLE machinery');\n $this->addSql('DROP TABLE user');\n $this->addSql('DROP TABLE user_crop');\n $this->addSql('DROP TABLE user_machinery');\n $this->addSql('DROP TABLE user_gang');\n }", "public function self_destruct(){\n foreach($this->donations() as $index => $obj)$obj->self_destruct();\n parent::self_destruct();\n }", "public function deleted(ClaseType $clases_type)\n {\n // $clases_type->blocks()->delete();\n }", "public function destroy() {\n\t\t$this->removeInstance();\n\t\t$this->tearDownTestDatabase();\n\t}", "public function down(Schema $schema) : void\n {\n // $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6499245991F');\n // $this->addSql('ALTER TABLE team_match DROP FOREIGN KEY FK_BD5D8C452ABEACD6');\n // $this->addSql('ALTER TABLE `match` DROP FOREIGN KEY FK_7A5BC505B2EAD3FC');\n // $this->addSql('ALTER TABLE player_team DROP FOREIGN KEY FK_66FAF62C99E6F5DF');\n // $this->addSql('ALTER TABLE player_post DROP FOREIGN KEY FK_F8903CBE99E6F5DF');\n // $this->addSql('ALTER TABLE player_post DROP FOREIGN KEY FK_F8903CBE4B89032C');\n // $this->addSql('ALTER TABLE team DROP FOREIGN KEY FK_C4E0A61F79D32D8C');\n // $this->addSql('ALTER TABLE player_team DROP FOREIGN KEY FK_66FAF62C296CD8AE');\n // $this->addSql('ALTER TABLE team_match DROP FOREIGN KEY FK_BD5D8C45296CD8AE');\n // $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY FK_BE61EAD6296CD8AE');\n // $this->addSql('DROP TABLE club');\n // $this->addSql('DROP TABLE `match`');\n // $this->addSql('DROP TABLE match_type');\n // $this->addSql('DROP TABLE player');\n // $this->addSql('DROP TABLE player_team');\n // $this->addSql('DROP TABLE player_post');\n // $this->addSql('DROP TABLE post');\n // $this->addSql('DROP TABLE season');\n // $this->addSql('DROP TABLE team');\n // $this->addSql('DROP TABLE team_match');\n // $this->addSql('DROP TABLE user_team');\n // $this->addSql('DROP INDEX IDX_8D93D6499245991F ON user');\n // $this->addSql('ALTER TABLE user DROP finances_id');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE comment DROP FOREIGN KEY FK_9474526C4B89032C');\n $this->addSql('ALTER TABLE comment DROP FOREIGN KEY FK_9474526CA76ED395');\n $this->addSql('DROP INDEX IDX_9474526C4B89032C ON comment');\n $this->addSql('DROP INDEX IDX_9474526CA76ED395 ON comment');\n $this->addSql('ALTER TABLE comment DROP post_id, DROP user_id');\n $this->addSql('ALTER TABLE `like` DROP FOREIGN KEY FK_AC6340B3A76ED395');\n $this->addSql('ALTER TABLE `like` DROP FOREIGN KEY FK_AC6340B3F8697D13');\n $this->addSql('ALTER TABLE `like` DROP FOREIGN KEY FK_AC6340B34B89032C');\n $this->addSql('DROP INDEX IDX_AC6340B3A76ED395 ON `like`');\n $this->addSql('DROP INDEX IDX_AC6340B3F8697D13 ON `like`');\n $this->addSql('DROP INDEX IDX_AC6340B34B89032C ON `like`');\n $this->addSql('ALTER TABLE `like` DROP user_id, DROP comment_id, DROP post_id');\n $this->addSql('ALTER TABLE meeting DROP FOREIGN KEY FK_F515E139783E3463');\n $this->addSql('ALTER TABLE meeting DROP FOREIGN KEY FK_F515E139F74AB5F1');\n $this->addSql('DROP INDEX IDX_F515E139783E3463 ON meeting');\n $this->addSql('DROP INDEX IDX_F515E139F74AB5F1 ON meeting');\n $this->addSql('ALTER TABLE meeting DROP manager_id, DROP athelete_id, DROP creation_date');\n $this->addSql('ALTER TABLE notification DROP FOREIGN KEY FK_BF5476CAA76ED395');\n $this->addSql('DROP INDEX IDX_BF5476CAA76ED395 ON notification');\n $this->addSql('ALTER TABLE notification DROP user_id, DROP type, DROP id_type, DROP date');\n $this->addSql('ALTER TABLE post DROP date');\n $this->addSql('ALTER TABLE reclamation DROP FOREIGN KEY FK_CE606404A76ED395');\n $this->addSql('DROP INDEX IDX_CE606404A76ED395 ON reclamation');\n $this->addSql('ALTER TABLE reclamation DROP user_id, DROP date');\n }", "abstract function delete();" ]
[ "0.6172919", "0.6119161", "0.6020513", "0.60139537", "0.5857925", "0.58096457", "0.5730649", "0.5694749", "0.5694749", "0.568592", "0.5682936", "0.56383985", "0.5621306", "0.5590635", "0.5581591", "0.5546354", "0.5528151", "0.5506521", "0.5496047", "0.5394498", "0.5378957", "0.5374048", "0.5369399", "0.5365423", "0.53503805", "0.5344961", "0.5339087", "0.53383565", "0.53254074", "0.53241587", "0.53229517", "0.53229517", "0.53087693", "0.52973855", "0.52911407", "0.5288025", "0.5287925", "0.52863634", "0.5284779", "0.5284119", "0.52675366", "0.5267454", "0.52648395", "0.5261828", "0.5250958", "0.52477086", "0.52417326", "0.52407885", "0.52353126", "0.5231916", "0.52312404", "0.52122754", "0.52004176", "0.51991224", "0.51932883", "0.51910836", "0.5188202", "0.51799685", "0.5178145", "0.5174215", "0.5166575", "0.5160272", "0.5158204", "0.515082", "0.51494634", "0.5147563", "0.51473767", "0.51469904", "0.51331776", "0.5131493", "0.5125675", "0.5125675", "0.5125675", "0.51239836", "0.5123897", "0.5121235", "0.51188254", "0.5117377", "0.51167035", "0.51154083", "0.5111294", "0.5111055", "0.5111055", "0.51088214", "0.5104382", "0.51038885", "0.5102451", "0.5101938", "0.5098044", "0.5097413", "0.50926816", "0.5091484", "0.5091164", "0.50901824" ]
0.5865865
10
Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. For tables with a singlecolumn primary key, that simple pkey value will be returned. For tables with a multicolumn primary key, a serialize()d version of the primary key will be returned.
public static function getPrimaryKeyHashFromRow($row, $startcol = 0) { // If the PK cannot be derived from the row, return null. if ($row[$startcol] === null) { return null; } return (string) $row[$startcol]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }", "public function getPrimaryKey(phpDataMapper_Model_Row $row)\n\t{\n\t\t$pkField = $this->getPrimaryKeyField();\n\t\treturn $row->$pkField;\n\t}", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "function PrimaryKey ( $cPrimaryKey=null )\n{\n if ( isset($cPrimaryKey) ) {\n $cPrimaryKey = $this->_FixCase_($cPrimaryKey);\n if ( $this->_PrimaryKeyStr != $cPrimaryKey || $this->_inLoading_ ) {\n $this->_PrimaryKeyStr = $cPrimaryKey;\n if ( $this->KeyName() == '' ) $this->KeyName($cPrimaryKey);\n }\n return true;\n } else {\n return $this->_PrimaryKeyStr;\n }\n}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "public function getPrimaryKeyStr()\n {\n return $this->venda->getPrimaryKeyStr() . '-' . $this->getParcela();\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "public static function getPk(){\n return static::$_primaryKey;\n }", "public function json_primary_key($table_name){\n\t\tif( in_array( $table_name, array_keys(Model_Kiwi::$kiwi_pk_hash))){\n\t\t\treturn Model_Kiwi::$kiwi_pk_hash[ $table_name ];\n\t\t}\n\t\treturn Model_Kiwi::singularize($table_name) . '_id';\n\t}", "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "abstract function getPrimaryKey();", "public function primaryKeyForTable(Table $table)\n {\n // Execute the query directly\n $result = $this->client->query(\"SHOW KEYS FROM $table->name WHERE Key_name = 'PRIMARY'\");\n\n // If no results are returned, return null\n if ($result === false) {\n return;\n }\n\n // Fetch the query results\n $data = $result->fetch_assoc();\n\n // Return the field name\n return $data['Column_name'];\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public static function pkey($aurora) {\n\t\treturn isset($aurora->pkey) ? $aurora->pkey : 'id';\n\t}", "public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDeterminationID();\n return $returnvalue;\n }", "function get_pk($key_id)\n\t{\n\t\t$key_id\t= $this->prepare_input($key_id, 42);\n\t\t$key\t= $this->call(\"{$this->context} --export $key_id\");\n\n\t\tif (false === $error = $this->get_error())\n\t\t{\n\t\t\treturn $key;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie($error);\n\t\t}\n\t}", "function primary_key()\r\n\t{\r\n\t\treturn 'key';\r\n\t}", "protected function _getPrimaryKey(){\n $def = $this->_getDef();\n foreach($def as $column){\n if($column['primary'] === true){\n return $column['field_name'];\n }\n }\n \n return false;\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}", "function GetPK($table) {\n $this->query = \"SELECT PK FROM metatabla WHERE lower(Nombre)='\".strtolower($table).\"'\";\n\n $this->consulta($this->query);\n if ($this->num_rows() > 0) { \n $this->rs01 = $this->fetch_row();\n $pk = $this->rs01[0];\n $this->cerrarConsulta();\n return $pk;\n }else{\n return false;\n }\t\n\t}", "protected function primaryKeyName($table) {\n $table = $this->connection->prefixTables('{' . $table . '}');\n return $this->connection->query('SELECT name FROM sys.key_constraints WHERE parent_object_id = OBJECT_ID(:table) AND type = :type', [\n ':table' => $table,\n ':type' => 'PK',\n ])->fetchField();\n }", "public function getKeyName()\n {\n if (!$this->primaryKey) {\n if ($key = $this->getPrimaryFromFields()) {\n $this->primaryKey = $key;\n } else {\n $this->primaryKey = 'id';\n }\n }\n\n return $this->primaryKey;\n }", "public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }", "public function getPrimaryKey()\n {\n return $this->getid();\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public static function row_pkey($aurora) {\n\t\t// prepare variables\n\t\t$pkey = static::pkey($aurora);\n\t\t// return\n\t\treturn static::prefix_table_dot($aurora) . $pkey;\n\t}", "public static function primaryKey() {\n return (new static)->getKeyName();\n }", "public function primaryKey()\n {\n return $this->set('primary_key', true);\n }", "function getPrimKey($fk1, $fk2, $pkCol, $fk1Col, $fk2Col, $table)\n\t{\n\t\t//intialize variable\n\t\t$pkId\t= 0;\n\t\t\n\t\t//statement\n\t\t$sql\t= \"SELECT \".$pkCol.\" FROM \".$table. \n\t\t\t\t \" WHERE \".$fk1Col.\"='\".$fk1.\"' \n\t\t\t\t AND \".$fk2Col.\"='\".$fk2.\"'\";\n\t\t\n\t\t$query\t= mysql_query($sql);\n\t\t\n\t\t\n\t\tif(mysql_num_rows($query) > 0)\n\t\t{\t\n\t\t\twhile($result = mysql_fetch_object($query))\n\t\t\t{\n\t\t\t\t$pkId\t= $result->$pkCol;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return\n\t\treturn $pkId;\n\t\t\n\t}", "public function getTablePrimaryKey()\n {\n return 'p.id';\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}", "protected function findPrimaryKey($table)\n {\n $kcu = 'INFORMATION_SCHEMA.KEY_COLUMN_USAGE';\n $tc = 'INFORMATION_SCHEMA.TABLE_CONSTRAINTS';\n if (isset($table->catalogName)) {\n $kcu = $table->catalogName . '.' . $kcu;\n $tc = $table->catalogName . '.' . $tc;\n }\n\n $sql = <<<EOD\n\t\tSELECT k.column_name field_name\n\t\t\tFROM {$this->quoteTableName($kcu)} k\n\t\t LEFT JOIN {$this->quoteTableName($tc)} c\n\t\t ON k.table_name = c.table_name\n\t\t AND k.constraint_name = c.constraint_name\n\t\t WHERE c.constraint_type ='PRIMARY KEY'\n\t\t \t AND k.table_name = :table\n\t\t\t\tAND k.table_schema = :schema\nEOD;\n $primary =\n $this->selectColumn($sql, [':table' => $table->tableName, ':schema' => $table->schemaName]);\n switch (count($primary)) {\n case 0: // No primary key on table\n $primary = null;\n break;\n case 1: // Only 1 primary key\n $primary = $primary[0];\n $cnk = strtolower($primary);\n if (isset($table->columns[$cnk])) {\n $table->columns[$cnk]->isPrimaryKey = true;\n if ((ColumnSchema::TYPE_INTEGER === $table->columns[$cnk]->type) &&\n $table->columns[$cnk]->autoIncrement\n ) {\n $table->columns[$cnk]->type = ColumnSchema::TYPE_ID;\n }\n }\n break;\n default:\n if (is_array($primary)) {\n foreach ($primary as $key) {\n $cnk = strtolower($key);\n if (isset($table->columns[$cnk])) {\n $table->columns[$cnk]->isPrimaryKey = true;\n }\n }\n }\n break;\n }\n $table->primaryKey = $primary;\n }", "public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }", "public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }", "public function getPrimaryKey($value = FALSE) {\n\t\t$pK = self::$primaryKey[$this->table];\n\t\tif ($value)\t\n\t\t\treturn $this->$pK;\n\t\treturn $pK;\n\t}", "protected abstract function getPrimaryKeyName();", "public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "public static function primaryKey()\n {\n $obj = new PrimaryKey();\n $obj->type = 'int';\n $obj->size = 10;\n $obj->auto_increment = true;\n $obj->primary_key = true;\n\n return $obj;\n }", "function pk_key() {\r\n\t\t$c = 0;\r\n\t\tfor($i = 0; $i < count ( $this->fields ); $i ++) {\r\n\t\t\tif ($this->fields [$i] ['PK'] == 'yes') {\r\n\t\t\t\t$pk_key [$c] = $this->fields [$i] ['VAR'];\r\n\t\t\t\t$c ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $pk_key;\r\n\t}", "function _lookup_primary_key_column()\n {\n $key = $this->_wpdb()->get_row(\"SHOW INDEX FROM {$this->get_table_name()} WHERE Key_name='PRIMARY'\", ARRAY_A);\n if (!$key) {\n throw new Exception(\"Please specify the primary key for {$this->get_table_name()}\");\n }\n return $key['Column_name'];\n }", "public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }", "public function getPrimaryKey(array $pk, array $columns, $indent = 0)\n {\n if (empty($pk)) {\n return '';\n }\n\n // Composite primary keys\n if (2 <= count($pk)) {\n $compositePk = implode(', ', $pk);\n return $this->textIndent($indent) . \"'PRIMARY KEY ($compositePk)',\" . self::ENTER;\n }\n // Primary key not an auto-increment\n $flag = false;\n foreach ($columns as $column) {\n if ($column->autoIncrement) {\n $flag = true;\n }\n }\n if (false === $flag) {\n return $this->textIndent($indent) . sprintf(\"'PRIMARY KEY (%s)',\" . self::ENTER, $pk[0]);\n }\n return '';\n }", "public function getPKField() {\n return $this->_key_field;\n }", "protected function getPrimaryKeyName(): string\n {\n return $this->query->getModel()->getKeyName();\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}", "public function PK($table_name){\n $PK = DB::select('SELECT FNC_GETPK(\"'.$table_name.'\");');\n foreach ($PK as $value) {\n $result = $value;\n }\n foreach ($result as $id) {\n $result = $id; // primary key\n }\n\n return $id;\n }", "public function getPrimaryKey()\n {\n return $this->getSekolahId();\n }", "public function getKeyValue() {\n $primaryKey = $this->getKeyName();\n return $this->$primaryKey;\n }", "public function getPrimaryKey()\n {\n $pks = array();\n $pks[0] = $this->getPhadtype();\n $pks[1] = $this->getPhadid();\n $pks[2] = $this->getPhadsubid();\n $pks[3] = $this->getPhadsubidseq();\n $pks[4] = $this->getPhadcont();\n\n return $pks;\n }", "public function pkName()\r\n {\r\n $schema = $this->schema();\r\n foreach($schema as $col){\r\n if( $col['PRIMARY'] === true )\r\n return $col['FIELD'];\r\n }\r\n throw new \\Exception( __CLASS__ .\" Error: could not find Primary Key for table: \" . $this->table->name() ); \r\n }", "protected function _getPrimaryId()\n {\n return $this->_getParam($this->_getPrimaryIdKey());\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}", "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "public function getPrimaryKeyFieldName(){\n\t\treturn $this->primaryKey;\n\t}" ]
[ "0.7702078", "0.75904965", "0.7400296", "0.7318031", "0.731435", "0.72315407", "0.7153344", "0.71426606", "0.71401006", "0.71100867", "0.70964324", "0.7081956", "0.7081044", "0.7075653", "0.7075653", "0.7065646", "0.7037616", "0.7037616", "0.7037616", "0.70263886", "0.69959146", "0.6973359", "0.6951638", "0.6951638", "0.69134545", "0.68965364", "0.6892709", "0.6892709", "0.6889274", "0.68852776", "0.68683225", "0.68675387", "0.6866171", "0.683875", "0.68202287", "0.68202287", "0.68053067", "0.6794816", "0.6759858", "0.6738374", "0.6736081", "0.67218286", "0.6708664", "0.6685612", "0.66692334", "0.6645589", "0.66412205", "0.6633511", "0.6632214", "0.66058314", "0.6598489", "0.6534892", "0.6534145", "0.65216506", "0.6506775", "0.6499779", "0.6496977", "0.6496288", "0.64908516", "0.6486009", "0.64754516", "0.64688545", "0.6466819", "0.64591336", "0.6458598", "0.6455613", "0.64524454", "0.64247584", "0.64200187", "0.6414547", "0.6411541", "0.64069533", "0.6404871", "0.63968426", "0.6396384", "0.6396384", "0.6396384", "0.6396051", "0.6391646", "0.6388174", "0.6387117", "0.63752896", "0.6363279", "0.63464576", "0.6334825", "0.6334825", "0.6334825", "0.6334825", "0.6334825", "0.6334825", "0.6334825", "0.6334825", "0.6329942", "0.6314466", "0.6308121", "0.6303708", "0.62847954", "0.6281004", "0.6277695", "0.62706834", "0.6267971" ]
0.0
-1
Retrieves the primary key from the DB resultset row For tables with a singlecolumn primary key, that simple pkey value will be returned. For tables with a multicolumn primary key, an array of the primary key columns will be returned.
public static function getPrimaryKeyFromRow($row, $startcol = 0) { return (int) $row[$startcol]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "public function getPrimaryKey(phpDataMapper_Model_Row $row)\n\t{\n\t\t$pkField = $this->getPrimaryKeyField();\n\t\treturn $row->$pkField;\n\t}", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "function getPrimKey($fk1, $fk2, $pkCol, $fk1Col, $fk2Col, $table)\n\t{\n\t\t//intialize variable\n\t\t$pkId\t= 0;\n\t\t\n\t\t//statement\n\t\t$sql\t= \"SELECT \".$pkCol.\" FROM \".$table. \n\t\t\t\t \" WHERE \".$fk1Col.\"='\".$fk1.\"' \n\t\t\t\t AND \".$fk2Col.\"='\".$fk2.\"'\";\n\t\t\n\t\t$query\t= mysql_query($sql);\n\t\t\n\t\t\n\t\tif(mysql_num_rows($query) > 0)\n\t\t{\t\n\t\t\twhile($result = mysql_fetch_object($query))\n\t\t\t{\n\t\t\t\t$pkId\t= $result->$pkCol;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return\n\t\treturn $pkId;\n\t\t\n\t}", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }", "function _lookup_primary_key_column()\n {\n $key = $this->_wpdb()->get_row(\"SHOW INDEX FROM {$this->get_table_name()} WHERE Key_name='PRIMARY'\", ARRAY_A);\n if (!$key) {\n throw new Exception(\"Please specify the primary key for {$this->get_table_name()}\");\n }\n return $key['Column_name'];\n }", "protected function findPrimaryKey($table)\n {\n $kcu = 'INFORMATION_SCHEMA.KEY_COLUMN_USAGE';\n $tc = 'INFORMATION_SCHEMA.TABLE_CONSTRAINTS';\n if (isset($table->catalogName)) {\n $kcu = $table->catalogName . '.' . $kcu;\n $tc = $table->catalogName . '.' . $tc;\n }\n\n $sql = <<<EOD\n\t\tSELECT k.column_name field_name\n\t\t\tFROM {$this->quoteTableName($kcu)} k\n\t\t LEFT JOIN {$this->quoteTableName($tc)} c\n\t\t ON k.table_name = c.table_name\n\t\t AND k.constraint_name = c.constraint_name\n\t\t WHERE c.constraint_type ='PRIMARY KEY'\n\t\t \t AND k.table_name = :table\n\t\t\t\tAND k.table_schema = :schema\nEOD;\n $primary =\n $this->selectColumn($sql, [':table' => $table->tableName, ':schema' => $table->schemaName]);\n switch (count($primary)) {\n case 0: // No primary key on table\n $primary = null;\n break;\n case 1: // Only 1 primary key\n $primary = $primary[0];\n $cnk = strtolower($primary);\n if (isset($table->columns[$cnk])) {\n $table->columns[$cnk]->isPrimaryKey = true;\n if ((ColumnSchema::TYPE_INTEGER === $table->columns[$cnk]->type) &&\n $table->columns[$cnk]->autoIncrement\n ) {\n $table->columns[$cnk]->type = ColumnSchema::TYPE_ID;\n }\n }\n break;\n default:\n if (is_array($primary)) {\n foreach ($primary as $key) {\n $cnk = strtolower($key);\n if (isset($table->columns[$cnk])) {\n $table->columns[$cnk]->isPrimaryKey = true;\n }\n }\n }\n break;\n }\n $table->primaryKey = $primary;\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "function GetPK($table) {\n $this->query = \"SELECT PK FROM metatabla WHERE lower(Nombre)='\".strtolower($table).\"'\";\n\n $this->consulta($this->query);\n if ($this->num_rows() > 0) { \n $this->rs01 = $this->fetch_row();\n $pk = $this->rs01[0];\n $this->cerrarConsulta();\n return $pk;\n }else{\n return false;\n }\t\n\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function primaryKeyForTable(Table $table)\n {\n // Execute the query directly\n $result = $this->client->query(\"SHOW KEYS FROM $table->name WHERE Key_name = 'PRIMARY'\");\n\n // If no results are returned, return null\n if ($result === false) {\n return;\n }\n\n // Fetch the query results\n $data = $result->fetch_assoc();\n\n // Return the field name\n return $data['Column_name'];\n }", "public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "protected function getRowset($primary_key)\n {\n $composite = false;\n\n if (is_array($primary_key)) {\n // Determine if this is array to include multiple rows, or an array for a composite key\n $keys = array_keys($primary_key);\n foreach ($keys as $key) {\n if (! is_numeric($key)) {\n $composite = true;\n }\n }\n }\n\n if ($composite) {\n $key_components = array();\n // Split the array into multiple arrays to maintain key matching\n foreach ($primary_key as $key_name => $key_value) {\n $key_components[] = array($key_name => $key_value);\n }\n\n $result = call_user_func_array(array($this->getDbTable(), 'find'), $key_components);\n } else {\n $result = $this->getDbTable()->find($primary_key);\n }\n\n\n if (count($result) == 0) {\n return null;\n }\n\n return $result;\n }", "public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }", "abstract function getPrimaryKey();", "protected function _getPrimaryKey(){\n $def = $this->_getDef();\n foreach($def as $column){\n if($column['primary'] === true){\n return $column['field_name'];\n }\n }\n \n return false;\n }", "function PrimaryKey ( $cPrimaryKey=null )\n{\n if ( isset($cPrimaryKey) ) {\n $cPrimaryKey = $this->_FixCase_($cPrimaryKey);\n if ( $this->_PrimaryKeyStr != $cPrimaryKey || $this->_inLoading_ ) {\n $this->_PrimaryKeyStr = $cPrimaryKey;\n if ( $this->KeyName() == '' ) $this->KeyName($cPrimaryKey);\n }\n return true;\n } else {\n return $this->_PrimaryKeyStr;\n }\n}", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "public function getPrimaryKey($value = FALSE) {\n\t\t$pK = self::$primaryKey[$this->table];\n\t\tif ($value)\t\n\t\t\treturn $this->$pK;\n\t\treturn $pK;\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function PK($table_name){\n $PK = DB::select('SELECT FNC_GETPK(\"'.$table_name.'\");');\n foreach ($PK as $value) {\n $result = $value;\n }\n foreach ($result as $id) {\n $result = $id; // primary key\n }\n\n return $id;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public static function getPk(){\n return static::$_primaryKey;\n }", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public function getPrimaryKeys($tableName)\n {\n $sqlStm = \"SELECT COLUMN_NAME as columnName, DATA_TYPE as dataType FROM information_schema.columns\n WHERE TABLE_NAME = ? AND TABLE_SCHEMA = ?\n AND COLUMN_KEY = 'PRI'\";\n \n $query = new DataQuery($sqlStm);\n $params = array();\n $params[] = new DataParameter('tableName', DataParameter::TYPE_VARCHAR , $tableName);\n $params[] = new DataParameter('schema', DataParameter::TYPE_VARCHAR , $this->schema);\n return $this->query($query, $params);\n }", "public static function find($primary_key)\n {\n return static::select()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fetchOne();\n }", "public static function pKey($pk)\n {\n\n $sql = 'SELECT * FROM ' . static::$tableName . ' WHERE ' . static::$primaryKey . ' = \"' . $pk . '\"';\n $stm = Db::getInstance()->prepare($sql);\n if ($stm->execute() === true) {\n $ob = $stm->fetchAll(\\PDO::FETCH_CLASS | \\PDO::FETCH_PROPS_LATE, get_called_class(), array_keys(static::viewTableSchema()));\n return !empty($ob) ? array_shift($ob) : false;\n }\n return false;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "protected function primaryKeyName($table) {\n $table = $this->connection->prefixTables('{' . $table . '}');\n return $this->connection->query('SELECT name FROM sys.key_constraints WHERE parent_object_id = OBJECT_ID(:table) AND type = :type', [\n ':table' => $table,\n ':type' => 'PK',\n ])->fetchField();\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "public function pkName()\r\n {\r\n $schema = $this->schema();\r\n foreach($schema as $col){\r\n if( $col['PRIMARY'] === true )\r\n return $col['FIELD'];\r\n }\r\n throw new \\Exception( __CLASS__ .\" Error: could not find Primary Key for table: \" . $this->table->name() ); \r\n }", "function getPrimaryKeys($table) {\n $resource = $this->getColumns($table);\n $primary = NULL;\n if ($resource) {\n while ($row = $this->row($resource)) {\n if ($row['Key'] == 'PRI') {\n $primary[] = $row['Field'];\n }\n }\n }\n return $primary;\n }", "public function primaryKey()\n {\n return $this->set('primary_key', true);\n }", "function pk_key() {\r\n\t\t$c = 0;\r\n\t\tfor($i = 0; $i < count ( $this->fields ); $i ++) {\r\n\t\t\tif ($this->fields [$i] ['PK'] == 'yes') {\r\n\t\t\t\t$pk_key [$c] = $this->fields [$i] ['VAR'];\r\n\t\t\t\t$c ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $pk_key;\r\n\t}", "public function findByPk($primary)\n {\n $stmt = $this->Adapter->prepare(\"SELECT * FROM $this->table WHERE $this->primaryName=:id\");\n $stmt->execute(['id' => $primary]);\n return $stmt->fetch($this->pdoFetch);\n }", "public function primaryKey($columns)\n {\n // If we got here, there is no previous primary key\n // Get the args\n $args = func_get_args();\n\n // See if there is a primary key\n $pks =\n array_filter(\n $this->constraints,\n function($constraint) {\n return $constraint->constraintType == DbConstraintTypes::PrimaryKey;\n } // end function array filter anonymous\n ); // end array filter\n\n $pk = count($pks) ? $pks[0] : null;\n\n // If there is a primary key already:\n // If there is just one column name\n if ($pk && count($args) == 1 && is_string($columns)) {\n $pk->column($columns);\n $this->getColumn($columns)->isPrimaryKey = true;\n return $pk;\n } // end if pk\n\n // If there is an object with name and sort type\n if (is_object($columns)) {\n throw new Exception (\"DbPrimaryKey needs only column name string, nor object allowed\");\n } // end if one arg and string\n\n // If there is a series of columns\n if ($pk && count($args) > 1) {\n\n foreach($args as $arg) {\n $pk->column($arg);\n $this->getColumn($arg)->isPrimaryKey = true;\n } // end foreach\n\n return $pk;\n } // end if one arg and string\n\n // If we got here, there is no previous pk\n // If there is just one column name\n if (count($args) == 1 && is_string($columns)) {\n $pkName = \"pk_$this->tableName\";\n $pk = new DbPrimaryKey($this, $pkName);\n $pk->column($columns);\n $this->getColumn($columns)->isPrimaryKey = true;\n } // end if one arg and string\n\n // If we pass an array of strings:\n if (count($args) == 1 && is_array($columns)) {\n $pkName = \"pk_$this->tableName\";\n $pk = new DbPrimaryKey($this, $pkName);\n array_walk(\n $columns,\n function ($column) use ($pk) {\n $pk->column($column);\n $this->getColumn($column)->isPrimaryKey = true;\n } // end function\n ); // end array_walk\n } // end if is array\n\n // If there is a series of columns\n if (count($args) > 1) {\n $pkName = \"pk_$this->tableName\";\n $cols = $args;\n\n // We create the index\n // Assign the columns\n $pk = new DbPrimaryKey($this, $pkName, $cols);\n foreach ($cols as $col) {\n $this->getColumn($col)->isPrimaryKey = true;\n } // end for each col\n } // end if one arg and string\n\n // If no primary key was formed, then is an error\n if (!$pk) {\n // If we got here, it's an error\n throw new Exception(\"Primary key cannot be form\");\n } // end if index\n\n // Add to the current collection and return it\n $this->constraints[] = $pk;\n return $this->constraints[count($this->constraints)-1];\n }", "function getPrimaryColumn($table){\n\n\n\tglobal $dbh;\t\n\tglobal $dbname;\n\t\t\n\n\t$SqlTablePrimaryKeyCollumnName = \"\tSELECT k.column_name\n\t\t\t\t\t\t\t\t\t\t\tFROM information_schema.table_constraints t\n\t\t\t\t\t\t\t\t\t\t\tJOIN information_schema.key_column_usage k\n\t\t\t\t\t\t\t\t\t\t\tUSING(constraint_name,table_schema,table_name)\n\t\t\t\t\t\t\t\t\t\tWHERE t.constraint_type='PRIMARY KEY'\n\t\t\t\t\t\t\t\t\t \t\tAND t.table_schema='{$dbname}'\n\t\t\t\t\t\t\t\t\t \t\tAND t.table_name='{$table}';\n\t\t\t\t\t\t\t\t\t \";\n\n\t$ResultTablePrimaryKeyCollumnName=$dbh->query($SqlTablePrimaryKeyCollumnName);\n\n\t$row = $ResultTablePrimaryKeyCollumnName->fetch(PDO::FETCH_ASSOC);\n\n\treturn $row['column_name'];\n\n\t}", "public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }", "function getPrimaryKey () {\n\t\t\n\t\t$count = $this->find('count');\n\t\t\n\t\t$primaryKey = $count+1;\n\t\t\n\t\tif( $this->find('count',array('conditions'=>array($this->name . '.' . $this->primaryKey=>$primaryKey))) > 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t$i = (int) $count;\n\n while ( $i >= 1 ) {\n\n $i += 1;\n\t\t\t\t\t\n\t\t\t\t\t$primaryKey = $i;\n \n\t\t\t\t\t$returnValue = $this->find('count',array('conditions'=>array($this->name . '.' . $this->primaryKey=>$primaryKey)));\n\n if ($returnValue == 0) {\n \t\t\t\t\t\t\t\t\t\n break;\n }\n\t\t\t\t\t\n\t\t\t\t\t$i++;\n }\n\n return $primaryKey;\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\treturn $primaryKey;\n\n\t\t}\t\n\t\n\t}", "function getPrimaryKey() {\n\n $count = $this->find('count');\n $primaryKey = $count + 1;\n\n if ($this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey))) > 0) {\n\n $i = (int) $count;\n\n while ($i >= 1) {\n\n $i += 1;\n\n $primaryKey = $i;\n\n $returnValue = $this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey)));\n\n if ($returnValue == 0) {\n\n break;\n }\n\n $i++;\n }\n\n return $primaryKey;\n } else {\n\n return $primaryKey;\n }\n }", "function get_pk($key_id)\n\t{\n\t\t$key_id\t= $this->prepare_input($key_id, 42);\n\t\t$key\t= $this->call(\"{$this->context} --export $key_id\");\n\n\t\tif (false === $error = $this->get_error())\n\t\t{\n\t\t\treturn $key;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie($error);\n\t\t}\n\t}", "public static function findByPrimaryKey($primary_key)\n {\n return self::find($primary_key);\n }", "public function getPrimaryKey()\n {\n $pks = array();\n $pks[0] = $this->getPhadtype();\n $pks[1] = $this->getPhadid();\n $pks[2] = $this->getPhadsubid();\n $pks[3] = $this->getPhadsubidseq();\n $pks[4] = $this->getPhadcont();\n\n return $pks;\n }", "public static function primaryKey()\n {\n $obj = new PrimaryKey();\n $obj->type = 'int';\n $obj->size = 10;\n $obj->auto_increment = true;\n $obj->primary_key = true;\n\n return $obj;\n }", "function getPrimaryKeys() {\n \treturn $this->db->getPrimaryKeys($this->table);\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "private function findPrimaryKeyFields(): array\n {\n $sql = <<<SQL\nWITH schema_ns AS\n(\n SELECT\n oid relnamespace\n FROM \n pg_namespace\n WHERE\n nspname = :schema\n),\ntbl_class AS\n(\n SELECT\n oid tblclassid\n FROM\n pg_class\n WHERE\n relname = :table\n AND\n relnamespace = (\n SELECT\n relnamespace\n FROM\n schema_ns\n )\n),\nindexs AS\n(\n SELECT\n indexrelid\n FROM\n pg_index\n WHERE\n indrelid = (\n SELECT\n tblclassid\n FROM\n tbl_class\n )\n AND\n indisprimary = 't'\n),\npk AS\n(\n SELECT\n attname primary_key\n FROM\n pg_attribute\n WHERE\n attrelid = (\n SELECT\n indexrelid\n FROM \n indexs\n )\n)\n\nSELECT primary_key FROM pk\n\nSQL;\n\n $sth = $this->db->prepare($sql);\n $sth->execute(\n [\n ':table' => $this->table->getName(),\n ':schema' => $this->table->getSchema()\n ]);\n\n $fetched = $sth->fetchAll(PDO::FETCH_OBJ);\n\n $rtn = [];\n\n foreach ( $fetched as $fObj )\n {\n $rtn[] = $fObj->primary_key;\n }\n\n return $rtn;\n }", "public function fetchByPrimaryKey($pk){\n\t\t$sql = \"SELECT * FROM \".$this->_tableName.\" WHERE \".$this->_primaryKeyColumn.\"=?\";\n\n\t\ttry{\n\t\t\t$resultArray = $this->_dbConnection->fetchAssoc($sql, array($pk));\n\t\t} catch (\\Exception $e){\n\t\t\t$resultArray = array();\n\t\t}\n\t\t\n\t\treturn $resultArray;\n\t}", "function primary_key()\r\n\t{\r\n\t\treturn 'key';\r\n\t}", "public function get_key($row) {\n return null;\n }", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "public function json_primary_key($table_name){\n\t\tif( in_array( $table_name, array_keys(Model_Kiwi::$kiwi_pk_hash))){\n\t\t\treturn Model_Kiwi::$kiwi_pk_hash[ $table_name ];\n\t\t}\n\t\treturn Model_Kiwi::singularize($table_name) . '_id';\n\t}", "public function getFirstPrimaryKeyField()\n {\n foreach ($this->fields as $col) {\n if ($col->isPrimaryKey()) {\n return $col;\n }\n }\n }", "public function getPrimaryKey($fullTable)\n {\n $rows = $this->query(\"SHOW KEYS FROM $fullTable WHERE Key_name = 'PRIMARY'\")->fetchAll(\\PDO::FETCH_ASSOC);\n $ret = [];\n if (false !== $rows) {\n foreach ($rows as $info) {\n $ret[] = $info['Column_name'];\n }\n }\n if (0 === count($ret)) {\n return false;\n }\n return $ret;\n }", "function get_pk($args)\n {\n return $this->_pk[$args['table']];\n }", "public function findById($primaryKeyValue){\n //Select* From employers Where $this->primaryKey(noemp)=$primaryKeyValue(1000)\n $array = $this->findWhere($this->primaryKey. \"=$primaryKeyValue\");\n if (count($array) != 1 ) die (\"The ID $primaryKeyValue is not valid\");\n return $array[0];\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "public function testPrimaryKeyField()\n {\n $field = $this->table->getField($this->table->getPrimaryKeys()[0]);\n $this->assertInstanceOf('Metrol\\DBTable\\Field\\PostgreSQL\\Integer',\n $field);\n $this->assertEquals('primaryKeyID', $field->getName());\n }", "public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)\n {\n $pks = [];\n\n $pks[] = (string) $row[\n $indexType == TableMap::TYPE_NUM\n ? 0 + $offset\n : self::translateFieldName('Apvevendid', TableMap::TYPE_PHPNAME, $indexType)\n ];\n $pks[] = (string) $row[\n $indexType == TableMap::TYPE_NUM\n ? 1 + $offset\n : self::translateFieldName('Apihpaytokey', TableMap::TYPE_PHPNAME, $indexType)\n ];\n $pks[] = (string) $row[\n $indexType == TableMap::TYPE_NUM\n ? 10 + $offset\n : self::translateFieldName('Apihponbr', TableMap::TYPE_PHPNAME, $indexType)\n ];\n $pks[] = (string) $row[\n $indexType == TableMap::TYPE_NUM\n ? 11 + $offset\n : self::translateFieldName('Apihctrlnbr', TableMap::TYPE_PHPNAME, $indexType)\n ];\n $pks[] = (string) $row[\n $indexType == TableMap::TYPE_NUM\n ? 12 + $offset\n : self::translateFieldName('Apihinvnbr', TableMap::TYPE_PHPNAME, $indexType)\n ];\n $pks[] = (int) $row[\n $indexType == TableMap::TYPE_NUM\n ? 13 + $offset\n : self::translateFieldName('Apihseq', TableMap::TYPE_PHPNAME, $indexType)\n ];\n\n return $pks;\n }", "public static function pkey($aurora) {\n\t\treturn isset($aurora->pkey) ? $aurora->pkey : 'id';\n\t}", "public function getPrimaryKey()\n {\n $pks = array();\n $pks[0] = $this->getSessionid();\n $pks[1] = $this->getRecno();\n $pks[2] = $this->getOrderno();\n\n return $pks;\n }", "public function getPKField()\r\n {\r\n if(!isset($this->pkField) && is_array($this->cols))\r\n {\r\n foreach($this->cols as $field => $colDef)\r\n {\r\n if ($colDef->isPK)\r\n {\r\n $this->pkField = $field;\r\n }\r\n }\r\n }\r\n return $this->pkField;\r\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n if ($rs->EOF) {\n return null;\n }\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public static function row_pkey($aurora) {\n\t\t// prepare variables\n\t\t$pkey = static::pkey($aurora);\n\t\t// return\n\t\treturn static::prefix_table_dot($aurora) . $pkey;\n\t}", "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "public function get_primary_column()\n {\n }", "public function getPrimaryKeyField()\n\t{\n\t\tif ($this->primaryKeyField === null)\n\t\t{\n\t\t\tthrow new DataMapper_Exception('No primary key field set for ' . __CLASS__);\n\t\t}\n\t\treturn $this->primaryKeyField;\n\t}", "public function getPrimaryKey()\n {\n $pk = [];\n foreach ($this->fields as $col) {\n if ($col->isPrimaryKey()) {\n $pk[] = $col;\n }\n }\n\n return $pk;\n }", "public function key() {\n\t\t$this->checkResultSet();\n\n\t\tif (! is_null($this->keyColumn)) {\n\t\t\t$row = $this->fetchRowAssoc($this->index, true);\n\t\t\treturn $row[$this->keyColumn];\n\t\t}\n\n\t\treturn $this->index;\n\t}", "public static function FindPrimaryKeys($search=\"_ID\"){\n\t\t$out = array();\n\t\tforeach(static::ShowTables() as $tableName){\n\t\t\t$result = static::Query(\"SHOW COLUMNS FROM `$tableName`\");\n\t\t\tforeach (static::GetResultAsArray($result) as $data) {\n\t\t\t\tif($data[\"Key\"]==\"PRI\" && $data[\"Extra\"]==\"auto_increment\"){\n\t\t\t\t\tif(strlen($search)){\n\t\t\t\t\t\tif(StartsWith($data[\"Field\"],$search) || EndsWith($data[\"Field\"],$search)){\n\t\t\t\t\t\t\t$out[$tableName] = $data[\"Field\"];\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$out[$tableName] = $data[\"Field\"];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "public function fetch_row($table_name,$key,$id)\n {\n\t\t$res=pg_query($this->connection,\"SELECT * FROM $table_name WHERE $key=$id\");\n\t\treturn pg_fetch_assoc($res);\n }", "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "public function get($primaryKeyValue = 0)\n\t{\n\t\t// Create new row object\n\t\tif(!$primaryKeyValue) {\n\t\t\t$row = new $this->rowClass();\n\t\t\treturn $row;\n\t\t\n\t\t// Find record by primary key\n\t\t} else {\n\t\t\treturn $this->first(array($this->getPrimaryKeyField() => $primaryKeyValue));\n\t\t}\n\t}" ]
[ "0.80954134", "0.7558588", "0.74424666", "0.7409092", "0.7407588", "0.72926205", "0.71618485", "0.7130738", "0.7120029", "0.7094727", "0.7094657", "0.70852435", "0.70513844", "0.70145226", "0.6997955", "0.696772", "0.6964484", "0.6956702", "0.6938738", "0.693316", "0.6921311", "0.6921311", "0.69055307", "0.68990326", "0.68990326", "0.68880814", "0.68484336", "0.68363345", "0.68363345", "0.6807367", "0.6798513", "0.6798513", "0.6798513", "0.6793721", "0.6781417", "0.67783767", "0.6773079", "0.67610526", "0.6758921", "0.67562705", "0.6755067", "0.6743899", "0.67144704", "0.67144704", "0.6699812", "0.66741973", "0.6652712", "0.6641667", "0.65939146", "0.658766", "0.65738064", "0.6568498", "0.6549861", "0.653765", "0.65322685", "0.6529937", "0.65213054", "0.65180534", "0.65133274", "0.65087116", "0.650509", "0.64823955", "0.64638317", "0.64376736", "0.6435906", "0.6432468", "0.642901", "0.6427968", "0.64263487", "0.64103055", "0.64050996", "0.6403143", "0.64027333", "0.63961047", "0.6367327", "0.6363919", "0.6353131", "0.63529384", "0.6346394", "0.6345538", "0.63371193", "0.63315225", "0.6329172", "0.632845", "0.63245094", "0.6301783", "0.62948364", "0.6269599", "0.6268294", "0.6264957", "0.6263499", "0.6247166", "0.6235952", "0.62181485", "0.62070566", "0.6206544", "0.6196689", "0.6184243", "0.6184193", "0.6180755", "0.617961" ]
0.0
-1
The returned array will contain objects of the default type or objects that inherit from the default.
public static function populateObjects(PDOStatement $stmt) { $results = array(); // set the class once to avoid overhead in the loop $cls = CastleTypePeer::getOMClass(); // populate the object(s) while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key = CastleTypePeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj = CastleTypePeer::getInstanceFromPool($key))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj->hydrate($row, 0, true); // rehydrate $results[] = $obj; } else { $obj = new $cls(); $obj->hydrate($row); $results[] = $obj; CastleTypePeer::addInstanceToPool($obj, $key); } // if key exists } $stmt->closeCursor(); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getDefaultTypes(): array\n {\n if ($this->hasFieldsets()) {\n return $this->getFieldsets()->toArray();\n }\n\n return [\n $this->handle,\n ];\n }", "protected function getDefaultComponents()\n {\n return [\n new THead,\n new TFoot\n ];\n }", "protected function defaultTaxObjects()\n {\n if (null === self::$default_tax_objects) {\n $defaultCountryCode = self::get_default_country_code_combined();\n if ($defaultCountryCode) {\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />There is a current live DEFAULT country code: ' . $defaultCountryCode;\n }\n self::$default_tax_objects = GSTTaxModifierOptions::get()\n ->filter(\n [\n 'CountryCode' => $defaultCountryCode,\n 'DoesNotApplyToAllProducts' => 0,\n ]\n )\n ;\n if (self::$default_tax_objects->exists()) {\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />there are DEFAULT tax objects available for ' . $defaultCountryCode;\n }\n } else {\n self::$default_tax_objects = null;\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />there are no DEFAULT tax object available for ' . $defaultCountryCode;\n }\n }\n } else {\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />There is no current live DEFAULT country';\n }\n }\n }\n if (null === self::$default_tax_objects_rate) {\n self::$default_tax_objects_rate = $this->workOutSumRate(self::$default_tax_objects);\n }\n\n return self::$default_tax_objects;\n }", "protected function getDefaults(){\n\t\treturn array();\n\t}", "public function defaultStatic() {\n return array();\n }", "private function getDefaultClasses()\n {\n // TODO use constants for keys\n\n return [\n 'address' => [\n Cart\\Model\\CartInterface::class => Cart\\Entity\\CartAddress::class,\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderAddress::class,\n Quote\\Model\\QuoteInterface::class => Quote\\Entity\\QuoteAddress::class,\n ],\n 'adjustment' => [\n Cart\\Model\\CartInterface::class => Cart\\Entity\\CartAdjustment::class,\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderAdjustment::class,\n Quote\\Model\\QuoteInterface::class => Quote\\Entity\\QuoteAdjustment::class,\n ],\n 'attachment' => [\n Cart\\Model\\CartInterface::class => Cart\\Entity\\CartAttachment::class,\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderAttachment::class,\n Quote\\Model\\QuoteInterface::class => Quote\\Entity\\QuoteAttachment::class,\n ],\n 'invoice' => [\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderInvoice::class,\n ],\n 'invoice_line' => [\n Order\\Model\\OrderInvoiceInterface::class => Order\\Entity\\OrderInvoiceLine::class,\n ],\n 'item' => [\n Cart\\Model\\CartInterface::class => Cart\\Entity\\CartItem::class,\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderItem::class,\n Quote\\Model\\QuoteInterface::class => Quote\\Entity\\QuoteItem::class,\n ],\n 'item_adjustment' => [\n Cart\\Model\\CartItemInterface::class => Cart\\Entity\\CartItemAdjustment::class,\n Order\\Model\\OrderItemInterface::class => Order\\Entity\\OrderItemAdjustment::class,\n Quote\\Model\\QuoteItemInterface::class => Quote\\Entity\\QuoteItemAdjustment::class,\n ],\n 'item_stock_assignment' => [\n Order\\Model\\OrderItemInterface::class => Order\\Entity\\OrderItemStockAssignment::class,\n ],\n 'notification' => [\n Cart\\Model\\CartInterface::class => Cart\\Entity\\CartNotification::class,\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderNotification::class,\n Quote\\Model\\QuoteInterface::class => Quote\\Entity\\QuoteNotification::class,\n ],\n 'payment' => [\n Cart\\Model\\CartInterface::class => Cart\\Entity\\CartPayment::class,\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderPayment::class,\n Quote\\Model\\QuoteInterface::class => Quote\\Entity\\QuotePayment::class,\n ],\n 'shipment' => [\n Order\\Model\\OrderInterface::class => Order\\Entity\\OrderShipment::class,\n ],\n 'shipment_item' => [\n Order\\Model\\OrderShipmentInterface::class => Order\\Entity\\OrderShipmentItem::class,\n ],\n ];\n }", "public function get_object_subtypes() {\n\t\treturn array();\n\t}", "public function getDefaultType();", "function bwrt_get_default_pages(): array {\n $args = array(\n 'post_type' => 'page',\n 'meta_query' => array(\n array(\n 'key' => '_bwrt_template',\n 'value' => 'on',\n 'compare' => '=',\n )\n ),\n );\n\n $query = new WP_Query( $args );\n\n if ( $query->have_posts() ) {\n return $query->posts;\n } else {\n return array();\n }\n}", "protected function get_default() {\n\t\treturn array( 'ownerID' => 0 );\n\t}", "public static function getDefaults()\n {\n return [];\n }", "public static function getTypes($default = true)\n {\n $type = static::getType();\n return $type::getTypes($default);\n }", "public function getDefaults(): array;", "public function defaultTypes()\n {\n $types = array_keys($this->repository->get($this->repoOptionString($this->settingsKey), array()));\n return array_diff($types, array($this->defaultSettingsKey));\n }", "public function getFactoryDefaults(): array;", "protected function get_default() {\n\t\treturn array(\n\t\t\t'ownerID' => 0,\n\t\t\t'accountID' => '',\n\t\t\t'adsenseLinked' => false,\n\t\t\t'adsConversionID' => '',\n\t\t\t'anonymizeIP' => true,\n\t\t\t'internalWebPropertyID' => '',\n\t\t\t'profileID' => '',\n\t\t\t'propertyID' => '',\n\t\t\t'trackingDisabled' => array( 'loggedinUsers' ),\n\t\t\t'useSnippet' => true,\n\t\t\t'canUseSnippet' => true,\n\t\t\t'dashboardView' => Analytics::DASHBOARD_VIEW,\n\t\t);\n\t}", "public static function getStandardTypes() : array\n {\n }", "public abstract function getObjects():?object ;", "public function getDefaultEvents()\n {\n \t$stmt = $this->connection->prepare(\"SELECT type, offset, note FROM default_events\");\n \t$this->throwExceptionOnError();\n \t\n \t$stmt->execute();\n \t$this->throwExceptionOnError();\n \t\n \t$defaults = array();\n \t\n\t\t$obj = new DefaultEventVO();\n \t$stmt->bind_result($obj->type, $obj->offset, $obj->note);\n \t\n \twhile ($stmt->fetch()) \n \t{\n \t\t$defaults[] = $obj;\n \t\t$obj = new DefaultEventVO();\n \t\t$stmt->bind_result($obj->type, $obj->offset, $obj->note);\n }\n \t\n \tmysqli_stmt_free_result($stmt);\n mysqli_close($this->connection);\n \n return $defaults;\n }", "public function get_default(&$object){\n if(is_object($this->options['default'])) return $this->options['default'];\n else return (object) [];\n }", "abstract protected function defaults(): array;", "public static function getParentTypes()\n {\n return array();\n }", "public static function getParentTypes()\n {\n return array();\n }", "public function get_types()\n\t{\n\t\treturn array();\n\t}", "private function getDefault(){\n\t\treturn array(\n\t\t\t'id' => \t'', \n\t\t\t'name' => \t'',\n\t\t\t'date' => \t'', \n\t\t\t'lvl' => \t'', \n\t\t\t'exp' => \t''\n\t\t);\n\t}", "protected function get_default_item_props() {\n\t\treturn (object) array(\n\t\t\t'object' => null,\n\t\t\t'tax_class' => '',\n\t\t\t'taxable' => false,\n\t\t\t'quantity' => 0,\n\t\t\t'product' => false,\n\t\t\t'price_includes_tax' => false,\n\t\t\t'subtotal' => 0,\n\t\t\t'subtotal_tax' => 0,\n\t\t\t'total' => 0,\n\t\t\t'total_tax' => 0,\n\t\t\t'taxes' => array(),\n\t\t);\n\t}", "public function getDefaultDatas()\n {\n if ($this->_defaultDatas === null) {\n\n $datas = array();\n\n foreach ($this->tags as $tag) {\n $data = EmailTagDefaultData::model()->findByPk($tag->id);\n if (!$data) {\n $data = new EmailTagDefaultData;\n $data->attributes = array(\n 'tag_id' => $tag->id,\n );\n }\n $datas[] = $data;\n }\n\n $this->_defaultDatas = $datas;\n }\n\n return $this->_defaultDatas;\n }", "function getUserTypes() {\n return array(self::HOME => self::HOME,\n self::CLINIC => self::CLINIC);\n }", "function getChildTypes() : array;", "protected function _getDefaultValues()\n {\n return array(\n );\n }", "public static function defaults(): TypedCollectionInterface\n {\n if (self::$defaults !== null) {\n return self::$defaults;\n }\n\n self::$defaults = new TypedCollection(\n ExtractionStrategyInterface::class,\n [\n new GetterStrategy,\n new NamedMethodStrategy,\n new ReflectionStrategy,\n ]\n );\n\n return self::$defaults;\n }", "function defaults() {\n\t\t$ret = array();\n\t\tforeach($this->schema() as $key => $field) {\n\t\t\tif(!$field['primary'] && !is_null($field['default'])) {\n\t\t\t\t$ret[$key] = $field['default'];\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "private static function get_default_properties()\r\n {\r\n $content_object_alias = RepositoryDataManager :: get_instance()->get_alias(ContentObject :: get_table_name());\r\n \r\n $properties = array();\r\n $properties[] = new GalleryObjectTableProperty(ContentObject :: PROPERTY_TITLE, $content_object_alias);\r\n $properties[] = new GalleryObjectTableProperty(ContentObject :: PROPERTY_DESCRIPTION, $content_object_alias);\r\n return $properties;\r\n }", "protected function getDefaults()\n {\n return $this->transbankConfig->getDefaults(\n lcfirst(Helpers::classBasename(static::class))\n ) ?? [];\n }", "function getDefault() {\n // to obtain the default\n // annoyingly\n $d = array();\n foreach ($this->_widgets as $w) {\n if (PEAR::isError($w)) {\n continue;\n }\n $d[$w->getBasename()] = $w->getDefault();\n }\n return $d;\n }", "function ctools_get_default_object($table, $name) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n if (!$export['default hook']) {\r\n return;\r\n }\r\n\r\n // Try to load individually from cache if this cache is enabled.\r\n if (!empty($export['cache defaults'])) {\r\n $defaults = _ctools_export_get_some_defaults($table, $export, array($name));\r\n }\r\n else {\r\n $defaults = _ctools_export_get_defaults($table, $export);\r\n }\r\n\r\n $status = variable_get($export['status'], array());\r\n\r\n if (!isset($defaults[$name])) {\r\n return;\r\n }\r\n\r\n $object = $defaults[$name];\r\n\r\n // Determine if default object is enabled or disabled.\r\n if (isset($status[$object->{$export['key']}])) {\r\n $object->disabled = $status[$object->{$export['key']}];\r\n }\r\n\r\n $object->{$export['export type string']} = t('Default');\r\n $object->export_type = EXPORT_IN_CODE;\r\n $object->in_code_only = TRUE;\r\n\r\n return $object;\r\n}", "public function get_desired_types();", "function post_types()\n{\n $collection = collect(get_post_types(array( '_builtin' => false ), 'objects'))\n ->pluck('label', 'name')\n ->except(array( 'acf-field', 'acf-field-group', 'wp_stream_alerts', 'wp_area' ))\n ->prepend(get_post_type_object('page')->labels->name, 'page')\n ->prepend(get_post_type_object('post')->labels->name, 'post')\n ->all();\n\n return $collection;\n}", "protected function getDefaultValues() {\n\t\treturn array(\n\t\t\t'name' => $this->getStructureNode()->getName(),\n\t\t\t'title' => $this->getStructureNode()->getTitle());\n\t}", "public function getBaseTypes()\n {\n return $this->base_types;\n }", "public function getDefaults() {\n\n\t\treturn [\n\t\t\t'module' => $this->_defaultModule,\n\t\t\t'controller' => $this->_defaultController,\n\t\t\t'action' => $this->_defaultAction,\n\t\t\t'params' => $this->_defaultParams\n\t\t];\n\t}", "public static function getStandardTypes()\n {\n }", "protected function getTypes() {}", "public static function get_all_types() {\t\t$types = scandir(str_replace(\"/\", \"\\\\\", dirname(plugin_dir_path( __FILE__ )) . \"\\\\ESWP\\\\MyTypes\"));\r\n\t\t$size = count($types);\r\n\t\t$_types = array();\r\n\t\t\r\n\t\t//Feed in the extra types\r\n\t\t$extra_types = array();\r\n\t\tif(has_filter(\"es_include_types\")) {\r\n\t\t\t$extra_types = apply_filters(\"es_include_types\", $extra_types);\r\n\t\t\t\r\n\t\t\t$size += count($extra_types);\r\n\t\t\t\r\n\t\t\tforeach ($extra_types as $type) {\r\n\t\t\t\t$order = $size;\r\n\t\t\t\t\r\n\t\t\t\tif (method_exists($type, \"get_order\")) {\r\n\t\t\t\t\t$order = $type->get_order();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tarray_push($_types, array(\r\n\t\t\t\t\t\"order\" => $order,\r\n\t\t\t\t\t\"type\" => $type\r\n\t\t\t\t));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Add the included types\r\n\t\tforeach ($types as $type) {\r\n\t\t\tif ($type !== \"BaseType.php\" && trim($type, \".\") !== \"\") {\r\n\t\t\t\t$order = $size + 10;\r\n\t\t\t\t$_type = \"\\\\ESWP\\\\MyTypes\\\\\". explode(\".\", $type)[0];\r\n\t\t\t\t\r\n\t\t\t\tif (class_exists($_type)) {\r\n\t\t\t\t\t$_type_obj = new $_type();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (method_exists($_type, \"get_order\")) {\r\n\t\t\t\t\t\t$order = $_type_obj->get_order();\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\tarray_push($_types, array(\r\n\t\t\t\t\t\t\"order\" => $order,\r\n\t\t\t\t\t\t\"type\" => $_type_obj\r\n\t\t\t\t\t));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $_types;\r\n\t}", "function get_day_project_object_types() {\n static $types = false;\n\n if($types === false) {\n $types = event_trigger('on_get_day_project_object_types', array(), array());\n if(is_foreachable($types)) {\n sort($types);\n } // if\n } // if\n\n return $types;\n }", "public static function all_post_types()\n\t{\n\t\treturn array_merge(App::config('builtin_post_types'), App::get_public_cpt());\n\t}", "public function toArray()\n\t{\n\t\t$defaults = $this->reflectionClass->getDefaultProperties();\n\t\t$return = array();\n\t\t\n\t\tforeach($defaults as $var => $val)\n\t\t{\n\t\t\tif($this->$var instanceof Model)\n\t\t\t{\n\t\t\t\t$return[$var] = $this->$var->toArray();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$return[$var] = $this->$var;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $return;\n\t}", "public function getSuperEffective()\n {\n $xary = array();\n foreach ($this->super_effective as $info) {\n $xary[] = new Type($info->resource_id);\n }\n return $xary;\n }", "function get_project_object_types() {\n static $types = false;\n\n if($types === false) {\n $types = event_trigger('on_get_project_object_types', array(), array());\n if(is_foreachable($types)) {\n sort($types);\n } // if\n } // if\n\n return $types;\n }", "function workbench_post_get_settings_default_user_types() {\n $users = workbench_post_get_config('user_types');\n if ($users) {\n $users = array_filter($users, function($item) {\n return $item;\n });\n return $users;\n }\n else {\n $node_users_by_string = array_map(function($user_type) {\n return $user_type->user_string;\n }, workbench_post_get_node_user_types());\n\n return $node_users_by_string;\n }\n}", "abstract protected function getDefaultClass();", "public static function getAll()\r\n {\r\n return self::$typeRegistry;\r\n }", "protected static function enumerate(): array\n {\n return [\n 'MALE' => new class('M') extends Gender\n {\n },\n 'FEMALE' => new class('F') extends Gender\n {\n },\n ];\n }", "public function get_object_subtypes()\n {\n }", "public function get_object_subtypes()\n {\n }", "public function get_object_subtypes()\n {\n }", "public function default_data() : array {\n\t\treturn [\n\t\t\t'meta' => [\n\t\t\t\t'title' => '',\n\t\t\t\t'permalink' => '',\n\t\t\t\t'cta_text' => '',\n\t\t\t\t'cta_url' => '',\n\t\t\t],\n\t\t\t'curate' => [\n\t\t\t\t'post_ids' => [],\n\t\t\t],\n\t\t\t'filters' => [\n\t\t\t\t'filter' => [],\n\t\t\t],\n\t\t];\n\t}", "protected function getDefaults(): array\n {\n $defaults = [];\n\n foreach ($this->getPropDefs() as $name => $def) {\n if (isset($def['default'])) {\n if ($def['default'] instanceof \\Closure) {\n $defaults[$name] = $def['default']();\n } else {\n $defaults[$name] = $def['default'];\n }\n }\n }\n\n return $defaults;\n }", "public function setDefaultValues() {\n return [];\n }", "public static function getAll() : array {\n return self::$objects;\n }", "protected function getDefaults()\n {\n $defaults = [\n \"query\" => [],\n \"headers\" => [\n \"Content-Type\" => \"application/json\",\n \"Accept\" => \"application/hal+json\",\n ],\n ];\n\n if (!empty($this->defaults)) {\n $defaults = call_user_func($this->defaults, $defaults);\n }\n\n return $defaults;\n }", "public function getInstances() {\n\t\t\t$instances = (object)array(\n\t\t\t\t'text-content'\t=> new TextContentType()\n\t\t\t);\n\n\t\t\tSymphony::ExtensionManager()->notifyMembers(\n\t\t\t\t'AppendContentType', '*', array(\n\t\t\t\t\t'items'\t=> $instances\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$instances = (array)$instances;\n\n\t\t\tuksort($instances, function($a, $b) {\n\t\t\t\treturn strcasecmp($a, $b);\n\t\t\t});\n\n\t\t\treturn $instances;\n\t\t}", "static function getTypes(): array\n\t{\n return self::$types;\n }", "function get_default_type()\n\t{\n\t\treturn 'normal';\n\t}", "private function getOpenGraphObjectTypes() : array\n {\n return [\n 'books' => ObjectBook::class,\n 'business' => ObjectBusiness::class,\n 'fitness' => ObjectFitness::class,\n 'game' => ObjectGame::class,\n 'music' => ObjectMusic::class,\n 'place' => ObjectPlace::class,\n 'product' => ObjectProduct::class,\n 'profile' => ObjectProfile::class,\n 'restaurant' => ObjectRestaurant::class,\n 'video' => ObjectVideo::class,\n ];\n }", "protected function get_default_settings()\n {\n return [\n 'default' => [\n 'id' => '',\n 'url' => '',\n 'size' => '',\n 'name' => '',\n ],\n ];\n }", "public function getTypesForDefaultQueue() {\n $types = array(\n ParseGitolite3Logs::NAME,\n MigrateToTuleapSSHKeyManagement::NAME\n );\n\n if ($this->repository_factory->hasGitShellRepositories()) {\n return array_merge(\n $types,\n array(\n SystemEvent_GIT_LEGACY_REPO_ACCESS::NAME,\n SystemEvent_GIT_LEGACY_REPO_DELETE::NAME,\n )\n );\n }\n\n return $types;\n }", "function get_default_items() {\n\t\t$items = array(\n\t\t\tarray(\n\t\t\t\t'_key' => 'category',\n\t\t\t\t'_visibility' => '',\n\t\t\t\t'show_in_grid' => 1,\n\t\t\t\t'show_in_list' => 1,\n\t\t\t\t'title' => __( 'Category', 'customify' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'_visibility' => '',\n\t\t\t\t'_key' => 'title',\n\t\t\t\t'title' => __( 'Title', 'customify' ),\n\t\t\t\t'show_in_grid' => 1,\n\t\t\t\t'show_in_list' => 1,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'_key' => 'rating',\n\t\t\t\t'_visibility' => '',\n\t\t\t\t'show_in_grid' => 1,\n\t\t\t\t'show_in_list' => 1,\n\t\t\t\t'title' => __( 'Rating', 'customify' ),\n\t\t\t),\n\n\t\t\tarray(\n\t\t\t\t'_key' => 'price',\n\t\t\t\t'_visibility' => '',\n\t\t\t\t'show_in_grid' => 1,\n\t\t\t\t'show_in_list' => 1,\n\t\t\t\t'title' => __( 'Price', 'customify' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'_key' => 'description',\n\t\t\t\t'_visibility' => '',\n\t\t\t\t'show_in_grid' => 0,\n\t\t\t\t'show_in_list' => 1,\n\t\t\t\t'title' => __( 'Short Description', 'customify' ),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'_key' => 'add_to_cart',\n\t\t\t\t'_visibility' => '',\n\t\t\t\t'show_in_grid' => 1,\n\t\t\t\t'show_in_list' => 1,\n\t\t\t\t'title' => __( 'Add To Cart', 'customify' ),\n\t\t\t),\n\t\t);\n\n\t\treturn apply_filters( 'customify/product-designer/body-items', $items );\n\t}", "public function getDefaults();", "public function getTypes(): array;", "public function getTypes(): array;", "protected function get_applicable_types()\n\t{\n\t\t$types = array();\n\n\t\tforeach ($this->types->get_all() as $id => $class)\n\t\t{\n\t\t\tif ($class->forum_robot && $class->forum_database)\n\t\t\t{\n\t\t\t\t$types[] = $id;\n\t\t\t}\n\t\t}\n\t\treturn $types;\n\t}", "public function get_object_types() {\n\t\treturn $this->object_types;\n\t}", "public function getDefaultSearchData()\n {\n return array();\n }", "public function getTypes()\n {\n return get_object_vars($this);\n }", "private function get_default_tables() {\n\t\tglobal $wpdb;\n\n\t\treturn array(\n\t\t\t'posts' => array(\n\t\t\t\t'table' => $wpdb->posts,\n\t\t\t\t'range_field' => 'ID',\n\t\t\t\t'key_fields' => array( 'ID' ),\n\t\t\t\t'checksum_fields' => array( 'post_modified_gmt' ),\n\t\t\t\t'filter_values' => Sync\\Settings::get_disallowed_post_types_structured(),\n\t\t\t),\n\t\t\t'postmeta' => array(\n\t\t\t\t'table' => $wpdb->postmeta,\n\t\t\t\t'range_field' => 'post_id',\n\t\t\t\t'key_fields' => array( 'post_id', 'meta_key' ),\n\t\t\t\t'checksum_fields' => array( 'meta_key', 'meta_value' ),\n\t\t\t\t'filter_values' => Sync\\Settings::get_allowed_post_meta_structured(),\n\t\t\t\t'parent_table' => 'posts',\n\t\t\t\t'parent_join_field' => 'ID',\n\t\t\t\t'table_join_field' => 'post_id',\n\t\t\t),\n\t\t\t'comments' => array(\n\t\t\t\t'table' => $wpdb->comments,\n\t\t\t\t'range_field' => 'comment_ID',\n\t\t\t\t'key_fields' => array( 'comment_ID' ),\n\t\t\t\t'checksum_fields' => array( 'comment_date_gmt' ),\n\t\t\t\t'filter_values' => array(\n\t\t\t\t\t'comment_type' => array(\n\t\t\t\t\t\t'operator' => 'IN',\n\t\t\t\t\t\t'values' => apply_filters(\n\t\t\t\t\t\t\t'jetpack_sync_whitelisted_comment_types',\n\t\t\t\t\t\t\tarray( '', 'comment', 'trackback', 'pingback', 'review' )\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'comment_approved' => array(\n\t\t\t\t\t\t'operator' => 'NOT IN',\n\t\t\t\t\t\t'values' => array( 'spam' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'commentmeta' => array(\n\t\t\t\t'table' => $wpdb->commentmeta,\n\t\t\t\t'range_field' => 'comment_id',\n\t\t\t\t'key_fields' => array( 'comment_id', 'meta_key' ),\n\t\t\t\t'checksum_fields' => array( 'meta_key', 'meta_value' ),\n\t\t\t\t'filter_values' => Sync\\Settings::get_allowed_comment_meta_structured(),\n\t\t\t\t'parent_table' => 'comments',\n\t\t\t\t'parent_join_field' => 'comment_ID',\n\t\t\t\t'table_join_field' => 'comment_id',\n\t\t\t),\n\t\t\t'terms' => array(\n\t\t\t\t'table' => $wpdb->terms,\n\t\t\t\t'range_field' => 'term_id',\n\t\t\t\t'key_fields' => array( 'term_id' ),\n\t\t\t\t'checksum_fields' => array( 'term_id', 'name', 'slug' ),\n\t\t\t\t'parent_table' => 'term_taxonomy',\n\t\t\t),\n\t\t\t'termmeta' => array(\n\t\t\t\t'table' => $wpdb->termmeta,\n\t\t\t\t'range_field' => 'term_id',\n\t\t\t\t'key_fields' => array( 'term_id', 'meta_key' ),\n\t\t\t\t'checksum_fields' => array( 'meta_key', 'meta_value' ),\n\t\t\t\t'parent_table' => 'term_taxonomy',\n\t\t\t),\n\t\t\t'term_relationships' => array(\n\t\t\t\t'table' => $wpdb->term_relationships,\n\t\t\t\t'range_field' => 'object_id',\n\t\t\t\t'key_fields' => array( 'object_id' ),\n\t\t\t\t'checksum_fields' => array( 'object_id', 'term_taxonomy_id' ),\n\t\t\t\t'parent_table' => 'term_taxonomy',\n\t\t\t\t'parent_join_field' => 'term_taxonomy_id',\n\t\t\t\t'table_join_field' => 'term_taxonomy_id',\n\t\t\t),\n\t\t\t'term_taxonomy' => array(\n\t\t\t\t'table' => $wpdb->term_taxonomy,\n\t\t\t\t'range_field' => 'term_taxonomy_id',\n\t\t\t\t'key_fields' => array( 'term_taxonomy_id' ),\n\t\t\t\t'checksum_fields' => array( 'term_taxonomy_id', 'term_id', 'taxonomy', 'description', 'parent' ),\n\t\t\t\t'filter_values' => Sync\\Settings::get_blacklisted_taxonomies_structured(),\n\t\t\t),\n\t\t\t'links' => $wpdb->links, // TODO describe in the array format or add exceptions.\n\t\t\t'options' => $wpdb->options, // TODO describe in the array format or add exceptions.\n\t\t);\n\t}", "public function coreClasses(){\n return[\n 'request' => 'System\\\\Http\\\\Request',\n 'response' => 'System\\\\Http\\\\Response',\n 'session' => 'System\\\\Session',\n 'route' => 'System\\\\Route',\n 'cookie' => 'System\\\\Cookie',\n 'loader' => 'System\\\\Loader',\n 'html' => 'System\\\\Html',\n 'db' => 'System\\\\Database',\n 'view' => 'System\\\\View\\\\ViewFactory',\n ];\n }", "function get_completable_project_object_types() {\n static $types = false;\n\n if($types === false) {\n $types = event_trigger('on_get_completable_project_object_types', array(), array());\n if(is_foreachable($types)) {\n sort($types);\n } // if\n } // if\n\n return $types;\n }", "public function findAllCustomFirst()\n {\n $select = $this->getSelect();\n \n $select->order('custom DESC');\n \n return $this->fetchObjects($select);\n }", "protected function createComparerObjects() : array {\r\n return [\r\n $this->createInstance(3),\r\n $this->createInstance(2),\r\n $this->createInstance(4),\r\n $this->createInstance(1),\r\n ];\r\n }", "protected static function _getDataTypes()\n {\n return [];\n }", "public function all(bool $defaultWhenEmpty = true): array;", "function workbench_post_get_user_types() {\n $default_users = workbench_post_get_settings_default_user_types();\n $all_users = workbench_post_get_all_user_types();\n $users = array_filter($all_users, function($user) use ($default_users) {\n return $default_users[$user->user_string];\n });\n return $users;\n}", "public static function get_job_types() {\r\n\r\n\t\t\tif ( !empty( self::$job_types ) )\r\n\t\t\t\treturn self::$job_types;\r\n\r\n\t\t\tself::$job_types[ 'DBDUMP' ]\t= new BackWPup_JobType_DBDump;\r\n\t\t\tself::$job_types[ 'FILE' ] \t\t= new BackWPup_JobType_File;\r\n\t\t\tself::$job_types[ 'WPEXP' ] \t= new BackWPup_JobType_WPEXP;\r\n\t\t\tself::$job_types[ 'WPPLUGIN' ] = new BackWPup_JobType_WPPlugin;\r\n\t\t\tself::$job_types[ 'DBCHECK' ] = new BackWPup_JobType_DBCheck;\r\n\r\n\t\t\tself::$job_types = apply_filters( 'backwpup_job_types', self::$job_types );\r\n\r\n\t\t\t//remove types can't load\r\n\t\t\tforeach ( self::$job_types as $key => $job_type ) {\r\n\t\t\t\tif ( empty( $job_type ) || ! is_object( $job_type ) )\r\n\t\t\t\t\tunset( self::$job_types[ $key ] );\r\n\t\t\t}\r\n\r\n\t\t\treturn self::$job_types;\r\n\t\t}", "protected function get_default_fee_props() {\n\t\treturn (object) array(\n\t\t\t'object' => null,\n\t\t\t'tax_class' => '',\n\t\t\t'taxable' => false,\n\t\t\t'total_tax' => 0,\n\t\t\t'taxes' => array(),\n\t\t);\n\t}", "public static function getAllBuiltInTypes()\n {\n }", "function get_default_values() {\n\t\t$output = array();\n\t\t$config = & lcars_Framework::_lcarsframework_lcars();\n\t\tforeach ( (array) $config as $option ) {\n\t\t\tif ( ! isset( $option['id'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( ! isset( $option['std'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( ! isset( $option['type'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( has_filter( 'of_sanitize_' . $option['type'] ) ) {\n\t\t\t\t$output[$option['id']] = apply_filters( 'of_sanitize_' . $option['type'], $option['std'], $option );\n\t\t\t}\n\t\t}\n\t\treturn $output;\n\t}", "public static function setEmpty()\n {\n $empty = [0 => static::class];\n foreach (static::$structure as $i => $element) {\n $empty[$i] = $element['class']::setEmpty($i);\n }\n return [$empty];\n }", "public static function getTypes()\n {\n return [\n ModelRegistry::TRANSACTION => ModelRegistry::getById(ModelRegistry::TRANSACTION)->label,\n ModelRegistry::PRODUCT => ModelRegistry::getById(ModelRegistry::PRODUCT)->label,\n ];\n }", "protected function defaults() {\n\t\treturn array(\n\t\t\t'content' => false,\n\t\t\t'content_path' => false,\n\t\t\t'markdown' => false,\n\t\t);\n\t}", "public static function get_possible_types()\n {\n }", "public static function get_possible_types()\n {\n }", "public static function get_possible_types()\n {\n }", "protected function getDefaultRow()\n {\n $results = array();\n foreach ($this->getFields() as $name => $field) {\n $results[$name] = $field->getDefault();\n }\n return $results;\n }", "public static function getTypes(): array {\n\t\treturn ['pizza'];\n\t}", "public function getDefaultSearchData()\n {\n return array(\n self::DATE_FACTOR => 0,\n self::DATE_GROUP => null,\n self::DATE_TYPE => 'W');\n }", "public static function getTypes(): array\n {\n return self::getRelevancyTypes();\n }", "protected function get_default_params() {\n\t\t$defaults = [];\n\t\t$schema = $this->get_public_item_schema();\n\t\tforeach ( $schema['properties'] as $arg => $options ) {\n\t\t\tif ( isset( $options['default'] ) ) {\n\t\t\t\t$defaults[ $arg ] = $options['default'];\n\t\t\t}\n\t\t}\n\t\treturn $defaults;\n\t}", "public function getDefaultProperties () {\n return array(\n 'deleted' => 0,\n 'published' => 1,\n 'active' => 1,\n 'only_check_permissions' => 0,\n 'checkCustomPermissions' => 0,\n 'checkByRelatedObjects' => 1,\n 'needCounters' => 0,\n );\n }", "public function getAllTypes(){\n return $this->find()->asArray()->orderBy('typeDesc ASC')->all();\n }", "public static function getTypeArray()\n {\n return [\n self::TYPE_GENERIC => Yii::t('app', 'Generic'),\n ];\n }" ]
[ "0.6613024", "0.6190649", "0.6073416", "0.60565436", "0.6008772", "0.59606016", "0.59247184", "0.58962023", "0.5890789", "0.585801", "0.58451295", "0.581715", "0.5813083", "0.57828707", "0.5763412", "0.57154924", "0.5698909", "0.5683115", "0.5681036", "0.5659683", "0.56371564", "0.5633372", "0.5633372", "0.5598877", "0.55926514", "0.55897224", "0.5554406", "0.55439115", "0.5539309", "0.5534443", "0.5528601", "0.55258644", "0.5524011", "0.55172145", "0.5517013", "0.55059904", "0.5504954", "0.5503953", "0.55007076", "0.5498587", "0.54965246", "0.5494215", "0.5482646", "0.5478416", "0.54622036", "0.54571223", "0.54535097", "0.54389113", "0.543868", "0.54360557", "0.543283", "0.5432351", "0.54316497", "0.54276764", "0.54276764", "0.54276764", "0.5425318", "0.5421759", "0.5421655", "0.53991187", "0.5385618", "0.53708375", "0.5359738", "0.53532714", "0.5351834", "0.5343421", "0.53424436", "0.5335603", "0.5322628", "0.53151786", "0.53151786", "0.5315059", "0.5295331", "0.52940786", "0.5285121", "0.5270835", "0.52618307", "0.5259876", "0.5250785", "0.52474177", "0.52469724", "0.5241692", "0.5241644", "0.524024", "0.5239552", "0.5234319", "0.52202845", "0.5215596", "0.5207242", "0.52017", "0.5197601", "0.5197601", "0.5197601", "0.51970917", "0.5193443", "0.5192601", "0.5191716", "0.518772", "0.51874566", "0.5183416", "0.517903" ]
0.0
-1
Populates an object of the default type or an object that inherit from the default.
public static function populateObject($row, $startcol = 0) { $key = CastleTypePeer::getPrimaryKeyHashFromRow($row, $startcol); if (null !== ($obj = CastleTypePeer::getInstanceFromPool($key))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj->hydrate($row, $startcol, true); // rehydrate $col = $startcol + CastleTypePeer::NUM_HYDRATE_COLUMNS; } else { $cls = CastleTypePeer::OM_CLASS; $obj = new $cls(); $col = $obj->hydrate($row, $startcol); CastleTypePeer::addInstanceToPool($obj, $key); } return array($obj, $col); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultType();", "public function initialize($object, $defaultPropertyValue);", "public function setDefaultTypeData(){\n if(\n is_object($this->source) &&\n is_object($this->target)\n ){\n if(\n $this->source->isAbyss() ||\n $this->target->isAbyss()\n ){\n $this->scope = 'abyssal';\n $this->type = ['abyssal'];\n }else{\n $routeController = new Route();\n $route = $routeController->searchRoute($this->source->systemId, $this->target->systemId, 1);\n\n if($route['routePossible']){\n $this->scope = 'stargate';\n $this->type = ['stargate'];\n }else{\n $this->scope = 'wh';\n $this->type = ['wh_fresh'];\n }\n }\n }\n }", "public function get_default(&$object){\n if(is_object($this->options['default'])) return $this->options['default'];\n else return (object) [];\n }", "public function updateDefaultsFromObject() {\n parent::updateDefaultsFromObject();\n // Tags\n if(isset($this->widgetSchema['tags'])) {\n $tags = $this->getObject()->getTags();\n if($this->getUser()->getAttribute('enable_keyboard', false)) {\n $tags = implode(', ', $tags);\n }\n $this->widgetSchema['tags']->setDefault($tags);\n }\n // Elements\n if(isset($this->widgetSchema['elements_list'])) {\n $this->widgetSchema['elements_list']->setDefault($this->getObject()->getElements());\n }\n if($this->getUser()->getAttribute('enable_keyboard', false) && isset($this->widgetSchema['demandeur_id']) && !$this->isNew())\n {\n $this->setDefault('demandeur_id', $this->getObject()->getDemandeur()->getName());\n }\n }", "function ctools_get_default_object($table, $name) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n if (!$export['default hook']) {\r\n return;\r\n }\r\n\r\n // Try to load individually from cache if this cache is enabled.\r\n if (!empty($export['cache defaults'])) {\r\n $defaults = _ctools_export_get_some_defaults($table, $export, array($name));\r\n }\r\n else {\r\n $defaults = _ctools_export_get_defaults($table, $export);\r\n }\r\n\r\n $status = variable_get($export['status'], array());\r\n\r\n if (!isset($defaults[$name])) {\r\n return;\r\n }\r\n\r\n $object = $defaults[$name];\r\n\r\n // Determine if default object is enabled or disabled.\r\n if (isset($status[$object->{$export['key']}])) {\r\n $object->disabled = $status[$object->{$export['key']}];\r\n }\r\n\r\n $object->{$export['export type string']} = t('Default');\r\n $object->export_type = EXPORT_IN_CODE;\r\n $object->in_code_only = TRUE;\r\n\r\n return $object;\r\n}", "public function testDefaults()\r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\r\n\t\t// set default to 1\r\n\t\t$obj = new CAntObject($dbh, \"customer\");\r\n\t\t$dbh->Query(\"delete from app_object_field_defaults where field_id in \r\n\t\t\t\t\t\t(select id from app_object_type_fields where name='type_id' and type_id='\".$obj->object_type_id.\"');\");\r\n\t\t$dbh->Query(\"insert into app_object_field_defaults(field_id, on_event, value) \r\n\t\t\t\t\t\tvalues((select id from app_object_type_fields where name='type_id' and type_id='\".$obj->object_type_id.\"'),\r\n\t\t\t\t\t\t\t\t'null', '1');\");\r\n\t\t$obj->clearDefinitionCache();\r\n\t\tunset($obj);\r\n\r\n\t\t// Test for default value\r\n\t\t$obj = new CAntObject($dbh, \"customer\");\r\n\t\t$obj->debug = true;\r\n\t\t$this->assertEquals(1, (int)$obj->getValue(\"type_id\"));\r\n\r\n\t\t// set default to 2\r\n\t\t$obj = new CAntObject($dbh, \"customer\");\r\n\t\t$dbh->Query(\"delete from app_object_field_defaults where field_id in \r\n\t\t\t\t\t\t(select id from app_object_type_fields where name='type_id' and type_id='\".$obj->object_type_id.\"');\");\r\n\t\t$dbh->Query(\"insert into app_object_field_defaults(field_id, on_event, value) \r\n\t\t\t\t\t\tvalues((select id from app_object_type_fields where name='type_id' and type_id='\".$obj->object_type_id.\"'),\r\n\t\t\t\t\t\t\t\t'null', '2');\");\r\n\t\t$obj->clearDefinitionCache();\r\n\t\tunset($obj);\r\n\r\n\t\t// Test for default value\r\n\t\t$obj = new CAntObject($dbh, \"customer\");\r\n\t\t$this->assertEquals((int)$obj->getValue(\"type_id\"), 2);\r\n\r\n\t\t// Now test default owner_id which defaults to USER_CURRENT\r\n\t\t// -----------------------------------------------\r\n\t\t// Test new create\r\n\t\t$obj = new CAntObject($dbh, \"customer\", null, $this->user);\r\n\t\t$obj->setValue(\"name\", \"test def own\");\r\n\t\t$custid = $obj->save(false);\r\n\t\t$this->assertEquals((int)$obj->getValue(\"owner_id\"), $this->user->id);\r\n\t\tunset($obj);\r\n\r\n\t\t// Test open\r\n\t\t$obj = new CAntObject($dbh, \"customer\", $custid, $this->user);\r\n\t\t$this->assertEquals((int)$obj->getValue(\"owner_id\"), $this->user->id);\r\n\t\t\r\n\t\t// Test not current user\r\n\t\t/*$uid = $dbh->GetValue($dbh->Query(\"select id from users where id>0 limit 1\"), 0, \"id\");\r\n\t\t$this->assertNotNull($uid);*/\r\n\t\t\r\n\t\t// Create new user for testing instead of querying existing users.\r\n\t\t$objUser = new CAntObject($dbh, \"user\", null, $this->user);\r\n\t\t$objUser->setValue(\"name\", \"unit test user\");\r\n\t\t$uid = $obj->save(false);\r\n\t\t$this->assertTrue($uid > 0);\r\n\t\t\r\n\t\tif ($uid)\r\n\t\t{\r\n\t\t\t$obj->setValue(\"owner_id\", $uid);\r\n\t\t\t$obj->save(false);\r\n\t\t\tunset($obj);\r\n\t\t\t$obj = new CAntObject($dbh, \"customer\", $custid, $this->user);\r\n\t\t\t$this->assertEquals((int)$obj->getValue(\"owner_id\"), $uid);\r\n\t\t}\r\n\r\n\t\t// Clean Data\r\n\t\t$obj->removeHard();\r\n\t\t$objUser->removeHard();\r\n\t\tunset($obj);\r\n\r\n\t\t// Now test default where condition\r\n\t\t// -----------------------------------------------\r\n\t\t$obj = new CAntObject($dbh, \"task\", null, $this->user);\r\n\t\t$obj->setValue(\"name\", \"Test Default Completed\");\r\n\t\t$tid = $obj->save();\r\n\t\t$this->assertEquals($obj->getValue(\"date_completed\"), \"\");\r\n\r\n\t\t// Set done and then save - should update date_completed to 'now'\r\n\t\t$obj->setValue(\"done\", \"t\");\r\n\t\t$obj->save();\r\n\t\t$this->assertNotEquals($obj->getValue(\"date_completed\"), \"\");\r\n\r\n\t\t$obj->removeHard();\r\n\t}", "function populate($obj, $prop, $default = '') {\n return ($obj && isset($obj->$prop)) ? $obj->$prop : $default;\n}", "public function setDefaultType($type);", "public function load_with_defaults ()\n {\n parent::load_with_defaults ();\n $this->set_value ('email_type', 'single_mail');\n }", "public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }", "public static function initialise() {\n \t// We can't modify it in place, else we'll break any logging done inside the SihnonFramework tree\n \t// or other subclass trees.\n \tstatic::$types = parent::$types;\n \t\n \t// Add the new data types for this subclass\n static::$types['job_id'] = 'int'; \n }", "abstract protected function getEntitySetWithDefaults();", "public function applyDefaultValues()\n\t{\n\t\t$this->type = 1;\n\t\t$this->total_index = 0;\n\t\t$this->is_published = true;\n\t\t$this->is_featured = false;\n\t\t$this->comments_count = 0;\n\t}", "function ctools_export_new_object($table, $set_defaults = TRUE) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n $object = new $export['object'];\r\n foreach ($schema['fields'] as $field => $info) {\r\n if (isset($info['object default'])) {\r\n $object->$field = $info['object default'];\r\n }\r\n else if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = NULL;\r\n }\r\n }\r\n\r\n if ($set_defaults) {\r\n // Set some defaults so this data always exists.\r\n // We don't set the export_type property here, as this object is not saved\r\n // yet. We do give it NULL so we don't generate notices trying to read it.\r\n $object->export_type = NULL;\r\n $object->{$export['export type string']} = t('Local');\r\n }\r\n return $object;\r\n}", "abstract protected function getDefaultClass();", "private function defaultCast(string $type, $value)\n {\n return class_exists($type) ? new $type($value) : $value;\n }", "function set_defaults($stdObject)\n {\n }", "protected function set_defaults( $type ) {\n\t\tif ( ! isset( $this->$type->slug ) ) {\n\t\t\t$this->$type = new \\stdClass();\n\t\t\t$this->$type->slug = '';\n\t\t} elseif ( ! isset( self::$options[ $this->$type->slug ] ) ) {\n\t\t\tself::$options[ $this->$type->slug ] = '';\n\t\t\tadd_site_option( 'git_updater', self::$options );\n\t\t}\n\n\t\t$this->$type->remote_version = '0.0.0';\n\t\t$this->$type->newest_tag = '0.0.0';\n\t\t$this->$type->download_link = '';\n\t\t$this->$type->tags = [];\n\t\t$this->$type->rollback = [];\n\t\t$this->$type->branches = [];\n\t\t$this->$type->requires = '';\n\t\t$this->$type->tested = '';\n\t\t$this->$type->donate_link = '';\n\t\t$this->$type->contributors = [];\n\t\t$this->$type->downloaded = 0;\n\t\t$this->$type->last_updated = '';\n\t\t$this->$type->rating = 0;\n\t\t$this->$type->num_ratings = 0;\n\t\t$this->$type->transient = [];\n\t\t$this->$type->repo_meta = [];\n\t\t$this->$type->watchers = 0;\n\t\t$this->$type->forks = 0;\n\t\t$this->$type->open_issues = 0;\n\t\t$this->$type->requires = false;\n\t\t$this->$type->requires_php = false;\n\t}", "function get_default_type()\n\t{\n\t\treturn 'normal';\n\t}", "function _setDefaults()\n {\n $this->type = $this->rs['type'] = \"unknown\";\n $this->parent = $this->rs['parent'] = 0;\n $this->lecture_id = $this->rs['lecture_id'] = SessionDataBean::getLectureId();\n $this->title = $this->rs['title'] = \"\";\n $this->mtitle = $this->rs['mtitle'] = \"\";\n $this->text = $this->rs['text'] = \"<p></p>\";\n $this->position = $this->rs['position'] = 0;\n $this->redirect = $this->rs['redirect'] = \"\";\n $this->ival1 = $this->rs['ival1'] = 0;\n $this->copy_parent = $this->rs['copy_parent'] = false;\n }", "function fill($name, $object = null, $default = null)\n{\n if ($value = request($name)) {\n return $value;\n }\n\n if ($value = old($name)) {\n return $value;\n }\n\n if (\n ($object instanceof \\Illuminate\\Contracts\\Support\\Arrayable || is_array($object))\n && isset($object[$name])\n ) {\n return $object[$name];\n }\n\n return $default;\n}", "public function setToDefault() {\n $this->addType(ResidentType::all);\n }", "protected function getDefaultModelObject() : void\n {\n return;\n }", "public function testGetDefault() : void\n {\n $reflex = new \\ReflectionClass($this->getTestedInstance());\n $instance = $reflex->newInstanceWithoutConstructor();\n\n $default = $reflex->getProperty('default');\n $default->setAccessible(true);\n\n $this->getTestCase()->assertNull($instance->getDefault());\n $default->setValue($instance, true);\n $this->getTestCase()->assertTrue($instance->getDefault());\n $default->setValue($instance, new \\stdClass());\n $this->getTestCase()->assertInstanceOf(\\stdClass::class, $instance->getDefault());\n\n return;\n }", "abstract protected function loadDefaults();", "abstract protected function getDefaultModel();", "abstract public function populate();", "function &setClassDefaults(&$obj) \n\t{\n\t\t// turn on globals\n\t\tglobal $g_sm_open_reg, $g_sm_enable_sec, $g_sm_autologin_user,\n\t\t\t$g_sm_autologin_passwd, $g_sm_newuser_access_level,\n\t\t\t$g_sm_default_access_level, $g_sm_access_array,\n\t\t\t$g_sm_debug, $g_sm_supported_languages, $g_sm_newuser_set_password,\n\t\t\t$g_sm_admin_email, $g_sm_admin_name, $g_sm_email_hosts,\n\t\t\t$g_sm_superuser_level, $g_sm_supported_countries;\n\t\t// Set the values\n\t\t$obj->setDebug($g_sm_debug);\n\t\t$obj->setOpenRegistration($g_sm_open_reg);\n\t\t$obj->setAccessArray($g_sm_access_array);\n\t\t$obj->setSupportedLanguages($g_sm_supported_languages);\n\t\t$obj->setSupportedCountries($g_sm_supported_countries);\n\t\t\n\t\t$obj->setAdminEmail($g_sm_admin_email);\n\t\t$obj->setAdminName($g_sm_admin_name);\n\t\t$obj->setEmailHosts($g_sm_email_hosts);\n\t\t\n\t\t$obj->setNewUserAccessLevel($g_sm_newuser_access_level);\n\t\t$obj->setNewUserSetPasswd($g_sm_newuser_set_password);\n\t\t$obj->setSuperUserLevel($g_sm_superuser_level);\n\t\t$obj->setSecureLogin($g_sm_enable_sec);\n\t\tif (!$g_sm_enable_sec) {\n\t\t\t$obj->setAutoLoginUser($g_sm_autologin_user);\n\t\t\t$obj->setAutoLoginPasswd($g_sm_autologin_passwd);\n\t\t}\n\n\t\treturn $obj;\n\t}", "function mergeDefault(Site $site){\n foreach ($site->toArray() as $k=>$v){\n if(!$this->$k){\n $this->$k=$v;\n }\n }\n }", "public static function loadDefaultValues($input = ''){\n\t\t\n $parent = Content::find($input['parent_id']);\n\n if(!@$input['template_id']){\n $parentTemplate = Template::find($parent->template_id);\n\n// dd($parent->template_id);\n if($parentTemplate){\n //since we occasionally want to process a looped back tree (which makes the whole tree \n //invalid, we can't use baum's built in functions to get the first child.\n if($parentTemplate->loopback){\n $parentTemplateChild = Template::find($parentTemplate->loopback);\n }\n else{\n $parentTemplateChild = @$parentTemplate->getImmediateDescendants()->first(); \n } \n $input['template_id'] = @$parentTemplateChild->id; \n \n }\n if(!@$input['template_id']){\n //if it's still nothing we can safely set this to 0;\n $input['template_id'] = null;\n }\n }\n $template = Template::find($input['template_id']);\n\t\t\n\t\t//dd($template->name);\n //TODO: replace with something like this: dd($this->default_fields()->first()->id);\n //$contentDefaultFields = Contentdefaultfield::where('content_type_id', '=', $this->content_type_id)->get();\n \n //plug in the fields we wanted..\n if(!@$input['template_id'])$input['template_id'] = @$template->id;\n if(!@$input['name'])$input['name'] = @$template->name;\n if(!@$input['view'])$input['view'] = @$template->view;\n if(!@$input['identifier'])$input['identifier'] = @$template->identifier;\n\n if(!@$input['package'])$input['package'] = @$template->package;\n\n if(!@$input['edit_view'])$input['edit_view'] = @$template->edit_view;\n if(!@$input['edit_package'])$input['edit_package'] = @$template->edit_package;\n if(!@$input['edit_action'])$input['edit_action'] = @$template->edit_action;\n\n //work out the slug if not manually set\n if(!@$input['slug']){\n $input['slug'] = Content::createSlug($input, $parent);\n }\n\t\t\n\t\t\n //and the user_id (author)\n $input['user_id'] = Auth::user()->id;\n \n //and the application:\n if(!@$input['application_id']){\n $application = Application::getApplication();\n $input['application_id'] = $application->id;\n }\n\t\t\n\t\t//set language\n\t\t\n\t\tif(!@$input['language']){\n $input['language'] = App::getLocale();\n }\n \n\t\t\n \n //and the package if not set\n if(!@$input['package']){\n //set it as parent one..\n $input['package'] = @$parent->package;\n \n //still nothing - set from application\n $application = Application::getApplication();\n if($application->package){\n $input['package'] = $application->package;\n }\n \n //still nothing - we have to set it to default.\n if(!$input['package']){\n //last ditch attempt to put something sensible in here\n $input['package'] = Content::PACKAGE;\n }\n }\n\n\n \n if(!@$input['edit_package']){\n //set it as parent one..\n $input['edit_package'] = @$parent->edit_package;\n \n //still nothing - we have to set it to default.\n if(!$input['edit_package']){\n //last ditch attempt to put something sensible in here\n $input['edit_package'] = Content::PACKAGE;\n }\n }\n\n if(!@$input['edit_view']){\n //set it as parent one..\n $input['edit_view'] = @$parent->edit_view;\n \n //still nothing - we have to set it to default.\n if(!$input['edit_view']){\n //last ditch attempt to put something sensible in here\n $input['edit_view'] = Content::EDIT_VIEW;\n }\n }\n\n if(!@$input['view']){\n $input['view'] = Content::VIEW;\n }\n\t\treturn($input);\n }", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "function case_default()\n{\n return new CaseDefault();\n}", "public function populate($object)\n {\n }", "private function init() {\r\n settype($this->id, \"int\");\r\n settype($this->name, \"string\");\r\n settype($this->max_players, \"int\");\r\n settype($this->is_over_yet, \"boolean\");\r\n settype($this->players, \"array\");\r\n }", "public function setDefaults($defaults = array())\n {\n $content_object = $this->content_object;\n $defaults[ContentObject::PROPERTY_ID] = $content_object->get_id();\n $defaults[ContentObject::PROPERTY_MODIFICATION_DATE] = $content_object->get_modification_date();\n\n if (!$this->workspace instanceof PersonalWorkspace)\n {\n $contentObjectRelationService = new ContentObjectRelationService(new ContentObjectRelationRepository());\n $contentObjectRelation =\n $contentObjectRelationService->getContentObjectRelationForWorkspaceAndContentObject(\n $this->workspace,\n $content_object\n );\n\n if ($contentObjectRelation)\n {\n $defaults[ContentObject::PROPERTY_PARENT_ID] = $contentObjectRelation->getCategoryId();\n }\n }\n\n if (!array_key_exists(ContentObject::PROPERTY_PARENT_ID, $defaults))\n {\n $defaults[ContentObject::PROPERTY_PARENT_ID] = $content_object->get_parent_id();\n }\n\n $defaults[ContentObject::PROPERTY_TEMPLATE_REGISTRATION_ID] = $content_object->get_template_registration_id();\n\n if ($this->form_type == self::TYPE_REPLY)\n {\n $defaults[ContentObject::PROPERTY_TITLE] =\n Translation::get('ReplyShort', null, Utilities::COMMON_LIBRARIES) .\n ' ' . $content_object->get_title();\n }\n else\n {\n $defaults[ContentObject::PROPERTY_TITLE] =\n $defaults[ContentObject::PROPERTY_TITLE] == null ? $content_object->get_title() :\n $defaults[ContentObject::PROPERTY_TITLE];\n $defaults[ContentObject::PROPERTY_DESCRIPTION] = $content_object->get_description();\n }\n\n if ($content_object instanceof ForcedVersionSupport && $this->form_type == self::TYPE_EDIT)\n {\n $defaults['version'] = 1;\n }\n\n parent::setDefaults($defaults);\n }", "protected function _cfield_type_default($cfield, $val)\n {\n\t\treturn (object)[\n\t\t\t'id' => $cfield->id,\n\t\t\t'name' => $cfield->name,\n\t\t\t'code' => $cfield->code,\n\t\t\t'values' => [\n\t\t\t\t(object)['value' => $val]\n\t\t\t]\n\t\t];\n\t}", "public function defaultData();", "function get_metadata_default($meta_type, $object_id, $meta_key, $single = \\false)\n {\n }", "protected function setupObject()\n {\n try {\n $dom = $this->getAttribute(\"domain\");\n if ($dom) {\n $this->getDomain()->copy($this->getTable()->getDatabase()->getDomain($dom));\n } else {\n $type = strtoupper($this->getAttribute(\"type\"));\n if ($type) {\n if ($platform = $this->getPlatform()) {\n $this->getDomain()->copy($this->getPlatform()->getDomainForType($type));\n } else {\n // no platform - probably during tests\n $this->setDomain(new Domain($type));\n }\n } else {\n if ($platform = $this->getPlatform()) {\n $this->getDomain()->copy($this->getPlatform()->getDomainForType(self::DEFAULT_TYPE));\n } else {\n // no platform - probably during tests\n $this->setDomain(new Domain(self::DEFAULT_TYPE));\n }\n }\n }\n\n $this->name = $this->getAttribute(\"name\");\n $this->phpName = $this->getAttribute(\"phpName\");\n $this->phpType = $this->getAttribute(\"phpType\");\n\n if ($this->getAttribute(\"prefix\", null) !== null) {\n $this->namePrefix = $this->getAttribute(\"prefix\");\n } elseif ($this->getTable()->getAttribute('columnPrefix', null) !== null) {\n $this->namePrefix = $this->getTable()->getAttribute('columnPrefix');\n } else {\n $this->namePrefix = '';\n }\n\n // Accessor visibility\n if ($this->getAttribute('accessorVisibility', null) !== null) {\n $this->setAccessorVisibility($this->getAttribute('accessorVisibility'));\n } elseif ($this->getTable()->getAttribute('defaultAccessorVisibility', null) !== null) {\n $this->setAccessorVisibility($this->getTable()->getAttribute('defaultAccessorVisibility'));\n } elseif ($this->getTable()->getDatabase()->getAttribute('defaultAccessorVisibility', null) !== null) {\n $this->setAccessorVisibility($this->getTable()->getDatabase()->getAttribute('defaultAccessorVisibility'));\n } else {\n $this->setAccessorVisibility(self::DEFAULT_VISIBILITY);\n }\n\n // Mutator visibility\n if ($this->getAttribute('mutatorVisibility', null) !== null) {\n $this->setMutatorVisibility($this->getAttribute('mutatorVisibility'));\n } elseif ($this->getTable()->getAttribute('defaultMutatorVisibility', null) !== null) {\n $this->setMutatorVisibility($this->getTable()->getAttribute('defaultMutatorVisibility'));\n } elseif ($this->getTable()->getDatabase()->getAttribute('defaultMutatorVisibility', null) !== null) {\n $this->setMutatorVisibility($this->getTable()->getDatabase()->getAttribute('defaultMutatorVisibility'));\n } else {\n $this->setMutatorVisibility(self::DEFAULT_VISIBILITY);\n }\n\n $this->peerName = $this->getAttribute(\"peerName\");\n\n // retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method\n $this->phpNamingMethod = $this->getAttribute(\"phpNamingMethod\", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());\n\n $this->isPrimaryString = $this->booleanValue($this->getAttribute(\"primaryString\"));\n\n $this->isPrimaryKey = $this->booleanValue($this->getAttribute(\"primaryKey\"));\n\n $this->isNodeKey = $this->booleanValue($this->getAttribute(\"nodeKey\"));\n $this->nodeKeySep = $this->getAttribute(\"nodeKeySep\", \".\");\n\n $this->isNestedSetLeftKey = $this->booleanValue($this->getAttribute(\"nestedSetLeftKey\"));\n $this->isNestedSetRightKey = $this->booleanValue($this->getAttribute(\"nestedSetRightKey\"));\n $this->isTreeScopeKey = $this->booleanValue($this->getAttribute(\"treeScopeKey\"));\n\n $this->isNotNull = ($this->booleanValue($this->getAttribute(\"required\")) || $this->isPrimaryKey); // primary keys are required\n\n //AutoIncrement/Sequences\n $this->isAutoIncrement = $this->booleanValue($this->getAttribute(\"autoIncrement\"));\n $this->isLazyLoad = $this->booleanValue($this->getAttribute(\"lazyLoad\"));\n\n // Add type, size information to associated Domain object\n $this->getDomain()->replaceSqlType($this->getAttribute(\"sqlType\"));\n if (!$this->getAttribute(\"size\") && $this->getDomain()->getType() == 'VARCHAR' && $this->hasPlatform() && !$this->getAttribute(\"sqlType\") && !$this->getPlatform()->supportsVarcharWithoutSize()) {\n $size = 255;\n } else {\n $size = $this->getAttribute(\"size\");\n }\n $this->getDomain()->replaceSize($size);\n $this->getDomain()->replaceScale($this->getAttribute(\"scale\"));\n\n $defval = $this->getAttribute(\"defaultValue\", $this->getAttribute(\"default\"));\n if ($defval !== null && strtolower($defval) !== 'null') {\n $this->getDomain()->setDefaultValue(new ColumnDefaultValue($defval, ColumnDefaultValue::TYPE_VALUE));\n } elseif ($this->getAttribute(\"defaultExpr\") !== null) {\n $this->getDomain()->setDefaultValue(new ColumnDefaultValue($this->getAttribute(\"defaultExpr\"), ColumnDefaultValue::TYPE_EXPR));\n }\n\n if ($this->getAttribute('valueSet', null) !== null) {\n if (version_compare(PHP_VERSION, '5.3.0', '>=')) {\n $valueSet = str_getcsv($this->getAttribute(\"valueSet\"));\n } else {\n // unfortunately, no good fallback for PHP 5.2\n $valueSet = explode(',', $this->getAttribute(\"valueSet\"));\n }\n $valueSet = array_map('trim', $valueSet);\n $this->valueSet = $valueSet;\n } elseif (preg_match('/enum\\((.*?)\\)/i', $this->getAttribute('sqlType', ''), $matches)) {\n if (version_compare(PHP_VERSION, '5.3.0', '>=')) {\n $valueSet = str_getcsv($matches['1'], ',', '\\'');\n } else {\n // unfortunately, no good fallback for PHP 5.2\n $valueSet = array();\n foreach (explode(',', $matches['1']) as $value) {\n $valueSet[] = trim($value, \" '\");\n }\n }\n $this->valueSet = $valueSet;\n }\n\n $this->inheritanceType = $this->getAttribute(\"inheritance\");\n // here we are only checking for 'false', so don't use booleanValue()\n $this->isInheritance = ($this->inheritanceType !== null && $this->inheritanceType !== \"false\");\n\n $this->description = $this->getAttribute(\"description\");\n } catch (Exception $e) {\n throw new EngineException(\"Error setting up column \" . var_export($this->getAttribute(\"name\"), true) . \": \" . $e->getMessage());\n }\n }", "function jobstar_job_type_set_defaults() {\r\n\r\n if ( get_option( 'jobstar_set_default_job_types', false ) ) {\r\n return;\r\n }\r\n $defaults = array(\r\n 'full-time' => '#90da36',\r\n 'part-time' => '#f08d3c',\r\n 'temporary' => '#d93674',\r\n 'freelance' => '#0073aa',\r\n 'internship'=> '#6033cc'\r\n );\r\n $types = get_terms( array(\r\n 'taxonomy' => 'job_listing_type',\r\n 'hide_empty' => false,\r\n 'fields' => 'id=>slug'\r\n ) );\r\n foreach ( $types as $type_id => $type ) {\r\n if ( array_key_exists( $type, $defaults ) ) {\r\n add_term_meta( $type_id, '_color', $defaults[ $type ], true );\r\n }\r\n }\r\n update_option( 'jobstar_set_default_job_types', true );\r\n}", "function set_data($default_values) {\n if (is_object($default_values)) {\n $default_values = (array)$default_values;\n }\n $this->data_preprocessing($default_values);\n parent::set_data($default_values); //never slashed for moodleform_mod\n }", "function newDataObject() {\n\t\t$ofrPlugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);\n\t\t$ofrPlugin->import('classes.ObjectForReviewPerson');\n\t\treturn new ObjectForReviewPerson();\n\t}", "function _set_default_value($object)\n {\n $array = NULL;\n $field = NULL;\n $default_value = NULL;\n // The first argument MUST be an object\n if (!is_object($object)) {\n throw new E_InvalidEntityException();\n }\n // This method has two signatures:\n // 1) _set_default_value($object, $field, $default_value)\n // 2) _set_default_value($object, $array_field, $field, $default_value)\n // Handle #1\n $args = func_get_args();\n if (count($args) == 4) {\n list($object, $array, $field, $default_value) = $args;\n if (!isset($object->{$array})) {\n $object->{$array} = array();\n $object->{$array}[$field] = NULL;\n } else {\n $arr =& $object->{$array};\n if (!isset($arr[$field])) {\n $arr[$field] = NULL;\n }\n }\n $array =& $object->{$array};\n $value =& $array[$field];\n if ($value === '' or is_null($value)) {\n $value = $default_value;\n }\n } else {\n list($object, $field, $default_value) = $args;\n if (!isset($object->{$field})) {\n $object->{$field} = NULL;\n }\n $value = $object->{$field};\n if ($value === '' or is_null($value)) {\n $object->{$field} = $default_value;\n }\n }\n }", "public static function defaults(): TypedCollectionInterface\n {\n if (self::$defaults !== null) {\n return self::$defaults;\n }\n\n self::$defaults = new TypedCollection(\n ExtractionStrategyInterface::class,\n [\n new GetterStrategy,\n new NamedMethodStrategy,\n new ReflectionStrategy,\n ]\n );\n\n return self::$defaults;\n }", "public function getDefault();", "public function testSetDefault() : void\n {\n $reflex = new \\ReflectionClass($this->getTestedInstance());\n $instance = $reflex->newInstanceWithoutConstructor();\n\n $hasDefault = $reflex->getProperty('hasDefault');\n $hasDefault->setAccessible(true);\n\n $default = $reflex->getProperty('default');\n $default->setAccessible(true);\n\n $this->getTestCase()->assertFalse($hasDefault->getValue($instance));\n $this->getTestCase()->assertnull($default->getValue($instance));\n\n $this->getTestCase()->assertSame($instance, $instance->setDefault(null));\n $this->getTestCase()->assertTrue($hasDefault->getValue($instance));\n $this->getTestCase()->assertnull($default->getValue($instance));\n\n $this->getTestCase()->assertSame($instance, $instance->setDefault(new \\stdClass()));\n $this->getTestCase()->assertTrue($hasDefault->getValue($instance));\n $this->getTestCase()->assertInstanceOf(\\stdClass::class, $default->getValue($instance));\n\n $this->getTestCase()->assertSame($instance, $instance->setDefault(true));\n $this->getTestCase()->assertTrue($hasDefault->getValue($instance));\n $this->getTestCase()->assertTrue($default->getValue($instance));\n\n return;\n }", "function object_assign(object $object, Arrayable|iterable $data, bool $overwrite = true): object\n {\n if ($data instanceof Arrayable) {\n $data = $data->toArray();\n }\n\n foreach ($data as $name => $value) {\n data_set($object, $name, $value, $overwrite);\n }\n\n return $object;\n }", "public function makeDefault() {\n $this->update([\n 'color' => null,\n 'size' => null\n ]);\n }", "function initiateType()\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n return $this->InitiateType;\n }", "function set_defaults()\n {\n $mapper = $this->get_mapper();\n if ($mapper->has_method('set_defaults')) {\n $mapper->set_defaults($this);\n }\n }", "static function init()\n\t{\n\n\t\tself::$_metatype = self::create_type(MetaType::class);\n\n\t\tself::$_void = self::create_type(VoidType::class);\n\t\tself::$_none = self::create_type(NoneType::class);\n\t\tself::$_any = self::create_type(AnyType::class);\n\n\t\t// self::$_scalar = self::create_type(ScalarType::class);\n\t\tself::$_string = self::create_type(StringType::class);\n\t\tself::$_float = self::create_type(FloatType::class);\n\t\tself::$_int = self::create_type(IntType::class);\n\t\tself::$_uint = self::create_type(UIntType::class);\n\t\tself::$_bool = self::create_type(BoolType::class);\n\n\t\tself::$_iterable = self::create_type(IterableType::class);\n\t\tself::$_array = self::create_type(ArrayType::class);\n\t\tself::$_dict = self::create_type(DictType::class);\n\n\t\tself::$_xview = self::create_type(XViewType::class);\n\t\tself::$_regex = self::create_type(RegexType::class);\n\n\t\tself::$_callable = self::create_type(CallableType::class);\n\t\tself::$_namespace = self::create_type(NamespaceType::class);\n\t}", "public function fill()\n {\n foreach ($this->fillers as $config) {\n if ($config instanceof FillerInterface) {\n $filler = $config;\n } elseif (is_array($config)) {\n if (!isset($config['class'])) {\n $config['class'] = $this->defaultFillerClass;\n }\n $filler = Yii::createObject($config);\n }\n $filler->fill();\n }\n }", "protected function assignType()\n {\n $this->type = 'master';\n }", "protected function assignType()\n {\n $this->type = 'master';\n }", "protected function defaultTestObject(string $defaultValue = 'foo'): object\n {\n return new #[Set, Immutable] class($defaultValue) {\n use Accessible;\n\n public function __construct(\n protected string $foo\n ) {\n }\n\n public function equals(self $other): bool\n {\n /** @noinspection PhpStrictComparisonWithOperandsOfDifferentTypesInspection */\n return $this === $other;\n }\n\n public function getFooValue(): string\n {\n return $this->foo;\n }\n };\n }", "private function getDefaultValue($obj, $ofType = false){\r\n\t\t$value = null;\r\n\t\t\r\n\t\t$myObj = $ofType === true ? $obj: $obj->data;\r\n\t\t\t\t\r\n\t\tif( is_object($myObj) )\r\n\t\t{\r\n\t\t\t$attr = $this->attr($myObj, 'value', $ofType);\r\n\t\t\t$value = !is_null($attr) ? $attr: (string)$myObj;\r\n\t\t}\r\n\t\treturn $value;\r\n\t}", "public function setDefaultData(array $defaultData);", "public function populateDefaults()\n {\n // Populate Defaults (from parent):\n \n parent::populateDefaults();\n \n // Populate Defaults:\n \n $this->FeedTitle = _t(\n __CLASS__ . '.DEFAULTFEEDTITLE',\n 'Latest News Articles'\n );\n \n $this->FeedDescription = _t(\n __CLASS__ . '.DEFAULTFEEDDESCRIPTION',\n 'The latest news articles from our site.'\n );\n }", "protected function fill()\n {\n array_map(function ($field) {\n $defaultValue = isset($this->defaultFields[$field]['defaultValue']) ?\n $this->defaultFields[$field]['defaultValue'] :\n null;\n\n $this->values[$field] = (new $this->defaultFields[$field]['format']($defaultValue))\n ->setPosition($this->defaultFields[$field]['position'])\n ->setLength($this->defaultFields[$field]['length']);\n }, array_keys($this->defaultFields));\n }", "function CreateDefaultSaleTypeEntity()\n {\n\t\t$result = $this->sendRequest(\"CreateDefaultSaleTypeEntity\", array());\n\t\treturn $this->getResultFromResponse($result);\n }", "private static function createDefault() {\n\t\tswitch (MAIL_SEND_METHOD) {\n\t\t\tcase 'php':\n\t\t\t\trequire_once(WCF_DIR.'lib/data/mail/PHPMailSender.class.php');\n\t\t\t\tself::$defaultMailSender = new PHPMailSender();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'smtp':\n\t\t\t\trequire_once(WCF_DIR.'lib/data/mail/SMTPMailSender.class.php');\n\t\t\t\tself::$defaultMailSender = new SMTPMailSender();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'debug':\n\t\t\t\trequire_once(WCF_DIR.'lib/data/mail/DebugMailSender.class.php');\n\t\t\t\tself::$defaultMailSender = new DebugMailSender();\n\t\t\t\tbreak;\n\t\t}\n\t}", "function setDefaultValues() {}", "public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (is_null($this->$property)) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }", "public function set_default_structure()\n\t{\n\t\t// If they don't exist, we need to create class records for the 'standard' user classes\n\t\t$init_list = array(\n\t\t\t\t\t\tarray('userclass_id' => e_UC_MEMBER, 'userclass_name' => UC_LAN_3,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_75,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_PUBLIC,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_MEMBER\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('userclass_id' => e_UC_ADMINMOD, 'userclass_name' => UC_LAN_8,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_74,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_MEMBER\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('userclass_id' => e_UC_ADMIN, 'userclass_name' => UC_LAN_5,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_76,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_ADMINMOD,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_MEMBER\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('userclass_id' => e_UC_MAINADMIN, 'userclass_name' => UC_LAN_6,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_77,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_NOBODY,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_MEMBER\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('userclass_id' => e_UC_MODS, 'userclass_name' => UC_LAN_7,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_78,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_ADMINMOD,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_MEMBER\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('userclass_id' => e_UC_NEWUSER, 'userclass_name' => UC_LAN_9,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_87,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_MEMBER,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_ADMIN\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('userclass_id' => e_UC_BOT, 'userclass_name' => UC_LAN_10,\n\t\t\t\t\t\t\t'userclass_description' => UCSLAN_88,\n\t\t\t\t\t\t\t'userclass_editclass' => e_UC_MAINADMIN,\n\t\t\t\t\t\t\t'userclass_parent' => e_UC_PUBLIC,\n\t\t\t\t\t\t\t'userclass_visibility' => e_UC_ADMIN\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\tforeach ($init_list as $entry)\n\t\t{\n\t\t\tif ($this->sql_r->db_Select('userclass_classes','*',\"userclass_id='\".$entry['userclass_id'].\"' \"))\n\t\t\t{\n\t\t\t\t$this->sql_r->db_Update('userclass_classes', \"userclass_parent='\".$entry['userclass_parent'].\"', userclass_visibility='\".$entry['userclass_visibility'].\"' WHERE userclass_id='\".$entry['userclass_id'].\"'\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->add_new_class($entry);\n\t\t\t}\n\t\t}\n\t}", "public function __construct( $default_class = self::BASE ) {\n\n\t\t$this->factory = Factory::with_default_class( self::BASE, (string) $default_class );\n\t}", "public function addDefaultEntriesAndValues() {}", "protected function defaultTaxObjects()\n {\n if (null === self::$default_tax_objects) {\n $defaultCountryCode = self::get_default_country_code_combined();\n if ($defaultCountryCode) {\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />There is a current live DEFAULT country code: ' . $defaultCountryCode;\n }\n self::$default_tax_objects = GSTTaxModifierOptions::get()\n ->filter(\n [\n 'CountryCode' => $defaultCountryCode,\n 'DoesNotApplyToAllProducts' => 0,\n ]\n )\n ;\n if (self::$default_tax_objects->exists()) {\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />there are DEFAULT tax objects available for ' . $defaultCountryCode;\n }\n } else {\n self::$default_tax_objects = null;\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />there are no DEFAULT tax object available for ' . $defaultCountryCode;\n }\n }\n } else {\n if ($this->Config()->get('debug')) {\n $this->debugMessage .= '<hr />There is no current live DEFAULT country';\n }\n }\n }\n if (null === self::$default_tax_objects_rate) {\n self::$default_tax_objects_rate = $this->workOutSumRate(self::$default_tax_objects);\n }\n\n return self::$default_tax_objects;\n }", "static function newobj($type /* ... */){\n if(is_null($type)) return;\n\n $ar = func_get_args();\n $type = array_shift($ar); // remove type/object\n \n try{\n // get the asked class\n if(is_string($type)) $cls = defnz(self::$decode_table,$type,'opc_item_' . $type);\n else if (is_object($type)) $cls = get_class($type);\n else throw new Exception('invalid type: ' . strval($type));\n \n // check this class 8exists, implements opi_item\n if(!class_exists($cls)) \n\tthrow new Exception('unknown class: ' . $cls);\n else if(!in_array('opi_item',class_implements($cls)))\n\tthrow new Exception('not able to handle: ' . $cls);\n \n } catch (Exception $ex) {\n trigger_error('error creating a opc_item: ' . $ex->getMessage(),E_USER_WARNING);\n return NULL;\n }\n \n // crate and call init with the other arguments\n $res = new $cls();\n call_user_func_array(array(&$res,'init'),$ar);\n return $res;\n }", "public function fill($defaultOrder=\"\", $defaultOrderType=\"\"){\n\t\t$this->fillEntity( $this->getCriteria() );\n\t\t\n\t\t//le agregramos el order y la paginación.\n\t\t$orderBy = RastyUtils::getParamPOST(\"orderBy\", $defaultOrder);\n\t\t$orderByType = RastyUtils::getParamPOST(\"orderByType\", $defaultOrderType);\n\t\tif(!empty($orderBy))\n\t\t\t$this->getCriteria()->addOrder($orderBy, $orderByType);\n\t\t\n\t\t$page = RastyUtils::getParamPOST(\"page\");\n\t\t$this->getCriteria()->setPage($page);\n\t\t\n\t}", "protected function setupResultObject()\n {\n $browserData = $this->detectByType();\n foreach ($browserData as $key => $value) {\n if ($key === 'originalInfo') {\n $this->setAttributes($value);\n continue;\n }\n Tools::runSetter($this->resultObject, $key, $value);\n }\n $this->additionalInfo = $browserData;\n }", "public function testWithDefaultConfiguration()\n {\n $client = $this->createClient(['test_case' => 'Serializer']);\n $container = $client->getContainer();\n\n $defaultConfigPersister = $container->get('fazland_elastica.object_persister.index.serializer_default_config');\n\n $object = new TypeObj();\n $object->id = 1;\n $object->field2 = 'FooBar';\n $object->field3 = null;\n $defaultConfigPersister->insertOne($object);\n\n // Tests that attributes with null values are not persisted into an Elasticsearch type without the serialize_null option\n $disabledNullType = $container->get('fazland_elastica.index.index.serializer_default_config');\n $documentData = $disabledNullType->getDocument(1)->getData();\n $this->assertArrayHasKey('field2', $documentData);\n $this->assertEquals($documentData['field2'], 'FooBar');\n $this->assertArrayHasKey('field3', $documentData);\n $this->assertEquals($documentData['field3'], null);\n }", "function __construct($defaultProperties = array ())\r\n {\r\n $this->defaultProperties = $defaultProperties;\r\n }", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "protected function initializeObject() {}", "protected function initStorageObjects() {\n\t\t$this->category = new ObjectStorage();\n\t}", "static function returnStdObject(&$var){\n\t\t// check if $var is already a standard object\n\t\tif(self::isInstanceOf($var, 'Webiny\\Component\\StdLib\\StdObject\\StdObjectAbstract')){\n\t\t\treturn $var;\n\t\t}\n\n\t\t// try to map $var to a standard object\n\t\tif(self::isString($var)){\n\t\t\treturn new StringObject($var);\n\t\t}else if(self::isArray($var)){\n\t\t\treturn new ArrayObject($var);\n\t\t}\n\n\t\t// return value as StdObjectWrapper\n\t\treturn new self($var);\n\t}", "function & getFieldRef (&$data, $key, $default = null, $createObj = false)\n{\n if (is_object ($data)) {\n if (!property_exists ($data, $key))\n $data->$key = $createObj ? new StdClass : $default;\n return $data->$key;\n }\n if (is_array ($data)) {\n if (!array_key_exists ($key, $data))\n $data[$key] = $default;\n return $data[$key];\n }\n throw new InvalidArgumentException (\"Not an object or array\");\n}", "protected function newModelInstance()\n {\n return resolve(Arr::get(self::DOCUMENT_TYPES, $this->type));\n }", "public static function createDefault()\n {\n return self::create(null);\n }", "private function setDefaults()\n {\n /** @var Property $property */\n foreach($this->properties as $name => $property)\n {\n $property->applyDefault();\n }\n }", "protected function initStorageObjects()\n {\n $this->multipleTimes = new ObjectStorage();\n $this->differentTimes = new ObjectStorage();\n $this->exceptions = new ObjectStorage();\n $this->categories = new ObjectStorage();\n $this->days = new ObjectStorage();\n $this->images = new ObjectStorage();\n $this->downloadLinks = new ObjectStorage();\n }", "private function convertLdapObjectToModel($dataObject, $type = '', array $overrideKeys = [])\n {\n $dataArray = ($dataObject !== null) ? $dataObject->toArray() : [];\n $remappedArray = [];\n\n foreach ($dataArray as $key => $value) {\n if ($key && $key !== 'objectclass') {\n if (array_key_exists($key, $overrideKeys)) {\n $newKey = $overrideKeys[$key];\n } else {\n $newKey = preg_replace('/^libeo/', '', $key);\n $newKey = preg_replace('/^'.$type.'/', '', $newKey);\n }\n if (is_array($value) && count($value) === 1) {\n $value = $value[0];\n }\n $remappedArray[$newKey] = $value;\n }\n }\n \n return new GenericData($remappedArray);\n }", "public function initializeDefaults()\n {\n }", "function feed_group_defaults($feed_group = NULL) {\r\n $feed_group = (object) $feed_group;\r\n \r\n if (!isset($feed_group->name)) $feed_group->name = '';\r\n if (!isset($feed_group->description)) $feed_group->description = '';\r\n \r\n return $feed_group;\r\n}", "public static function static_init(){\n\t\tself::$object_class = new ClassType(\n\t\t\tnew FullyQualifiedName(\"object\", FALSE),\n\t\t\tWhere::getSomewhere());\n\t}", "protected function get_default_item_props() {\n\t\treturn (object) array(\n\t\t\t'object' => null,\n\t\t\t'tax_class' => '',\n\t\t\t'taxable' => false,\n\t\t\t'quantity' => 0,\n\t\t\t'product' => false,\n\t\t\t'price_includes_tax' => false,\n\t\t\t'subtotal' => 0,\n\t\t\t'subtotal_tax' => 0,\n\t\t\t'total' => 0,\n\t\t\t'total_tax' => 0,\n\t\t\t'taxes' => array(),\n\t\t);\n\t}", "public function setdefaultvalues(array $data,$type) \n {\n\n $defualtjsoncontent = json_decode(Storage::disk('local')->get('constants/defaultjson.json'), true);\n \n \n // $defualtjsoncontent->Header->style->language=$type;\n // if($type=\"en\"){\n // $defualtjsoncontent->Header->style->flxdir=\"row\";\n // $defualtjsoncontent->Header->style->direction=\"left\";\n // }else if($type=\"ar\"){\n // $defualtjsoncontent->Header->style->flxdir=\"row-reverse\";\n // $defualtjsoncontent->Header->style->direction=\"right\";\n // }\n \n\n \n $data['sitejson']=$defualtjsoncontent;\n $data['name']=$data['siteurl'];\n $data['enid']=null;\n $data['arid']=null;\n $data['about']=null;\n $data['web']=null;\n $data['email']=null;\n $data['address']=null;\n $data['telephone']=null;\n $data['telephone1']=null;\n $data['orders']='{}';\n $data['reservations']='{}';\n $data['status']=null;\n\n return $data;\n }", "function get_partial_options($options = array(), $defaults = array()) {\n\treturn (object) array_merge($defaults, $options);\n}", "function initializeObjectAttribute( $contentObjectAttribute, $currentVersion, $originalContentObjectAttribute )\n {\n if ( $currentVersion != false )\n {\n $obj = $contentObjectAttribute->attribute( 'object' );\n $dataInt = $obj->attribute( 'published' );\n $contentObjectAttribute->setAttribute( \"data_int\", $dataInt );\n }\n else\n {\n $contentClassAttribute =& $contentObjectAttribute->contentClassAttribute();\n $defaultType = $contentClassAttribute->attribute( self::DEFAULT_FIELD );\n if ( $defaultType == self::DEFAULT_CURRENT_DATE )\n {\n $contentObjectAttribute->setAttribute( \"data_int\", mktime() );\n }\n else if ( $defaultType == self::DEFAULT_ADJUSTMENT )\n {\n $adjustments = eZDateTimeType::classAttributeContent( $contentClassAttribute );\n $value = new eZDateTime();\n $value->adjustDateTime( $adjustments['hour'], $adjustments['minute'], 0, $adjustments['month'], $adjustments['day'], $adjustments['year'] );\n $contentObjectAttribute->setAttribute( \"data_int\", $value->timeStamp() );\n }\n }\n }", "function setDefaults($defaults = array ())\r\n {\r\n $course_type_user_category_rel_course = $this->course_type_user_category_rel_course;\r\n\r\n $course = WeblcmsDataManager :: get_instance()->retrieve_course($course_type_user_category_rel_course->get_course_id());\r\n\r\n $defaults[Course :: PROPERTY_ID] = $course->get_name();\r\n $defaults[CourseTypeUserCategoryRelCourse :: PROPERTY_COURSE_TYPE_USER_CATEGORY_ID] = $course_type_user_category_rel_course->get_course_type_user_category_id();\r\n\r\n parent :: setDefaults($defaults);\r\n }", "public function testDefaultClass()\r\n {\r\n $u = new XML_Unserializer();\r\n $u->setOption(XML_UNSERIALIZER_OPTION_COMPLEXTYPE, 'object');\r\n $u->setOption(XML_UNSERIALIZER_OPTION_DEFAULT_CLASS, 'Foo');\r\n $xml = '<xml><foo>bar</foo></xml>';\r\n $u->unserialize($xml);\r\n $result = new Foo();\r\n $result->foo = 'bar';\r\n $this->assertEquals($result, $u->getUnserializedData());\r\n }", "public function merge(EGmap3ObjectBase $object)\n\t{\n\t\tforeach ($object as $k => $v) {\n\t\t\tif ($v !== null) {\n\t\t\t\t$this->$k = $v;\n\t\t\t}\n\t\t}\n\t}", "public function populate($object)\n {\n $this->_settable = $this->_settable || $this->isAccessor($object, 'set');\n $this->_gettable = $this->_gettable || $this->isAccessor($object, 'get');\n $this->setTypeAndComment($object);\n\n if (method_exists($object, 'behaviors'))\n {\n foreach ($object->behaviors() as $id => $data)\n {\n $this->populate($object->asa($id));\n }\n }\n }", "private function setTypes(string $rawType): void\n {\n $this->phpType = $this->getNormalizedType($rawType);\n\n // if we're not working with an object, set the raw type to\n // the core php type so we can make sure it's normalized\n if (!$this->isObject()) {\n $this->rawType = $this->phpType;\n\n // if there aren't any generics, overwrite full type as well\n if ($this->getGenerics() === []) {\n $this->fullTypeString = $this->rawType;\n }\n return;\n }\n\n // use \\stdClass as the class name for generic objects\n $this->rawType = self::OBJECT === $rawType ? stdClass::class : $rawType;\n\n // if we're dealing with a real class, get parents and interfaces so\n // it's easy to check if the type is an instance of another\n if (\\class_exists($rawType)) {\n $this->parents = \\array_merge(\\class_parents($this->rawType), \\class_implements($this->rawType));\n }\n }", "function appendDefaultValuesToItem(&$item) {\n // Get parent\n $itemFactory = new Docman_ItemFactory();\n $parentItem = $itemFactory->getItemFromDb($item->getParentId());\n $this->appendItemMetadataList($parentItem);\n\n // Get inheritables metadata\n $inheritableMdla = $this->getInheritableMdLabelArray();\n\n $this->appliesItem1MetadataToItem2($parentItem, $item, $inheritableMdla);\n }", "public function fillupDefault()\n {\n\n foreach (static::$cols as $key => $col) {\n if ('' != $col[self::COL_DEFAULT]) {\n $this->data[$key] = $col[self::COL_DEFAULT];\n }\n }\n\n }" ]
[ "0.59270644", "0.5822597", "0.5699518", "0.5554423", "0.55190855", "0.5493805", "0.54765004", "0.5433351", "0.53954035", "0.5382271", "0.5327865", "0.5207133", "0.51811445", "0.51322377", "0.5131358", "0.5114984", "0.51068914", "0.50865686", "0.5067863", "0.50669926", "0.506489", "0.5059191", "0.50567716", "0.50484", "0.5027153", "0.50188047", "0.4993357", "0.49774706", "0.49762627", "0.49665508", "0.49500895", "0.49457476", "0.49457476", "0.49457476", "0.49444196", "0.49426937", "0.49356407", "0.4905109", "0.48982143", "0.48959157", "0.48887554", "0.48738185", "0.4868273", "0.48528758", "0.48510963", "0.4850703", "0.48487923", "0.48427677", "0.48232517", "0.48215076", "0.48196256", "0.48136804", "0.48102906", "0.48083353", "0.4802357", "0.4799082", "0.4799082", "0.47941968", "0.47879142", "0.47608012", "0.47491264", "0.474303", "0.4731584", "0.4727517", "0.47226316", "0.472101", "0.4709415", "0.4705995", "0.470066", "0.46988878", "0.46859324", "0.46823776", "0.4678953", "0.46719587", "0.46637136", "0.466", "0.466", "0.466", "0.46543378", "0.4642978", "0.46424702", "0.4637862", "0.46324855", "0.46317524", "0.46311262", "0.46286047", "0.46255752", "0.46226066", "0.4618203", "0.461554", "0.4613732", "0.46104375", "0.46019816", "0.4601236", "0.4599878", "0.45968387", "0.4596772", "0.45960873", "0.45864153", "0.45821032", "0.4581129" ]
0.0
-1
Returns the number of rows matching criteria, joining the related User table
public static function doCountJoinUser(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) { // we're going to modify criteria, so copy it first $criteria = clone $criteria; // We need to set the primary table name, since in the case that there are no WHERE columns // it will be impossible for the BasePeer::createSelectSql() method to determine which // tables go into the FROM clause. $criteria->setPrimaryTableName(CastleTypePeer::TABLE_NAME); if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { $criteria->setDistinct(); } if (!$criteria->hasSelectClause()) { CastleTypePeer::addSelectColumns($criteria); } $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count // Set the correct dbName $criteria->setDbName(CastleTypePeer::DATABASE_NAME); if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_READ); } $criteria->addJoin(CastleTypePeer::USER_ID, UserPeer::ID, $join_behavior); $stmt = BasePeer::doCount($criteria, $con); if ($row = $stmt->fetch(PDO::FETCH_NUM)) { $count = (int) $row[0]; } else { $count = 0; // no rows returned; we infer that means 0 matches. } $stmt->closeCursor(); return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUsersCount() {\n $company_id = $this->getId(); \n \treturn Users::count(\"company_id LIKE $company_id\");\n }", "public function getAllJoinLvUserCount()\n {\n $sql = \"SELECT COUNT(1) FROM casino_user_point \";\n return $this->_rdb->fetchOne($sql);\n }", "public function getUsersCount()\n {\n return count($this->userRepo->findAll());\n }", "public function countUsers()\n\t{\n \treturn $this\n \t->createQueryBuilder('u')\n \t->select('COUNT(u)')\n \t->getQuery()->getSingleScalarResult();\n\t}", "function get_numusers() {\n global $CFG;\n\n $countsql = \"SELECT COUNT(DISTINCT u.id)\n FROM {$CFG->prefix}grade_grades g RIGHT OUTER JOIN\n {$CFG->prefix}user u ON u.id = g.userid\n LEFT JOIN {$CFG->prefix}role_assignments ra ON u.id = ra.userid\n $this->groupsql\n WHERE ra.roleid in ($this->gradebookroles)\n $this->groupwheresql\n AND ra.contextid \".get_related_contexts_string($this->context);\n return count_records_sql($countsql);\n }", "function manage_other_users_tbl_count() {\n $this->db->select(\"users.*\");\n $this->db->where(\"(users_groups.group_id != '1')\");//users_groups.group_id = '2' AND \n\n $this->db->join('users_groups', 'users_groups.user_id = users.id', 'LEFT');\n $this->db->join('groups', 'groups.id = users_groups.group_id', 'LEFT');\n\n $this->db->from('users');\n $queryOrg = $this->db->get();\n $rowcount = $queryOrg->num_rows();\n return $rowcount;\n }", "public function getCountUser()\n {\n return $this->users_model->countAll();\n }", "public function getUsersCount()\n {\n return $this->manager->createQuery('SELECT COUNT(u) FROM App\\Entity\\User u')->getSingleScalarResult();\n }", "function getUserCount()\r\n {\r\n $db = JFusionFactory::getDatabase($this->getJname());\r\n $query = 'SELECT count(*) from #__'.$this->getTablename();\r\n $db->setQuery($query );\r\n\r\n //getting the results\r\n return $db->loadResult();\r\n }", "public function countBy($criteria);", "public function totalPotentialUsers()\n {\n return $this->users()->count() + $this->invitations()->count();\n }", "function count(User $user) {\n $project_users_table = TABLE_PREFIX . 'project_users';\n $users_table = TABLE_PREFIX . 'users';\n return (integer) DB::executeFirstCell(\"SELECT COUNT(user_id) FROM $project_users_table, $users_table WHERE $project_users_table.project_id = ? AND ($project_users_table.user_id = $users_table.id AND $users_table.state >= ?)\", $this->object->getId(), STATE_VISIBLE);\n }", "public function honeyCount()\n {\n return DB::table('userlink')\n ->where('user1', $this->id)\n ->orwhere('user2', $this->id)\n ->count();\n }", "public function numUsers(){\n $query = \"SELECT count(*) FROM final_usuario\";\n return $this->con->action($query);\n }", "public function count_portfolio_possible_view_users($condition);", "public function count()\n {\n return $this->db->count_all('us_user');\n }", "public function getUserIdCount()\n {\n return $this->count(self::_USER_ID);\n }", "function getALlUserCount()\n {\n return $this->db->count_all_results('users');\n }", "function countUsers(){\n return $this->db->count_all('user');\n \t}", "function getTotalUsers()\n {\n global $database;\n\n $sql = \"SELECT * FROM \" . TBL_USERS;\n\n // get the sql results\n if (!$results = $database->getQueryResults($sql)) {\n return false;\n }\n\n return $database->getQueryNumRows($results, true);\n }", "public function getUsersCount()\n {\n return $this->count(self::_USERS);\n }", "public function getCount()\n {\n return $this->appUser->count();\n }", "public function getNumberOfUsers()\n {\n $query = \"SELECT * FROM `users`\";\n $db = new DB();\n $result = $db->prepare($query);\n $result->execute();\n $data = $result->rowCount();\n return $data;\n }", "public function user_count() {\r\n\t\tif (is_array($this->users))\r\n\t\t\treturn sizeof($this->users);\r\n\t\t$this->users = [];\r\n\t\treturn 0;\r\n\t}", "function getCount() {\n\t\t$where = (sizeof($this->wheres) > 0) ? ' WHERE '.implode(\" \\n AND \\n\\t\", $this->wheres) : '';\n\t\t$group = (sizeof($this->groups) > 0) ? ' GROUP BY '.implode(\", \", $this->groups) : '' ;\n\t\t$query = \"SELECT count(*) FROM \\n\\t\".$this->class->table.\"\\n \".implode(\"\\n \", $this->joins).$where.' '.$group.' ';\n\n\t\t$count =self::$global['dbCon']->fetchRow($query,MYSQLI_NUM);\n\t\treturn $count[0];\n\n\t}", "private function getCountFilteredResults()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('count(distinct ' . $this->tableName . '.' . $this->rootEntityIdentifier . ')');\n $qb->from($this->metadata->getName(), $this->tableName);\n\n $this->setLeftJoin($qb);\n $this->setWhere($qb);\n $this->setWhereCallbacks($qb);\n\n return (int) $qb->getQuery()->getSingleScalarResult();\n }", "function getMembersCount(){\n $this->db->select('*');\n $this->db->from('users'); \n $query = $this->db->get();\n\n return $query->num_rows();\n }", "public function count()\n {\n return count($this->_joins);\n }", "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM grupo_usuario_tabelas '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "function countUsers(){\n\t\n\t}", "private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }", "function calcNumActiveUsers(){\r\n\t /* Calculate number of USERS at site */\r\n\t $sql = $this->connection->query(\"SELECT * FROM \".TBL_ACTIVE_USERS);\r\n\t $this->num_active_users = $sql->rowCount();\r\n }", "public function getCountWithOwnerQuery() {\n \n return $this->createQueryBuilder('n')\n ->select('n.id')->distinct()\n ->join('n.user', 'o')\n ->join('o.user_regular', 'ru')\n ->join('ru.gallery', 'og')\n ->leftJoin('og.images', 'ogi')\n ->join('n.gallery', 'ng')\n ->leftJoin('ng.images', 'ngi')\n ->leftJoin('n.values', 'v')\n ->leftJoin('v.property', 'p')\n ->join('n.location', 'l')\n ->where('n.draft = false');\n }", "public function userCount()\n {\n return User::count();\n }", "function TotalEmployee() {\n global $mysqli, $db_table_prefix;\n $stmt = $mysqli->prepare(\"SELECT \n\t\t\" . $db_table_prefix . \"users.id, \" . $db_table_prefix . \"user_permission_matches.permission_id\n\t\tFROM \" . $db_table_prefix . \"users LEFT JOIN \" . $db_table_prefix . \"user_permission_matches ON \n\t\t\" . $db_table_prefix . \"users.id = \" . $db_table_prefix . \"user_permission_matches.user_id where \" . $db_table_prefix . \"user_permission_matches.permission_id = '1'\");\n $stmt->execute();\n $stmt->store_result();\n $num_returns = $stmt->num_rows;\n $stmt->close();\n\n return $num_returns;\n}", "public function countUsers() {\n require('database.php');\n if ($result = $mysqli->query('SELECT Count(Distinct id) as count\n FROM users')) {\n while ($row = $result->fetch_assoc()) {\n echo $row['count'];\n }\n }\n }", "function getNumUsers($classId){\r\n $this->db->select('s.id');\r\n $this->db->from('subscription s');\r\n $this->db->where('s.subscriptionClass', $classId);\r\n $this->db->where('subscriptionStartDate <= CURRENT_DATE()');\r\n $this->db->where('subscriptionEndDate >= CURRENT_DATE()');\r\n return $this->db->count_all_results();\r\n }", "public function getNumberOfAddedRows() {\n\t\treturn $this->usercount;\n\t}", "public function getNbUsers(){\r\n $nb = 0 ;\r\n $q = \"select count(*) as nb from UserTab \";\r\n $res = execute($q) ;\r\n $l = mysql_fetch_assoc($res);\r\n $nb = $l['nb'];\r\n \r\n return $nb ;\r\n\r\n }", "public function countAll(){\n\t // query to select all user records\n\t $query = \"SELECT id FROM \" . $this->table_name . \"\";\n\t // prepare query statement\n\t $stmt = $this->conn->prepare($query);\n\t // execute query\n\t $stmt->execute();\n\t // get number of rows\n\t $num = $stmt->rowCount();\n\t // return row count\n\t return $num;\n\t}", "public function requestCount()\n {\n return DB::table('userlinkrequests')\n ->where('them', $this->id)\n ->count();\n }", "function getUsersCount()\n\t\t{\n\t\t\tglobal $CFG;\n\t\t\tglobal $objSmarty;\n\t\t\t$sql_qry = \"SELECT count(user_id) as user_count FROM \".$CFG['table']['register'].\"\";\n\t\t \t$res_qry = $this->ExecuteQuery($sql_qry,'select');\n\t\t \treturn $res_qry[0]['user_count'];\n\t\t}", "public function getCountUsers(){\n $connect = ConnectionManager::get('default');\n $fila = $connect->execute(\"select count(*) from Usuarios;\")->fetchAll();\n return $fila[0];\n }", "public function count_guestusers(){\n\n\t\t\t$sql9=\"SELECT user_id from guest_users\";\n\n\t\t\t//checking if the username is available in the table\n \t$result9 = mysqli_query($this->db,$sql9);\n \techo $count_row = $result9->num_rows;\n \n \t}", "public function count() {\n $s = $this->buildSelect(true, null, false, false);\n return $s->numRows();\n }", "public function getCount($condition = [])\n {\n if ($condition instanceof Where) {\n $where = $condition;\n } else {\n $data = $this->canonizeUser($condition);\n if (!isset($data['active'])) {\n $data['active'] = 1;\n }\n $where = $data;\n }\n\n $modelAccount = Pi::model('user_account');\n /*\n $select = $modelAccount->select()->where($where)\n ->columns(array(\n 'count' => Pi::db()->expression('COUNT(*)')\n ));\n $row = $modelAccount->selectWith($select)->current();\n $count = (int) $row['count'];\n */\n $count = $modelAccount->count($where);\n\n return $count;\n }", "public static function user_count() {\n $ret = 0;\n $database = new \\ZGZagua\\common\\database();\n\n $sql = \"SELECT count(id) contador FROM users WHERE 1\";\n\n $resultado = $database->query( $sql );\n\n if ( $row = mysqli_fetch_array( $resultado ) ) {\n $ret = $row[ 'contador' ];\n }\n\n return max( $ret, 100 );\n }", "public function count() {\n $this->_active_query->fields($this->func()->count());\n $query = $this->query( $this->_active_query->getQuery(), $this->_active_query->getParams() );\n return (int)$query->rowCount();\n }", "function countMembers() {\n\t\t$result = $this->MySQL->query(\"SELECT * FROM \".$this->MySQL->get_tablePrefix().\"members WHERE \".$this->strTableKey.\" = '\".$this->intTableKeyValue.\"'\");\n\t\t$num_rows = $result->num_rows;\n\t\t\n\t\t\n\t\treturn $num_rows;\n\t}", "function getTotalMentorsCount($condition='')\n{\n\tglobal $DB;\n\t$sql =\"SELECT u.id,u.firstname,u.lastname,u.email,u.city,u.picture,u.department FROM {user} u left join (select * from {user_info_data} ud where data='mentor data') ud on ud.userid=u.id where u.deleted=0 and u.msn=4 $condition\";\n\t$result = $DB->get_records_sql($sql);\n\t$count=0;\n\tif(count($result)>0)\n\t\t$count = count($result);\n\treturn $count;\n}", "function userListingCount($searchText = '')\n {\n $this->db->select('BaseTbl.userId, BaseTbl.email, BaseTbl.name, BaseTbl.mobile, Role.role');\n $this->db->from('tbl_users as BaseTbl');\n $this->db->join('tbl_roles as Role', 'Role.roleId = BaseTbl.roleId','left');\n if(!empty($searchText)) {\n $likeCriteria = \"(BaseTbl.email LIKE '%\".$searchText.\"%'\n OR BaseTbl.name LIKE '%\".$searchText.\"%'\n OR BaseTbl.mobile LIKE '%\".$searchText.\"%')\";\n $this->db->where($likeCriteria);\n }\n $this->db->where('BaseTbl.isDeleted', 0);\n $this->db->where('BaseTbl.roleId !=', 1);\n $query = $this->db->get();\n \n return $query->num_rows();\n }", "public function getNumberOfRows(){\r\n $this->setTable('subscribed');\r\n $table = $this->getTable();\r\n\r\n $sql = \"SELECT * FROM \" . $table;\r\n $stmt = $this->fetch()->query($sql);\r\n return $stmt->rowCount();\r\n }", "public static function totalAttempts($user)\n {\n return count(parent::find(array(\n \"conditions\" => \"loginAttemptUserID = ?1\",\n \"bind\" => array(1 => $user->getUserID())\n )));\n }", "function getTotalSchoolCount($condition='')\n{\n\tglobal $DB;\n\t$sql =\"SELECT ms.*,mus.userid,mus.schoolid,mu.firstname,mu.lastname FROM {school} ms left join (select * from {user_school} where role='incharge') mus \";\n\t$sql.=\" on mus.schoolid=ms.id left join {user} mu on mu.id=mus.userid WHERE ms.activestatus=1 and mu.deleted=0 $condition\";\n\t$result = $DB->get_records_sql($sql);\n\t$count=0;\n\tif(count($result)>0)\n\t\t$count = count($result);\n\treturn $count;\n}", "public function count()\n {\n $constrainedBuilder = clone $this->query;\n\n $constrainedBuilder = $constrainedBuilder->distinct();\n\n return $constrainedBuilder->count($this->relatedPivotKey);\n }", "public function countTotalPlayers()\n {\n $sql = \"SELECT count(*) FROM `users`\";\n $result = $this->pdo->prepare($sql);\n $result->execute();\n // store the number of rows in a variable\n $number_of_rows = $result->fetchColumn(); \n return $number_of_rows;\n }", "function get_all_users_count()\n {\n $this->db->from('users');\n return $this->db->count_all_results();\n }", "function get_all_users_count()\n {\n $this->db->from('users');\n return $this->db->count_all_results();\n }", "public function num_rows() {\n\t\t\t$id = $this->session->userdata('id'); //get user id fromm session \n\t\t\t$result = $this->db->select()\n\t\t\t\t\t\t\t\t->from('articles')\n\t\t\t\t\t\t\t\t->where(['user_id' => $id])\n\t\t\t\t\t\t\t\t->get();\n\t\t\treturn $result->num_rows();\n\n\t\t}", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "public function getCount() {\n return $this->db->fetchColumn(\"SELECT COUNT(id) FROM $this->table\");\n }", "public function count()\n {\n return $this->onlineUsers->count();\n }", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "public function getUsersCountAttribute()\n {\n if ( ! array_key_exists('usersCount', $this->relations)) $this->load('usersCount');\n\n $related = $this->getRelation('usersCount')->first();\n\n return ($related) ? $related->aggregate : 0;\n }", "public function getUserListCount()\n {\n $sql = 'SELECT count(*) FROM admin_user';\n return $this->_rdb->fetchOne($sql);\n }", "public function count(){\n\t\t\t$query = \"SELECT COUNT(*) as total_rows \n\t\t\tFROM\n\t\t\t\tStudent st, Faculty f, Studies ss\n\t\t\tWHERE st.stds = ss.id_stds\n\t\t\tAND ss.fac = f.id_fac\";\n\t\t\n\t\t\t$stmt = $this->conn->prepare( $query );\n\t\t\t$stmt->execute();\n\t\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t\treturn $row['total_rows'];\n\t\t}", "public function countWithUserAccessLevel($accessLevel)\n {\n $queryBuilder = $this->createQueryBuilder('r');\n $queryBuilder\n ->innerJoin('r.user', 'u', 'WITH', 'u.accessLevel >= :accessLevel')\n ->setParameter('accessLevel',$accessLevel);\n\n return $queryBuilder\n ->getQuery()\n ->getScalarResult()\n ;\n }", "function User_Count()\n\t{\n\t\t$R=j::SQL(\"SELECT COUNT(*) AS Result FROM jfp_xuser AS XU\");\n\t\tif ($R)\n\t\t\treturn $R[0]['Result'];\n\t\telse \n\t\t\treturn 0;\n\t}", "public function count()\n {\n return $this->model->paginate(1, $this->select)->total();\n }", "function count_all_users($option = '')\r\n {\r\n \tif ($option == 'disabled')\r\n \t\t$this->db->where('disabled !=', '0');\r\n \telseif ($option == 'active')\r\n \t\t$this->db->where('disabled', '0');\r\n\r\n $query = $this->db->get('users');\r\n return $query->num_rows();\r\n }", "public function countLoggedUsers() {\n\n\t\treturn BaseQuery::create(\"User\")\n\t\t\t->filterBySession(null, Criteria::ISNOTNULL)\n\t\t\t->count();\n\n\t}", "public function count(): int\n {\n $query = clone $this;\n $table = current($this->from);\n return $query->select(\"(COUNT($table.id))\")->execute()->fetchColumn();\n }", "function getNumOwnerResidents() {\r\n\t\t\" add_state, add_zip, add_country, u_type, u_priv, phone FROM user ORDER BY name\";\r\n\t\t\r\n\t\t$query = \"SELECT rowID FROM user WHERE u_type=2 AND u_priv != 6\";\r\n\r\n\t\t$this->mysqldb->query($query);\r\n\r\n\t\treturn($this->mysqldb->numRows());\r\n\t}", "public function getUserCountAttribute()\n\t\t{\n\t\t if ( ! array_key_exists('userCount', $this->relations)) \n\t\t\t$this->load('userCount');\n\t\t \n\t\t $related = $this->getRelation('userCount');\n\t\t \n\t\t // then return the count directly\n\t\t return ($related) ? (int) $related->aggregate : 0;\n\t\t}", "function count()\r\n\t{\r\n\t\t// Check if related object\r\n\t\tif ( ! empty($this->parent))\r\n\t\t{\r\n\t\t\t// Prepare model\r\n\t\t\t$model = ucfirst($this->parent['model']);\r\n\t\t\t$object = new $model();\r\n\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$this->db->where($this->parent['model'] . '_id', $this->parent['id']);\r\n\t\t\t$this->db->from($relationship_table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t}", "public function getMembersFeaturedCount()\n {\n $select = $this->getTable()->select();\n $select->setIntegrityCheck(false)\n ->from(array('u' => 'job_user'), array('total_rows' => 'COUNT(u.user_id)'))\n ->where('u.is_premium = ?', 1);\n $row = $this->getTable()->fetchRow($select);\n \n return $row['total_rows'];\n }", "public function getTotalUsers() {\n\t\t//mvds\n\t\t$sql = \"SELECT COUNT(*) AS total FROM `\" . DB_PREFIX . \"user`\";\n\t\tif (isset($this->request->get['filter_status']) && !is_null($this->request->get['filter_status'])) {\n\t\t\t$sql .= \" WHERE status = '\" . (int)$this->request->get['filter_status'] . \"'\";\n\t\t}\n\t\t$query = $this->db->query($sql);\n\t\t//mvde\n\t\treturn $query->row['total'];\n\t}", "public abstract function row_count();", "public function memberUserCounts($query)\n {\n return $query->join('roles', function ($join) {\n $join->on('role_users.role_id', 'roles.id');\n });\n }", "public function count() {\r\n\t\t//$src = Dbi_Source::GetModelSource($this);\r\n\t\t//return count($src->select($this->query()));\r\n\t\treturn count($this->source->select($this));\r\n\t}", "function count_filtered()\n {\n $this->_get_datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "function pull_member_cnt() {\n $query = $this->db->get('members_tbl');\n return $query->num_rows();\n }", "public function concurrentUserCount()\n {\n $sql = \"SELECT COUNT(*) FROM (\n SELECT COUNT(*),user_id FROM license_his_user_log \n WHERE login_status = 'S' AND logout_status IS NULL\n GROUP BY user_id HAVING COUNT(*) >= 1) license_table\";\n\n $count = Yii::app()->db->createCommand($sql)->queryScalar();\n return $count;\n }", "public function getMembersDefaultCount()\n {\n $select = $this->getTable()->select();\n $select->setIntegrityCheck(false)\n ->from(array('u' => 'job_user'), array('total_rows' => 'COUNT(u.user_id)'))\n ->where('u.is_premium != ?', 1);\n $row = $this->getTable()->fetchRow($select);\n \n return $row['total_rows'];\n }", "public function getCountBy()\n {\n return $this->hasOne(User::className(), ['id' => 'count_by']);\n }", "function calcNumActiveUsers(){\r\n /* Calculate number of users at site */\r\n $q = \"SELECT * FROM \".TBL_ACTIVE_USERS;\r\n $result = mysql_query($q, $this->connection);\r\n $this->num_active_users = mysql_numrows($result);\r\n }", "function calcNumActiveUsers(){\r\n /* Calculate number of users at site */\r\n $q = \"SELECT * FROM \".TBL_ACTIVE_USERS;\r\n $result = mysql_query($q, $this->connection);\r\n $this->num_active_users = mysql_numrows($result);\r\n }", "public function count_filtered(){\n $this->datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public static function getCountUser($model,$user)\n { \n $sql = \"SELECT COUNT(*) FROM $model WHERE user_id='$user'\";\n $count = Yii::app()->db->createCommand($sql)->queryScalar();\n return $count; \n }", "public function count(){\n return count($this->accounts);\n }", "function betterCount ($conditions, $groupBy, $joinTable)\n {\n\n $table = $this->model->table;\n $name = $this->model->name;\n\n // Initial Statement\n $sql = \"SELECT count(*) as count FROM ( SELECT count(*) FROM `$table` as `$name` \";\n\n // Add table joins\n for ($i = 0; $i < sizeof($joinTable); $i++) {\n $sql .= $joinTable[$i] . \" \";\n }\n\n // add on conditions\n $sql .= \"WHERE \" . $conditions;\n\n // add on the group statement\n $sql .= $groupBy;\n\n // And finish up the statement\n\n $sql .= \" ) as aTableForCount\";\n\n list($data) = $this->model->query($sql);\n\n return isset($data[0]['count']) ? $data[0]['count'] : 0;\n }", "public function count() {\n return count($this->__rows__);\n }", "public function getUserCount()\n {\n return $this->userCount;\n }", "function getNumUsers(){\n$sql = \"SELECT COUNT(*) FROM users;\";\n$row = runQuery($sql,false);\n$numUsers = $row['COUNT(*)'];\nreturn $numUsers;\n}", "public function countQuery();", "public function CountUsers()\r\n {\r\n return count($this->Messages);\r\n }", "function calcNumActiveUsers(){\n\t\t//calculate number of useres on site\n\t\t$q = \"SELECT * FROM \".TBL_ACTIVE_USERS;\n\t\t$result = mysql_query($q, $this->connection);\n\t\t$this->num_active_users = mysql_numrows($result);\n\t}", "public function hasResult()\n {\n return Claroline::getDatabase()->query( \"\n SELECT\n user_id\n FROM\n `{$this->tbl['examination_score']}`\n WHERE\n user_id = \" . Claroline::getDatabase()->escape( $this->userId )\n )->numRows();\n }", "function get_total_all_records($connect)\r\n{\r\n\t$statement = $connect->prepare('\r\n\t\tSELECT * FROM equipment_checkout \r\n\t\tINNER JOIN equipment ON equipment.equip_id = equipment_checkout.equip_id\r\n\t\tWHERE equipment_checkout.empl_id = \"'.$_SESSION['user_id'].'\" \r\n\t');\r\n\t$statement->execute();\r\n\treturn $statement->rowCount();\r\n}", "public function count()\n\t{\n\t\treturn $this->query->rowCount();\n\t}" ]
[ "0.6988758", "0.67236876", "0.66500664", "0.6597737", "0.6589502", "0.6526262", "0.6493038", "0.6466317", "0.64394855", "0.64151835", "0.6401028", "0.6385135", "0.6367345", "0.6362937", "0.6355236", "0.6350399", "0.63494813", "0.6348773", "0.6336602", "0.63216144", "0.6313089", "0.6302666", "0.6287958", "0.6245585", "0.6233248", "0.6217222", "0.6215582", "0.62142026", "0.62025476", "0.6181764", "0.617724", "0.616016", "0.6152774", "0.61467373", "0.6130622", "0.6128585", "0.612488", "0.6121646", "0.60583085", "0.60553366", "0.6052693", "0.6043846", "0.6036064", "0.60286665", "0.6027054", "0.6017246", "0.60082185", "0.6005311", "0.59997934", "0.5990298", "0.5987992", "0.5976567", "0.5973509", "0.596935", "0.59670913", "0.5960803", "0.59531176", "0.59531176", "0.5949533", "0.5943374", "0.59433335", "0.5942282", "0.59417474", "0.59371614", "0.59355485", "0.59347427", "0.59345186", "0.592874", "0.592852", "0.5922224", "0.59116435", "0.5911167", "0.59104264", "0.59041655", "0.5898068", "0.5896418", "0.5893818", "0.5878186", "0.5869165", "0.5865394", "0.5852449", "0.58379793", "0.5828104", "0.58257526", "0.58233315", "0.58209753", "0.58209753", "0.5819417", "0.5816121", "0.5812708", "0.58077395", "0.580698", "0.5805804", "0.57935596", "0.5792016", "0.57889605", "0.5777963", "0.5776397", "0.5775722", "0.5772697" ]
0.59269387
69
Selects a collection of CastleType objects prefilled with their User objects.
public static function doSelectJoinUser(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $criteria = clone $criteria; // Set the correct dbName if it has not been overridden if ($criteria->getDbName() == Propel::getDefaultDB()) { $criteria->setDbName(CastleTypePeer::DATABASE_NAME); } CastleTypePeer::addSelectColumns($criteria); $startcol = CastleTypePeer::NUM_HYDRATE_COLUMNS; UserPeer::addSelectColumns($criteria); $criteria->addJoin(CastleTypePeer::USER_ID, UserPeer::ID, $join_behavior); $stmt = BasePeer::doSelect($criteria, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = CastleTypePeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = CastleTypePeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $cls = CastleTypePeer::getOMClass(); $obj1 = new $cls(); $obj1->hydrate($row); CastleTypePeer::addInstanceToPool($obj1, $key1); } // if $obj1 already loaded $key2 = UserPeer::getPrimaryKeyHashFromRow($row, $startcol); if ($key2 !== null) { $obj2 = UserPeer::getInstanceFromPool($key2); if (!$obj2) { $cls = UserPeer::getOMClass(); $obj2 = new $cls(); $obj2->hydrate($row, $startcol); UserPeer::addInstanceToPool($obj2, $key2); } // if obj2 already loaded // Add the $obj1 (CastleType) to $obj2 (User) $obj2->addCastleType($obj1); } // if joined row was not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadUserTypes(){\n\t\t\t$stmt = $this->db->executequery('select id_type_user, type_user, date_modification_type_user, description_type_user from type_user order by type_user asc');\n\t\t\tif (!$userTypes = $stmt->fetchall()) return array(); \n\t\t\tfor ($i = 0; $i < count($userTypes); $i++) {\n\t\t\t\t$userTypes[$i] = new UserType($userTypes[$i]['id_type_user'], $userTypes[$i]['type_user'], $userTypes[$i]['description_type_user'], $userTypes[$i]['date_modification_type_user']);\n\t\t\t}\n\t\t\treturn $userTypes;\n\t\t}", "public function getUserTypes()\n {\n return $this->find()->all();\n }", "function get_all_usertype()\n\t\t{\n\t\t\t$query=\"SELECT * from tbl_user_type\";\n\t\t\t$result = execute_query($query);\n\t\t\treturn new readonlyresultset($result);\n\t\t}", "private function _getUserTypes() \n {\n $userTypes = UserType::join(\n 'user_type_translations as t', \n function ($join) {\n $join->on('user_types.id', '=', 't.user_type_id')\n ->where('t.locale', '=', Lang::getLocale());\n }\n ) \n ->groupBy('user_types.id')\n ->orderBy('t.name', 'asc')\n ->select('user_types.*')\n ->with('translations')\n ->get();\n\n return $userTypes;\n }", "function getUsers($user_type){\r\n global $pdo;\r\n\t\t\t$select = $pdo->prepare(\"SELECT * ,users.id AS userId \r\n FROM users \r\n\t\t\tLEFT JOIN user_types ON users.type = user_types.id\r\n\t\t\tWHERE user_types.type = ?\");\r\n\t\t\t//$res = mysql_query($select);\r\n $select->execute(array($user_type));\r\n\t\t return $select->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t}", "function grabTypes(){\n\t\t$d=$this->find('all',array('order'=>array('id ASC')));\n\t\treturn $d;\n\t}", "function get_user_types() {\n\t$policy = new Config;\n\treturn $policy->getUserTypes();\n}", "public function get_buddy_users_as_choices( $type ) {\n\n\t\t$users = get_users( array( 'fields' => array( 'ID', 'display_name' ) ) );\n\t\t\n $user_choices = array();\n foreach ( $users as $user) {\n $user_choices[] = array(\n 'label' => esc_html( $user->display_name ),\n 'value' => 'field_' . esc_attr( $user->ID ),\n );\n }\n\n return $user_choices;\n\t}", "public function initializeUser($value, $type = self::USERIDTYPE_ID)\r\n {\r\n //set where clause\r\n $whereClause = $this->_createWhereClause($value, $type);\r\n $this->_setWhereClauseList($whereClause);\r\n \r\n // set order clause\r\n $this->_addToOrderClauseList('type');\r\n $this->_addToOrderClauseList('position');\r\n $this->_addToOrderClauseList('lineUp');\r\n \r\n return $this->_loadModelList();\r\n }", "static function findByType($types, $additional_conditions = null, $min_state = STATE_VISIBLE) {\n $conditions = DB::prepare('type IN (?) AND state >= ?', $types, $min_state);\n\n if($additional_conditions) {\n $conditions = '(' . $conditions . ' AND (' . DB::prepareConditions($additional_conditions) . '))';\n } // if\n\n return Users::find(array(\n 'conditions' => $conditions\n ));\n }", "public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n $criteria = clone $criteria;\n\n // Set the correct dbName if it has not been overridden\n if ($criteria->getDbName() == Propel::getDefaultDB()) {\n $criteria->setDbName(CastleTypePeer::DATABASE_NAME);\n }\n\n CastleTypePeer::addSelectColumns($criteria);\n $startcol2 = CastleTypePeer::NUM_HYDRATE_COLUMNS;\n\n UserPeer::addSelectColumns($criteria);\n $startcol3 = $startcol2 + UserPeer::NUM_HYDRATE_COLUMNS;\n\n $criteria->addJoin(CastleTypePeer::USER_ID, UserPeer::ID, $join_behavior);\n\n $stmt = BasePeer::doSelect($criteria, $con);\n $results = array();\n\n while ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $key1 = CastleTypePeer::getPrimaryKeyHashFromRow($row, 0);\n if (null !== ($obj1 = CastleTypePeer::getInstanceFromPool($key1))) {\n // We no longer rehydrate the object, since this can cause data loss.\n // See http://www.propelorm.org/ticket/509\n // $obj1->hydrate($row, 0, true); // rehydrate\n } else {\n $cls = CastleTypePeer::getOMClass();\n\n $obj1 = new $cls();\n $obj1->hydrate($row);\n CastleTypePeer::addInstanceToPool($obj1, $key1);\n } // if obj1 already loaded\n\n // Add objects for joined User rows\n\n $key2 = UserPeer::getPrimaryKeyHashFromRow($row, $startcol2);\n if ($key2 !== null) {\n $obj2 = UserPeer::getInstanceFromPool($key2);\n if (!$obj2) {\n\n $cls = UserPeer::getOMClass();\n\n $obj2 = new $cls();\n $obj2->hydrate($row, $startcol2);\n UserPeer::addInstanceToPool($obj2, $key2);\n } // if obj2 loaded\n\n // Add the $obj1 (CastleType) to the collection in $obj2 (User)\n $obj2->addCastleType($obj1);\n } // if joined row not null\n\n $results[] = $obj1;\n }\n $stmt->closeCursor();\n\n return $results;\n }", "function workbench_post_get_role_user_types() {\n $roles = user_roles(TRUE);\n $users = array();\n foreach ($roles as $rid => $label) {\n $role_user = new RoleUserType($rid);\n $users[$role_user->user_string] = $role_user;\n }\n return $users;\n}", "public function getAllTypes(){\n return $this->find()->asArray()->orderBy('typeDesc ASC')->all();\n }", "function vtws_listtypes($fieldTypeList, $user) {\n\t// Bulk Save Mode: For re-using information\n\tstatic $webserviceEntities = false;\n\n\tstatic $types = array();\n\tif (!empty($fieldTypeList)) {\n\t\t$fieldTypeList = array_map('strtolower', $fieldTypeList);\n\t\tsort($fieldTypeList);\n\t\t$fieldTypeString = implode(',', $fieldTypeList);\n\t} else {\n\t\t$fieldTypeString = 'all';\n\t}\n\tif (!empty($types[$user->id][$fieldTypeString])) {\n\t\treturn $types[$user->id][$fieldTypeString];\n\t}\n\ttry {\n\t\tglobal $log;\n\t\t$db = PearDatabase::getInstance();\n\n\t\tvtws_preserveGlobal('current_user', $user);\n\t\t//get All the modules the current user is permitted to Access.\n\t\t$allModuleNames = getPermittedModuleNames();\n\n\t\tif (!empty($fieldTypeList)) {\n\t\t\t$sql = 'SELECT distinct(vtiger_field.tabid) as tabid\n\t\t\t\tFROM vtiger_field LEFT JOIN vtiger_ws_fieldtype ON vtiger_field.uitype=vtiger_ws_fieldtype.uitype\n\t\t\t\tINNER JOIN vtiger_profile2field ON vtiger_field.fieldid = vtiger_profile2field.fieldid\n\t\t\t\tINNER JOIN vtiger_def_org_field ON vtiger_def_org_field.fieldid = vtiger_field.fieldid\n\t\t\t\tINNER JOIN vtiger_role2profile ON vtiger_profile2field.profileid = vtiger_role2profile.profileid\n\t\t\t\tINNER JOIN vtiger_user2role ON vtiger_user2role.roleid = vtiger_role2profile.roleid\n\t\t\t\twhere vtiger_profile2field.visible=0 and vtiger_def_org_field.visible = 0\n\t\t\t\t\tand vtiger_field.presence in (0,2)\n\t\t\t\t\tand vtiger_user2role.userid=? and fieldtype in (' . generateQuestionMarks($fieldTypeList) . ')';\n\t\t\t$params = array();\n\t\t\t$params[] = $user->id;\n\t\t\tforeach ($fieldTypeList as $fieldType) {\n\t\t\t\t$params[] = $fieldType;\n\t\t\t}\n\t\t\t$result = $db->pquery($sql, $params);\n\t\t\t$it = new SqlResultIterator($db, $result);\n\t\t\t$moduleList = array();\n\t\t\tforeach ($it as $row) {\n\t\t\t\t$moduleList[] = getTabModuleName($row->tabid);\n\t\t\t}\n\t\t\t$allModuleNames = array_intersect($moduleList, $allModuleNames);\n\t\t}\n\t\t//get All the CRM entity names.\n\t\tif ($webserviceEntities === false || !CRMEntity::isBulkSaveMode()) {\n\t\t\t// Bulk Save Mode: For re-using information\n\t\t\t$webserviceEntities = vtws_getWebserviceEntities();\n\t\t}\n\n\t\t$accessibleModules = array_values(array_intersect($webserviceEntities['module'], $allModuleNames));\n\t\t$accessibleEntities = array();\n\t\tif (empty($fieldTypeList)) {\n\t\t\tforeach ($webserviceEntities['entity'] as $entity) {\n\t\t\t\t$webserviceObject = VtigerWebserviceObject::fromName($db, $entity);\n\t\t\t\t$handlerPath = $webserviceObject->getHandlerPath();\n\t\t\t\t$handlerClass = $webserviceObject->getHandlerClass();\n\t\t\t\trequire_once $handlerPath;\n\t\t\t\t$handler = new $handlerClass($webserviceObject, $user, $db, $log);\n\t\t\t\t$meta = $handler->getMeta();\n\t\t\t\tif ($meta->hasAccess()===true) {\n\t\t\t\t\t$accessibleEntities[] = $entity;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} catch (WebServiceException $exception) {\n\t\tthrow $exception;\n\t} catch (Exception $exception) {\n\t\tthrow new WebServiceException(WebServiceErrorCode::$DATABASEQUERYERROR, 'A Database error occured while performing the operation');\n\t}\n\n\t$default_language = VTWS_PreserveGlobal::getGlobal('default_language');\n\tglobal $current_language;\n\tif (empty($current_language)) {\n\t\t$current_language = $default_language;\n\t}\n\t$current_language = vtws_preserveGlobal('current_language', $current_language);\n\n\t$appStrings = return_application_language($current_language);\n\t$appListString = return_app_list_strings_language($current_language);\n\tvtws_preserveGlobal('app_strings', $appStrings);\n\tvtws_preserveGlobal('app_list_strings', $appListString);\n\n\t$informationArray = array();\n\tforeach ($accessibleModules as $module) {\n\t\t$informationArray[$module] = array(\n\t\t\t'isEntity'=>true,\n\t\t\t'label'=>getTranslatedString($module, $module),\n\t\t\t'singular'=>getTranslatedString('SINGLE_'.$module, $module)\n\t\t);\n\t}\n\n\tforeach ($accessibleEntities as $entity) {\n\t\t$label = (isset($appStrings[$entity])) ? $appStrings[$entity] : $entity;\n\t\t$singular = (isset($appStrings['SINGLE_'.$entity])) ? $appStrings['SINGLE_'.$entity] : $entity;\n\t\t$informationArray[$entity] = array('isEntity'=>false, 'label'=>$label, 'singular'=>$singular);\n\t}\n\n\tVTWS_PreserveGlobal::flush();\n\t$types[$user->id][$fieldTypeString] = array('types'=>array_merge($accessibleModules, $accessibleEntities), 'information'=>$informationArray);\n\treturn $types[$user->id][$fieldTypeString];\n}", "public function getTypes(){\r\n \r\n $options[\"\"] = \"--Select--\";\r\n //Query all users(Lecturers) not assigned to other departments\r\n $types = $this->em->getRepository(\"\\Application\\Entity\\Assessmenttype\")->findBy(array(\"systemGenerated\"=>0));\r\n \r\n foreach($types as $type ){\r\n $options[$type->getPkAtid()] = $type->getTypeName();\r\n }\r\n \r\n return $options;\r\n }", "public function getUserTypes()\n {\n $main_actions = [\n 'type' => \\adminer\\lang('Create type'),\n ];\n\n $headers = [\n \\adminer\\lang('Name'),\n ];\n\n // From db.inc.php\n $userTypes = \\adminer\\support(\"type\") ? \\adminer\\types() : [];\n $details = [];\n foreach($userTypes as $userType)\n {\n $details[] = [\n 'name' => \\adminer\\h($userType),\n ];\n }\n\n return \\compact('main_actions', 'headers', 'details');\n }", "private function secundaryUserTypes() {\n $query = \"select * from secondary_users_types;\";\n $params = array(\n 'User' => array(\n 'query' => $query\n )\n );\n return $this->AccentialApi->urlRequestToGetData('users', 'query', $params);\n }", "public function getTypeUsers(){\n $query = \"SELECT * FROM rol\";\n return $this->consulta($query);\n }", "function workbench_post_get_user_types() {\n $default_users = workbench_post_get_settings_default_user_types();\n $all_users = workbench_post_get_all_user_types();\n $users = array_filter($all_users, function($user) use ($default_users) {\n return $default_users[$user->user_string];\n });\n return $users;\n}", "public function actionGetFilteredUsersToTypeList()\n {\n if (Yii::app()->request->isAjaxRequest && isset($_POST['lastname'])) {\n $lastname = strtolower(trim($_POST['lastname']));\n\n if ($lastname != '') {\n $criteria=new CDbCriteria;\n if ($lastname != '*') {\n $criteria->compare('Last_Name', $lastname, true);\n }\n $criteria->order = 'Last_Name ASC';\n $all_users = Persons::model()->with('user')->findAll($criteria);\n $find = true;\n } else {\n $all_users = array();\n $find = false;\n }\n $this->renderPartial('filtered_users_to_type_list' , array(\n 'all_users' => $all_users,\n 'find' => $find,\n ));\n }\n }", "public function get_desired_types();", "private function loadTypes() {\n \n if(!empty($this->types)) return;\n \n $this->types = $this->doctrine\n ->getManager()\n ->getRepository('FenchyNoticeBundle:Type')\n ->getFilterTypes();\n }", "protected function getTypes() {}", "protected function createUserAndGroupListForSelectOptions() {}", "function workbench_post_get_all_user_types() {\n $node_user_types = workbench_post_get_node_user_types();\n // TODO: uncomment to add role user options once they are properly supported\n //$role_user_types = _get_role_user_types();\n //$users = array_merge($node_user_types, $role_user_types);\n $users = $node_user_types;\n return $users;\n}", "public function getUserTypes()\n\t{\n\t\treturn array_flip($this->model->getAccessLevels());\n\t}", "public static function getUserTypesArray()\n {\n $userTypesArray = array();\n\n $conn = new MySqlConnect();\n\n $sql = \"SELECT userTypeName FROM usertypes\";\n\n // update existing submission record in the database\n $result = $conn -> executeQueryResult($sql);\n while ($row = mysql_fetch_array($result, MYSQLI_ASSOC))\n {\n // assign the primary key value to the name\n array_push($userTypesArray, $row);\n }\n\n $conn -> freeConnection();\n return $userTypesArray;\n }", "public function listOfTypes()\n {\n $qb = $this->createQueryBuilder('b')\n ->select('b.type')\n ->distinct('b.type');\n \n $query = $qb->getquery();\n \n return $query->execute();\n }", "public function fetchAll()\n {\n $templateTypeTable = new Api_Model_DbTable_TemplateType();\n\n $rowset = $templateTypeTable->fetchAll(null, 'name');\n\n $templateTypes = new Set();\n foreach ($rowset as $row) {\n $templateType = Type::factory($row);\n\n $templateTypes->addItem($templateType);\n }\n\n return $templateTypes;\n }", "protected function userTypes(Period $period): Collection\n {\n $responses = Analytics::performQuery(\n $period,\n 'ga:sessions',\n [\n 'dimensions' => 'ga:userType',\n ]\n );\n $results = array('new_visitor' => array(), 'returning_visitor' => array());\n foreach ($responses as $respons) {\n if ($respons[0] === 'New Visitor') {\n $results['new_visitor'] = $respons[1];\n } elseif ($respons[0] === 'Returning Visitor') {\n $results['returning_visitor'] = $respons[1];\n }\n }\n return Collection::make($results);\n }", "public function get_users($organization_id, $user_type);", "function fromDb($conn, $user)\n {\n $sql_searchProcutTypes = \"select distinct ProductTypeID from products where ProductID in (select distinct ProductID from tenders)\";\n $result = mysqli_query($conn,$sql_searchProcutTypes);\n\n //for each product type, create a ProductTypeOffer object\n while($row = mysqli_fetch_array($result))\n {\n $productTypeId = $row['ProductTypeID'];\n $productTypeTender = new ProductTypeTender($productTypeId);\n $productTypeTender->fromDb($conn, $user);\n $this->productTypeOffers[count($this->productTypeOffers)] = $productTypeTender;\n }\n \n }", "public static function all(){\n\n\t\t//Connection to DB\n\t\t$db = $_COOKIE[\"db\"];\n\n\t\t//Fields\n\t\t$sql = \"SELECT * FROM company_types\";\n\n\t\t//Query\n\t\t$statement = $db->prepare($sql);\n\n\t\t//SET FETCH MODE\n\t\t$statement->setFetchMode(PDO::FETCH_ASSOC);\n\n\t\t//EXECUTE\n\t\t$statement->execute();\n\n\n\t\treturn $statement->fetchAll();\n\t}", "public static function getUserComboList() { \n return Doctrine_Query::create()->select('u.id, SUBSTRING(u.username, 1, 25) as username')->from('sfGuardUser u')->orderBy('u.username');\n }", "function bls_sf_selectForTypes() {\n\tbls_ut_backTrace(\"bls_sf_selectForTypes\");\n\tglobal $bls_sf_location;\n\n\techo \"<select name=\\\"s_pkg_srctype\\\">\";\n\tforeach ($bls_sf_location as $key => $val) {\n\t\techo \"<option value=\\\"$key\\\">$val</option>\";\n\t}\n\techo \"</select>\";\n}", "function workbench_post_get_node_user_types() {\n $revision_author = new RevisionAuthorType('revision author');\n $author = new AuthorType('author');\n\n $users = array();\n $users[$revision_author->user_string] = $revision_author;\n $users[$author->user_string] = $author;\n\n return $users;\n}", "function getUserTypes() {\n return array(self::HOME => self::HOME,\n self::CLINIC => self::CLINIC);\n }", "public function selectAllUsers(){\r\n $userList = new UsersList();\r\n return $userList->selectAllUsers();\r\n }", "public static function select_all() {\n $db = Database::getDB();\n\n $query = 'SELECT * FROM users ORDER BY lastName';\n $statement = $db->prepare($query);\n $statement->execute();\n $results = $statement->fetchAll();\n\n\n $users = array();\n foreach ($results as $row) {\n $user = new User($row['username'], $row['password'], $row['role']);\n $users[] = $user;\n }\n return $users;\n }", "public function get_transaction_lists($user_id = '', $type = '', $fieldArr = array()) {\n if ($user_id != '' && $type != '') {\n $this->mongo_db->select($fieldArr);\n switch ($type) {\n case 'all':\n $where_clause = array(\"user_id\" => MongoID($user_id));\n break;\n case 'credit':\n $where_clause = array(\"transactions.$.type\" => 'CREDIT', \"user_id\" => MongoID($user_id));\n break;\n case 'debit':\n $where_clause = array(\"transactions.$.type\" => 'DEBIT', \"user_id\" => MongoID($user_id));\n break;\n default:\n $where_clause = array(\"user_id\" => MongoID($user_id));\n break;\n }\n $this->mongo_db->where($where_clause, TRUE);\n $res = $this->mongo_db->get(WALLET);\n return $res;\n }\n }", "function get_all_types()\n {\n return $this->db->get('card_types')->result();\n }", "function listCompaniesByType ( $type ) {\n\t\tglobal $AppUI;\n\t\t$q = new DBQuery;\n\t\t$q->addQuery('company_id, company_name');\n\t\t$q->addTable('companies');\n\t\tforeach ($type as $t) { \n\t\t\t$q->addWhere('company_type ='. $t);\n\t\t}\n\t\t$this->setAllowedSQL($AppUI->user_id, $q);\n\t\t$q->addOrder('company_name');\n\n\t\treturn $q->loadHashList();\n\t}", "public function iN_CreatorTypes() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_creators WHERE creator_status = '1'\") or die(mysqli_error($this->db));\n\t\twhile ($row = mysqli_fetch_array($query)) {\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\treturn $data;\n\t\t}\n\t}", "public function types() {\n return $this->belongsToMany(Type::class, 'type_infos', 'user_id', 'type_id')->withTimestamps();\n }", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "function getTypesselected($force = false) {\r\n\t\tstatic $used;\r\n\t\tif(!$used || $force) {\r\n\t\t\tif($this->_id) {\r\n\t\t\t\t$query = 'SELECT ie.type_id as id,t.name FROM #__flexicontent_items_ext as ie'\r\n\t\t\t\t\t. ' JOIN #__flexicontent_types as t ON ie.type_id=t.id'\r\n\t\t\t\t\t. ' WHERE ie.item_id = ' . (int)$this->_id;\r\n\t\t\t\t$this->_db->setQuery($query);\r\n\t\t\t\t$used = $this->_db->loadObject();\r\n\t\t\t}else{\r\n\t\t\t\t$typeid = (int)JRequest::getInt('typeid', 1);\r\n\t\t\t\t$query = 'SELECT t.id,t.name FROM #__flexicontent_types as t'\r\n\t\t\t\t\t. ' WHERE t.id = ' . (int)$typeid;\r\n\t\t\t\t$this->_db->setQuery($query);\r\n\t\t\t\t$used = $this->_db->loadObject();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $used;\r\n\t}", "function getJOSCUserTypes($unregistered = true)\r\n\t{\r\n\r\n\t\t$usertypes = array();\r\n\r\n\t\tif ($unregistered) {\r\n\t\t$usertypes[] = JHTML::_('select.option', '-1', 'Unregistered', 'id', 'title' );\r\n\t\t}\r\n\t\t$usertypes[] = JHTML::_('select.option', '3', '.Registered', 'id', 'title' );\r\n\t\t$usertypes[] = JHTML::_('select.option', '4', '..Author', 'id', 'title' );\r\n\t\t$usertypes[] = JHTML::_('select.option', '2', '...Editor', 'id', 'title' );\r\n\t\t$usertypes[] = JHTML::_('select.option', '5', '....Publisher', 'id', 'title' );\r\n\t\t$usertypes[] = JHTML::_('select.option', '6', '.Manager', 'id', 'title' );\r\n\t\t$usertypes[] = JHTML::_('select.option', '1', '..Administrator', 'id', 'title' );\r\n\t\t$usertypes[] = JHTML::_('select.option', '0', '....SAdministrator', 'id', 'title' );\r\n\r\n return $usertypes;\r\n\t}", "private function loadPersonTypes($clearbefore=0){\n if ($clearbefore){\n updateQuery('truncate '.$this->tapersontype);\n }\n $wtpsi = $this->getAWTPSI();\n $rs = $wtpsi->doGetPersonTypes(array());\n\n foreach($rs as $i=>$o){\n if ($o->NERRORNO != 0){\n XLogs::critical(get_class($this).\" erreur lecture des types de personnes : ${$o->SZERRORMESSAGE}\");\n continue;\n }\n $newoid = sprintf($this->tapersontype.':%06d', $o->NPERSONTYPENO);\n // recherche du type de personne via person type no\n $rs1 = selectQuery($this->dstaperson->select_query(array('cond'=>array('ptno'=>array('=', $o->NPERSONTYPENO)))));\n if ($rs1 && $rs1->RowCount() > 0){\n // on a deja\n } else {\n // ajout\n $this->dstaperson->procInput(array('_options'=>array('local'=>true),\n 'ptno'=>addslashes($o->NPERSONTYPENO),\n 'oid'=>$newoid,\n 'newoid'=>$newoid,\n 'talabel'=>addslashes($o->SZPERSONTYPE)\n )\n );\n }\n }\n }", "function getTypeslist ()\r\n\t{\r\n\t\t$query = 'SELECT id, name'\r\n\t\t\t\t. ' FROM #__flexicontent_types'\r\n\t\t\t\t. ' WHERE published = 1'\r\n\t\t\t\t. ' ORDER BY name ASC'\r\n\t\t\t\t;\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$types = $this->_db->loadObjectList();\r\n\t\treturn $types;\r\n\t}", "function getAllCounselorType()\n\t\t{\n\t\t\t$query = $this->db->get('counselor_type');\n\t\t\treturn $query->result();\n\t\t}", "public function getRealtors() {\n $sql = \"SELECT * from usertable WHERE type = '2'\";\n foreach (parent::$this->db_connect->query($sql) as $row) {\n $dataSet[] = new user_model($row);\n }\n\n if (!empty($dataSet))\n return $dataSet;\n else\n return null;\n }", "public function get_all_teachers_bytype()\n {\n $teachers = Staff::where('is_active', 1)->orWhere('type', 'Adviser')->orWhere('type', 'Teacher')->orderBy('id', 'asc')->get();\n \n $teac = array();\n $teac[] = array('0' => 'select a teacher');\n \n foreach ($teachers as $teacher) {\n $teac[] = array(\n $teacher->id => $teacher->lastname.', '.$teacher->firstname.' '.$teacher->middlename.'( '.$teacher->identification_no.' )',\n );\n }\n \n $teachers = array();\n foreach($teac as $tea) {\n foreach($tea as $key => $val) {\n $teachers[$key] = $val;\n }\n }\n \n return $teachers; \n }", "public function negotiateAll(TypeCollection $userTypeList, TypeCollection $appTypeList);", "function BBClassesList($type = 'text')\n {\n $lists = Classes::where('type', $type)->lists('name', 'id');\n $lists->prepend('Select Class', '');\n\n return $lists;\n }", "public static function getCandidates($type);", "public function get_types()\n {\n }", "function get_user_type()\r\r\n {\r\r\n $CI =& get_instance();\r\r\n $CI->load->library(\"session\");\r\r\n\t\t$CI->load->model('user_model');\r\r\n $user_type_query = array(\r\r\n 'select' => array('user_type.*'),\r\r\n ); \r\r\n $user_type = $CI->user_model->get_rows($user_type_query,'user_type');\r\r\n return $user_type;\r\r\n }", "private function loadUsers() {\n\t\t\n\t\t\t$sql = \"SELECT usr_id FROM usr_cmp WHERE cmp_id='$companyID'\";\n\t\t\t\n\t\t\t$rawResult = $gremlin->query($sql);\n\t\t\t\n\t\t\tforeach($rawResult as $newCont) {\n\t\t\t\n\t\t\t\t$newUser = new User($newCont);\n\t\t\t\n\t\t\t\t$this->usersInCompany[] = $newUser;\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}", "public function listAllType(){\n try {\n return $this->identityTypeGateway->getAllTypes();\n } catch (Exception $ex) {\n throw $ex;\n }catch (PDOException $e){\n throw $e;\n }\n }", "function GetUsers($set_type = 'all', $get_data = false)\n\t{\n\t\t$where_clause = array('sid' => $this->sid);\n\t\t\n\t\tswitch ($set_type) {\n\t\t\tcase 'active':\n\t\t\t\t$where_clause['status'] = array ('!=', 'closed');\n\t\t\t\t$where_clause['actual_time + INTERVAL '. LC_ALLOWED_IDLE_TIME] = array ('>', 'NOW()');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'all':\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'requester':\n\t\t\t\t$where_clause = array (\n\t\t\t\t\t'#WHERE' => array (\n\t\t\t\t\t\t'sid' => $this->sid\n\t\t\t\t\t),\n\t\t\t\t\t'#ORDER' => 'user_id ASC',\n\t\t\t\t\t'#LIMIT' => 1\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tif (is_array($set_type)) {\n\t\t\t\t\t$where_clause = $set_type;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$r = $this->db->q('SELECT user_id FROM #_PREF_lc_users', $where_clause);\n\t\t$users = array();\n\t\twhile ($ud = $this->db->fetchAssoc($r)) {\n\t\t\t$user = new LcUser($ud['user_id']);\n\t\t\tif ($get_data) $user->getData();\n\t\t\t$users[] = $user;\n\t\t}\n\t\t\n\t\treturn $users;\n\t}", "function getUserTypes($Field='', $Input=array(), $multiRecords=FALSE){\r\n\r\n\t\t$Params = array();\r\n\t\tif(!empty($Field)){\r\n\t\t\t$Params = array_map('trim',explode(',',$Field));\r\n\t\t}\r\n\r\n\t\t$this->db->select('UT.UserTypeID UserTypeIDForUse, UT.UserTypeGUID, UT.UserTypeName, UT.IsAdmin,(SELECT COUNT(*) FROM `tbl_users` WHERE `UserTypeID` = UT.UserTypeID) AS UserCount');\r\n\t\t$this->db->select($Field,false);\r\n\t\t$this->db->from('tbl_users_type UT');\r\n\r\n\t\tif(!empty($Input['UserTypeID'])){\r\n\t\t\t$this->db->where('UT.UserTypeID',$Input['UserTypeID']);\r\n\t\t\t$this->db->limit(1);\t\t\t\r\n\t\t}\r\n\r\n\t\tif(!empty($Input['UserTypeGUID'])){\r\n\t\t\t$this->db->where(\"UT.UserTypeGUID\",$Input['UserTypeGUID']);\r\n\t\t\t$this->db->limit(1);\r\n\t\t}\r\n\r\n\t\t/* Total records count only if want to get multiple records */\r\n\t\tif($multiRecords){ \r\n\t\t\t$TempOBJ = clone $this->db;\r\n\t\t\t$TempQ = $TempOBJ->get();\r\n\t\t\t$Return['Data']['TotalRecords'] = $TempQ->num_rows();\r\n\t\t}else{\r\n\t\t\t$this->db->limit(1);\r\n\t\t}\r\n\r\n\t\t$Query = $this->db->get();\r\n\t\tif($Query->num_rows()>0){\r\n\t\t\tforeach($Query->result_array() as $Record){\r\n\t\t\t\t$ModuleData = $this->getModules(\"M.ModuleTitle, M.ModuleName, ModelType\", array(\"UserTypeID\" => $Record['UserTypeIDForUse'], \"Permitted\" => (@$Input['Permitted'] ? TRUE:'')), TRUE);\r\n\t\t\t\t$Record['PermittedModules'] = ($ModuleData ? $ModuleData['Data']['Records'] : new stdClass());\r\n\t\t\t\t$Record['UserTypeID'] \t\t= $Record['UserTypeIDForUse'];\t\t\r\n\t\t\t\tunset($Record['UserTypeIDForUse']);\t\t\r\n\t\t\t\tif(!$multiRecords){\r\n\t\t\t\t\treturn $Record;\r\n\t\t\t\t}\r\n\t\t\t\t$Records[] = $Record;\r\n\t\t\t}\r\n\t\t\t$Return['Data']['Records'] = $Records;\r\n\t\t\treturn $Return;\r\n\t\t}\r\n\t\treturn FALSE;\t\t\r\n\t}", "public function getItemTypeList()\n {\n\n $db = $this->getDb();\n\n $sql = <<<SQL\nSELECT\n type.rowid as type_id,\n type.name as type_name,\n type.icon as type_icon\n\nFROM\n wbfsys_address_item_type type\n\nORDER BY\n type.name;\n\nSQL;\n\n return $db->select($sql)->getAll();\n\n }", "public function get_users($organization_id = null, $user_type = null) {\r\n $this->conn->connect();\r\n $query = \"SELECT UserId, Email, UserType, FirstName, LastName, HomePhone, MobilePhone, Address1, Address2, City, State, ZipCode, OrganizationId FROM Users\";\r\n if ($organization_id == null && $user_type === null) {\r\n $result = $this->conn->execute_query($query);\r\n } else if ($organization_id != null && $user_type === null) {\r\n $result = $this->conn->execute_query($query . \" WHERE OrganizationId = ?\",'d',$organization_id);\r\n } else if ($organization_id == null && $user_type !== null) {\r\n $result = $this->conn->execute_query($query . \" WHERE UserType = ?\",'d',$user_type);\r\n } else if ($organization_id != null && $user_type !== null) {\r\n $result = $this->conn->execute_query($query . \" WHERE OrganizationId = ? AND UserType = ?\",'dd',$organization_id, $user_type);\r\n }\r\n $retval = array();\r\n foreach($result[1] as $row) {\r\n array_push($retval, UserService::user_from_row($row));\r\n }\r\n return $retval;\r\n }", "public function getList(): Collection\n {\n return User::with(['match1', 'match2'])->get();\n }", "public function get_users_for_select() {\n\t\tif ( empty( $this->cache[ __FUNCTION__ ] ) ) {\n\t\t\t$default_option = [\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => __( ' - Select User for Import - ', 'edgenet' ),\n\t\t\t];\n\n\t\t\t$user_args = [\n\t\t\t\t'role__in' => [ 'editor', 'administrator' ],\n\t\t\t\t'number' => 100,\n\t\t\t];\n\t\t\t$user_query = new \\WP_User_Query( $user_args );\n\n\t\t\t$user_results = $user_query->get_results();\n\n\t\t\tif ( $user_results ) {\n\t\t\t\t$options = array_map( function ( $user ) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'value' => $user->ID,\n\t\t\t\t\t\t'label' => sprintf( '%s [%s]', $user->user_login, $user->user_email ),\n\t\t\t\t\t];\n\t\t\t\t}, $user_results );\n\n\t\t\t}\n\n\t\t\tarray_unshift( $options, $default_option );\n\n\t\t\t$this->cache[ __FUNCTION__ ] = $options;\n\t\t}\n\n\t\treturn $this->cache[ __FUNCTION__ ];\n\t}", "public function selectAllUsers()\r\n\t{\r\n\t\t\r\n\t\t$userIds = array();\r\n\t\t//select user IDs for all users\r\n\t\t//array_push user IDs in a while loop\r\n\t\t//return $userIds;\r\n\t}", "function d4os_io_db_070_os_user_load_all() {\n $users = array();\n d4os_io_db_070_set_active('os_robust');\n $result = db_query(\"SELECT *, ua.FirstName AS username, ua.LastName AS lastname, ua.PrincipalID AS UUID, ua.Email AS email, CONCAT_WS(' ', FirstName, LastName) AS name FROM {UserAccounts} AS ua\");\n while ($user = db_fetch_object($result)) {\n $users[] = $user;\n }\n d4os_io_db_070_set_active('default');\n return $users;\n}", "public function getTypeList__600(){\n $query = new Query ( \"SELECT\" );\n\n $type = TypeBean::select ( $query );\n if (! $type) {\n return false;\n }\n return $type;\n }", "public function types()\n {\n return $this->belongsToMany(Type::class);\n }", "public function selectAllUser(){\n return $this->connect->getData(\"SELECT * FROM `tbl_register_user`\");\n }", "public static function getPriceTypes() {\n\t\t$db = JFactory::getDBO();\n\n\t\t// Create a new query object.\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select($db->quoteName('a.id', 'value'));\n\t\t$query->select($db->quoteName('a.name', 'text'));\n\t\t$query->from($db->quoteName('#__gtpihpssurvey_ref_price_types', 'a'));\n\t\t\n\t\tif (JFactory::getUser()->guest) {\n\t\t\t$query->where($db->quoteName('a.published') . ' = 1');\n\t\t}\n\t\t\n\t\t$db->setQuery($query);\n\t\treturn $db->loadObjectList();\n\t}", "function workbench_post_get_settings_default_user_types() {\n $users = workbench_post_get_config('user_types');\n if ($users) {\n $users = array_filter($users, function($item) {\n return $item;\n });\n return $users;\n }\n else {\n $node_users_by_string = array_map(function($user_type) {\n return $user_type->user_string;\n }, workbench_post_get_node_user_types());\n\n return $node_users_by_string;\n }\n}", "protected function get_applicable_types()\n\t{\n\t\t$types = array();\n\n\t\tforeach ($this->types->get_all() as $id => $class)\n\t\t{\n\t\t\tif ($class->forum_robot && $class->forum_database)\n\t\t\t{\n\t\t\t\t$types[] = $id;\n\t\t\t}\n\t\t}\n\t\treturn $types;\n\t}", "function allTerritoryTypestoCombo() {\n $this->load->model('territory/territory_model');\n $fetchAllTerritoryType = $this->territory_model->fetchFromAnyTable(\"tbl_territory_type\", null, null, null, 10000, 0, \"RESULTSET\", array('territory_type_status' => 1), null);\n $pushdata = array('territory' => $fetchAllTerritoryType);\n $this->template->draw('territory/allTerritoryTypeCombo', false, $pushdata);\n }", "public function selectAllUser()\n {\n $req = $this->db->query('SELECT * FROM tbl_user ORDER BY LName');\n return $req;\n }", "private static function _initializeTypes()\n {\n\n $db = DataAccess::getInstance();\n $category = self::getActiveCategory();\n\n $fields = geoFields::getInstance(0, $category);\n\n $sql = \"SELECT * FROM \" . geoTables::browsing_filters_settings . \" WHERE `category` = ? AND `enabled` = 1\";\n $settings = $db->Execute($sql, array($category));\n\n while ($settings && $target = $settings->FetchRow()) {\n $name = $target['field'];\n $type = 0; //be sure to reset $type to 0 each time, to prevent bleeding\n if (strpos($name, 'optional_field_') === 0) {\n //this is an optional field\n\n if (!$fields->$name->is_enabled) {\n //field not enabled. do not set!\n continue;\n }\n $optional_type = $fields->$name->field_type;\n if ($optional_type === 'number' || $optional_type === 'cost') {\n $type = self::RANGE;\n } elseif ($optional_type === 'textarea' || $optional_type === 'text') {\n $type = self::SCALAR;\n } elseif ($optional_type === 'date') {\n $type = self::DATE_RANGE;\n } elseif ($optional_type === 'dropdown') {\n $type = self::PICKABLE;\n }\n } elseif (strpos($name, 'cs_') === 0) {\n //this is a cat-spec question\n $question_id = substr($name, 3);\n $cs_type = $db->GetOne(\"SELECT `choices` FROM \" . geoTables::questions_table . \" WHERE `question_id` = ?\", array($question_id));\n if (is_numeric($cs_type) || $cs_type === 'none') {\n $type = self::PICKABLE;\n } elseif ($cs_type === 'check') {\n $type = self::BOOL;\n } elseif ($cs_type === 'number') {\n $type = self::RANGE;\n } elseif ($cs_type === 'date') {\n $type = self::DATE_RANGE;\n } else {\n //not a valid question, or no longer active? do not set.\n continue;\n }\n } elseif (strpos($name, 'leveled_') === 0) {\n //leveled field\n $type = self::PICKABLE;\n }\n if ($type) {\n self::$_types[$name] = $type;\n } else {\n //These aren't the droids you're looking for. You can go about your business. Move along.\n //(Didn't find a dynamic type, which means this field is either statically-typed in the declaration of self::$_types or doesn't exist)\n }\n }\n\n self::$_typesInitialized = true;\n }", "public static function getTypesList()\n {\n $sql = 'SELECT id AS value, display_name AS text '\n . 'FROM location_type '\n . 'WHERE active = 1';\n $command = Yii::app()->db->createCommand($sql);\n return $command->queryAll(true);\n }", "public function getTypes(){\n\t\t$stmt = $this->db->query(\"SELECT * FROM products_types\");\n\t\treturn $stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function types() {\n return $this->belongsToMany('App\\Type');\n }", "public function getByType($types)\n {\n $st = self::$conn->prepare(\"select * from \" . $this->table . \" where idType in (\" . implode(\",\", $types) . \")\");\n $st->execute();\n $projects = $st->fetchAll(PDO::FETCH_ASSOC);\n for ($i = 0; $i < count($projects); $i++) {\n $project = $projects[$i];\n $usuario = new User();\n $usuario->load($project['idUser']);\n $projects[$i]['userO'] = $usuario->serialize();\n $tipoP = new TypeProject();\n $tipoP->load($project['idType']);\n $projects[$i]['type'] = $tipoP->serialize();\n }\n return $projects;\n }", "function limitToTypes($types) {\r\n $this->typesLimit = array();\r\n }", "function getInitiateTypes()\n{\n $database = eZDB::globalDatabase();\n $res_array = array();\n $qry_array = array();\n\n $query= \"SELECT ID FROM eZClassified_InitiateType\";\n $database->array_query( $qry_array, $query );\n foreach ( $qry_array as $qry_item )\n {\n $res_array[] = $qry_item[\"ID\"];\n }\n return $res_array;\n}", "private function getUserTypeAccess(UserType $userType){\n\t\t\t$stmt =$this->db->executeQuery(\"SELECT id_type_access, id_section from access where id_type_user=?\", array($userType->id));\n\t\t\tif (!$accessType = $stmt->fetchall()) return array();\n\t\t return $accessType;\t\n\t\t}", "public function findUserPairsForSelectForm($padding = '-'){\n\n $options = array();\n $user_table = $this->_db->getTable('User');\n $assignable_users = $user_table->findAll();\n\n foreach ($assignable_users as $user) {\n $options[$user['id']] = $user['name'] ? $user['name'] : $user['username'];\n }\n\n return $options;\n }", "function getFilterdUsers($filtru1,$filtru2,$filtru3)\n {\n\t\n\t //mssql_select_db('Productivito', $link);\n \t\t$query = $this->select();\n \t\tif(!empty($filtru1) && empty($filtru2) && empty($filtru3))\n\t\t{\n\t\t\t$query->from('categories')->where('type =?',$filtru1);\n\t\t\t\n\t\t}\n\t\tif(!empty($filtru1) && !empty($filtru2) && empty($filtru3))\n\t\t{\n\t\t\t$query->from('categories')->where('type =?',$filtru1)\n\t\t\t\t->orWhere('type =?',$filtru2);\n\t\t}\n\t\tif(!empty($filtru1) && empty($filtru2) && !empty($filtru3))\n\t\t{\n\t\t\t$query->from('categories')->where('type =?',$filtru1)\n\t\t\t\t->orWhere('type =?',$filtru3);\n\t\t\t\n\t\t}\n\t\tif(!empty($filtru1) && !empty($filtru2) && !empty($filtru3))\n\t\t{\n\t\t\t$query->from('categories')->where('type =?',$filtru1)\n\t\t\t\t->orWhere('type =?',$filtru2)\n\t\t\t\t->orWhere('type =?',$filtru3);\n\t\t\t\n\t\t}\n\t\t\n\t\t $result = $this->fetchAll($query);\n //echo '<prE>'.print_r($result,true);die();\n if(!empty($result)) {\n $result = $result->toArray();\n\n //echo '<prE>'.print_r($result,true);die();\n return $result;\n }\n \n return array();\t\t\t\t\t\t\n }", "public static function all(){\n \t\ttry{\n $index = 0;\n $con = new Database;\n $query = $con->prepare('SELECT unnest(enum_range(null::membership_type))');\n $query->execute();\n $con->close();\n \n $results = $query->fetchAll(PDO::FETCH_OBJ);\n \n $memberships = array();\n\n if(!empty($results)){\n foreach($results as $result){\n $temp = new Membership;\n $temp->setAttributes($index, $result->unnest);\n $index = $index+1;\n array_push($memberships, $temp);\n }\n }\n\n return $memberships;\n \t\t}\n catch(PDOException $e){\n \t echo $e->getMessage();\n \t }\n }", "public function type():Type\n {\n return Type::listOf(GraphQL::type('User'));\n }", "function get_userpicker_options($message_type = null, $user = null) {\n\t$userpicker = new Userpicker($message_type, $user);\n\treturn $userpicker->getFilterOptions();\n}", "function GetUser()\n\t{\t\n\t\t\t$userid=$this->input->post('usertypeID');\n\t\t\tif(!empty($userid))\n\t\t\t{\n\t\t\t\t\t$usertype=$this->AddProperty_model->getuser($this->input->post('usertypeID'));\n\t\t\t\t\tif(!empty($usertype)){\n\t\t\t\t\t\techo\"<option value=''>Select User</option>\";\n\t\t\t\t\t\tforeach($usertype as $usertypes){\n\t\t\t\t\t\t\techo\"<option value=\".$usertypes->userID.\">$usertypes->userEmail</option>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo\"<option>No user Found!</option>\";\n\t\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t\n\t\t\t}\n\t\t\n\t}", "public function run()\n {\n \t$names = ['Administrator','Teacher','Student'];\n \tforeach($names as $name){\n \t\t$type = new UserType();\n \t\t$type->name = $name;\n \t\t$type->save();\n \t}\n }", "private function getByCategoryTypeLimited($type, $user)\n {\n $q = $this\n ->getUserPublicationQueryBuilder($user)\n ->andWhere('c.type = :type')\n ->orderBy('p.publishedAt', 'desc')\n ->setParameter('type', $type)\n ->setMaxResults(3)\n ->getQuery()\n ;\n\n return $q->getResult();\n }", "public function getUserItemsByType($type)\n {\n $items = ItemModel::model()\n ->with('reminders')\n ->findAll(array(\n 'order' => 't.id DESC',\n 'condition' => 'play_id = :playId AND t.type = :type',\n 'params' => array(\n ':playId' => $this->playid,\n ':type' => $type,\n )\n ));\n\n return $items;\n }", "public function selectUserType()\n {\n \n $data = customer::all();\n return view('ManageAccount.CustomerListInterface', compact(\"data\"));\n }", "public function getAccountTypes()\n {\n return AccountTypes::all();\n }", "public function setup_types()\n {\n }", "public static function getTypes();", "public function getAvailableSeedTypes(){\n\t\t$sql = \n\t\t\t\"SELECT DISTINCT type.type_name \n\t\t\tFROM type\n\t\t\tWHERE type.type_name != '000'\n\t\t\tORDER BY type.type_name\";\n\t\t$stmt = $this->databaseConnection->dbConnection->prepare($sql);\n\t\t$stmt->execute();\n\t\t$arrayThing = [];\n\t\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC)){\n\t\t\tarray_push($arrayThing, $row['type_name']);\n\t\t}\n\t\t$myJSON = json_encode($arrayThing);\n\t\techo $myJSON;\n\t}" ]
[ "0.6562324", "0.65445954", "0.64394987", "0.59377176", "0.5741594", "0.5738194", "0.56653464", "0.5606529", "0.5576637", "0.5563105", "0.55230254", "0.552203", "0.5495222", "0.5478386", "0.5475885", "0.5466172", "0.5459835", "0.54080915", "0.53897244", "0.53824615", "0.53824264", "0.53701085", "0.53629696", "0.5355641", "0.53496116", "0.5337345", "0.5306403", "0.5297526", "0.52679473", "0.52591103", "0.5257571", "0.52062684", "0.516509", "0.5163444", "0.5156195", "0.5153995", "0.5149999", "0.51415694", "0.5129836", "0.51291174", "0.51205873", "0.51163226", "0.5113119", "0.5096805", "0.5094925", "0.5094925", "0.5094925", "0.5094925", "0.50861746", "0.5084661", "0.5080962", "0.50559855", "0.50356525", "0.50277686", "0.50233126", "0.5020208", "0.50196207", "0.50074685", "0.4999305", "0.49961275", "0.49875295", "0.49671003", "0.49573806", "0.4951735", "0.49515587", "0.4943991", "0.4934296", "0.49335513", "0.49220574", "0.49196815", "0.49163908", "0.490338", "0.49018633", "0.48997292", "0.48983186", "0.48854154", "0.48807886", "0.48776352", "0.48751673", "0.48745283", "0.48727047", "0.48702288", "0.48678774", "0.48659465", "0.48610732", "0.4858751", "0.4856863", "0.48528352", "0.485266", "0.48454383", "0.4840651", "0.48399574", "0.48360676", "0.48359913", "0.48352098", "0.48294103", "0.48228645", "0.48201302", "0.4818562", "0.48142725" ]
0.5482469
13
Returns the number of rows matching criteria, joining all related tables
public static function doCountJoinAll(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) { // we're going to modify criteria, so copy it first $criteria = clone $criteria; // We need to set the primary table name, since in the case that there are no WHERE columns // it will be impossible for the BasePeer::createSelectSql() method to determine which // tables go into the FROM clause. $criteria->setPrimaryTableName(CastleTypePeer::TABLE_NAME); if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) { $criteria->setDistinct(); } if (!$criteria->hasSelectClause()) { CastleTypePeer::addSelectColumns($criteria); } $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count // Set the correct dbName $criteria->setDbName(CastleTypePeer::DATABASE_NAME); if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_READ); } $criteria->addJoin(CastleTypePeer::USER_ID, UserPeer::ID, $join_behavior); $stmt = BasePeer::doCount($criteria, $con); if ($row = $stmt->fetch(PDO::FETCH_NUM)) { $count = (int) $row[0]; } else { $count = 0; // no rows returned; we infer that means 0 matches. } $stmt->closeCursor(); return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n {\n return count($this->_joins);\n }", "function getCount() {\n\t\t$where = (sizeof($this->wheres) > 0) ? ' WHERE '.implode(\" \\n AND \\n\\t\", $this->wheres) : '';\n\t\t$group = (sizeof($this->groups) > 0) ? ' GROUP BY '.implode(\", \", $this->groups) : '' ;\n\t\t$query = \"SELECT count(*) FROM \\n\\t\".$this->class->table.\"\\n \".implode(\"\\n \", $this->joins).$where.' '.$group.' ';\n\n\t\t$count =self::$global['dbCon']->fetchRow($query,MYSQLI_NUM);\n\t\treturn $count[0];\n\n\t}", "private function getCountFilteredResults()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('count(distinct ' . $this->tableName . '.' . $this->rootEntityIdentifier . ')');\n $qb->from($this->metadata->getName(), $this->tableName);\n\n $this->setLeftJoin($qb);\n $this->setWhere($qb);\n $this->setWhereCallbacks($qb);\n\n return (int) $qb->getQuery()->getSingleScalarResult();\n }", "public function count() {\r\n\t\t//$src = Dbi_Source::GetModelSource($this);\r\n\t\t//return count($src->select($this->query()));\r\n\t\treturn count($this->source->select($this));\r\n\t}", "function count()\r\n\t{\r\n\t\t// Check if related object\r\n\t\tif ( ! empty($this->parent))\r\n\t\t{\r\n\t\t\t// Prepare model\r\n\t\t\t$model = ucfirst($this->parent['model']);\r\n\t\t\t$object = new $model();\r\n\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$this->db->where($this->parent['model'] . '_id', $this->parent['id']);\r\n\t\t\t$this->db->from($relationship_table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->db->from($this->table);\r\n\r\n\t\t\t// Return count\r\n\t\t\treturn $this->db->count_all_results();\r\n\t\t}\r\n\t}", "function betterCount ($conditions, $groupBy, $joinTable)\n {\n\n $table = $this->model->table;\n $name = $this->model->name;\n\n // Initial Statement\n $sql = \"SELECT count(*) as count FROM ( SELECT count(*) FROM `$table` as `$name` \";\n\n // Add table joins\n for ($i = 0; $i < sizeof($joinTable); $i++) {\n $sql .= $joinTable[$i] . \" \";\n }\n\n // add on conditions\n $sql .= \"WHERE \" . $conditions;\n\n // add on the group statement\n $sql .= $groupBy;\n\n // And finish up the statement\n\n $sql .= \" ) as aTableForCount\";\n\n list($data) = $this->model->query($sql);\n\n return isset($data[0]['count']) ? $data[0]['count'] : 0;\n }", "public function count()\n {\n $constrainedBuilder = clone $this->query;\n\n $constrainedBuilder = $constrainedBuilder->distinct();\n\n return $constrainedBuilder->count($this->relatedPivotKey);\n }", "public function count(): int\n {\n $query = clone $this;\n $table = current($this->from);\n return $query->select(\"(COUNT($table.id))\")->execute()->fetchColumn();\n }", "public function countBy($criteria);", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "public abstract function row_count();", "public function count() {\n $s = $this->buildSelect(true, null, false, false);\n return $s->numRows();\n }", "public function count() {\n return count($this->__rows__);\n }", "public function totalNumRows()\n {\n try {\n\n $sql = 'SELECT DISTINCT gil.id_item\n FROM geocontexter.gc_item AS gil\n '.$this->_sql_tables.'\n WHERE gil.title ILIKE ?\n '.$this->_sql_in_id_list;\n\n $res = $this->query($sql, array($this->search . '%'));\n return (int)count($res);\n\n } catch(\\Exception $e) {\n throw $e;\n }\n }", "public function getCount() {\n return $this->db->fetchColumn(\"SELECT COUNT(id) FROM $this->table\");\n }", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "function count_filtered()\n {\n $this->_get_datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function count(){\n\t\t\t$query = \"SELECT COUNT(*) as total_rows \n\t\t\tFROM\n\t\t\t\tStudent st, Faculty f, Studies ss\n\t\t\tWHERE st.stds = ss.id_stds\n\t\t\tAND ss.fac = f.id_fac\";\n\t\t\n\t\t\t$stmt = $this->conn->prepare( $query );\n\t\t\t$stmt->execute();\n\t\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t\treturn $row['total_rows'];\n\t\t}", "function num_rows()\r\n\t{\r\n\t\tif ( ! $this->pdo_results ) {\r\n\t\t\t$this->pdo_results = $this->result_id->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t}\r\n\t\treturn sizeof($this->pdo_results);\r\n\t}", "function count_all() {\n\t\t// from table\n\t\t$this->db->from( $this->table_name );\n\n\t\t// where clause\n\t\t$this->custom_conds();\n\n\t\t// return the count all results\n\t\treturn $this->db->count_all_results();\n\t}", "public function count() {\n $this->_active_query->fields($this->func()->count());\n $query = $this->query( $this->_active_query->getQuery(), $this->_active_query->getParams() );\n return (int)$query->rowCount();\n }", "public function count() {\n if($this->count === false) {\n if (is_object($this->table)) {\n $this->count = 1;\n } elseif (is_array($this->table)) {\n $this->count = count($this->table);\n } else {\n $this->count = 0;\n }\n }\n return $this->count;\n }", "public function loadCount($relations);", "public function count( $table, $conditions=array());", "function get_num_records()\n\t{\n\t\t$this->sql = 'SELECT COUNT(*) FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\treturn db_getOne($this->sql, $this->use_db);\n\t}", "abstract public function countTable();", "function RowCount() {}", "public function findCount(array $conditions);", "public function getCountList(){\n\t\t$select = $this->getListSelect();\n\t\t$stmt = $select->query();\n\t\t$objects = array();\n\t\treturn count($stmt->fetchAll());\n\t}", "public function subpropertyJoinCountTest() {}", "public function numRows() {\n\t\t$q = \"SELECT COUNT(*) FROM {$this->_name}\";\n\t\t$r = @sqlite_query($q, $this->_connection);\n\t\tlist($numRows) = sqlite_fetch_array($r, SQLITE_NUM);\n\t\treturn $numRows;\n\t}", "public abstract function getRowsCount($clause, $options = [], $result_set = null);", "private function getCountAllResults()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('count(' . $this->tableName . '.' . $this->rootEntityIdentifier . ')');\n $qb->from($this->metadata->getName(), $this->tableName);\n\n $this->setWhereCallbacks($qb);\n\n return (int) $qb->getQuery()->getSingleScalarResult();\n }", "public function count_filtered(){\n $this->datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function count_all() {\n $selects = array();\n\n foreach ($this->_db_pending as $key => $method)\n {\n if ($method['name'] == 'select')\n {\n // Ignore any selected columns for now\n $selects[] = $method;\n unset($this->_db_pending[$key]);\n }\n }\n\n $this->_build(Database::SELECT);\n\n $records = (int) $this->_db_builder->from($this->_table_name)\n ->select(array(DB::expr('COUNT(*)'), 'records_found'))\n ->execute($this->_db)\n ->get('records_found');\n\n // Add back in selected columns\n $this->_db_pending += $selects;\n\n $this->reset();\n\n // Return the total number of records in a table\n return $records;\n }", "public function count_rows() {\r\n return $this->db->count_all_results($this->table_name);\r\n }", "public function count()\n {\n return count($this->getResults());\n }", "public function count()\n {\n return count($this->_mappersByPriority);\n }", "public function countAll()\n {\n return $this->createQuery()->execute()->count();\n }", "public function getQueryCount();", "public function getProNumRows()\n {\n return $this->db->count_all('products');\n }", "function numResults() {\n\t\treturn $this->num_rows();\n\t}", "public function getNumberOfRows(){\r\n $this->setTable('subscribed');\r\n $table = $this->getTable();\r\n\r\n $sql = \"SELECT * FROM \" . $table;\r\n $stmt = $this->fetch()->query($sql);\r\n return $stmt->rowCount();\r\n }", "public function count_all() {\n $this->db->from($this->table);\n return $this->db->count_all_results();\n }", "public function getTotalNumberOfResults();", "public function getCount()\n {\n return $this->doQuery(null, false, false)->count();\n }", "public function count() { \n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\t\treturn( count( $this->_recordset ) ); \n\t}", "public function subpropertyJoinSameTableCountTest() {}", "public function count()\n\t{\n\t\treturn $this->query->rowCount();\n\t}", "public function numOfRows();", "public function countQuery();", "function get_num_rows($table_name = '') {\n $this->db->select('*')\n ->from(self::table_name);\n\n $query = $this->db->get();\n return ($this->db->count_all_results(self::table_name));\n }", "public function count_all() {\n return $this->db->count_all($this->_table());\n }", "public function get_rows_count()\n\t{\n\t\treturn count($this->get_rows());\n\t}", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "public function getNumberOfRows();", "function count()\n {\n $retval = 0;\n $key = $this->object->get_primary_key_column();\n $results = $this->object->run_query(\"SELECT COUNT(`{$key}`) AS `{$key}` FROM `{$this->object->get_table_name()}`\");\n if ($results && isset($results[0]->{$key})) {\n $retval = (int) $results[0]->{$key};\n }\n return $retval;\n }", "public function count(): int\n {\n return $this->makeQuery()->count();\n }", "public function findCount()\n {\n return $this->getEntityManager()\n ->createQuery(\"SELECT t.number, COUNT(f.id) as cnt\n FROM GazMainBundle:Finance f\n LEFT JOIN f.terminal t\n LEFT JOIN f.clientSale cs\n\t\t\t\t\t\t\tLEFT JOIN f.clientBuy cb\n\t\t\t\t\t\t\tWHERE f.financeType = FALSE\n\t\t\t\t\t\t\tGROUP BY t.number\n\t\t\t\t\t\t\tORDER BY t.number ASC\n \")\n ->getResult();\n }", "public function count(): int\n {\n if ($this->numberOfResults === null) {\n $this->initialize();\n if ($this->queryResult !== null) {\n $this->numberOfResults = count($this->queryResult ?? []);\n } else {\n parent::count();\n }\n }\n\n return $this->numberOfResults;\n }", "public function count() {\n return $this->row_count();\n }", "public function fetchCount($conditions = array(),$options = array()) {\n\t\t$conditions = $this->prepare($conditions);\n\t\treturn $this->count($conditions,$options);\n\t}", "public function count(array $criteria = array()) {\n\t\t$record_count = $this->getCollection()->count($criteria);\n\t\treturn $record_count;\n\t}", "public function count()\n\t{\n\t\treturn $this->getParentObject()->count();\n\t}", "public function count()\n\t{\n\t\treturn $this->all()->count();\n\t}", "function count()\n{\n\tif (!$this->getSql()) return 0;\n\t$rows = $this->getClone()->select('count(*) as n');\n\treturn (int)$rows[0]['n'];\n}", "public function count()\n {\n return $this->model->paginate(1, $this->select)->total();\n }", "public function count() {\n if ($this->_count <= 0) {\n $where = new Where();\n if (isset($this->_options[\"eventData\"]) && $this->_options[\"eventData\"] != '') {\n $where->expression($this->_sql_search_expression, \"%\" . $this->_options[\"eventData\"] . \"%\");\n }\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from($this->table)->where($where)->columns(array('count' => new Expression('COUNT(*)')));\n $sqlTxt = $sql->getSqlStringForSqlObject($select);\n $resultSet = $this->adapter->query($sqlTxt, Adapter::QUERY_MODE_EXECUTE);\n foreach ($resultSet as $row) {\n $this->_count = intval($row->count);\n break;\n }\n }\n return $this->_count;\n }", "public function count()\n {\n return count($this->_rows);\n }", "function get_num_rows($table_name) {\n $this->db->select('*')->from($table_name);\n $query = $this->db->get();\n return ($this->db->count_all_results($table_name));\n }", "public function getNumRows();", "public function getCount()\n {\n return count($this->getModels());\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "public function count()\n {\n return count($this->countable);\n }", "public function count()\n\t\t{\n\t\t\treturn count($this->source);\n\t\t}", "public function getCount()\n {\n if ($this->_queryResult === null) {\n return 0;\n }\n\n return $this->_queryResult->count();\n }", "public function countRows()\n {\n return count($this->rows);\n }", "abstract public function getNumRows();", "abstract public function getNumRows();", "public function get_number_of_joins() {\r\n\t\tif ($this->user_id) {\r\n\t\t\t$sql = \"SELECT COUNT(*)\r\n\t\t\tFROM `joins`\r\n\t\t\tWHERE user_id = '$this->user_id'\r\n\t\t\tAND status = '\" . self::JOINED_STATUS . \"'\";\r\n\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\tor die ($this->dbc->error);\r\n\t\t\t$this->number_of_joins = $result->fetch_row()[0];\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UnexpectedValueException('UnexpectedValueException occured on method call get_number_of_joins');\r\n\t\t}\r\n\t}", "public function getNumRows(): int\n {\n if (is_int($this->numRows)) {\n return $this->numRows;\n }\n if ($this->resultArray !== []) {\n return $this->numRows = count($this->resultArray);\n }\n if ($this->resultObject !== []) {\n return $this->numRows = count($this->resultObject);\n }\n\n return $this->numRows = count($this->getResultArray());\n }", "public function getTablesAndRowCounts()\n {\n return $this->callSql(\"\n SELECT\n t.NAME AS TableName,\n p.rows AS RowCounts\n FROM\n sys.tables t\n INNER JOIN\n sys.indexes i ON t.OBJECT_ID = i.object_id\n INNER JOIN\n sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id\n WHERE\n t.is_ms_shipped = 0\n AND p.rows > 0\n GROUP BY\n t.Name, p.Rows\n ORDER BY\n t.Name\n \");\n }", "public function count() {\n\t\treturn count($this->_dataobjects);\n\t}", "public function count()\n {\n return count($this->entities);\n }", "public function count()\n {\n return count($this->entities);\n }", "function get_total_all_records($connect)\r\n{\r\n\t$statement = $connect->prepare('\r\n\t\tSELECT * FROM equipment_checkout \r\n\t\tINNER JOIN equipment ON equipment.equip_id = equipment_checkout.equip_id\r\n\t\tWHERE equipment_checkout.empl_id = \"'.$_SESSION['user_id'].'\" \r\n\t');\r\n\t$statement->execute();\r\n\treturn $statement->rowCount();\r\n}", "function getMatchedRowsNum( $sql ) {\r\n\t\t\t$result = $this->_connectAndExec( $sql );\r\n\t\t\treturn ocirowcount( $result );\r\n\t\t}", "public function count()\n\t{\n\t\t// Get a \"count all\" query\n $db = $this->getDbo();\n\n $query = $this->buildQuery(true);\n\n $query->clear('select')->clear('order')->select('COUNT(*)');\n\n\t\t// Run the \"before build query\" hook and behaviours\n $this->triggerEvent('onBuildCountQuery', array(&$query));\n\n $total = $db->setQuery($query)->loadResult();\n\n\t\treturn $this->count = $total;\n\t}", "public function getCount()\n\t{\n\t\treturn $this->data_source->count();\n\t}", "public function count()\r\n\t{\r\n\t\t$countModel = clone $this->model;\r\n\t\t$countQuery = $countModel->getQuery();\r\n\t\t$countQuery->orders = null;\r\n\t\t$countModel->setQuery($countQuery);\r\n\r\n\t\treturn $countModel->count();\r\n\t}", "public function count() {\n\t\treturn count($this->getData());\n\t}", "public function size()\n {\n $count = 0;\n foreach ($this->identityMap as $documentSet) {\n $count += count($documentSet);\n }\n return $count;\n }", "public function getNbResults()\n {\n return $this->select->count();\n }", "function getDataCount($table, $condition, $params){\n\t\ttry {\n\t\t\t$sql = \"SELECT COUNT(*) FROM $table \";\n\t\t\tif($condition && !empty($condition)){\n\t\t\t\t$sql .= \" WHERE $condition\";\n\t\t\t}\n\t\t\t$query = $this->executeQuery($sql, $params);\n\t\t\t$count = intVal($query->fetchColumn());\n\t\t}catch(Exception $e){\n\t\t\t$this->logger->error($sql, $e->getMessage());\n\t\t\tthrow $e;\n\t\t}\n\t\treturn $count;\n\t}", "public function count(array $conditions = []): int;", "public function countRecords($conditions='') {\n\t\tglobal $sessionHandler;\n\t\t$query = \"SELECT\n\t\t\t\t\t\t\tCOUNT(*) AS cnt\n\t\t\t\t FROM\t\tstudent a, class b, university c, degree d, branch e, study_period f\n\t\t\t\t WHERE\t\ta.classId = b.classId\n\t\t\t\t AND\t\tb.universityId = c.universityId\n\t\t\t\t AND\t\tb.degreeId = d.degreeId\n\t\t\t\t AND\t\tb.branchId = e.branchId\n\t\t\t\t AND\t\tb.studyPeriodId = f.studyPeriodId\n\t\t\t\t AND\t\tb.instituteId='\".$sessionHandler->getSessionVariable('InstituteId').\"'\n\t\t\t\t AND\t\tb.sessionId= '\".$sessionHandler->getSessionVariable('SessionId').\"'\n\t\t\t\t\t\t\t$conditions\";\n\t\treturn SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n\t}", "protected function getCount($criteria)\r\n\t{\r\n\t\treturn $this->getManager()->getCount($criteria);\r\n\t}", "public function count(){\n\t\t$this->initRecordSet();\n\t\treturn $this->recordSetSize;\n\t}", "function findCount($conditions) {\r\n\t\treturn $this->find('count', $conditions);\r\n\t}", "public function count()\n {\n return $this->createStandardQueryBuilder()->count()->getQuery()->execute();\n }", "public function rowCount()\n {\n return sasql_num_rows($this->result);\n }" ]
[ "0.7333117", "0.69980973", "0.67554796", "0.67525935", "0.66455156", "0.6571224", "0.6564929", "0.6521017", "0.6515358", "0.64639044", "0.6454166", "0.6452891", "0.64451045", "0.6428454", "0.6417924", "0.6407907", "0.63133633", "0.63087684", "0.6308332", "0.6302672", "0.62994146", "0.6296367", "0.6293034", "0.6289339", "0.6281582", "0.6273849", "0.62653553", "0.62600726", "0.6250826", "0.62416923", "0.6241355", "0.6237651", "0.6221095", "0.6217785", "0.62142694", "0.62061894", "0.62006634", "0.6188801", "0.618723", "0.6180395", "0.61618084", "0.6160176", "0.615096", "0.6149969", "0.6134166", "0.61326045", "0.61301076", "0.61269486", "0.61118144", "0.6106014", "0.60909617", "0.6087358", "0.6080467", "0.6075002", "0.60609794", "0.6060891", "0.60605115", "0.6060016", "0.6050408", "0.6049079", "0.6044313", "0.60439605", "0.60426754", "0.6041023", "0.6031735", "0.6028725", "0.60282737", "0.6022015", "0.6020903", "0.6015803", "0.60082424", "0.6007426", "0.6007426", "0.5998576", "0.59966874", "0.59914505", "0.5985553", "0.59708416", "0.59708416", "0.5969263", "0.5956969", "0.5954136", "0.5948566", "0.5944664", "0.5944664", "0.594407", "0.5940308", "0.5940144", "0.5937365", "0.59367394", "0.5934836", "0.5932699", "0.5932606", "0.59318584", "0.5929469", "0.5928093", "0.5927171", "0.59261847", "0.5921515", "0.59203124", "0.5920117" ]
0.0
-1
Selects a collection of CastleType objects prefilled with all related objects.
public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) { $criteria = clone $criteria; // Set the correct dbName if it has not been overridden if ($criteria->getDbName() == Propel::getDefaultDB()) { $criteria->setDbName(CastleTypePeer::DATABASE_NAME); } CastleTypePeer::addSelectColumns($criteria); $startcol2 = CastleTypePeer::NUM_HYDRATE_COLUMNS; UserPeer::addSelectColumns($criteria); $startcol3 = $startcol2 + UserPeer::NUM_HYDRATE_COLUMNS; $criteria->addJoin(CastleTypePeer::USER_ID, UserPeer::ID, $join_behavior); $stmt = BasePeer::doSelect($criteria, $con); $results = array(); while ($row = $stmt->fetch(PDO::FETCH_NUM)) { $key1 = CastleTypePeer::getPrimaryKeyHashFromRow($row, 0); if (null !== ($obj1 = CastleTypePeer::getInstanceFromPool($key1))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj1->hydrate($row, 0, true); // rehydrate } else { $cls = CastleTypePeer::getOMClass(); $obj1 = new $cls(); $obj1->hydrate($row); CastleTypePeer::addInstanceToPool($obj1, $key1); } // if obj1 already loaded // Add objects for joined User rows $key2 = UserPeer::getPrimaryKeyHashFromRow($row, $startcol2); if ($key2 !== null) { $obj2 = UserPeer::getInstanceFromPool($key2); if (!$obj2) { $cls = UserPeer::getOMClass(); $obj2 = new $cls(); $obj2->hydrate($row, $startcol2); UserPeer::addInstanceToPool($obj2, $key2); } // if obj2 loaded // Add the $obj1 (CastleType) to the collection in $obj2 (User) $obj2->addCastleType($obj1); } // if joined row not null $results[] = $obj1; } $stmt->closeCursor(); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTypes(){\n return $this->find()->asArray()->orderBy('typeDesc ASC')->all();\n }", "function grabTypes(){\n\t\t$d=$this->find('all',array('order'=>array('id ASC')));\n\t\treturn $d;\n\t}", "public function fetchAll()\n {\n $templateTypeTable = new Api_Model_DbTable_TemplateType();\n\n $rowset = $templateTypeTable->fetchAll(null, 'name');\n\n $templateTypes = new Set();\n foreach ($rowset as $row) {\n $templateType = Type::factory($row);\n\n $templateTypes->addItem($templateType);\n }\n\n return $templateTypes;\n }", "public function types()\n {\n return $this->belongsToMany(Type::class);\n }", "public function types() {\n return $this->belongsToMany('App\\Type');\n }", "private function loadTypes() {\n \n if(!empty($this->types)) return;\n \n $this->types = $this->doctrine\n ->getManager()\n ->getRepository('FenchyNoticeBundle:Type')\n ->getFilterTypes();\n }", "public function listOfTypes()\n {\n $qb = $this->createQueryBuilder('b')\n ->select('b.type')\n ->distinct('b.type');\n \n $query = $qb->getquery();\n \n return $query->execute();\n }", "public function commerce_akeneo_taxonomy_load_all($type = 'option') {\n\t $results = db_select('commerce_akeneo_taxonomy', 't')\n\t ->fields('t')\n\t ->condition('type', $type)\n\t ->execute()\n\t ->fetchAllAssoc('tid');\n\n\t $taxonomies = array();\n\n\t foreach ($results as $key => $result) {\n\t $taxonomies[$key] = (array) $result;\n\t }\n\n\t return $taxonomies;\n\t}", "public static function all(){\n\n\t\t//Connection to DB\n\t\t$db = $_COOKIE[\"db\"];\n\n\t\t//Fields\n\t\t$sql = \"SELECT * FROM company_types\";\n\n\t\t//Query\n\t\t$statement = $db->prepare($sql);\n\n\t\t//SET FETCH MODE\n\t\t$statement->setFetchMode(PDO::FETCH_ASSOC);\n\n\t\t//EXECUTE\n\t\t$statement->execute();\n\n\n\t\treturn $statement->fetchAll();\n\t}", "public function all()\n {\n return $this->type->all();\n }", "protected function _loadTypes()\n {\n $connection = $this->getConnection();\n if (!$connection) {\n return $this;\n }\n if (empty(self::$_entityTypes)) {\n $select = $connection->select()->from($this->getMainTable());\n $data = $connection->fetchAll($select);\n foreach ($data as $row) {\n self::$_entityTypes['by_id'][$row['entity_type_id']] = $row;\n self::$_entityTypes['by_code'][$row['entity_type_code']] = $row;\n }\n }\n\n return $this;\n }", "public function all(Model $parent, ?string $type = null): Collection;", "public function types() {\n return $this->hasMany(Type::class);\n }", "public function findAll()\n\t{\n\t\t$aTableSource = array_merge($this->_acceptedFields, $this->_cascadeFields);\n\t\t\n\t\t$aTables\t= $this->extractTables($aTableSource);\n\t\t$sSelect\t= implode(', ', $this->_acceptedFields);\n\t\t$sWhere \t= $this->compileClauseStrings($this->_cascadeFields);\n\t\t\n\t\t$this->_adapter->select($aTables, $sWhere, $sSelect);\n\t\t\n\t\t$collection = $this->buildCollection();\n\t\t\n\t\twhile($data = $this->_adapter->fetch())\n\t\t{\n\t\t\t$collection->add(null, $this->buildEntity($data));\n\t\t}\n\t\t\n\t\treturn $collection;\n\t}", "public static function populateObjects(PDOStatement $stmt)\n {\n $results = array();\n\n // set the class once to avoid overhead in the loop\n $cls = CastleTypePeer::getOMClass();\n // populate the object(s)\n while ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $key = CastleTypePeer::getPrimaryKeyHashFromRow($row, 0);\n if (null !== ($obj = CastleTypePeer::getInstanceFromPool($key))) {\n // We no longer rehydrate the object, since this can cause data loss.\n // See http://www.propelorm.org/ticket/509\n // $obj->hydrate($row, 0, true); // rehydrate\n $results[] = $obj;\n } else {\n $obj = new $cls();\n $obj->hydrate($row);\n $results[] = $obj;\n CastleTypePeer::addInstanceToPool($obj, $key);\n } // if key exists\n }\n $stmt->closeCursor();\n\n return $results;\n }", "public function types()\n {\n return $this->belongsTo(Type::class);\n }", "public static function getTypes()\n {\n return TourType::find()\n ->where(['pid' => null]);\n }", "function &getAssociatedTypes() {\n\t\tif ($this->getIsGeneric()) { return array(); }\n\t\t\n\t\t$sTable = KTUtil::getTableName('document_type_fieldsets');\n $aQuery = array(\n \"SELECT document_type_id FROM $sTable WHERE fieldset_id = ?\",\n array($this->getId()),\n );\n $aIds = DBUtil::getResultArrayKey($aQuery, 'document_type_id');\n\t\t\n\t\t$aRet = array();\n\t\tforeach ($aIds as $iID) {\n\t\t $oType = DocumentType::get($iID);\n\t\t\tif (!PEAR::isError($oType)) { \n\t\t\t $aRet[] = $oType;\n\t\t\t}\n\t\t}\n\t\treturn $aRet;\n\t}", "public function fetchMPTypes() {\n\t\t\n\t\t$this->_productTypes = array();\n\t\t$sql = \"SELECT * FROM product_types WHERE parent_ptype_id IS NULL\"; \n\t\t$dbh = $this->_conn->query( $sql);\n\t\n\t\twhile ( $row = $dbh->fetch() )\t{\n\t\t\t\t$this->_productTypes[] = new ProductTypes( $row[\"ptype_id\"], $row[\"parent_ptype_id\"], $row[\"type_name\"] );\n\t\t }\t\n\t\t \n\t\treturn $this->_productTypes;\n\t}", "public static function getBrandsAll()\n {\n $pdo = Database::getPDO();\n $sql = \"SELECT * FROM `\". static::$table .\"` \n WHERE `order` > 0\n ORDER BY `order` ASC \";\n \n $statement = $pdo->query( $sql );\n $modelListFromDatabase = $statement->fetchAll( PDO::FETCH_ASSOC );\n\n // Etape 2 : On vérifie qu'on a des résultats\n if( $modelListFromDatabase === false ) :\n exit( static::$table.\" not found !\" );\n endif;\n \n // Etape 3 : On prépare un tableau d'objets\n $modelsArray = [];\n\n // Etape 4 : On parcours nos résultats pour créer les objets\n // à partir des données récupérées en BDD\n foreach( $modelListFromDatabase as $modelDataFromDatabase ) :\n $model = new static( $modelDataFromDatabase );\n $modelsArray[] = $model;\n endforeach;\n\n // Etape 5 : On renvoi notre tableau d'objets (ici de type Brand)\n return $modelsArray;\n }", "public function getRelationalTypeResolverClassesToAttachTo() : array;", "protected function getTypes() {}", "public function types()\n {\n return $this->belongsToMany(Type::class, 'pokemon_type', 'pokemon_id', 'type_id')->select(['type_id', 'name']);\n }", "function allTerritoryTypestoCombo() {\n $this->load->model('territory/territory_model');\n $fetchAllTerritoryType = $this->territory_model->fetchFromAnyTable(\"tbl_territory_type\", null, null, null, 10000, 0, \"RESULTSET\", array('territory_type_status' => 1), null);\n $pushdata = array('territory' => $fetchAllTerritoryType);\n $this->template->draw('territory/allTerritoryTypeCombo', false, $pushdata);\n }", "public function getTypes(){\n\t\t$stmt = $this->db->query(\"SELECT * FROM products_types\");\n\t\treturn $stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "function getTypeslist ()\r\n\t{\r\n\t\t$query = 'SELECT id, name'\r\n\t\t\t\t. ' FROM #__flexicontent_types'\r\n\t\t\t\t. ' WHERE published = 1'\r\n\t\t\t\t. ' ORDER BY name ASC'\r\n\t\t\t\t;\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$types = $this->_db->loadObjectList();\r\n\t\treturn $types;\r\n\t}", "public static function getSubTypes()\n {\n return TourType::find()\n ->where(['IS NOT', 'pid', null]);\n }", "abstract public function getChildrenTypes();", "public function getCargoTypesAction(array $options = []): Model;", "function post_types()\n{\n $collection = collect(get_post_types(array( '_builtin' => false ), 'objects'))\n ->pluck('label', 'name')\n ->except(array( 'acf-field', 'acf-field-group', 'wp_stream_alerts', 'wp_area' ))\n ->prepend(get_post_type_object('page')->labels->name, 'page')\n ->prepend(get_post_type_object('post')->labels->name, 'post')\n ->all();\n\n return $collection;\n}", "public function typesForCobertura()\n {\n return AddressType::all();\n }", "public function allOfType($type)\n {\n return $this->all($type, '^rdf:type');\n }", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public static function fetchAll() {\n $db = new PDO(DB_SERVER, DB_USER, DB_PW);\n // 2. Prepare the query\n $sql = 'SELECT * FROM ProductType';\n $statement = $db->prepare($sql);\n // 3. Run the query\n $success = $statement->execute();\n // 4. Handle the results\n $arr = [];\n while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n $theProductType = new ProductType($row);\n array_push($arr, $theProductType);\n }\n return $arr;\n }", "private static function getTrophies()\r\n\t{\t$con = db_connect();\r\n\t\t\r\n\t\t$result = $con->query(\"select distinct ty. * from type as ty inner join trophy as t ON t.type = ty.type_id\");\r\n\t\t\r\n\t\t$types = array();\r\n\t\twhile($row = $result->fetch(PDO::FETCH_ASSOC))\r\n\t\t{\t$type = new Type();\r\n\t\t\t$type->color = $row['color'];\r\n\t\t\t$type->icon = $row['icon'];\r\n\t\t\t$type->name = $row['name'];\r\n\t\t\t$type->typeID = $row['type_id'];\r\n\t\t\t\t\r\n\t\t\t$types[] = $type->generateArray();\r\n\t\t}\r\n\t\treturn $types;\t\r\n\t}", "public static function morphs()\n {\n return static::contractables()->map(function($resource) {\n return $resource::$model;\n })->all();\n }", "function get_all_types()\n {\n return $this->db->get('card_types')->result();\n }", "public static function getCandidates($type);", "public function getItemTypeList()\n {\n\n $db = $this->getDb();\n\n $sql = <<<SQL\nSELECT\n type.rowid as type_id,\n type.name as type_name,\n type.icon as type_icon\n\nFROM\n wbfsys_address_item_type type\n\nORDER BY\n type.name;\n\nSQL;\n\n return $db->select($sql)->getAll();\n\n }", "public function selectAll()\n {\n return $this->contractor->all(['name', 'id']);\n }", "private static function _initializeTypes()\n {\n\n $db = DataAccess::getInstance();\n $category = self::getActiveCategory();\n\n $fields = geoFields::getInstance(0, $category);\n\n $sql = \"SELECT * FROM \" . geoTables::browsing_filters_settings . \" WHERE `category` = ? AND `enabled` = 1\";\n $settings = $db->Execute($sql, array($category));\n\n while ($settings && $target = $settings->FetchRow()) {\n $name = $target['field'];\n $type = 0; //be sure to reset $type to 0 each time, to prevent bleeding\n if (strpos($name, 'optional_field_') === 0) {\n //this is an optional field\n\n if (!$fields->$name->is_enabled) {\n //field not enabled. do not set!\n continue;\n }\n $optional_type = $fields->$name->field_type;\n if ($optional_type === 'number' || $optional_type === 'cost') {\n $type = self::RANGE;\n } elseif ($optional_type === 'textarea' || $optional_type === 'text') {\n $type = self::SCALAR;\n } elseif ($optional_type === 'date') {\n $type = self::DATE_RANGE;\n } elseif ($optional_type === 'dropdown') {\n $type = self::PICKABLE;\n }\n } elseif (strpos($name, 'cs_') === 0) {\n //this is a cat-spec question\n $question_id = substr($name, 3);\n $cs_type = $db->GetOne(\"SELECT `choices` FROM \" . geoTables::questions_table . \" WHERE `question_id` = ?\", array($question_id));\n if (is_numeric($cs_type) || $cs_type === 'none') {\n $type = self::PICKABLE;\n } elseif ($cs_type === 'check') {\n $type = self::BOOL;\n } elseif ($cs_type === 'number') {\n $type = self::RANGE;\n } elseif ($cs_type === 'date') {\n $type = self::DATE_RANGE;\n } else {\n //not a valid question, or no longer active? do not set.\n continue;\n }\n } elseif (strpos($name, 'leveled_') === 0) {\n //leveled field\n $type = self::PICKABLE;\n }\n if ($type) {\n self::$_types[$name] = $type;\n } else {\n //These aren't the droids you're looking for. You can go about your business. Move along.\n //(Didn't find a dynamic type, which means this field is either statically-typed in the declaration of self::$_types or doesn't exist)\n }\n }\n\n self::$_typesInitialized = true;\n }", "function getAll( $OrderBy = \"ID\", $LimitStart = \"None\", $LimitBy = \"None\" )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n switch ( strtolower( $OrderBy ) )\r\n {\r\n case \"description\":\r\n case \"desc\":\r\n $OrderBy = \"ORDER BY Description\";\r\n break;\r\n case \"name\":\r\n $OrderBy = \"ORDER BY Name\";\r\n break;\r\n case \"parentid\":\r\n case \"pid\":\r\n $OrderBy = \"ORDER BY ParentID\";\r\n break;\r\n case \"id\":\r\n case \"typeid\":\r\n $OrderBy = \"ORDER BY ID\";\r\n break;\r\n default:\r\n $OrderBy = \"ORDER BY ID\";\r\n break;\r\n }\r\n\r\n if ( is_numeric( $LimitStart ) )\r\n {\r\n $LimitArray = array( \"Offset\" => $LimitStart );\r\n\r\n if ( is_numeric( $LimitBy ) )\r\n {\r\n $LimitArray =& array_merge( $LimitArray, array( \"Limit\" => $LimitBy ) );\r\n }\r\n }\r\n else\r\n {\r\n $LimitArray = array();\r\n }\r\n\r\n $company_type_array = array();\r\n $return_array = array();\r\n\r\n\r\n $db->array_query( $company_type_array, \"SELECT ID FROM eZContact_CompanyType $OrderBy\", $LimitClause );\r\n\r\n foreach ( $company_type_array as $companyTypeItem )\r\n {\r\n $return_array[] = new eZCompanyType( $companyTypeItem[ $db->fieldName( \"ID\" ) ] );\r\n }\r\n return $return_array;\r\n }", "public function getAll()\n {\n $resultSet = $this->oMapper->getAll();\n\n $className = get_class($this);\n\n// $return = array();\n $dto = new EntityDTO($this->oDb, $this->oLogger);\n foreach ($resultSet as $key => $row) {\n $obj = new $className($dto);\n $obj->fillByObject($row);\n\n $this->aCollection[] = $obj;\n }\n unset($resultSet);\n\n return $this->aCollection;\n }", "public function get_desired_types();", "function getInitiateTypes()\n{\n $database = eZDB::globalDatabase();\n $res_array = array();\n $qry_array = array();\n\n $query= \"SELECT ID FROM eZClassified_InitiateType\";\n $database->array_query( $qry_array, $query );\n foreach ( $qry_array as $qry_item )\n {\n $res_array[] = $qry_item[\"ID\"];\n }\n return $res_array;\n}", "protected function getTypes() : Collection\n {\n if (is_array($this->types)) {\n return new Collection($this->types);\n }\n\n return new Collection([]);\n }", "public function getUserTypes()\n {\n return $this->find()->all();\n }", "public function getAllTypes()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllTypes()\n );\n }", "public function getAllTypes()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllTypes()\n );\n }", "public function get_object_subtypes()\n {\n }", "public function get_object_subtypes()\n {\n }", "public function get_object_subtypes()\n {\n }", "function get_brands_for_select()\n{\n $arBrands = array();\n $arBrands[''] = '';\n \n $criteria = new Criteria();\n $brands = BrandPeer::getAll($criteria);\n \n foreach ($brands as $brand) {\n $arBrands[$brand->getId()] = $brand->getTitle();\n }\n \n return $arBrands;\n}", "public function hydrate(): Collection\n\t{\n\t\t$className = get_class($this->model);\n\n\t\treturn $this->getRaw()->map(fn ($row) => (new $className())->forceFill($row));\n\t}", "private function _getAdvertTypes() \n {\n $advertTypes = AdvertType::join(\n 'advert_type_translations as t', \n function ($join) {\n $join->on('advert_types.id', '=', 't.advert_type_id')\n ->where('t.locale', '=', Lang::getLocale());\n }\n ) \n ->groupBy('advert_types.id')\n ->orderBy('t.name', 'asc')\n ->select('advert_types.*')\n ->with('translations')\n ->get();\n\n return $advertTypes;\n }", "protected function getTypesCollection()\n {\n if (null === $this->types) {\n $this->types = new Collection(\n array($this->type),\n $this->docblock ? $this->docblock->getContext() : null\n );\n }\n return $this->types;\n }", "public static function getPriceTypes() {\n\t\t$db = JFactory::getDBO();\n\n\t\t// Create a new query object.\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select($db->quoteName('a.id', 'value'));\n\t\t$query->select($db->quoteName('a.name', 'text'));\n\t\t$query->from($db->quoteName('#__gtpihpssurvey_ref_price_types', 'a'));\n\t\t\n\t\tif (JFactory::getUser()->guest) {\n\t\t\t$query->where($db->quoteName('a.published') . ' = 1');\n\t\t}\n\t\t\n\t\t$db->setQuery($query);\n\t\treturn $db->loadObjectList();\n\t}", "public function all()\n {\n return TipoCabelo::all();\n }", "function retrieveAll ( $text_autocomplete = NULL )\n {\n\n $q = Doctrine_Query :: create ()\n ->from ( 'AssetType' )\n ->orderBy ( 'asset_type_name ASC' );\n\n if ( ! is_null ( $text_autocomplete ) )\n {\n $q->andWhere ( 'asset_type_name LIKE ?' , $text_autocomplete . '%' );\n }\n\n return $q->execute ();\n }", "public function getChoices()\n {\n return $this->getOption('choices') ? \n $this->getOption('choices') : $this->collectionToArray(\n Doctrine::getTable($this->getOption('hasManyClass'))\n ->createQuery('s')\n ->leftJoin('s.'.$this->getOption('refClass').' ref')\n ->orderBy('ref.'.$this->getOption('position_field'))\n ->execute()\n );\n }", "public function listAllType(){\n try {\n return $this->identityTypeGateway->getAllTypes();\n } catch (Exception $ex) {\n throw $ex;\n }catch (PDOException $e){\n throw $e;\n }\n }", "public static function doSelect(Criteria $criteria, PropelPDO $con = null)\n {\n return CastleTypePeer::populateObjects(CastleTypePeer::doSelectStmt($criteria, $con));\n }", "public function businessTypes() {\n return $this->belongsToMany('App\\Http\\Models\\BusinessType', 'business_business_types_rel', 'business_id', 'business_type_id');\n }", "function getAllCounselorType()\n\t\t{\n\t\t\t$query = $this->db->get('counselor_type');\n\t\t\treturn $query->result();\n\t\t}", "function getTypesselected($force = false) {\r\n\t\tstatic $used;\r\n\t\tif(!$used || $force) {\r\n\t\t\tif($this->_id) {\r\n\t\t\t\t$query = 'SELECT ie.type_id as id,t.name FROM #__flexicontent_items_ext as ie'\r\n\t\t\t\t\t. ' JOIN #__flexicontent_types as t ON ie.type_id=t.id'\r\n\t\t\t\t\t. ' WHERE ie.item_id = ' . (int)$this->_id;\r\n\t\t\t\t$this->_db->setQuery($query);\r\n\t\t\t\t$used = $this->_db->loadObject();\r\n\t\t\t}else{\r\n\t\t\t\t$typeid = (int)JRequest::getInt('typeid', 1);\r\n\t\t\t\t$query = 'SELECT t.id,t.name FROM #__flexicontent_types as t'\r\n\t\t\t\t\t. ' WHERE t.id = ' . (int)$typeid;\r\n\t\t\t\t$this->_db->setQuery($query);\r\n\t\t\t\t$used = $this->_db->loadObject();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $used;\r\n\t}", "function get_all_usertype()\n\t\t{\n\t\t\t$query=\"SELECT * from tbl_user_type\";\n\t\t\t$result = execute_query($query);\n\t\t\treturn new readonlyresultset($result);\n\t\t}", "public function get_types()\n {\n }", "public function fetchGroupTypes(): array;", "public function all($list, $type);", "public function findAll()\n {\n $hydrator = $this->_hydrator;\n $className = $this->_class->getName();\n $result = $this->_em->getConnexionDriver()->findAll($this->_class);\n return array_map(function ($item) use ($hydrator, $className) {\n return $hydrator->hydrate($item, new $className());\n }, $result);\n }", "function getTypesMenu(){\n\t\t$sql=\"SELECT gd.TenGD, ctgd.MaCTGD, ctgd.TenCTGD FROM giaidoan gd, chitietgiaidoan ctgd WHERE gd.MaGD = ctgd.MaGD\";\n\t\t$this->setQuery($sql);\n\t\treturn $this->loadAllRows();\n\t}", "protected function _prepareCollection()\r\n {\r\n $this->setCollection(Mage::getModel('dynamic_brand/brand')->getCollection());\r\n return parent::_prepareCollection();\r\n }", "public static function getTypesList()\n {\n $sql = 'SELECT id AS value, display_name AS text '\n . 'FROM location_type '\n . 'WHERE active = 1';\n $command = Yii::app()->db->createCommand($sql);\n return $command->queryAll(true);\n }", "public function selectAll();", "public function selectAllClasse(){\n\n\t\tif($this->unPdo!=null)\n\t\t{\n\t\t\t$requete=\"select * from classe ;\";\n\t\t\t//preparation de la requete avant execution\n\t\t\t$select= $this->unPdo->prepare($requete);\n\t\t\t//execution de la requete\n\t\t\t$select->execute();\n\t\t\t//extraction des données\n\t\t\t$resultats = $select->fetchAll();\n\t\t\treturn $resultats;\n\t\t}\n\t}", "public function getAllTypes()\n {\n $this->db->select('*', FALSE);\n $this->db->from('item_type');\n $query = $this->db->get();\n return $query->result();\n }", "public function all($type = null)\n {\n return array_filter(\n $this->bag,\n /** @var BuilderInterface $builder */\n function (BuilderInterface $builder) use ($type) {\n return $type === null || $builder->getType() == $type;\n }\n );\n }", "public function findAll() {\r\n $sql = \"select * from t_genre order by gen_id\";\r\n $result = $this->getDb()->fetchAll($sql);\r\n \r\n // Converts query result to an array of domain objects\r\n $genres = array();\r\n foreach ($result as $row) {\r\n $genreId = $row['gen_id'];\r\n $genres[$genreId] = $this->buildDomainObject($row);\r\n }\r\n return $genres;\r\n }", "public function selectAll(ItemType $type): array\n {\n $sql = 'SELECT * FROM library WHERE type = :type';\n\n $statement = $this->connection->prepare($sql);\n $statement->bindValue('type', $type->getValue(), ParameterType::STRING);\n $result = $statement->execute();\n\n $list = [];\n foreach ($result->fetchAllAssociative() as $row) {\n $list[] = LibraryItem::createFromDatabaseArray($row);\n }\n\n return $list;\n }", "public static function get_possible_types()\n {\n }", "public static function get_possible_types()\n {\n }", "public static function get_possible_types()\n {\n }", "public function all()\n {\n return IncomeTypes::all();\n }", "public function structuresAutomatiques() {\n\t\t\t$this->Structurereferente = ClassRegistry::init( 'Structurereferente' );\n\n\t\t\t$results = $this->Structurereferente->find(\n\t\t\t\t'all',\n\t\t\t\tarray(\n\t\t\t\t\t'fields' => array(\n\t\t\t\t\t\t'Structurereferente.typeorient_id',\n\t\t\t\t\t\t'( \"Structurereferente\".\"typeorient_id\" || \\'_\\' || \"Structurereferente\".\"id\" ) AS \"Structurereferente__id\"',\n\t\t\t\t\t\t'Canton.canton'\n\t\t\t\t\t),\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Structurereferente.typeorient_id' => Configure::read( 'Nonoriente66.notisemploi.typeorientId' )\n\t\t\t\t\t),\n\t\t\t\t\t'joins' => array(\n\t\t\t\t\t\t$this->Structurereferente->join( 'StructurereferenteZonegeographique' ),\n\t\t\t\t\t\t$this->Structurereferente->StructurereferenteZonegeographique->join( 'Zonegeographique' ),\n\t\t\t\t\t\t$this->Structurereferente->StructurereferenteZonegeographique->Zonegeographique->join( 'Canton' )\n\t\t\t\t\t),\n\t\t\t\t\t'contain' => false\n\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn Set::combine( $results, '{n}.Structurereferente.typeorient_id', '{n}.Structurereferente.id', '{n}.Canton.canton' );\n\t\t}", "public function getBlockTypes(){\n\t\n\t\tif( empty($this->_block_types) ){\n\t\n\t\t\t$query\t= $this->_db->getQuery(true);\n\t\t\t\n\t\t\t$query->select( 't.content_type_id AS value, t.content_type_name AS text' );\n\t\t\t$query->from( '#__zbrochure_content_types AS t' );\n\t\t\t$query->where( 't.content_type_published = 1' );\n\t\t\t\n\t\t\t$this->_db->setQuery($query);\n\t\t\t$this->_block_types = $this->_db->loadObjectList();\n\n\t\t}\n\t\t\n\t\treturn $this->_block_types;\n\t\n\t}", "public function getAdtTypes()\n {\n $query = \"SELECT ALL FROM adv_type\";\n return $this->getQueryData($query, $this->getConnection());\n }", "public static function get_all_types() {\t\t$types = scandir(str_replace(\"/\", \"\\\\\", dirname(plugin_dir_path( __FILE__ )) . \"\\\\ESWP\\\\MyTypes\"));\r\n\t\t$size = count($types);\r\n\t\t$_types = array();\r\n\t\t\r\n\t\t//Feed in the extra types\r\n\t\t$extra_types = array();\r\n\t\tif(has_filter(\"es_include_types\")) {\r\n\t\t\t$extra_types = apply_filters(\"es_include_types\", $extra_types);\r\n\t\t\t\r\n\t\t\t$size += count($extra_types);\r\n\t\t\t\r\n\t\t\tforeach ($extra_types as $type) {\r\n\t\t\t\t$order = $size;\r\n\t\t\t\t\r\n\t\t\t\tif (method_exists($type, \"get_order\")) {\r\n\t\t\t\t\t$order = $type->get_order();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tarray_push($_types, array(\r\n\t\t\t\t\t\"order\" => $order,\r\n\t\t\t\t\t\"type\" => $type\r\n\t\t\t\t));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Add the included types\r\n\t\tforeach ($types as $type) {\r\n\t\t\tif ($type !== \"BaseType.php\" && trim($type, \".\") !== \"\") {\r\n\t\t\t\t$order = $size + 10;\r\n\t\t\t\t$_type = \"\\\\ESWP\\\\MyTypes\\\\\". explode(\".\", $type)[0];\r\n\t\t\t\t\r\n\t\t\t\tif (class_exists($_type)) {\r\n\t\t\t\t\t$_type_obj = new $_type();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (method_exists($_type, \"get_order\")) {\r\n\t\t\t\t\t\t$order = $_type_obj->get_order();\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\tarray_push($_types, array(\r\n\t\t\t\t\t\t\"order\" => $order,\r\n\t\t\t\t\t\t\"type\" => $_type_obj\r\n\t\t\t\t\t));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $_types;\r\n\t}", "static function listCommonTypes()\n\t{\n\t\t$ds\t\t\t= self::getPropertyDataSourceMappings();\n\t\t$strCode\t= $ds['code'];\n\t\t$strWhere\t= \"$strCode IN ('ST', 'RD', 'AVE', 'LANE', 'CT', 'NR')\";\n\t\t$strOrderBy\t= \"($strCode = 'ST') DESC, ($strCode = 'RD') DESC, ($strCode = 'AVE') DESC, ($strCode = 'LANE') DESC, ($strCode = 'CT') DESC\";\n\t\t\n\t\treturn self::getFor($strWhere, true, $strOrderBy);\n\t}", "public function getVATypesDD() {\n if (!$options = $this->_cache->load('vatypedd')) {\n\t$select = $this->select()\n\t\t->from($this->_name, array('type', 'type'))\n\t\t->order('type');\n\t$options = $this->getAdapter()->fetchPairs($select);\n\t$this->_cache->save($options, 'vatypedd');\n\t}\n\treturn $options;\n }", "public function getBookByType($type = null)\n {\n $result = $this->find('All')->toArray();\n return $result;\n }", "public static function cpt_init() {\n\t\tforeach ( self::$types as $type ) {\n\t\t\tself::evo_custom_post_type( $type['type'] );\n\t\t}\n\t}", "function get_all($post_type) {\n\n\treturn new WP_Query(\n\t\tarray(\n\t\t\t'post_type'\t\t\t=> $post_type,\n\t\t\t'posts_per_page'\t=> -1\n\t\t)\n\t);\n\n}", "function loadObjTree($types=null,$dq=null){\n\t\t$obj_pool = $this->loadChild($types,$dq);\n\t\t$new_obj_pool=array();\n\t\tforeach($obj_pool as $obj){\n\t\t\t$new_obj_pool[$obj->id]=$this->add($obj);\n\t\t\t$sub_obj_pool = $obj->loadObjTree($types,$dq);\n\t\t\tif (is_array($sub_obj_pool)){\n\t\t\t\t$new_obj_pool = array_merge($new_obj_pool, $sub_obj_pool);\n\t\t\t}\n\t\t}\n\t\treturn $new_obj_pool;\n\t}", "public function findAll($hydrateMode = AbstractQuery::HYDRATE_OBJECT);", "function &getDocumentTypesUsing($aOptions = null) {\n $bIds = KTUtil::arrayGet($aOptions, 'ids');\n \n $sTable = KTUtil::getTableName('document_type_fieldsets');\n\n $aQuery = array(\n \"SELECT document_type_id FROM $sTable WHERE fieldset_id = ?\",\n array($this->getId()),\n );\n $aIds = DBUtil::getResultArrayKey($aQuery, 'document_type_id');\n\n if ($bIds) {\n return $aIds;\n }\n\n $aRet = array();\n foreach ($aIds as $iID) {\n $aRet[] =& call_user_func(array('DocumentType', 'get'), $iID);\n }\n return $aRet;\n }", "public function get_personnel_types()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->order_by('personnel_type_name', 'ASC');\n\t\t$query = $this->db->get('personnel_type');\n\t\t\n\t\treturn $query;\n\t}", "public function retrieveEntityTypes()\n {\n return $this->start()->uri(\"/api/entity/type\")\n ->get()\n ->go();\n }" ]
[ "0.6131027", "0.5965004", "0.5882621", "0.5745791", "0.5629154", "0.56290025", "0.5610413", "0.5594425", "0.5591162", "0.55855167", "0.55284137", "0.5450818", "0.54425365", "0.544043", "0.543725", "0.54011315", "0.5401095", "0.5397428", "0.53682977", "0.5337205", "0.52826416", "0.5246632", "0.52414834", "0.5224597", "0.5216619", "0.52142", "0.52098113", "0.51966554", "0.51942843", "0.5171083", "0.5168956", "0.5150005", "0.5142332", "0.5142332", "0.5142332", "0.5142332", "0.5134504", "0.5129245", "0.5119967", "0.5118036", "0.5117887", "0.5116891", "0.51116973", "0.5096461", "0.5065208", "0.50642186", "0.5039527", "0.50254154", "0.5022949", "0.50032526", "0.50028723", "0.50028723", "0.5002233", "0.5002233", "0.5002233", "0.49930403", "0.49926865", "0.4987336", "0.49843526", "0.49809945", "0.49750355", "0.49702042", "0.49586332", "0.49536094", "0.49515092", "0.49389964", "0.49387586", "0.49350494", "0.49307942", "0.49283484", "0.49240676", "0.4911853", "0.4903227", "0.49022993", "0.489822", "0.4896531", "0.48955044", "0.4894985", "0.48924768", "0.48743433", "0.48741284", "0.48726022", "0.48609594", "0.48609594", "0.48609594", "0.48601925", "0.4858291", "0.48574045", "0.48520687", "0.48500234", "0.484987", "0.48494318", "0.48492464", "0.48417178", "0.48351985", "0.4834627", "0.48279795", "0.48268935", "0.4826669", "0.4822624" ]
0.51024747
43
Returns the TableMap related to this peer. This method is not needed for general use but a specific application could have a need.
public static function getTableMap() { return Propel::getDatabaseMap(CastleTypePeer::DATABASE_NAME)->getTable(CastleTypePeer::TABLE_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTableMap()\n {\n return $this->aTables;\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(MetaTableMap::DATABASE_NAME)->getTable(MetaTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(ReportPeer::DATABASE_NAME)->getTable(ReportPeer::TABLE_NAME);\n }", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ItemTableMap::DATABASE_NAME)->getTable(ItemTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(VideoTableMap::DATABASE_NAME)->getTable(VideoTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(MenuConfigTableMap::DATABASE_NAME)->getTable(MenuConfigTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(AliFcTableMap::DATABASE_NAME)->getTable(AliFcTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(EmployeeTableMap::DATABASE_NAME)->getTable(EmployeeTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(SertifikasiPdPeer::DATABASE_NAME)->getTable(SertifikasiPdPeer::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ChoiceFilterTableMap::DATABASE_NAME)->getTable(ChoiceFilterTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(AliEmbonusTableMap::DATABASE_NAME)->getTable(AliEmbonusTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ArtistTableMap::DATABASE_NAME)->getTable(ArtistTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ApInvoiceTableMap::DATABASE_NAME)->getTable(ApInvoiceTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(RuangLongitudinalPeer::DATABASE_NAME)->getTable(RuangLongitudinalPeer::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(AliEcommisionTableMap::DATABASE_NAME)->getTable(AliEcommisionTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(UseractionsTableMap::DATABASE_NAME)->getTable(UseractionsTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(EmailManagerHistoryTableMap::DATABASE_NAME)->getTable(EmailManagerHistoryTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(TPreguntaTableMap::DATABASE_NAME)->getTable(TPreguntaTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(CKOrderXmlTableMap::DATABASE_NAME)->getTable(CKOrderXmlTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(GsDailyDefinedDosePeer::DATABASE_NAME)->getTable(GsDailyDefinedDosePeer::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(CiUsuariosTableMap::DATABASE_NAME)->getTable(CiUsuariosTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(GsGeneriekeProductenPeer::DATABASE_NAME)->getTable(GsGeneriekeProductenPeer::TABLE_NAME);\n }", "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t),\n\t\t\t'USER_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\t'DIALOG_ID' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'required' => true,\n\t\t\t\t'validation' => array(__CLASS__, 'validateDialogId'),\n\t\t\t),\n\t\t\t'ITEM_RID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\t'ITEM_CID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\t'RELATION' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Im\\Model\\RelationTable',\n\t\t\t\t'reference' => array('=this.ITEM_RID' => 'ref.ID'),\n\t\t\t\t'join_type' => 'INNER',\n\t\t\t),\n\t\t\t'CHAT' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Im\\Model\\ChatTable',\n\t\t\t\t'reference' => array('=this.ITEM_CID' => 'ref.ID'),\n\t\t\t\t'join_type' => 'INNER',\n\t\t\t),\n\t\t);\n\t}", "public function getQualifiedMapTable() {\n $options = $this->connection->getConnectionOptions();\n $prefix = $this->connection->tablePrefix($this->mapTable);\n if ($prefix) {\n return $this->mapTable;\n }\n else {\n return $options['database'] . '.' . $this->mapTable;\n }\n }", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(NullDestbankPaymentTableMap::DATABASE_NAME)->getTable(NullDestbankPaymentTableMap::TABLE_NAME);\n }", "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true,\n\t\t\t),\n\t\t\t'USER_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t),\n\t\t\t'USER' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\UserTable',\n\t\t\t\t'reference' => array('=this.USER_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'GROUP_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t),\n\t\t\t'GROUP' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Socialnetwork\\WorkgroupTable',\n\t\t\t\t'reference' => array('=this.GROUP_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'ROLE' => array(\n\t\t\t\t'data_type' => 'enum',\n\t\t\t\t'values' => array(self::ROLE_OWNER, self::ROLE_MODERATOR, self::ROLE_USER, self::ROLE_BAN, self::ROLE_REQUEST),\n\t\t\t),\n\t\t\t'DATE_CREATE' => array(\n\t\t\t\t'data_type' => 'datetime'\n\t\t\t),\n\t\t\t'DATE_UPDATE' => array(\n\t\t\t\t'data_type' => 'datetime'\n\t\t\t),\n\t\t\t'INITIATED_BY_TYPE' => array(\n\t\t\t\t'data_type' => 'enum',\n\t\t\t\t'values' => array(self::INITIATED_BY_USER, self::INITIATED_BY_GROUP),\n\t\t\t),\n\t\t\t'INITIATED_BY_USER_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t),\n\t\t\t'INITIATED_BY_USER' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\UserTable',\n\t\t\t\t'reference' => array('=this.INITIATED_BY_USER_ID' => 'ref.ID'),\n\t\t\t),\n\t\t\t'MESSAGE' => array(\n\t\t\t\t'data_type' => 'text',\n\t\t\t)\n\t\t);\n\t}", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(GsSupplementaireProductenHistoriePeer::DATABASE_NAME)->getTable(GsSupplementaireProductenHistoriePeer::TABLE_NAME);\n }", "public static function getMap()\n {\n return array(\n 'ID' => array(\n 'data_type' => 'integer',\n 'primary' => true,\n 'autocomplete' => true\n ),\n 'APP_ID' => array(\n 'data_type' => 'string',\n 'required' => true,\n 'validation' => array(__CLASS__, 'validateVarchar128'),\n ),\n 'CODE' => array(\n 'data_type' => 'string',\n 'required' => true,\n 'validation' => array(__CLASS__, 'validateVarchar128'),\n ),\n 'TYPE' => array(\n 'data_type' => 'string',\n 'required' => true,\n 'validation' => array(__CLASS__, 'validateType'),\n ),\n 'HANDLER' => array(\n 'data_type' => 'string',\n 'required' => true,\n 'validation' => array(__CLASS__, 'validateHandler'),\n ),\n 'DATE_ADD' => array(\n 'data_type' => 'datetime',\n 'default_value' => new Main\\Type\\DateTime(),\n ),\n 'AUTHOR_ID' => array(\n 'data_type' => 'integer',\n 'default_value' => 0,\n ),\n 'AUTHOR' => array(\n 'data_type' => '\\Bitrix\\Main\\UserTable',\n 'reference' => array(\n '=this.AUTHOR_ID' => 'ref.ID'\n ),\n 'join_type' => 'LEFT',\n ),\n );\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(EvaluacionPreguntaTableMap::DATABASE_NAME)->getTable(EvaluacionPreguntaTableMap::TABLE_NAME);\n }", "protected function getMap()\n {\n if (! $this->map) {\n $this->load();\n }\n\n return $this->map;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseReportPeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseReportPeer::TABLE_NAME)) {\n $dbMap->addTableObject(new \\ReportTableMap());\n }\n }", "public function getMap()\n {\n return $this->map;\n }", "public function getMap()\n {\n return $this->map;\n }", "public static function getMap()\n {\n return self::$map;\n }", "public function getTable()\n {\n return $this->parentTable;\n }", "public final function getTable()\n {\n if ($this->_table === null)\n $this->_table = $this->getParentObject()->getTable();\n \n return $this->_table;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(VideoTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(VideoTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new VideoTableMap());\n }\n }", "public function getTableMappings()\n {\n $tableMapping = array();\n $tableMapping['KEYWORD'] = 'tx_mksearch_keywords';\n\n return $tableMapping;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(EmployeeTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(EmployeeTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new EmployeeTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(ItemTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(ItemTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new ItemTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(MenuConfigTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(MenuConfigTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new MenuConfigTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(AliFcTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(AliFcTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new AliFcTableMap());\n }\n }", "public static function getMap()\n {\n return array(\n new IntegerField(\n 'ID', array(\n 'primary' => true,\n 'autocomplete' => true,\n )\n ),\n new StringField('GID'),\n new StringField('BOARD_ID'),\n new IntegerField('DASHBOARD_ROW_ID'),\n new IntegerField('PARENT_WIDGET_ID'),\n new StringField('WEIGHT'),\n new StringField('CATEGORY_KEY'),\n new StringField('VIEW_KEY'),\n new IntegerField('OWNER_ID'),\n new StringField('WIDGET_CLASS'),\n new DateField('CREATED_DATE'),\n new DateField('UPDATED_DATE'),\n new BooleanField('IS_PATTERN'),\n new ReferenceField(\n 'ROW',\n 'Bitrix\\Report\\VisualConstructor\\Internal\\DashboardRowTable',\n array('=this.DASHBOARD_ROW_ID' => 'ref.ID')\n ),\n new ReferenceField(\n 'PARENTWIDGET',\n 'Bitrix\\Report\\VisualConstructor\\Internal\\WidgetTable',\n array('=this.PARENT_WIDGET_ID' => 'ref.ID')\n )\n );\n }", "function get_maps () {\r\n\t\t$table = $this->get_table_name();\r\n\t\treturn $this->wpdb->get_results(\"SELECT id, title FROM {$table}\", ARRAY_A);\r\n\t}", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(SalesHistoryLotserialTableMap::DATABASE_NAME)->getTable(SalesHistoryLotserialTableMap::TABLE_NAME);\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseSertifikasiPdPeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseSertifikasiPdPeer::TABLE_NAME)) {\n $dbMap->addTableObject(new SertifikasiPdTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(MetaTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(MetaTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new MetaTableMap());\n }\n }", "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'FORUM_ID' => array(\n\t\t\t\t'data_type' => 'integer',\n\t\t\t\t'primary' => true,\n\t\t\t\t'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_FORUM_ID'),\n\t\t\t),\n\t\t\t'SITE_ID' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'primary' => true,\n\t\t\t\t'validation' => array(__CLASS__, 'validateSiteId'),\n\t\t\t\t'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_SITE_ID'),\n\t\t\t),\n\t\t\t'PATH2FORUM_MESSAGE' => array(\n\t\t\t\t'data_type' => 'string',\n\t\t\t\t'validation' => array(__CLASS__, 'validatePath'),\n\t\t\t\t'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_SITE_ID'),\n\t\t\t),\n\t\t\t'FORUM' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Forum\\Forum',\n\t\t\t\t'reference' => array('=this.FORUM_ID' => 'ref.ID')\n\t\t\t),\n\t\t\t'SITE' => array(\n\t\t\t\t'data_type' => 'Bitrix\\Main\\Site',\n\t\t\t\t'reference' => array('=this.SITE_ID' => 'ref.LID'),\n\t\t\t),\n\t\t);\n\t}", "public function getMap() : Map {\n // return the private property as-is\n return $this->map;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(EmailManagerHistoryTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(EmailManagerHistoryTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new EmailManagerHistoryTableMap());\n }\n }", "public function getTable() { return( $this->_table ); }", "public static function getTable();", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(ApInvoiceTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(ApInvoiceTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new ApInvoiceTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(CKOrderXmlTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(CKOrderXmlTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new CKOrderXmlTableMap());\n }\n }", "public function getTable()\n {\n return $this->_from[0]['table'];\n }", "private function getUserNativePreferencesTable()\n\t{\n\t\tif (!$this->table_user_native_preferences)\n\t\t{\n\t\t\t$this->table_user_native_preferences = $this->getServiceLocator()->get('FrontUsers\\Tables\\UserNativePreferencesTable');\n\t\t}//end if\n\t\t\n\t\treturn $this->table_user_native_preferences;\n\t}", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(AliEmbonusTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(AliEmbonusTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new AliEmbonusTableMap());\n }\n }", "public function getTableInformation() {}", "function get_tables()\n {\n return $this->_tables;\n }", "public function getOffsetTable()\n {\n return $this->offsetTable;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(UseractionsTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(UseractionsTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new UseractionsTableMap());\n }\n }", "public static function getTable() {}", "public function getTable() {\n return $this->_table;\n }", "public function getTable() {\n return $this->_table;\n }", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => new Entity\\IntegerField('ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true\n\t\t\t)),\n\t\t\t'PROFILE_ID' => new Entity\\IntegerField('PROFILE_ID', array(\n\t\t\t\t'required' => true\n\t\t\t)),\n\t\t\t'PROFILE_EXEC_ID' => new Entity\\IntegerField('PROFILE_EXEC_ID', array(\n\t\t\t\t'required' => true\n\t\t\t)),\n\t\t\t'DATE_EXEC' => new Entity\\DateTimeField('DATE_EXEC', array(\n\t\t\t\t'default_value' => ''\n\t\t\t)),\n\t\t\t'TYPE' => new Entity\\StringField('TYPE', array(\n\t\t\t\t'required' => true\n\t\t\t)),\n\t\t\t'ENTITY_ID' => new Entity\\IntegerField('ENTITY_ID', array(\n\t\t\t\t'required' => true\n\t\t\t)),\n\t\t\t'FIELDS' => new Entity\\TextField('FIELDS', array()),\n\t\t\t'PROFILE' => new Entity\\ReferenceField(\n\t\t\t\t'PROFILE',\n\t\t\t\t'\\Bitrix\\EsolImportxml\\ProfileTable',\n\t\t\t\tarray('=this.PROFILE_ID' => 'ref.ID'),\n\t\t\t\tarray('join_type' => 'LEFT')\n\t\t\t),\n\t\t\t'PROFILE_EXEC' => new Entity\\ReferenceField(\n\t\t\t\t'PROFILE_EXEC',\n\t\t\t\t'\\Bitrix\\EsolImportxml\\ProfileExecTable',\n\t\t\t\tarray('=this.PROFILE_EXEC_ID' => 'ref.ID'),\n\t\t\t\tarray('join_type' => 'LEFT')\n\t\t\t),\n\t\t\t'IBLOCK_ELEMENT' => new Entity\\ReferenceField(\n\t\t\t\t'IBLOCK_ELEMENT',\n\t\t\t\t'\\Bitrix\\Iblock\\ElementTable',\n\t\t\t\tarray('=this.ENTITY_ID' => 'ref.ID'),\n\t\t\t\tarray('join_type' => 'LEFT')\n\t\t\t),\n\t\t\t'IBLOCK_SECTION' => new Entity\\ReferenceField(\n\t\t\t\t'IBLOCK_SECTION',\n\t\t\t\t'\\Bitrix\\Iblock\\SectionTable',\n\t\t\t\tarray('=this.ENTITY_ID' => 'ref.ID'),\n\t\t\t\tarray('join_type' => 'LEFT')\n\t\t\t),\n\t\t);\n\t}", "public function getMainTable(): Table\n {\n return $this->mainTable;\n }", "public function getTable() {\n return $this->table;\n }", "public function getTable() {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();" ]
[ "0.7261864", "0.72116536", "0.717127", "0.7096744", "0.7096744", "0.7096744", "0.7096744", "0.7096744", "0.7074619", "0.7070026", "0.7058538", "0.7039197", "0.69997746", "0.6999405", "0.69546235", "0.689678", "0.67655534", "0.6731235", "0.66777545", "0.6672004", "0.66231066", "0.66150355", "0.6567072", "0.6531852", "0.6431763", "0.64195526", "0.62346613", "0.6195583", "0.60997224", "0.59780025", "0.59780025", "0.59780025", "0.59780025", "0.59780025", "0.5963932", "0.5884498", "0.586461", "0.58419377", "0.5769369", "0.5736975", "0.57259774", "0.5699315", "0.5699315", "0.5692518", "0.5631509", "0.5603383", "0.55963826", "0.5563782", "0.5517661", "0.5506405", "0.550538", "0.5481393", "0.5477511", "0.54752797", "0.54639655", "0.5462808", "0.5459745", "0.54385924", "0.54360306", "0.54347855", "0.54287064", "0.54102165", "0.54093987", "0.54022616", "0.5401881", "0.54011", "0.5388958", "0.53866935", "0.5385868", "0.53779715", "0.5363647", "0.53616315", "0.53602326", "0.53602326", "0.5360081", "0.5360081", "0.5360081", "0.5360081", "0.5360081", "0.5360081", "0.5350142", "0.53412676", "0.5341263", "0.5341263", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.5314702", "0.53136545", "0.53136545", "0.53136545", "0.53136545", "0.53136545", "0.53136545" ]
0.67339754
17
Add a TableMap instance to the database for this peer class.
public static function buildTableMap() { $dbMap = Propel::getDatabaseMap(BaseCastleTypePeer::DATABASE_NAME); if (!$dbMap->hasTable(BaseCastleTypePeer::TABLE_NAME)) { $dbMap->addTableObject(new \CastleTypeTableMap()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(VideoTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(VideoTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new VideoTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(ItemTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(ItemTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new ItemTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseReportPeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseReportPeer::TABLE_NAME)) {\n $dbMap->addTableObject(new \\ReportTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(EmployeeTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(EmployeeTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new EmployeeTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(ArtistTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(ArtistTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new ArtistTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(AliEmbonusTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(AliEmbonusTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new AliEmbonusTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(AliFcTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(AliFcTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new AliFcTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(MetaTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(MetaTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new MetaTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(TPreguntaTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(TPreguntaTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new TPreguntaTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseSertifikasiPdPeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseSertifikasiPdPeer::TABLE_NAME)) {\n $dbMap->addTableObject(new SertifikasiPdTableMap());\n }\n }", "public static function buildTableMap()\n\t{\n\t $dbMap = Propel::getDatabaseMap(BaseCoursePeer::DATABASE_NAME);\n\t if (!$dbMap->hasTable(BaseCoursePeer::TABLE_NAME))\n\t {\n\t $dbMap->addTableObject(new CourseTableMap());\n\t }\n\t}", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(ApInvoiceTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(ApInvoiceTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new ApInvoiceTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(CKOrderXmlTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(CKOrderXmlTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new CKOrderXmlTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(EmailManagerHistoryTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(EmailManagerHistoryTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new EmailManagerHistoryTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(UseractionsTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(UseractionsTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new UseractionsTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(MenuConfigTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(MenuConfigTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new MenuConfigTableMap());\n }\n }", "public static function buildTableMap()\n\t{\n\t $dbMap = Propel::getDatabaseMap(BaseTbprofessorPeer::DATABASE_NAME);\n\t if (!$dbMap->hasTable(BaseTbprofessorPeer::TABLE_NAME))\n\t {\n\t $dbMap->addTableObject(new TbprofessorTableMap());\n\t }\n\t}", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(AliEcommisionTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(AliEcommisionTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new AliEcommisionTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(ChoiceFilterTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(ChoiceFilterTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new ChoiceFilterTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseGsDailyDefinedDosePeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseGsDailyDefinedDosePeer::TABLE_NAME)) {\n $dbMap->addTableObject(new \\PharmaIntelligence\\GstandaardBundle\\Model\\map\\GsDailyDefinedDoseTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(NullDestbankPaymentTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(NullDestbankPaymentTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new NullDestbankPaymentTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseRuangLongitudinalPeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseRuangLongitudinalPeer::TABLE_NAME)) {\n $dbMap->addTableObject(new RuangLongitudinalTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(CiUsuariosTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(CiUsuariosTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new CiUsuariosTableMap());\n }\n }", "public static function buildTableMap()\n\t{\n\t $dbMap = Propel::getDatabaseMap(BaseAsignacionScPeer::DATABASE_NAME);\n\t if (!$dbMap->hasTable(BaseAsignacionScPeer::TABLE_NAME))\n\t {\n\t $dbMap->addTableObject(new AsignacionScTableMap());\n\t }\n\t}", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseGsGeneriekeProductenPeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseGsGeneriekeProductenPeer::TABLE_NAME)) {\n $dbMap->addTableObject(new \\PharmaIntelligence\\GstandaardBundle\\Model\\map\\GsGeneriekeProductenTableMap());\n }\n }", "public function addTable(Table $table)\n {\n $this->tables[(string) $table] = $table;\n }", "function add_table( Modyllic_Schema_Table $table ) {\n $this->add['tables'][$table->name] = $table;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(SalesHistoryLotserialTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(SalesHistoryLotserialTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new SalesHistoryLotserialTableMap());\n }\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getServiceContainer()->getDatabaseMap(EvaluacionPreguntaTableMap::DATABASE_NAME);\n if (!$dbMap->hasTable(EvaluacionPreguntaTableMap::TABLE_NAME)) {\n $dbMap->addTableObject(new EvaluacionPreguntaTableMap());\n }\n }", "protected function add(Table $table) {\n $this->tables[] = $table;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseGsSupplementaireProductenHistoriePeer::DATABASE_NAME);\n if (!$dbMap->hasTable(BaseGsSupplementaireProductenHistoriePeer::TABLE_NAME)) {\n $dbMap->addTableObject(new \\PharmaIntelligence\\GstandaardBundle\\Model\\map\\GsSupplementaireProductenHistorieTableMap());\n }\n }", "protected function addTable($table, $isRoot = true)\n {\n $table = new Table($table, $isRoot);\n $snap = $this->checkTable($table);\n if(is_object($snap)) return $snap;\n if($snap){\n if(strpos($table->alias, '_') === 0) $table->setAlias($table->alias . $snap, false);\n else $table->setAlias($snap);\n }\n array_push($this->tables, $table);\n return $table;\n }", "protected function update_tables($map)\n\t{\n\t\t\n\t}", "public function addTable(PHPUnit_Extensions_Database_DataSet_ITable $table)\n {\n $this->tables[] = $table;\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(VideoTableMap::DATABASE_NAME)->getTable(VideoTableMap::TABLE_NAME);\n }", "protected function loadMapBuilderClasses()\n {\n $this->table = Doctrine::getTable($this->getClassName());\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ArtistTableMap::DATABASE_NAME)->getTable(ArtistTableMap::TABLE_NAME);\n }", "private function createMapDataTable(Datastore $db)\n {\n $stmt = $db->prepare('CREATE TABLE ' . $this->dataTableName(). ' ('\n . Utils::primaryKeyColumnDeclaration($db->driver(), 'col_id') . ', '\n . 'col_sample_id INTEGER REFERENCES ' . $this->product()->dataTableName() . '(col_id) ON DELETE CASCADE, '\n . 'col_key ' . Utils::sqlStringType($db->driver()) . ' NOT NULL)'\n );\n $db->execute($stmt);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(AliEmbonusTableMap::DATABASE_NAME)->getTable(AliEmbonusTableMap::TABLE_NAME);\n }", "public static function create_table() {\r\n global $wpdb;\r\n $charset_collate = $wpdb->get_charset_collate();\r\n // myhome_locations store locations. It helps when filtering properties by locations (lat/lng)\r\n $table_name = $wpdb->prefix . 'myhome_locations';\r\n\r\n $query = \"CREATE TABLE $table_name (\r\n\t\t\tid bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r\n\t\t\tpost_id bigint(20) UNSIGNED NOT NULL,\r\n\t\t\tlat decimal(10, 8) NOT NULL,\r\n\t\t\tlng decimal(11, 8) NOT NULL,\r\n\t\t\tPRIMARY KEY (id)\r\n\t\t\t) $charset_collate;\";\r\n\r\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r\n dbDelta( $query );\r\n }", "public function addMainTable(TableSchema $tableSchema)\n {\n $this->main = $tableSchema;\n $this->addTable($tableSchema);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(EmployeeTableMap::DATABASE_NAME)->getTable(EmployeeTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ItemTableMap::DATABASE_NAME)->getTable(ItemTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(MetaTableMap::DATABASE_NAME)->getTable(MetaTableMap::TABLE_NAME);\n }", "public static function add($team_set_id, $table_name){\n\t\tif(empty(self::$_setHash[$team_set_id]) || empty(self::$_setHash[$team_set_id][$table_name])){\n\t\t\tself::$_setHash[$team_set_id][] = $table_name;\n\t\t}\n\t}", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(TPreguntaTableMap::DATABASE_NAME)->getTable(TPreguntaTableMap::TABLE_NAME);\n }", "public static function addRelationM2MS($table,$connectortable,$thisid,$mappedid,$connectedtable,$thatid,$cmappedid) {\n\t\t\t$table = new table ($table);\n\t\t\t$table->addRelationM2M($connectortable,$thisid,$mappedid,$connectedtable,$thatid,$cmappedid);\n\t\t}", "protected function bindTable()\n {\n $this->app->singleton('swoole.table', function () {\n return $this->table;\n });\n }", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "public static function getTableMap()\n\t{\n\t\treturn Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);\n\t}", "protected function ensureTables() {\n if (!$this->ensured) {\n if (!$this->connection->schema()->tableExists($this->mapTable)) {\n // Generate appropriate schema info for the map and message tables,\n // and map from the source field names to the map/msg field names\n $count = 1;\n $source_key_schema = array();\n $pks = array();\n foreach ($this->sourceKey as $field_schema) {\n $mapkey = 'sourceid' . $count++;\n $source_key_schema[$mapkey] = $field_schema;\n $pks[] = $mapkey;\n }\n\n $fields = $source_key_schema;\n\n // Add destination keys to map table\n // TODO: How do we discover the destination schema?\n $count = 1;\n foreach ($this->destinationKey as $field_schema) {\n // Allow dest key fields to be NULL (for IGNORED/FAILED cases)\n $field_schema['not null'] = FALSE;\n $mapkey = 'destid' . $count++;\n $fields[$mapkey] = $field_schema;\n }\n $fields['needs_update'] = array(\n 'type' => 'int',\n 'size' => 'tiny',\n 'unsigned' => TRUE,\n 'not null' => TRUE,\n 'default' => MigrateMap::STATUS_IMPORTED,\n 'description' => 'Indicates current status of the source row',\n );\n $fields['rollback_action'] = array(\n 'type' => 'int',\n 'size' => 'tiny',\n 'unsigned' => TRUE,\n 'not null' => TRUE,\n 'default' => MigrateMap::ROLLBACK_DELETE,\n 'description' => 'Flag indicating what to do for this item on rollback',\n );\n $fields['last_imported'] = array(\n 'type' => 'int',\n 'unsigned' => TRUE,\n 'not null' => TRUE,\n 'default' => 0,\n 'description' => 'UNIX timestamp of the last time this row was imported',\n );\n $schema = array(\n 'description' => t('Mappings from source key to destination key'),\n 'fields' => $fields,\n 'primary key' => $pks,\n );\n $this->connection->schema()->createTable($this->mapTable, $schema);\n\n // Now for the message table\n $fields = array();\n $fields['msgid'] = array(\n 'type' => 'serial',\n 'unsigned' => TRUE,\n 'not null' => TRUE,\n );\n $fields += $source_key_schema;\n\n $fields['level'] = array(\n 'type' => 'int',\n 'unsigned' => TRUE,\n 'not null' => TRUE,\n 'default' => 1,\n );\n $fields['message'] = array(\n 'type' => 'text',\n 'size' => 'medium',\n 'not null' => TRUE,\n );\n $schema = array(\n 'description' => t('Messages generated during a migration process'),\n 'fields' => $fields,\n 'primary key' => array('msgid'),\n 'indexes' => array('sourcekey' => $pks),\n );\n $this->connection->schema()->createTable($this->messageTable, $schema);\n }\n $this->ensured = TRUE;\n }\n }", "protected function _initMap()\n {\n // admin >> system settings >> cron & urls >> map database fields\n\n $this->_tableMap['sl_candidate']['sl_candidatepk'] = array('controls' => array('is_key(%) || is_null(%)'));\n $this->_tableMap['sl_candidate']['date_created'] = array('controls'=>array('is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate']['created_by'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['statusfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['sex'] = array('controls'=> array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['firstname'] = array('controls'=> array('!empty(%)'));\n $this->_tableMap['sl_candidate']['lastname'] = array('controls'=> array('!empty(%)'));\n $this->_tableMap['sl_candidate']['nationalityfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['languagefk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['locationfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['play_date'] = array('controls'=>array('empty(%) || is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate']['play_for'] = array('controls'=>array('is_null(%) || is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['rating'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate']['date_birth'] = array('controls'=>array('(% == \"NULL\") || is_date(%)'),'type'=>'date');\n $this->_tableMap['sl_candidate']['is_birth_estimation'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['is_client'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['cpa'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['mba'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ag'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ap'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_am'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_mp'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_in'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ex'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_fx'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ch'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_ed'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_pl'] = array('controls'=>array(),'type'=>'int');\n $this->_tableMap['sl_candidate']['skill_e'] = array('controls'=>array(),'type'=>'int');\n //sys fields\n $this->_tableMap['sl_candidate']['_sys_status'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate']['_sys_redirect'] = array('controls'=>array('is_key(%) || is_null(%)'),'type'=>'int');\n\n\n $this->_tableMap['sl_candidate_profile']['sl_candidate_profilepk'] = array('controls'=>array('is_key(%)'),'type'=>'int','index' => 'pk');\n $this->_tableMap['sl_candidate_profile']['candidatefk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['companyfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['date_created'] = array('controls'=>array('is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate_profile']['created_by'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['date_updated'] = array('controls'=>array('is_datetime(%)'),'type'=>'datetime');\n $this->_tableMap['sl_candidate_profile']['updated_by'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['managerfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['industryfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['occupationfk'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['title'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['department'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['keyword'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['grade'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['salary'] = array('controls'=>array('is_numeric(%) '),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['bonus'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['profile_rating'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['currency'] = array('controls' => array());\n $this->_tableMap['sl_candidate_profile']['currency_rate'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['salary_search'] = array('controls'=>array('is_integer(%)'),'type'=>'int');\n $this->_tableMap['sl_candidate_profile']['target_low'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n $this->_tableMap['sl_candidate_profile']['target_high'] = array('controls'=>array('is_numeric(%)'),'type'=>'float');\n\n $this->_tableMap['sl_candidate_profile']['_has_doc'] = array('controls'=>array());\n $this->_tableMap['sl_candidate_profile']['_in_play'] = array('controls'=>array());\n $this->_tableMap['sl_candidate_profile']['_pos_status'] = array('controls'=>array());\n $this->_tableMap['sl_candidate_profile']['uid'] = array('controls'=>array('!empty(%)'));\n $this->_tableMap['sl_candidate_profile']['_date_updated'] = array('controls'=>array());\n\n\n\n $this->_tableMap['sl_candidate_rm']['sl_candidate_rmpk'] = array('controls' => array('is_key(%) || is_null(%)'));\n $this->_tableMap['sl_candidate_rm']['loginfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_candidate_rm']['candidatefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_candidate_rm']['date_started'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_candidate_rm']['date_ended'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_candidate_rm']['date_expired'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_candidate_rm']['nb_extended'] = array('controls' => array());\n\n\n\n\n $this->_tableMap['sl_company_rss']['sl_company_rsspk'] = array('controls' => array('is_key(%) || is_null(%)'));\n $this->_tableMap['sl_company_rss']['companyfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_company_rss']['date_created'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_company_rss']['nb_news'] = array('controls' => array());\n $this->_tableMap['sl_company_rss']['url'] = array('controls' => array());\n $this->_tableMap['sl_company_rss']['content'] = array('controls' => array());\n\n\n $this->_tableMap['sl_contact']['sl_contactpk'] = array('controls' => array());\n $this->_tableMap['sl_contact']['type'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['item_type'] = array('controls' => array('!empty(%)'));\n $this->_tableMap['sl_contact']['itemfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['date_create'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_contact']['date_update'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_contact']['loginfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['updated_by'] = array('controls' => array('is_null(%) || is_key(%)'));\n $this->_tableMap['sl_contact']['value'] = array('controls' => array('!empty(%)'));\n $this->_tableMap['sl_contact']['description'] = array('controls' => array());\n $this->_tableMap['sl_contact']['visibility'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_contact']['groupfk'] = array('controls' => array('is_integer(%)'));\n\n\n $this->_tableMap['sl_contact_visibility']['sl_contact_visibilitypk'] = array('controls' => array());\n $this->_tableMap['sl_contact_visibility']['sl_contactfk'] = array('controls' => array('is_integer(%)'));\n $this->_tableMap['sl_contact_visibility']['loginfk'] = array('controls' => array('is_integer(%)'));\n\n $this->_tableMap['sl_meeting']['sl_meetingpk'] = array('controls' => array());\n $this->_tableMap['sl_meeting']['date_created'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_meeting']['date_updated'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['date_meeting'] = array('controls' => array('is_datetime(%)'));\n $this->_tableMap['sl_meeting']['created_by'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['candidatefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['attendeefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['type'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_meeting']['location'] = array('controls' => array());\n $this->_tableMap['sl_meeting']['description'] = array('controls' => array());\n $this->_tableMap['sl_meeting']['date_reminder1'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['date_reminder2'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['reminder_update'] = array('controls' => array('is_null(%) || is_datetime(%)'));\n $this->_tableMap['sl_meeting']['meeting_done'] = array('controls' => array('is_integer(%)'));\n $this->_tableMap['sl_meeting']['date_met'] = array('controls' => array());\n\n\n $this->_tableMap['sl_company']['sl_companypk'] = array('controls' => array());\n $this->_tableMap['sl_company']['date_created'] = array('controls' => array());\n $this->_tableMap['sl_company']['created_by'] = array('controls' => array());\n $this->_tableMap['sl_company']['company_owner'] = array('controls' => array());\n $this->_tableMap['sl_company']['date_updated'] = array('controls' => array());\n $this->_tableMap['sl_company']['updated_by'] = array('controls' => array());\n\n $this->_tableMap['sl_company']['level'] = array('controls' => array());\n $this->_tableMap['sl_company']['name'] = array('controls' => array());\n $this->_tableMap['sl_company']['corporate_name'] = array('controls' => array());\n $this->_tableMap['sl_company']['description'] = array('controls' => array());\n $this->_tableMap['sl_company']['address'] = array('controls' => array());\n $this->_tableMap['sl_company']['phone'] = array('controls' => array());\n $this->_tableMap['sl_company']['fax'] = array('controls' => array());\n $this->_tableMap['sl_company']['email'] = array('controls' => array());\n $this->_tableMap['sl_company']['website'] = array('controls' => array());\n\n $this->_tableMap['sl_company']['is_client'] = array('controls' => array());\n $this->_tableMap['sl_company']['is_nc_ok'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_employee'] = array('controls' => array());\n\n $this->_tableMap['sl_company']['num_employee_japan'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_employee_world'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_branch_japan'] = array('controls' => array());\n $this->_tableMap['sl_company']['num_branch_world'] = array('controls' => array());\n $this->_tableMap['sl_company']['revenue'] = array('controls' => array());\n $this->_tableMap['sl_company']['hq'] = array('controls' => array());\n $this->_tableMap['sl_company']['hq_japan'] = array('controls' => array());\n\n\n $this->_tableMap['sl_attribute']['sl_attributepk'] = array('controls' => array());\n $this->_tableMap['sl_attribute']['type'] = array('controls' => array('!empty(%)'));\n $this->_tableMap['sl_attribute']['itemfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_attribute']['attributefk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_attribute']['loginfk'] = array('controls' => array('is_key(%)'));\n $this->_tableMap['sl_attribute']['date_created'] = array('controls' => array('is_datetime(%)'));\n\n\n return true;\n }", "public function install() {\n\n\t\t\tglobal $wpdb;\n\t\t\t$map_location = 'CREATE TABLE `'.$wpdb->prefix.'map_locations` (\n`location_id` int(11) NOT NULL AUTO_INCREMENT,\n`location_title` varchar(255) DEFAULT NULL,\n`location_address` varchar(255) DEFAULT NULL,\n`location_draggable` varchar(255) DEFAULT NULL,\n`location_infowindow_default_open` varchar(255) DEFAULT NULL,\n`location_animation` varchar(255) DEFAULT NULL,\n`location_latitude` varchar(255) DEFAULT NULL,\n`location_longitude` varchar(255) DEFAULT NULL,\n`location_city` varchar(255) DEFAULT NULL,\n`location_state` varchar(255) DEFAULT NULL,\n`location_country` varchar(255) DEFAULT NULL,\n`location_postal_code` varchar(255) DEFAULT NULL,\n`location_zoom` int(11) DEFAULT NULL,\n`location_messages` text DEFAULT NULL,\n`location_settings` text DEFAULT NULL,\n`location_group_map` text DEFAULT NULL,\n`location_extrafields` text DEFAULT NULL,\nPRIMARY KEY (`location_id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;';\n\n\t\t\treturn $map_location;\n\t\t}", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(AliFcTableMap::DATABASE_NAME)->getTable(AliFcTableMap::TABLE_NAME);\n }", "protected function provideTableClassNameMap(): void\n {\n $list = $this->tempMerge('tca.meta.classNameMap', 'tca.classNameMap');\n if (is_array($list)) {\n NamingUtil::$tcaTableClassNameMap = array_merge(NamingUtil::$tcaTableClassNameMap, $list);\n }\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(SertifikasiPdPeer::DATABASE_NAME)->getTable(SertifikasiPdPeer::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ApInvoiceTableMap::DATABASE_NAME)->getTable(ApInvoiceTableMap::TABLE_NAME);\n }", "protected function storeMappingTablePrepare(): void\n {\n // Create a temporary table with the mapper.\n $this->operationSqls[] = <<<'SQL'\n# Create a temporary table to map values.\nDROP TABLE IF EXISTS `_temporary_mapper`;\nCREATE TABLE `_temporary_mapper` LIKE `value`;\nALTER TABLE `_temporary_mapper`\n DROP `resource_id`,\n ADD `source` longtext COLLATE utf8mb4_unicode_ci\n;\nSQL;\n }", "public function register_table() {\n\t\t// make WP aware of our table\n\t\t$this->wpdb->tables[] = static::NAME;\n\t\t$this->wpdb->{static::NAME} = $this->get_full_table_name( static::NAME );\n\n\t\t// create the tables\n\t\tif ( $this->schema_update_required() ) {\n\t\t\t$this->update_table( static::NAME );\n\t\t\t$this->mark_schema_update_complete();\n\t\t}\n\t}", "public function addTable(array &$form, FormStateInterface $form_state) {\n $num_table = $form_state->get('num_table') + 1;\n $form_state->set('num_table', $num_table);\n $form_state->setRebuild();\n }", "public function generateMap()\n {\n $map = array();\n $database = $this->binding->getDatabase()->getData();\n\n foreach ($database->classes as $class) {\n $map[$class->name] = $class->clusters;\n }\n\n $this->map = $map;\n $this->cache->save($this->getCacheKey(), $map);\n }", "function travel_map_install() {\n global $wpdb;\n $table_name = $wpdb->prefix . \"travelmap_countries\";\n\n $charset_collate = $wpdb->get_charset_collate();\n\n $sql = \"CREATE TABLE $table_name (\n id mediumint(9) NOT NULL AUTO_INCREMENT,\n time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n country varchar(100) DEFAULT '' NOT NULL,\n PRIMARY KEY (id)\n ) $charset_collate;\";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta( $sql );\n }", "public function addMap(array $map)\n {\n $this->_map = array_merge($this->_map, $map);\n return $this;\n }", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public function getDatabaseMap()\n\t{\n\t\treturn $this->dbMap;\n\t}", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(CastleTypePeer::DATABASE_NAME)->getTable(CastleTypePeer::TABLE_NAME);\n }", "public function setUpDatabaseTables()\n {\n $table = new DModuleTable();\n $table -> setName(\"currencies\");\n $table -> addBigIncrements( \"id\" , true );\n $table -> addString( \"base\" , true);\n $table -> addLongText( 'rates' , true);\n $table -> addDateTime( 'added' , true );\n $table -> addBoolean( 'status' , true);\n $table -> addString( \"extra\" , false);\n $table -> addString( \"extra2\" , false);\n $this -> addTable( $table );\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(GsDailyDefinedDosePeer::DATABASE_NAME)->getTable(GsDailyDefinedDosePeer::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(ReportPeer::DATABASE_NAME)->getTable(ReportPeer::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(EmailManagerHistoryTableMap::DATABASE_NAME)->getTable(EmailManagerHistoryTableMap::TABLE_NAME);\n }", "public function __construct(){\n $this->loggerM = LoggerMgr::Instance()->getLogger(__CLASS__);\n \n $this->loggerM->trace(\"Enter\");\n parent::__construct();\n\t\t$this->tableDefinitionM = new TableDef(self::TB_TimetableTableC);\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::IdColumnC,ColumnType::integerC));\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::NameColumnC,ColumnType::stringC));\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::DetailColumnC,ColumnType::stringC));\n\t\t$this->tableDefinitionM->addKey(self::IdColumnC);\n \n $this->tableMappingM = new TableMapping();\n \n $this->tableMappingM->addTable(self::phisicalTB_TIMETABLEC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_TIMETABLEC ,\n self::phisicalTB_TIMETABLEIdColumnC ,\n self::IdColumnC,\n ColumnType::integerC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_TIMETABLEC ,\n self::phisicalTB_TIMETABLENameColumnC ,\n self::NameColumnC,\n ColumnType::stringC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_TIMETABLEC ,\n self::phisicalTB_TIMETABLEDetailColumnC ,\n self::DetailColumnC,\n ColumnType::stringC);\n \n $this->tableMappingM->addKey(self::phisicalTB_TIMETABLEC,\n self::phisicalTB_TIMETABLEIdColumnC );\n \n \n $this->loggerM->trace(\"Exit\");\n\t}", "public static function getTableMap()\n {\n return Propel::getDatabaseMap(RuangLongitudinalPeer::DATABASE_NAME)->getTable(RuangLongitudinalPeer::TABLE_NAME);\n }", "public function addAll(array $mapData)\n {\n foreach ($mapData as $localName => $content) {\n $this[$localName] = $content;\n }\n }", "public function add()\r\n {\r\n $this->start();\r\n $this->write_to_db();\r\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(MenuConfigTableMap::DATABASE_NAME)->getTable(MenuConfigTableMap::TABLE_NAME);\n }", "public static function init()\n {\n if (self::$_map != null) {\n return;\n }\n\n self::$_map = [\n self::CONTACT => [\n 'tableName' => \\app\\models\\Contact::tableName(),\n 'label' => 'contact'\n ],\n self::ADDRESS => [\n 'tableName' => \\app\\models\\Address::tableName(),\n 'label' => 'address'\n ],\n self::BANK_ACCOUNT => [\n 'tableName' => \\app\\models\\BankAccount::tableName(),\n 'label' => 'bank account',\n 'viewRoute' => 'bank-account/view'\n ],\n self::ATTACHMENT => [\n 'tableName' => \\app\\models\\Attachment::tableName(),\n 'label' => 'attachment'\n ],\n self::CATEGORY => [\n 'tableName' => \\app\\models\\Category::tableName(),\n 'label' => 'category'\n ],\n self::ORDER => [\n 'tableName' => \\app\\models\\Order::tableName(),\n 'label' => 'order'\n ],\n self::PRODUCT => [\n 'tableName' => \\app\\models\\Product::tableName(),\n 'label' => 'product'\n ],\n self::TRANSACTION => [\n 'tableName' => \\app\\models\\Transaction::tableName(),\n 'label' => 'transaction'\n ],\n self::TRANSACTION_PACK => [\n 'tableName' => \\app\\models\\TransactionPack::tableName(),\n 'label' => 'transaction pack',\n 'viewRoute' => 'transaction-pack/view'\n ],\n self::CONTACT_RELATION => [\n 'tableName' => \\app\\models\\ContactRelation::tableName(),\n 'label' => 'contact relation',\n 'viewRoute' => 'contact-relation/view'\n ],\n self::TAG => [\n 'tableName' => \\app\\models\\Tag::tableName(),\n 'label' => 'tag',\n 'viewRoute' => 'tag/view'\n ],\n ];\n }", "private static function setupDB() {\n\t\t$tbl = self::$table;\n\t\t$dbw = wfGetDB( DB_MASTER );\n\t\twfDebugLog( __METHOD__, \"\\tCreating tables\\n\" );\n\t\t$dbw->query(\n\t\t\t\"CREATE TABLE IF NOT EXISTS $tbl ( pathway varchar(255), day varchar(50) )\", DB_MASTER\n\t\t);\n\t\twfDebugLog( __METHOD__, \"\\tDone!\\n\" );\n\t}", "protected function define(MapperDefinition $map)\n {\n $map->type(TestEntityWithMetadata::class);\n $map->toTable('data');\n\n $map->idToPrimaryKey('id');\n\n $map->embeddedCollection(TestEntityWithMetadata::METADATA)\n ->toTable('data_metadata')\n ->withPrimaryKey('id')\n ->withForeignKeyToParentAs('data_id')\n ->using(new MetadataMapper());\n }", "private function createDBTable() {\n\t\tglobal $wpdb;\n\n\t\tif ( $wpdb->get_var( \"SHOW TABLES LIKE '\" . $this->debug_table . \"'\" ) !== $this->debug_table ) {\n\t\t\t$sql = 'CREATE TABLE `' . $this->debug_table . '` (\n\t\t\t\t`id` INT(9) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t\t\t`timestamp` TIMESTAMP NOT NULL,\n\t\t\t\t`blog` INT(9) NOT NULL,\n\t\t\t\t`message` text NOT NULL\n\t\t\t);';\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\t\tdbDelta( $sql );\n\t\t}\n\t}", "private function newTrackingTable () {\n\t\t//set timezone for timestamps\n\t\tdate_default_timezone_set('America/Toronto');\n\t\t$query = \n\t\t\t\"CREATE TABLE IF NOT EXISTS a2_tracking (id INTEGER AUTO_INCREMENT, hostname VARCHAR(100), url VARCHAR(100), timestamp VARCHAR(20), sequence INTEGER, increment INTEGER, count INTEGER, PRIMARY KEY (id))\";\n\t\t$this->sendQuery($query);\n\t}", "public function table($strTable) {\r\n $this->sqlTables[] = $strTable;\r\n return $this;\r\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ChoiceFilterTableMap::DATABASE_NAME)->getTable(ChoiceFilterTableMap::TABLE_NAME);\n }", "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(AliEcommisionTableMap::DATABASE_NAME)->getTable(AliEcommisionTableMap::TABLE_NAME);\n }", "public function __construct(){\n \n $this->create_tables();\n \n }", "protected function _setupTableMapperArray()\n\t{\n\t\t$this->tableMapperArray = array();\n\t\t\n\t\t$this->tableMapperArray['property_id'] = 'properties';\n\t\t$this->tableMapperArray['external_property_id'] = 'properties';\n\t\t$this->tableMapperArray['sort_order'] = 'properties';\n\t\t\n\t\t$this->tableMapperArray['name'] = 'properties_description';\n\t\t$this->tableMapperArray['admin_name'] = 'properties_description';\n \n\t\t$this->languageDependentMapperArray = array('properties_description');\n\t}", "public function install()\n {\n $tables = $this->getTables();\n foreach($tables as $table) {\n ORM::registerTableOnFly($table);\n }\n $tables['pages']->bindTable('template', 'id', 'templates', OrmTable::MANY_TO_ONE, false, true);\n $pagesBind = $this->tables['pages']->bindTable('parent', 'id', 'pages', OrmTable::MANY_TO_ONE, false, true);\n $pagesBind->setCustomLeftField(\"parentPage\");\n\n $pageToIncludeBind = $tables['pages']->bindTable('id', 'page', 'includes', OrmTable::ONE_TO_MANY, true, true);\n $pageToIncludeBind->setCustomLeftField(\"includes\");\n\n\n //@TODO includes table must be binded to blocks, blocks to templates. Templates need no bind to includes.\n $templateToIncludeBind = $tables['templates']->bindTable('id', 'template', 'includes', OrmTable::ONE_TO_MANY, true, true);\n $templateToIncludeBind->setCustomLeftField(\"includes\");\n\n $templateToBlockBind = $tables['templates']->bindTable('id', 'template', 'blocks', OrmTable::ONE_TO_MANY, true, true);\n $templateToBlockBind->setCustomLeftField(\"blocks\");\n\n foreach($tables as $table) {\n ORM::createTable($table);\n }\n $this->addBaseDataToDatabase();\n }", "function insert ($tablename, $newRow) \n\t{\n\t\t$lockfp = $this->getLock($tablename);\t\t\t\n\t\t$this->tables[$tablename][] = $newRow;\n\t\t$this->writeTable($tablename);\n\t\t$this->releaseLock($lockfp);\n\t}", "public function add(string $name, Table $table)\n {\n $this->tables[$name] = $table;\n\n return $this;\n }", "public function setInSchema(\\Examples\\HiveTransformETL\\Schema\\ISchemaMap $map) {\n static::$inSchema = $map;\n return $this;\n }", "public function loadDatabase(){\n $table = new Table('Textarea_Widgets');\n $table->add_column('Title', 'text');\n $table->add_column('Content', 'text');\n $table->add_column('WidgetName', 'text');\n $table->create();\n }", "protected function createDatabaseStructure() {}", "public static function getTable()\n {\n return new Table('locations');\n }", "public function getTableMap()\n {\n return $this->aTables;\n }", "public function registerDb() {\n global $wpdb;\n\n $charset_collate = $wpdb->get_charset_collate();\n $table_name = $wpdb->prefix . \"items_bookmark\";\n \n $createTable = \"CREATE TABLE IF NOT EXISTS $table_name (\n user_id INTEGER NOT NULL,\n response_id int,\n utterance_id int,\n PRIMARY KEY (user_id)\n ) $charset_collate;\";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta($createTable);\n }" ]
[ "0.69108903", "0.6824918", "0.6728637", "0.6699367", "0.66535974", "0.6652279", "0.6604993", "0.6602178", "0.6558998", "0.65468985", "0.6516381", "0.65129244", "0.64826274", "0.64619875", "0.645197", "0.6400046", "0.6323089", "0.6317991", "0.623918", "0.61948353", "0.59977216", "0.59838337", "0.59798384", "0.5901177", "0.58730966", "0.58374554", "0.5818903", "0.58018404", "0.5792245", "0.56900024", "0.552582", "0.54358846", "0.5427637", "0.5396042", "0.53151065", "0.52702636", "0.51843697", "0.51516473", "0.51072717", "0.50581324", "0.5049797", "0.50404245", "0.49998188", "0.49727678", "0.49629506", "0.49623072", "0.49572748", "0.49490646", "0.49182677", "0.49182677", "0.49182677", "0.49182677", "0.49182677", "0.4914229", "0.4906124", "0.4893975", "0.4880024", "0.4877621", "0.4870985", "0.48525682", "0.48356155", "0.4828974", "0.4822505", "0.4803761", "0.48029733", "0.479987", "0.47750372", "0.47750372", "0.47750372", "0.47750372", "0.47750372", "0.47722164", "0.47719032", "0.47716892", "0.47556314", "0.47543713", "0.47493538", "0.4747042", "0.4721189", "0.47122943", "0.47093198", "0.4703401", "0.47018203", "0.46803802", "0.4674586", "0.46654832", "0.46584782", "0.46564323", "0.46498656", "0.4637552", "0.46333343", "0.4628483", "0.46158317", "0.4613059", "0.45985505", "0.45953214", "0.45941114", "0.45834997", "0.45809886", "0.45766672" ]
0.65307564
10
The class that the Peer will make instances of.
public static function getOMClass($row = 0, $colnum = 0) { return CastleTypePeer::OM_CLASS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_class(){\n return self::class;}", "public function get_class()\n {\n return $this->class;\n }", "public function getFamilyClass() {}", "public function getClass() {}", "public function getClass() {}", "public function getClass() {}", "function getType()\n {\n return get_class($this);\n }", "public function getClass()\n {\n return get_class($this);\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getObjectClass() \n {\n return get_class($this);\n }", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass();", "public function getClass() {\n \treturn $this->_class;\n }", "public function getClass()\n {\n return $this->type;\n }", "public function getClass()\n\t{\n\t\treturn $this->_class;\n\t}", "public function getClass()\n\t{\n\t\treturn $this->_class;\n\t}", "public function getPeer()\n {\n if (self::$peer === null) {\n self::$peer = new ActionTypePeer();\n }\n\n return self::$peer;\n }", "public function fetchClass()\n {\n return $this->class;\n }", "function getClass(){\n\t\treturn $this->_class;\n\t}", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "public function getClass()\n {\n return $this->class;\n }", "abstract public function getClass();", "abstract public function getClass();", "public function getClass() {\r\n\t\treturn $this->class;\r\n\t}", "public function getClass()\t{\n\t\treturn $this->class;\n\t}", "abstract protected function getClass();", "protected function getInstantiator() {}", "public function getClass()\n {\n \treturn $this->class;\n }", "public function getType()\n {\n return new ReflectionClass($this);\n }", "public function getType()\n {\n return new ReflectionClass($this);\n }", "public function getClass()\n\t{\n\t\treturn $this->class;\n\t}", "public function getClass()\n\t{\n\t\treturn $this->class;\n\t}", "public function getClass()\n {\n return $this->_className;\n }", "protected function getClass()\n {\n return __CLASS__;\n }", "public function getClass() {\n return $this->class;\n }", "public function getTargetClass()\r\n\t{\r\n\t\treturn $this->target;\r\n\t}", "public static function getClass()\n {\n return get_class(new static);\n }", "function get_instance($class)\n {\n }", "static public function getClass();", "function __toString()\n {\n return __CLASS__;\n }", "public function getTargetClass()\n {\n return $this->targetClass;\n }", "public function getMorphClass();", "public function getMorphClass();", "public function getMorphClass();", "public function getCommunicatorClass()\n {\n return $this->getProperty('communicator');\n }", "protected function getClass()\n {\n return 'Wrench\\\\Util\\\\Ssl';\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }" ]
[ "0.6341992", "0.6255986", "0.60088027", "0.5990001", "0.59899485", "0.59899485", "0.598509", "0.5970912", "0.59064627", "0.58968186", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58876216", "0.58674616", "0.58561236", "0.58098125", "0.58098125", "0.57720536", "0.57535225", "0.5753432", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5748355", "0.5727915", "0.5727915", "0.5713498", "0.5702966", "0.5700554", "0.5698379", "0.5694872", "0.56918406", "0.56918406", "0.56794953", "0.56794953", "0.5672063", "0.5666882", "0.5665422", "0.56387156", "0.5632188", "0.5628631", "0.55981565", "0.55910605", "0.5576256", "0.55672646", "0.55672646", "0.55672646", "0.5560282", "0.5559888", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214", "0.55056214" ]
0.0
-1
Performs an INSERT on the database, given a CastleType or Criteria object.
public static function doInsert($values, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); } if ($values instanceof Criteria) { $criteria = clone $values; // rename for clarity } else { $criteria = $values->buildCriteria(); // build Criteria from CastleType object } if ($criteria->containsKey(CastleTypePeer::ID) && $criteria->keyContainsValue(CastleTypePeer::ID) ) { throw new PropelException('Cannot insert a value for auto-increment primary key ('.CastleTypePeer::ID.')'); } // Set the correct dbName $criteria->setDbName(CastleTypePeer::DATABASE_NAME); try { // use transaction because $criteria could contain info // for more than one table (I guess, conceivably) $con->beginTransaction(); $pk = BasePeer::doInsert($criteria, $con); $con->commit(); } catch (Exception $e) { $con->rollBack(); throw $e; } return $pk; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function doInsert($subject, Statement $insertStatement);", "public function insert(DataObject $insertObject, Database_Config $databaseConfig = NULL);", "public function insert(stubObject $entity);", "public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}", "public function insert(DataObject $entity){\n }", "public static function insertData()\n {\n $db = ezcDbInstance::get();\n $stmt = $db->prepare(\n \"insert into \" . $db->quoteIdentifier( \"PO_database_type_test\" ) . \n \" (\" .\n $db->quoteIdentifier( \"bool\" ) . \", \" .\n $db->quoteIdentifier( \"int\" ) . \", \" .\n $db->quoteIdentifier( \"str\" ) . \", \" .\n $db->quoteIdentifier( \"lob\" ) . \n \" ) VALUES ( :bool, :int, :str, :lob )\"\n );\n\n $stmt->bindValue( ':bool', 1 );\n $stmt->bindValue( ':int', 23 );\n $stmt->bindValue( ':str', 'Non binary string' );\n $stmt->bindValue( ':lob', \"Binary \\x00 string\", PDO::PARAM_LOB );\n\n $stmt->execute();\n\n $stmt->bindValue( ':bool', 0 );\n $stmt->bindValue( ':int', -42 );\n $stmt->bindValue( ':str', \"Binary \\x00 string\", PDO::PARAM_STR );\n $stmt->bindValue( ':lob', \"Binary \\x00 string\", PDO::PARAM_LOB );\n\n $stmt->execute();\n }", "protected function insert()\n\t{\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tinsert into\n\t\t\t\tBooth (BoothNum)\n\t\t\t\tvalues (?)\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "function insert($query, $param_type, $param_value_array) {\n $sql = $this->connection->prepare($query);\n $this->bindQueryParams($sql, $param_type, $param_value_array);\n $sql->execute();\n $insertId = $sql->insert_id;\n return $insertId;\n }", "public function testInsertInstance() {\r\n $this->assertInstanceOf('\\PM\\Main\\Database\\Insert', $this->_instance->insert());\r\n }", "public function insert()\n\t{\n\t\t$sql_array = array();\n\t\tforeach ($this->object_config as $name => $null)\n\t\t{\n\t\t\t$sql_array[$name] = $this->validate_property($this->$name, $this->object_config[$name]);\n\t\t}\n\n\t\t$sql = 'INSERT INTO ' . $this->sql_table . ' ' . $this->db->sql_build_array('INSERT', $sql_array);\n\t\t$this->db->sql_query($sql);\n\n\t\tif ($id = $this->db->sql_nextid())\n\t\t{\n\t\t\t$this->{$this->sql_id_field} = $id;\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public static function INSERT()\n {\n return new Streamwide_PHPUnit_Extensions_Database_Operation_Insert();\n }", "public abstract function insert();", "public final function insert()\n {\n // Run beforeCreate event methods and stop when one of them return bool false\n if ($this->runBefore('create') === false)\n return false;\n\n // Create tablename\n $tbl = '{db_prefix}' . $this->tbl;\n\n // Prepare query and content arrays\n $fields = array();\n $values = array();\n $keys = array();\n\n // Build insert fields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n // Regardless of all further actions, check and cleanup the value\n $val = $this->checkFieldvalue($fld, $val);\n\n // Put fieldname and the fieldtype to the fields array\n $fields[$fld] = $this->getFieldtype($fld);\n\n // Object or array values are stored serialized to db\n $values[] = is_array($val) || is_object($val) ? serialize($val) : $val;\n }\n\n // Add name of primary key field\n $keys[0] = $this->pk;\n\n // Run query and store insert id as pk value\n $this->data->{$this->pk} = $this->db->insert('insert', $tbl, $fields, $values, $keys);\n\n return $this->data->{$this->pk};\n }", "public function insert($data);", "public static function doInsert($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->insert(self::TABLE_NAME);\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\t$conn->data($key, $par);\n\t\t\t\t//if (isset(self::$_tableFields[$key])) $conn->data($key, $par);\n\t\t\t\t//else throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\treturn (int) DbModel::doInsert($conn, new CampaignDefinitionsModel());\n\t}", "public abstract function Insert();", "abstract public function insert();", "public function testInsert()\n {\n $statement = $this->getQueryBuilderConnection()\n ->insert()\n ->into('querybuilder_tests')\n ->values(\n [\n 'id' => 10,\n 'languageId' => 1,\n 'field' => 'zzzz',\n ]\n )->execute();\n\n $this->assertInstanceOf(\\PDOStatement::class, $statement);\n $this->assertEquals(1, $statement->rowCount());\n\n $result = $this->getQueryBuilderConnection()\n ->select('count(1) as counter')\n ->from('querybuilder_tests')\n ->getOneField('counter');\n\n $this->assertEquals(11, $result);\n\n $statement = $this->getQueryBuilderConnection()\n ->insert(\n [\n 'id' => 11,\n 'languageId' => 1,\n 'field' => 'yyyy',\n ]\n )\n ->into('querybuilder_tests')\n ->execute();\n\n $this->assertInstanceOf(\\PDOStatement::class, $statement);\n $this->assertEquals(1, $statement->rowCount());\n\n $result = $this->getQueryBuilderConnection()\n ->select('count(1) as counter')\n ->from('querybuilder_tests')\n ->getOneField('counter');\n\n $this->assertEquals(12, $result);\n }", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(AliEmbonusTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from AliEmbonus object\n }\n\n if ($criteria->containsKey(AliEmbonusTableMap::COL_AID) && $criteria->keyContainsValue(AliEmbonusTableMap::COL_AID) ) {\n throw new PropelException('Cannot insert a value for auto-increment primary key ('.AliEmbonusTableMap::COL_AID.')');\n }\n\n\n // Set the correct dbName\n $query = AliEmbonusQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(AliFcTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from AliFc object\n }\n\n if ($criteria->containsKey(AliFcTableMap::COL_AID) && $criteria->keyContainsValue(AliFcTableMap::COL_AID) ) {\n throw new PropelException('Cannot insert a value for auto-increment primary key ('.AliFcTableMap::COL_AID.')');\n }\n\n\n // Set the correct dbName\n $query = AliFcQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }", "abstract protected function concreteInsert(DomainObjectInterface &$domainObject): void;", "public static function insert()\n {\n if (isset($_POST['name'], \n $_POST['telephone'],\n $_POST['mobile'],\n $_POST['email'],\n $_POST['clientid'])) {\n ContactDAO::create($_POST['name'], \n $_POST['telephone'],\n $_POST['mobile'],\n $_POST['email'],\n $_POST['clientid']);\n }\n }", "public function insert($runValidation = true, $attributes = null)\n {\n }", "public function insert() {\r\n // Rôle : insérer l'objet courant dans la base de données\r\n // Retour : true / false\r\n // Paramètre : aucun\r\n \r\n // Vérification de l'id\r\n if (!empty($this->getId())) {\r\n debug(get_class($this).\"->insert() : l'objet courant a déjà un id\");\r\n return false;\r\n }\r\n \r\n // Construction de la requête\r\n $sql = \"INSERT INTO `\".$this->getTable().\"` SET \";\r\n $param = [];\r\n $start = true;\r\n \r\n foreach ($this->getChamps() as $nom => $champs) {\r\n if ($nom === $this->getPrimaryKey() or !$champs->getAttribut(\"inBdd\")) {\r\n continue;\r\n }\r\n if ($start) {\r\n $sql .= \"`$nom` = :$nom\";\r\n $start = false;\r\n } else {\r\n $sql .= \", `$nom` = :$nom\";\r\n }\r\n \r\n $param[\":$nom\"] = $champs->getValue();\r\n }\r\n \r\n $sql .= \";\";\r\n \r\n // Préparation de la requête\r\n $req = self::getBdd()->prepare($sql);\r\n \r\n // Exécution de la requête\r\n if (!$req->execute($param)) {\r\n debug(get_class($this).\"->insert() : échec de la requête $sql\");\r\n return false;\r\n }\r\n \r\n // Assignation de l'id\r\n if ($req->rowCount() === 1) {\r\n $this->set($this->getPrimaryKey(), self::getBdd()->lastInsertId());\r\n return true;\r\n } else {\r\n debug(get_class($this).\"->insert() : aucune entrée, ou bien plus d'une entrée, créée\");\r\n return false;\r\n }\r\n }", "public function insert(array $params);", "public function insert($vo) {\n //get instance of date to store in Db\n $date = date(\"Y-m-d h:m:s\");\n // Prepare the insert statement SQL *Talked more on this in acompanying document*\n $stmt = $this->getPdo()->prepare(\n 'INSERT INTO '.$this->_tableName.' ('.\n 'strProductName,'.\n 'strProductDesc,'.\n 'strProductCode,'.\n 'intStock,'.\n 'dtmAdded,'.\n 'dtmDiscontinued,'.\n 'decPrice'.\n ') '.\n 'VALUES ('.\n ':productName,'.\n ':productDesc,'.\n ':productCode,'.\n ':intStock,'.\n ':dtmAdded,'.\n ':dtmDiscontinued,'.\n ':decPrice'.\n ')'\n );\n // Set Params to insert\n //Set Datatype based on PDO param constants, Adds extra level of protection\n $stmt->bindParam(':productName', $vo->getStrProductName(), PDO::PARAM_STR);\n $stmt->bindParam(':productDesc', $vo->getStrProductDesc(), PDO::PARAM_STR);\n $stmt->bindParam(':productCode', $vo->getStrProductCode(), PDO::PARAM_STR);\n $stmt->bindParam(':intStock', $vo->getIntStock(), PDO::PARAM_INT);\n $stmt->bindParam(':dtmAdded', $date, PDO::PARAM_STR);\n $stmt->bindParam(':dtmDiscontinued', $vo->getDtmDiscontinued(), PDO::PARAM_STR);\n $stmt->bindParam(':decPrice', $vo->getDecPrice(), PDO::PARAM_STR);\n\n // Try to execute the statement, catch exception if fails.\n try {\n $stmt->execute();\n }\n // Catch and output any exceptions\n catch (PDOException $e)\n {\n var_Dump($e);\n }\n }", "public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->insertGbaseItem($this->getEntry());\n $this->setEntry($entry);\n $entryId = $this->getEntry()->getId();\n $published = $this->gBaseDate2DateTime($this->getEntry()->getPublished()->getText());\n $this->getItem()\n ->setGbaseItemId($entryId)\n ->setPublished($published);\n\n if ($expires = $this->_getAttributeValue('expiration_date')) {\n $expires = $this->gBaseDate2DateTime($expires);\n $this->getItem()->setExpires($expires);\n }\n }", "protected function insert() {\n $dbh = $this->getDbh();\n $table = $this->tableName;\n $data = [];\n\n foreach ($this->fillable as $key => $value) {\n $data[$key] = $this->$key;\n }\n\n $query = 'INSERT INTO `' . $table . '` VALUES (NULL,';\n $first = true;\n foreach ($data AS $k => $value) {\n if (!$first)\n $query .= ', ';\n else\n $first = false;\n $query .= ':'.$k;\n }\n $query .= ')';\n\n $msc = microtime(true);\n\n $sth = $dbh->prepare($query);\n $sth->execute($data);\n\n $msc = microtime(true) - $msc;\n $line = \"insert() => \" . $query . \" with \" . implode(\"', '\", $data);\n $this->writeRequestLog($line, $msc);\n\n return true;\n }", "public final function insert(DataObject $do){\n\n //Vérifie si l'objet entré en paramètre est instance de Album\n if($do instanceof Album){\n\n //Récupère la méthode de connection à la BDD\n $dbc = Application::getInstance()->getDBConnection();\n\n //Prépare la requête SQL\n $query = \"insert into Album(IdAlbum,LibelleAlbum) values (:IdAlbum,:LibelleAlbum)\";\n\n //Prépare la requête en dur avec la BDD et la requête correspondante\n $stmt = $dbc->prepare($query);\n\n //Remplace les paramètres \":IdAlbum\" et \"LibelleAlbum\" par les valeurs de l'objet\n $stmt->bindValue(':IdAlbum',$do->getIDAlbum(),PDO::PARAM_STR);\n $stmt->bindValue(':LibelleAlbum',$do->getLIbelleAlbum(),PDO::PARAM_STR);\n\n //Exécute finallement la requête\n $stmt->execute($data);\n }\n }", "public function insertRecord ($sqlString);", "public function insert($data, $type = null)\n {\n\n \n if(!empty($type) && $type == \"addtocart\")\n \n $result = $this->database->add_to_cart($data);\n \n else if(!empty($type) && $type == \"purchases\")\n $result = $this->database->update_purchase($data);\n else\n $result = $this->database->product_insert($data);\n \n \n \n return $result;\n }", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(AliEcommisionTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from AliEcommision object\n }\n\n if ($criteria->containsKey(AliEcommisionTableMap::COL_ID) && $criteria->keyContainsValue(AliEcommisionTableMap::COL_ID) ) {\n throw new PropelException('Cannot insert a value for auto-increment primary key ('.AliEcommisionTableMap::COL_ID.')');\n }\n\n\n // Set the correct dbName\n $query = AliEcommisionQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }", "public function insert(...$field_values);", "public function insert() {\n\t\t\t\n\t\t\t$insert_array = $this->buildInsertFields();\n\t\t\t$query = \"INSERT INTO \" . $this->table_name . \" (\" . $insert_array['insert_statement'] . \") VALUES (\" . \n\t\t\t\t\t\t\t\t\t$insert_array['values_statement'] . \")\";\n\t\t\treturn $this->query($query, $insert_array['bind_params']);\n\n\t\t}", "public static function doInsert($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->insert(self::TABLE_NAME);\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\t$conn->data($key, $par);\n\t\t\t\t//if (isset(self::$_tableFields[$key])) $conn->data($key, $par);\n\t\t\t\t//else throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\treturn (int) DbModel::doInsert($conn, new PollTemplatesModel());\n\t}", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(ApInvoiceTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from ApInvoice object\n }\n\n\n // Set the correct dbName\n $query = ApInvoiceQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(ItemTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from Item object\n }\n\n if ($criteria->containsKey(ItemTableMap::COL_ITEM_ID) && $criteria->keyContainsValue(ItemTableMap::COL_ITEM_ID) ) {\n throw new PropelException('Cannot insert a value for auto-increment primary key ('.ItemTableMap::COL_ITEM_ID.')');\n }\n\n\n // Set the correct dbName\n $query = ItemQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }", "public static function insert()\n {\n }", "public function insert() {\n $this->observer->idchangemoney = $this->connection->insert(\"ren_change_money\", array(\n \"`change`\" => $this->observer->change,\n \"`year`\" => $this->observer->year,\n \"`idmoney`\" => $this->observer->money->idmoney\n ), $this->user->iduser);\n }", "public function insert() {\n $sql = \"INSERT INTO contratos (numero_contrato, objeto_contrato, presupuesto, fecha_estimada_finalizacion)\n VALUES (:numero_contrato, :objeto_contrato, :presupuesto, :fecha_estimada_finalizacion)\";\n $args = array(\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n if ($stmt) {\n $this->id = $this->getConnection()->lastInsertId();\n }\n\n return !$stmt ? false : true;\n }", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(UseractionsTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from Useractions object\n }\n\n if ($criteria->containsKey(UseractionsTableMap::COL_ID) && $criteria->keyContainsValue(UseractionsTableMap::COL_ID) ) {\n throw new PropelException('Cannot insert a value for auto-increment primary key ('.UseractionsTableMap::COL_ID.')');\n }\n\n\n // Set the correct dbName\n $query = UseractionsQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }", "protected function _insert()\n {\n \t$metadata = $this->_table->info(Zend_Db_Table_Abstract::METADATA);\n \t\n \tif(isset($metadata['created_at']))\n\t\t\t$this->_data['created_at'] = new Zend_Date ();\n \tif(isset($metadata['updated_at']))\n\t\t\t$this->_data['updated_at'] = new Zend_Date ();\n }", "protected function _insert()\n\t{\n\t}", "protected function saveInsert()\n {\n }", "public function insert(PhpORM_Entity $entity)\n {\n $table = $this->getTable();\n $data = $entity->toArray();\n\n return $table->insert($data);\n }", "public function insert(Persona $persona);", "function insert ()\n\t\t{\n\t\t\t(string) $dbQuery = \"\";\n\t\t\t\n\t\t\t$dbQuery = \"INSERT INTO $this->criterio_table \";\n\t\t \t$dbQuery .= \"(\";\n\t\t \t\n\t\t\t$dbQuery .= $this->nombre_field.\",\";\n\t\t\t$dbQuery .= $this->descripcion_field.\",\";\n\t\t\t$dbQuery .= $this->puntajeMaximo_field.\",\";\n\t\t\t\n\t\t\t$dbQuery = preg_replace('/,$/', ' ', $dbQuery);\n\t\t\t$dbQuery .= \") \";\n\t\t\t$dbQuery .= \" VALUES (\";\n\t\t \t\n\t\t\t$dbQuery .= \" '$this->nombre',\";\n\t\t\t$dbQuery .= \" '$this->descripcion',\";\n\t\t\t$dbQuery .= \" $this->puntajeMaximo ,\";\n\t\t\t\n\t\t \t\n\t\t \t$dbQuery = preg_replace('/,$/', ' ', $dbQuery);\n\t\t \t$dbQuery .= \") \";\n\t\t \n\t\t \t$this->db->query( $dbQuery );\n\t\t\t\n\t\t\t$this->idcriterio = mysql_insert_id();\n\t\t\tif ($this->db->affected_rows() == 0) return false;\n\t\t\treturn true;\n\t\t}", "public function insert($cotizacion);", "public static function doInsert($values, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(CoursePeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\n\t\tif ($values instanceof Criteria) {\n\t\t\t$criteria = clone $values; // rename for clarity\n\t\t} else {\n\t\t\t$criteria = $values->buildCriteria(); // build Criteria from Course object\n\t\t}\n\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\ttry {\n\t\t\t// use transaction because $criteria could contain info\n\t\t\t// for more than one table (I guess, conceivably)\n\t\t\t$con->beginTransaction();\n\t\t\t$pk = BasePeer::doInsert($criteria, $con);\n\t\t\t$con->commit();\n\t\t} catch(PropelException $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\n\t\treturn $pk;\n\t}", "public function _insert($data)\n {\n $this->insert($data);\n }", "public function createInsertSql(): \\Hx\\Db\\Sql\\InsertInterface;", "public function insert($entity){\n\t\ttry {\n\t\t\t$data = $entity->toArray();\n\t\t\t$this->callBehavior('beforeInsert',$data);\n\t\t\t$this->convertId($data);\n\t\t\t$result = $this->collection->insertOne($data);\n\t\t\t$data['_id'] = $result->getInsertedId();\n\t\t\t//$this->doIntegrateIn($data);\n\t\t\t$this->callBehavior('afterInsert',$data);\n\t\t} catch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "function insert($sql){\n\n\t\tglobal $way;\n\t\t$way -> query($sql);\n\n\t}", "abstract public function insertRecord($tableName, $record);", "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "public static function Insert(){\r\n }", "abstract function performInsert(Form $arg0);", "protected function insert()\n\t{\n\t\t//prepare placeholders for SQL query\n\t\t$placeholders = implode(\",\", array_fill(0, count($this->attributes), \"?\"));\n\t\t//prepare columns names for SQL query\n\t\t$columns = implode( \"`,`\", array_keys($this->attributes) );\n\t\t\n\t\t$methodAttributes = array_values($this->attributes);\n\t\t// add first method attribute - query\n\t\tarray_unshift($methodAttributes, \"INSERT INTO `\" . static::$table . \"` (`$columns`) VALUES ($placeholders)\");\n\t\t\n\t\t// inserting\n\t\t$result = call_user_func_array(\"Database::insert\", $methodAttributes);\n\t\tif( $result )\n\t\t{\n\t\t\t$this->isExist = true;\n\t\t\t// set PK\n\t\t\t$this->attributes[static::$primaryKey] = Database::lastInsertId();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public function insert($params){\n\t\t$DB = Registry::getInstance()->DB;\n\t\t$prefix = \"INSERT \";\n\t\t$p = $this->clean($params);\t\n\t\t$statement = $prefix.\" \".$params['tables'][0].\" \".$this->genSet($p['set']);\t\n\t\t$DB->exec($statement);\t\n\t}", "protected function performInsert()\n {\n $attributes = $this->getAttributes();\n $updatedField = $this->getApi()->{'create'.ucfirst($this->getEntity())}($attributes);\n $this->fill($updatedField);\n $this->exists = true;\n $this->wasRecentlyCreated = true;\n\n return true;\n }", "protected function _insert() {\n $def = $this->_getDef();\n if(!isset($def) || !$def){\n return false;\n }\n \n foreach ($this->_tableData as $field) {\n $fields[] = $field['field_name'];\n $value_holder[] = '?';\n $sql_fields[] = '`' . $field['field_name'] . '`';\n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n $$field_name = $this->$field_name;\n \n if($$field_name instanceof \\DateTime){\n $$field_name = $$field_name->format('Y-m-d H:i:s');\n }\n \n if(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n }\n \n $values[] = $$field_name;\n }\n \n $this->setLastError(NULL);\n \n $sql = \"INSERT INTO `{$this->_table}` (\" . implode(',', $sql_fields) . \") VALUES (\" . implode(',', $value_holder) . \")\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $success = true;\n if ($stmt->error !== '') {\n $this->setLastError($stmt->error);\n $success = false;\n }\n \n $id = $stmt->insert_id;\n \n $stmt->close();\n \n $primaryKey = $this->_getPrimaryKey();\n \n $this->{$primaryKey} = $id;\n \n return $success;\n }", "public function insert($entity)\n\t{\n\t\t$entityData = $entity->getData();\n\t\t// Make sure we have some data to insert\n\t\tif (count($entityData))\n\t\t{\n\t\t\t// Get the data for the defined fields only\n\t\t\t$data = array();\n\t\t\tforeach ($entityData as $field => $value)\n\t\t\t{\n\t\t\t\tif ($this->fieldExists($field))\n\t\t\t\t{\n\t\t\t\t\t$data[$field] = $value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (count($data))\n\t\t\t{\n\t\t\t\t// Create the database query and execute\n\t\t\t\t$query = DB::insert($this->table, array_keys($data));\n\t\t\t\t$query->values(array_values($data));\n\t\t\t\t$result = $query->execute();\n\n\t\t\t\t// Set the primary key\n\t\t\t\t$primaryKeyField = $this->getPrimaryKeyField();\n\t\t\t\t$entity->$primaryKeyField = $result[0];\n\n\t\t\t\t// Get the result\n\t\t\t\t$result = (bool)count($result);\n\n\t\t\t\t// Update all the where values for relations\n\t\t\t\tforeach ($this->relations as $name => $options)\n\t\t\t\t{\n\t\t\t\t\tif (isset($options['where']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$where = $this->getRelationWhere($entity, $options['where']);\n\t\t\t\t\t\t$entity->$name->setConditions($where);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Save relations\n\t\t\t\tif ($result)\n\t\t\t\t{\n\t\t\t\t\t$this->saveRelations($entity);\n\t\t\t\t\treturn $result;\n\t\t\t\t}\n\n\t\t\t\tthrow new DataMapper_Exception('Failed to insert record');\n\t\t\t}\n\t\t}\n\n\t\t// Nothing got inserted\n\t\tthrow new DataMapper_Exception('No data to insert');\n\t}", "public function insert($mambot);", "public function insert(Entity $object)\n {\n $campos = \"\";\n $values = \"\";\n foreach ($this->fields as $key => $value) {\n //Campos que serão inseridos\n if (!empty($campos)) {\n $campos .= ',';\n }\n $campos .= $key;\n //Valores que serão inseridos\n if (!empty($values)) {\n $values .= ',';\n }\n $get = $this->getMethodGetter($key);\n $valor = $object->$get();\n if (empty($valor)) {\n $values .= \"null\";\n } else {\n $values .= \"'\" . $valor . \"'\";\n }\n }\n $query = \"insert into $this->table ($campos) values ($values);\";\n $statement = $this->getConexao()->prepare($query);\n return $statement->execute();\n }", "public function insert()\n {\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $columlList = \" (\";\n $valuelList = \" (\";\n foreach ($this->attributes as $column => $value) {\n $columlList .= $column . \", \";\n $valuelList .= \":\".$column . \", \";\n }\n $columlList = str_last_replace(\", \", \")\", $columlList);\n $valuelList = str_last_replace(\", \", \")\", $valuelList);\n $sqlQuery = \"INSERT INTO \" . $this->table . $columlList . \" VALUES\" . $valuelList;\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n #println($sqlQuery, \"blue\");\n }\n }", "public function insert($gunBbl);", "public function insert($tarConvenio);", "abstract public function insert(string $table, array $row, array $options = []);", "public static function doInsert($values, PropelPDO $con = null)\n\t{\n // symfony_behaviors behavior\n foreach (sfMixer::getCallables('BaseTbprofessorPeer:doInsert:pre') as $sf_hook)\n {\n if (false !== $sf_hook_retval = call_user_func($sf_hook, 'BaseTbprofessorPeer', $values, $con))\n {\n return $sf_hook_retval;\n }\n }\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbprofessorPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\n\t\tif ($values instanceof Criteria) {\n\t\t\t$criteria = clone $values; // rename for clarity\n\t\t} else {\n\t\t\t$criteria = $values->buildCriteria(); // build Criteria from Tbprofessor object\n\t\t}\n\n\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\ttry {\n\t\t\t// use transaction because $criteria could contain info\n\t\t\t// for more than one table (I guess, conceivably)\n\t\t\t$con->beginTransaction();\n\t\t\t$pk = BasePeer::doInsert($criteria, $con);\n\t\t\t$con->commit();\n\t\t} catch(PropelException $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\n // symfony_behaviors behavior\n foreach (sfMixer::getCallables('BaseTbprofessorPeer:doInsert:post') as $sf_hook)\n {\n call_user_func($sf_hook, 'BaseTbprofessorPeer', $values, $con, $pk);\n }\n\n\t\treturn $pk;\n\t}", "public function insert(Array $params){\r\n $sant_params=array();\r\n foreach($params as $key=>$raw_param){\r\n if($raw_param instanceof \\DateTime){\r\n $raw_param = $raw_param->format(\"Y-m-d H:i:s\");\r\n }\r\n $sant_params[$key]=$raw_param;\r\n }\r\n $this->db->insert($this->table, $sant_params);\r\n return $this->db->insertId();\r\n }", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n }", "public function queryInsert($table, $data) : bool;", "public function insert($tableName, $data);", "public function insert( $objet);", "public static function doInsert($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->insert(self::TABLE_NAME);\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\t$conn->data($key, $par);\n\t\t\t\t//if (isset(self::$_tableFields[$key])) $conn->data($key, $par);\n\t\t\t\t//else throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\treturn (int) DbModel::doInsert($conn, new ProjectsListingsModel());\n\t}", "public function testInsert()\n {\n $newData = array('username' => 'newroot', 'password' => 'password');\n $mockPDO = $this->getMock('\\\\PDOMock', array('perform', 'lastInsertId'));\n $mockPDO\n ->expects($this->once())\n ->method('perform')\n ->will($this->returnCallback(function($arg1, $arg2) use ($newData) {\n $sql = 'INSERT INTO `users` (\n `username`,\n `password`\n) VALUES (\n :username,\n :password\n)';\n if($arg1 == $sql && $arg2 == $newData) {\n return 1;\n } else {\n return array();\n }\n }))\n ;\n $mockPDO\n ->expects($this->once())\n ->method('lastInsertId')\n ->will($this->returnValue(1));\n ;\n $storage = new AuraExtendedPdo($mockPDO, new QueryFactory('mysql'));\n\n $id = $storage->save($newData, 'users');\n\n $this->assertEquals(1, $id);\n }", "public function Do_insert_Example1(){\n\n\t}", "public function insert(personal $personal);", "public function Insert(){\n //Instancia conexao com o PDO\n $pdo = Conecta::getPdo();\n //Cria o sql passa os parametros e etc\n $sql = \"INSERT INTO $this->table (idcidade, cidade) VALUES (?, ?)\";\n $consulta = $pdo->prepare($sql);\n $consulta ->bindValue(1, $this->getIdCidade());\n $consulta ->bindValue(2, $this->getCidade());\n $consulta ->execute();\n $last = $pdo->lastInsertId();\n }", "public function _insert()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "public function insert(){\n\t\t$parametro = func_get_args();\n\t\t$resultado = $this->execSql($this->INSERT,$parametro);\n//\t\t\tdie();\n\t\tif(!$resultado){\n\t\t\t$this->onError(\"COD_INSERT\",$this->INSERT);\n\t\t}\n\t\treturn $resultado;\n\t}", "public function insert($conn, $data){\n\t\t$sql_fields=\"\";\n\t\t$sql_vals=\"\";\n\t\t$id_included=false;\n\t\t\n\t\tforeach($data as $field => $val){\n\t\t\tif (!array_key_exists($field, $this->fields)){\n\t\t\t\tthrow new Exception(\"Field \" . $field . \" does not exists\");\n\t\t\t}\n\t\t\t\n\t\t\t$field_info=$this->fields[$field];\n\t\t\tif (!$id_included && $field_info[\"id\"]){\n\t\t\t\t$id_included=true;\n\t\t\t}\n\t\t\t\n\t\t\tif ($sql_fields!=\"\"){\n\t\t\t\t$sql_fields = $sql_fields . \", \";\n\t\t\t}\n\t\t\t$sql_fields = $sql_fields . \"`\" . $field . \"`\";\n\t\t\t\n\t\t\tif ($sql_vals!=\"\"){\n\t\t\t\t$sql_vals = $sql_vals . \", \";\n\t\t\t}\n\t\t\t\n\t\t\t$sql_vals = $sql_vals . $this->quote($conn, $val, $field_info[\"type\"]);\n\t\t}\n\t\t\n\t\t$sql=\"INSERT INTO `\" . $this->table_name . \"` (\" . $sql_fields . \") VALUES (\" . $sql_vals . \")\";\n\t\t\n\t\t$res=$conn->exec($sql);\n\t\tif ($res===FALSE){ \n\t\t\treturn $res;\n\t\t}\n\t\tif (!$id_included && $this->id!=\"\"){\n\t\t\tif ($this->fields[$this->id][\"auto\"]){\n\t\t\t\treturn $conn->lastInsertId();\n\t\t\t}\n\t\t}\n\t\treturn TRUE;\n\t}", "public function insert()\n\t{\n\t\treturn $this->getModel()->insert($this);\n\t}", "public function insert()\n {\n $this->id = insert($this);\n }", "function mINSERT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$INSERT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:19:3: ( 'insert' ) \n // Tokenizer11.g:20:3: 'insert' \n {\n $this->matchString(\"insert\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function insertTest()\n {\n $this->assertEquals(true, $this->object->insert('Ali','Khan',22,'A'));\n }", "public function insert_() {\n\n\n\t\t\t$podcast = Model\\Podcast::get_instance();\n\n\t\t}", "function insertRow($insertObject){\n $dbh = dbConnect();\n if(!$dbh){\n return false;\n }\n $keystring = $insertObject->colString();\n $valuesString = \"\";\n for ($i=0; $i < $insertObject->getTableSize(); $i++)\n {\n $valuesString .= \"?\";\n if($i < $insertObject->getTableSize() - 1){\n $valuesString .= \",\";\n }\n }\n $sql = \"INSERT INTO \".$insertObject::TABLENAME.\"($keystring)\".\" VALUES ($valuesString)\";\n $stmt = mysqli_prepare($dbh, $sql); //creates a statement, a container we can pass back and forth from database\n //$args = array(buildtypestring($dbh, $insertObject::TABLENAME));\n $values = $insertObject->getArray();\n array_unshift($values, buildtypestring($dbh, $insertObject::TABLENAME));\n call_user_func_array(array($stmt,\"bind_param\"), $values); //call bind param on stmt with args\n $result = $stmt->execute();\n if(!$result){\n logSQLError($stmt);\n mysqli_close($dbh);\n return false;\n }\n mysqli_close($dbh);\n return true;\n }", "public function insert($vendor);", "public function insert()\n {\n }", "public function insert()\n {\n }", "public function insert() {\r\n\r\n\t\t// Does the Genre object already have an ID?\r\n\t\tif ( !is_null( $this->id ) ) trigger_error ( \"Genre::insert(): Attempt to insert an Genre object that already has its ID property set (to $this->id).\", E_USER_ERROR );\r\n\r\n\t\t// Insert the Genre\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$sql = \"INSERT INTO :table ( id, name ) VALUES ( :id, :name )\";\r\n\t\t$st = $conn->prepare ( $sql );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->bindValue( \":name\", $this->name, PDO::PARAM_STR );\r\n\t\t$st->execute();\r\n\t\t$this->id = $conn->lastInsertId();\r\n\t\t$conn = null;\r\n\t}", "public function insert()\n {\n $db = new Database();\n $db->insert(\n \"INSERT INTO position (poste) VALUES ( ? )\",\n [$this->poste]\n );\n }", "public function insert(Collect $objCollect){\n $sql = \"INSERT INTO recaudo (RECAUCODIG, RECAUCREDI, RECAUCONCE, RECAUVALOR, RECAUFECHA, RECAUOBSER, RECAUUSUAR, RECAUTIPO) VALUES (\".$objCollect->getCode().\",\".$objCollect->getCodeCredit().\",\".$objCollect->getCodeConcept().\",\".$objCollect->getValue().\",TO_DATE('\".$objCollect->getRegistrationDate().\"', 'yyyy/mm/dd hh24:mi:ss'),'\".$objCollect->getObservation().\"',\".$objCollect->getUser().\",'\".$objCollect->getTypePay().\"')\"; \n $conex = Conexion::getInstancia();\n $stid = oci_parse($conex, $sql);\n oci_execute($stid); \n }", "protected function doInsert( \\gb\\domain\\DomainObject $object ) {\n }", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(ArtistTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from Artist object\n }\n\n if ($criteria->containsKey(ArtistTableMap::ID) && $criteria->keyContainsValue(ArtistTableMap::ID) ) {\n throw new PropelException('Cannot insert a value for auto-increment primary key ('.ArtistTableMap::ID.')');\n }\n\n\n // Set the correct dbName\n $query = ArtistQuery::create()->mergeWith($criteria);\n\n try {\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n $con->beginTransaction();\n $pk = $query->doInsert($con);\n $con->commit();\n } catch (PropelException $e) {\n $con->rollBack();\n throw $e;\n }\n\n return $pk;\n }", "public function insertProduct(Product $product);", "public function insert(Table $table, $row);", "public static function doInsert($criteria, ConnectionInterface $con = null)\n {\n if (null === $con) {\n $con = Propel::getServiceContainer()->getWriteConnection(SalesHistoryLotserialTableMap::DATABASE_NAME);\n }\n\n if ($criteria instanceof Criteria) {\n $criteria = clone $criteria; // rename for clarity\n } else {\n $criteria = $criteria->buildCriteria(); // build Criteria from SalesHistoryLotserial object\n }\n\n\n // Set the correct dbName\n $query = SalesHistoryLotserialQuery::create()->mergeWith($criteria);\n\n // use transaction because $criteria could contain info\n // for more than one table (I guess, conceivably)\n return $con->transaction(function () use ($con, $query) {\n return $query->doInsert($con);\n });\n }" ]
[ "0.6728488", "0.66889215", "0.65220326", "0.6367947", "0.62812436", "0.6267724", "0.6258614", "0.6146561", "0.6107739", "0.607231", "0.6060545", "0.6000775", "0.5997079", "0.5975363", "0.59644806", "0.59403837", "0.5927122", "0.59014034", "0.58890134", "0.585548", "0.584822", "0.5823746", "0.5823685", "0.580476", "0.5803717", "0.57993007", "0.57921314", "0.579064", "0.5784354", "0.5777714", "0.57775307", "0.5777417", "0.57632375", "0.57619166", "0.5759884", "0.57595986", "0.5758643", "0.5756006", "0.5750044", "0.57498527", "0.57328117", "0.5730008", "0.57276416", "0.5727053", "0.57232624", "0.57033145", "0.5700025", "0.569931", "0.5698657", "0.56981623", "0.5692969", "0.5688926", "0.56836915", "0.5682126", "0.56772065", "0.5672344", "0.5672058", "0.5665814", "0.5664938", "0.5660066", "0.5657035", "0.5652051", "0.5651386", "0.5647995", "0.5644644", "0.5633129", "0.5627847", "0.5627589", "0.5622321", "0.5621986", "0.56181794", "0.56181794", "0.56169784", "0.56161124", "0.5609866", "0.5609553", "0.5609329", "0.56083125", "0.56051064", "0.56008804", "0.5581045", "0.55741835", "0.55723375", "0.55680966", "0.55662084", "0.55440706", "0.5541811", "0.554063", "0.55367416", "0.55314475", "0.55298156", "0.55298156", "0.5529197", "0.55276704", "0.5520974", "0.5520775", "0.5518942", "0.5517084", "0.55143344", "0.5512939" ]
0.640713
3
Performs an UPDATE on the database, given a CastleType or Criteria object.
public static function doUpdate($values, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); } $selectCriteria = new Criteria(CastleTypePeer::DATABASE_NAME); if ($values instanceof Criteria) { $criteria = clone $values; // rename for clarity $comparison = $criteria->getComparison(CastleTypePeer::ID); $value = $criteria->remove(CastleTypePeer::ID); if ($value) { $selectCriteria->add(CastleTypePeer::ID, $value, $comparison); } else { $selectCriteria->setPrimaryTableName(CastleTypePeer::TABLE_NAME); } } else { // $values is CastleType object $criteria = $values->buildCriteria(); // gets full criteria $selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s) } // set the correct dbName $criteria->setDbName(CastleTypePeer::DATABASE_NAME); return BasePeer::doUpdate($selectCriteria, $criteria, $con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function update (\\Database\\Query\\Query $query);", "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }", "function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }", "public static function updateByCriteria($setClause, $criteria, $params = array())\n {\n \treturn FactoryAbastract::dao(get_called_class())->updateByCriteria($setClause, $criteria, $params);\n }", "public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function update() {\n global $db;\n $this->_preupdate();\n $sql_set = '';\n $data = array();\n foreach($this->_magicProperties as $key=>$value)\n {\n $sql_set .= \"`\".addslashes($key).\"`=\";\n $sql_set .= \"?,\";\n $data[] = $value;\n }\n $sql_set = substr($sql_set, 0, -1);\n\n $query = \"UPDATE {$this->table} SET $sql_set WHERE \".$this->id_field.\"=?;\";\n $data[] = $this->{'get'.$this->id_field}();\n\n $result = $db->query($query,$data);\n $this->_postupdate($result);\n return $result;\n }", "public function SQL_UPDATE() {\r\n\t}", "public final function update() {\n\t\t$properties = self::getProperties($this);\n\t\t$columns = array_keys($properties);\n\t\t$values = array_values($properties);\n\n\t\t$setArray = array();\n\t\tfor ($i = 0; $i < count($properties); $i++) {\n\t\t\t$column = $columns[$i];\n\t\t\tif (strcmp($column, $this->primaryField) == 0 ||\n\t\t\t\tin_array($column, $this->uniqueFields)\n\t\t\t) {\n\t\t\t\t// Remove the value for binding\n\t\t\t\tunset($values[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$setArray[] = $column . \" = ?\";\n\t\t}\n\n\t\t$sql = \"\n\tUPDATE\n\t\t\" . $this->table . \"\n\tSET\n\t\t\" . implode(\", \", $setArray) . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\t\t// Adds the primary key binding\n\t\t$values[] = $this->{$this->primaryField};\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute($values);\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}", "public function update (ValueObjectAbstract $valueObject);", "public function update($type, $id = null);", "function update($where_clause=null)\n {\n $db = $this->getDb();\n \n $sets = array();\n $values = array();\n// Kint::dump($this->fields);\n foreach( array_keys( $this->fields ) as $field )\n {\n //echo \"<br> field \".Kint::dump($field,'Field',false);\n if(!is_null($where_clause) && $field == $this->id_name){\n \techo \"Skipping primary key '$field' & $this->id_name since there is another WC '$where_clause' \";\n \tcontinue;\n }\t\n if('0'==$field ){\n \tcontinue;\n }\n elseif(is_int($field)){\n \t//Kint::dump($field);\n \t//Kint::dump(array_keys($this->fields));\n \tcontinue;\n }\n elseif (!isset($this->fields[$field]))\n {\n \t//echo \"<br> Empty field $field \";\n \tcontinue;\n }\n elseif ($field == 'updated')\n {\n \t//echo \"<br> Empty field $field \";\n \tcontinue;\n } \n else{\t\n \t$sets []= $field.'=?';\n \t$values []= $this->fields[ $field ];\n }\n }\n $set = join( \", \", $sets );\n \n if(is_null($where_clause)){\n \tif($this->id<0)\n \t\tdie(kint::dump('ERROR: this->id was not set on DBObject',$this));\n \t//$values []= $this->id;\n \t$where_clause = $this->id_name.'='.$this->id; \t\n }\n if(!str_contains($set, 'updated')){\n \t$set .= ',updated = null ';\n }\n\t$sql = 'UPDATE '.$this->table.' SET '.$set.\n \t' WHERE '.$where_clause;\n\t//$this->execute($sql,$values);\n\t//die ('SQL in Update<br/>'.$sql.'<br/>'.var_dump($values));\n //Kint::dump('UpdateSQL',$sql);\n //die('TEST');\n $cmd = 'prepare';\n\ttry{\n\t\t$sth = $db->prepare( $sql );\n\t\t$cmd = 'execute';\n\t\t$this->execute( $sth, $values );\n\t}\n catch(exception $e){\n \t$debug=Zend_Debug::dump('Statement with error',$sql);\t\n \tdie(__LINE__.'Exception in DBObject::'.$cmd.'() while cmd='.$cmd.' SQL='.$sql\n \t\t.' with values <br>'.$values\n \t\t.__LINE__.'Exception:<br>'.nl2br($e)\n \t\t.'<hr/>'.$debug);\n } \t\n }", "public function update () {\n reset($this->__fields);\n $pk = key($this->__fields);\n $form = $this->getForm();\n $updates = array();\n\n foreach ($form as $k => $v) {\n $updates[] = sprintf('%s = :%s', $k, $k);\n }\n\n $sql = sprintf(\n 'UPDATE %s SET %s WHERE %s = :%s'\n , $this->getTableName()\n , implode(',', $updates)\n , $pk\n , $pk\n );\n\n $stmt = $this->__db->prepare($sql);\n $stmt->bindValue($pk, $this->__get($pk));\n\n foreach ($form as $k => $v) {\n if (is_object($v->getData()) && get_class($v->getData()) == 'DateTime') {\n $stmt->bindValue($k, $v->getData(), $this->__fields[$k]['type']);\n } else {\n $stmt->bindValue($k, $v->getData());\n }\n }\n\n $stmt->execute();\n\n return $this;\n }", "public function update() {\n\t\tif (isset($this->params['updated'])) {\n\t\t\t$this->params['updated'] = null;\n\t\t} // 'updated' is an auto timestamp\n\n\t\t$columns = array();\n\t\tforeach (array_keys($this->params) as $key) {\n\t\t\tarray_push($columns, $key . ' = ?');\n\t\t}\n\t\t$bindings = implode(', ', $columns);\n\t\t$sql = 'UPDATE ' . static::$table . ' SET ' . $bindings . ' WHERE id = ' . $this->get('id') . ' ;';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute(array_values($this->params));\n\t}", "function update($query, $param_type, $param_value_array) {\n $sql = $this->connection->prepare($query);\n $this->bindQueryParams($sql, $param_type, $param_value_array);\n $sql->execute();\n }", "public function update($tblUpdate);", "public function updateBy($criteria, $data, $params = false)\n {\n $query = $this->model->query();\n\n /*== FILTER ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;\n\n //Update by field\n if (isset($filter->field))\n $field = $filter->field;\n }\n\n /*== REQUEST ==*/\n $model = $query->where($field ?? 'id', $criteria)->first();\n return $model ? $model->update((array)$data) : false;\n }", "public function update( $sql, $params=array());", "private function internalUpdate()\n {\n $param = array();\n\n // Run before update methods and stop here if the return bool false\n if ($this->runBefore('update') === false)\n return false;\n\n // Define fieldlist array\n $fieldlist = array();\n\n // Build updatefields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n $val = $this->checkFieldvalue($fld, $val);\n $type = $val == 'NULL' ? 'raw' : $this->getFieldtype($fld);\n\n $fieldlist[] = $this->alias . '.' . $fld . '={' . $type . ':' . $fld . '}';\n $param[$fld] = $val;\n }\n\n // Create filter\n $filter = ' WHERE ' . $this->alias . '.' . $this->pk . '={' . $this->getFieldtype($this->pk) . ':' . $this->pk . '}';\n\n // Even if the pk value is present in data, we set this param manually to prevent errors\n $param[$this->pk] = $this->data->{$this->pk};\n\n // Build fieldlist\n $fieldlist = implode(', ', $fieldlist);\n\n // Create complete sql string\n $sql = \"UPDATE {db_prefix}{$this->tbl} AS {$this->alias} SET {$fieldlist}{$filter}\";\n\n // Run query\n $this->db->query($sql, $param);\n\n // Run after update event methods\n if ($this->runAfter('update') === false)\n return false;\n }", "public static function doUpdate($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->update(self::TABLE_NAME);\n\t\tif (!is_a($params, 'wgConnector') && isset($params['where'])) {\n\t\t\tif (!isset($params['wherecol'])) $params['wherecol'] = self::PRIMARY_KEY;\n\t\t\t$conn->where($params['wherecol'], $params['where']);\n\t\t\tunset($params['where']);\n\t\t\tunset($params['wherecol']);\n\t\t}\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\tif (isset(self::$_tableFields[$key])) $conn->set($key, $par);\n\t\t\t\telse throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\t$af = (int) DbModel::doAffected($conn, new CampaignDefinitionsModel());\n\t\tif (!(bool) $af) $af = 1;\n\t\treturn (int) $af;\n\t}", "public abstract function update($object);", "public function update($entity);", "public function update($entity);", "public function update($table, array $data, array $criteria, array $types = [])\n {\n $columns = $values = $conditions = $set = [];\n\n foreach ($data as $columnName => $value) {\n $columns[] = $columnName;\n $values[] = $value;\n $set[] = $columnName . ' = ?';\n }\n\n $this->addCriteriaCondition($criteria, $columns, $values, $conditions);\n\n if (is_string(key($types))) {\n $types = $this->extractTypeValues($columns, $types);\n }\n\n $sql = 'UPDATE ' . $table . ' SET ' . implode(', ', $set)\n . ' WHERE ' . implode(' AND ', $conditions);\n\n return $this->executeStatement($sql, $values, $types);\n }", "public static function doUpdate($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->update(self::TABLE_NAME);\n\t\tif (!is_a($params, 'wgConnector') && isset($params['where'])) {\n\t\t\tif (!isset($params['wherecol'])) $params['wherecol'] = self::PRIMARY_KEY;\n\t\t\t$conn->where($params['wherecol'], $params['where']);\n\t\t\tunset($params['where']);\n\t\t\tunset($params['wherecol']);\n\t\t}\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\tif (isset(self::$_tableFields[$key])) $conn->set($key, $par);\n\t\t\t\telse throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\t$af = (int) DbModel::doAffected($conn, new PollTemplatesModel());\n\t\tif (!(bool) $af) $af = 1;\n\t\treturn (int) $af;\n\t}", "function update(IContract $entity);", "public function update(stubObject $entity);", "public static function updateByCriteria(DaoQuery $qry, $setClause, $criteria, $params = array())\n {\n self::connect();\n return Dao::_execSql('update `' . strtolower($qry->getFocusClass()) . '` set ' . $setClause . ' , updatedById = ' . Core::getUser()->getId() . ' where ' . $criteria, $params);\n }", "protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }", "public function update($table, $fieldValues, $conditions, $bind = []);", "public function update_unit($updateCriteria = true)\n\t{\n global $DB;\n\t\t$stdObj = new stdClass();\n\t\t$stdObj->id = $this->id;\n\t\t$stdObj->name = addslashes($this->name);\n\t\t$stdObj->details = addslashes($this->details);\n\t\t$stdObj->credits = $this->credits;\n\t\t$stdObj->uniqueid = $this->uniqueID;\n\t\t$stdObj->bcgtunittypeid = $this->unitTypeID;\n\t\t$stdObj->bcgtlevelid = $this->levelID;\n\t\t$DB->update_record('block_bcgt_unit', $stdObj);\n\t\t\n\t\tif($updateCriteria)\n\t\t{\n\t\t\t$this->check_criteria_removed();\n\t\t\t\t\n\t\t\tif($this->criterias)\n\t\t\t{\n foreach($this->criterias AS $criteria)\n {\n $criteria->check_sub_criteria_removed();\n\n if($criteria->exists())\n {\n $criteria->update_criteria($this->id);\n }\n else\n {\n $criteria->insert_criteria($this->id);\n }\n }\n\t\t\t}\n\t\t}\n\t}", "public function update($record);", "public function update($data, $type = '')\n {\n }", "function update($idMedicalRecord) // Implementation \r\n\t\t{\r\n\t\t\t$this->idMedicalRecord = $idMedicalRecord;\r\n\t\t\t$dbo = database::getInstance(); // pass back that database object already created perhaps\r\n\t\t\t$sql = $this->buildQuery('update'); // what we want to do (update records)\r\n\r\n\t\t\t$dbo->doQuery($sql); // execute query statement\r\n\t\t}", "public function update() {\n $Sql = \"UPDATE \" . $this->tableName[0] . \" SET \";\n foreach ($this->fieldListArray as $Key_ => $Value_) {\n $Sql = $Sql . \"$Key_='$Value_', \";\n }\n $Sql = substr($Sql, 0, strlen($Sql) - 2);\n $Sql = $Sql . \" WHERE \";\n foreach ($this->conditionArray as $Key_ => $Value_) {\n $Sql = $Sql . \"$Key_='$Value_' AND \";\n }\n $Sql = substr($Sql, 0, strlen($Sql) - 4);\n //echo $Sql;\n return mysqli_query($this->dataBaseConnect->getConnection(), $Sql);\n }", "public function update(DataObject $entity){\n }", "public function update(array $data, array $where);", "public function update($entity){ \n //TODO: Implement update record.\n }", "public function db_update() {}", "public function update($whereCondition, $data) \n\t{\n\t\t$sql = \"UPDATE `\" . $this->table . \"` SET \";\n\n\t\t$sql .= $this->_splitUpdateData($data);\n\n\t\t$sql .= ' ' . $this->_whereCondition($whereCondition) . ';';\n\n\t\t$this->query($sql);\n\t}", "function update($where) {\n}", "public static function doUpdate($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->update(self::TABLE_NAME);\n\t\tif (!is_a($params, 'wgConnector') && isset($params['where'])) {\n\t\t\tif (!isset($params['wherecol'])) $params['wherecol'] = self::PRIMARY_KEY;\n\t\t\t$conn->where($params['wherecol'], $params['where']);\n\t\t\tunset($params['where']);\n\t\t\tunset($params['wherecol']);\n\t\t}\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\tif (isset(self::$_tableFields[$key])) $conn->set($key, $par);\n\t\t\t\telse throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\t$af = (int) DbModel::doAffected($conn, new ProjectsListingsModel());\n\t\tif (!(bool) $af) $af = 1;\n\t\treturn (int) $af;\n\t}", "public function DoUpdate()\n\t{\n\n\t\treturn db_update_records($this->fields, $this->tables, $this->values, $this->filters);\n\t}", "public function update(Entity $entity);", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",comments=\\\"$this->comments\\\",price=\\\"$this->price\\\",brand=\\\"$this->brand\\\",model=\\\"$this->model\\\",y=\\\"$this->y\\\",link=\\\"$this->link\\\",in_existence=\\\"$this->in_existence\\\",is_public=\\\"$this->is_public\\\",is_featured=\\\"$this->is_featured\\\",category_id=\\\"$this->category_id\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update($database, CouchDBObject $object);", "public function queryUpdate($table, $data, $where) : int;", "function adv_update($table, array $data, array $where);", "function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}", "public function testUpdateInstance() {\r\n $this->assertInstanceOf('\\PM\\Main\\Database\\Update', $this->_instance->update());\r\n }", "function mongo_lite_update($collection, $criteria, array $data)\n\t{\n\t\t$collection = mongo_lite($collection);\n\n\t\treturn $collection->update($criteria, $data);\n\t}", "function KM_update($options=array(),$where=array())\n\t {\n\t\tif(isset($options['class'])){\n\t\t $table=$this->db->dbprefix.$options['class'];\n\t }\n\t\telse{\n\t\t $table=$this->table;\n\t\t}\n\t\tif(!empty($options['update']) && !empty($where))\n\t\t{\n\t\t\t$update=$this->db->update($table,$options['update'],$where);\n\t\t\treturn $update;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t }", "public function update($data) {}", "public function update($data) {}", "abstract public function update(string $table, array $set, array $where, array $options = []): int;", "public static function update($options = array()) {\n if (empty($options['table'])) {\n $options['table'] = static::$tableName; \n }\n $sql = new Sql(static::getDb()); \n $set = array();\n $where = array();\n foreach (static::$properties as $property) {\n if (isset($options['set'][$property])) { \n $set[$property] = $options['set'][$property];\n }\n if (isset($options['where'][$property])) { \n $where[$property] = $options['where'][$property];\n }\n }\n if (empty($set) || empty($options['where'])) {\n static::errorParamInvalid('set/where');\n return false;\n } \n if (in_array('updated', static::$properties)) {\n $set['updated'] = new Expression('UNIX_TIMESTAMP()'); \n }\n $update = $sql->update()\n ->table($options['table'])\n ->set($set);\n if (!empty($where)) {\n $update->where($where);\n }\n foreach ($options['where'] as $where) {\n if ($where instanceof Expression) {\n $update->where($where);\n }\n }\n $updateString = $sql->getSqlStringForSqlObject($update); \n Log::info('Update SQL', $updateString);\n if (static::getDb()->query($updateString, Adapter::QUERY_MODE_EXECUTE)) {\n return true;\n }\n return false;\n }", "protected function performUpdate() {}", "protected function update() {\n $this->db->updateRows($this->table_name, $this->update, $this->filter);\n storeDbMsg($this->db,ucwords($this->form_ID) . \" successfully updated!\");\n }", "public function testUpdate(): void { }", "function update($where='')\n {\n $this->_getConnection();\n $this->preSave();\n $req = 'UPDATE `'.$this->_con->pfx.$this->_table.'` SET'.\"\\n\";\n $fields = array();\n $assoc = array();\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']();\n if ($col == 'id') {\n continue;\n } elseif ($field->type == 'manytomany') {\n if (is_array($this->$col)) {\n $assoc[$val['model']] = $this->$col;\n }\n continue;\n }\n $fields[] = '`'.$col.'` = \\''.$this->_con->esc($this->$col).'\\'';\n }\n $req .= implode(','.\"\\n\", $fields);\n if (strlen($where) > 0) {\n $req .= ' WHERE '.$where;\n } else {\n $req .= ' WHERE `id` = \\''.$this->_con->esc($this->_data['id']).'\\'';\n }\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n if (false === $this->get($this->_data['id'])) {\n return false;\n }\n foreach ($assoc as $model=>$ids) {\n $this->batchAssoc($model, $ids);\n }\n return true;\n }", "public function update($where, $data, $table){\n\t\t$this->db->where($where);\n\t\t$this->db->update($table, $data);\n\t}", "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }", "public function update(IEntity $entity);", "public function update( array $params );", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function update($modelData) {\n// codigoCliente = ? ,\n// codigoPedido = ?, \n// monto = ? WHERE codigo = ?\"; \n// \n// $stmt = $this->mysql->getStmt($sql);\n// $stmt->bind_param(\"iidi\", $modelData['codigoCliente'], \n// $modelData['codigoPedido'], \n// $modelData['monto'],\n// $modelData['codigo']);\n// $stmt->execute();\n }", "function _update($entity)\n {\n $key = $this->object->get_primary_key_column();\n return $this->object->_wpdb()->update($this->object->get_table_name(), $this->object->_convert_to_table_data($entity), array($key => $entity->{$key}));\n }", "public function update($params) {\n try { \n return new AppSyncQuery($this->updateCompanyType, $params);\n } catch(\\Exception $e) {\n return $e;\n }\n }", "abstract public function updateRecord($tableName, $record, $where = '');", "public function testUpdate()\n {\n $newData = array('id' => 1, 'username' => 'newroot', 'password' => 'password');\n $mockPDO = $this->getMock('\\\\PDOMock', array('perform'));\n $mockPDO\n ->expects($this->once())\n ->method('perform')\n ->will($this->returnCallback(function($arg1, $arg2) use ($newData) {\n $sql = 'UPDATE `users`\nSET\n `id` = :id,\n `username` = :username,\n `password` = :password\nWHERE\n id = :id';\n\n if($arg1 == $sql && $arg2 == $newData) {\n return 1;\n } else {\n return array();\n }\n }))\n ;\n\n $storage = new AuraExtendedPdo($mockPDO, new QueryFactory('mysql'));\n\n $id = $storage->save($newData, 'users');\n\n $this->assertEquals(1, $id);\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",email1=\\\"$this->email1\\\",address1=\\\"$this->address1\\\",lastname=\\\"$this->lastname\\\",phone1=\\\"$this->phone1\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function Update($entity) {\n }", "function Update(){\r\n $query = \"UPDATE userschedules\r\n SET branchId = $this->branchId, \r\n locationCode = '$this->locationCode',\r\n date = '$this->date',\r\n startingTime = '$this->startingTime',\r\n finishingTime = '$this->finishingTime',\r\n status = '$this->status'\r\n WHERE referenceId = $this->referenceId\r\n AND organizationId = $this->organizationId\";\r\n include(\"includes/dbConnection.php\");\t\t\t\r\n $executeQuery = $db->prepare($query);\r\n $executeQuery->execute() or exit(\"Error: UPDATE query failed.\");\r\n }", "abstract protected function updateModel();", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "private function update(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check permission to update.\n\t\t$result = $this->clsAccessPermission->toUpdate();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to update!\");\n\t\t\treturn;\n\t\t}\n\t\t// Execute Update.\n\t\tif (! $this->objAccessCrud->update ()) {\n\t\t\t$this->msg->setError (\"There were issues on update the record!\");\n\t\t\treturn;\n\t\t}\n\t\t$this->msg->setSuccess (\"Updated the record with success!\");\n\t\treturn;\n\t}", "public static function doUpdate($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->update(self::TABLE_NAME);\n\t\tif (!is_a($params, 'wgConnector') && isset($params['where'])) {\n\t\t\tif (!isset($params['wherecol'])) $params['wherecol'] = self::PRIMARY_KEY;\n\t\t\t$conn->where($params['wherecol'], $params['where']);\n\t\t\tunset($params['where']);\n\t\t\tunset($params['wherecol']);\n\t\t}\n\t\tif (!empty($params) && is_array($params)) {\n\t\t\tforeach ($params as $key=>$par) {\n\t\t\t\tif (isset(self::$_tableFields[$key])) $conn->set($key, $par);\n\t\t\t\telse throw new WgException(\"Field \".self::TABLE_NAME.\".$key does not exist.\");\n\t\t\t}\n\t\t}\n\t\t$af = (int) DbModel::doAffected($conn, new DiscussCategoriesModel());\n\t\tif (!(bool) $af) $af = 1;\n\t\treturn (int) $af;\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "static function Update($table,$param,$param_value,$condition){\n mysql_query(\"update $table set $param = $param_value where $condition\");\n }", "public function update() {\r\n\t\t$this->getMapper()->update($this);\r\n\t}", "public function update($data,$model=false){\n\n if(is_array($data)){\n $data=(array_key_exists(0,$data)) ? $data[0] : $data;\n return $this->allMethodProcess(function() use($data,$model){\n return $this->querySqlFormatter->getUpdateQueryFormatter($data,['where'=>$this->where,'execute'=>$this->execute,\n 'model'=>$this->subClassOf,'bool'=>$this->bool,'detail'=>$model]);\n },\"no--autoscope\");\n\n }\n\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update(Tinebase_Record_Interface $_record) {\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",short_name=\\\"$this->short_name\\\",is_active=\\\"$this->is_active\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update() {\n $this->connection->update(\n \"ren_change_money\", array(\n \"`change`\" => $this->observer->change,\n \"`year`\" => $this->observer->year,\n \"`idmoney`\" => $this->observer->money->idmoney\n ), array(\"idchangemoney\" => $this->observer->idchangemoney), $this->user->iduser\n );\n }", "public function doUpdate() {\n\t\ttry {\n\t\t\tcall_user_func_array( $this->doUpdateFunction, $this->arguments );\n\t\t} catch ( Exception $ex ) {\n\t\t\t$this->exceptionHandler->handleException( $ex, 'data-update-failed',\n\t\t\t\t'A data update callback triggered an exception' );\n\t\t}\n\t}", "function update()\n {\n\n $query = \"UPDATE Proposal set \";\n $query = $query . \"LastEditDate=NOW()\";\n if(isset($this->BidderID))\n {\n $query = $query . \", OpportunityID = '\" . $this->OpportunityID . \"'\"; \n }\n\n if(isset($this->BidderID))\n {\n $query = $query . \", BidderID = '\" . $this->BidderID . \"'\"; \n }\n\n if(isset($this->Status))\n {\n $query = $query . \", Status = \" . $this->Status . \"\"; \n }\n\n if(isset($this->TechnicalScore))\n {\n $query = $query . \", TechnicalScore = \" . $this->TechnicalScore . \" \"; \n }\n\n if(isset($this->FeeScore))\n {\n $query = $query . \", FeeScore = \" . $this->FeeScore . \" \"; \n }\n\n if(isset($this->FinalTotalScore))\n {\n $query = $query . \", FinalTotalScore = \" . $this->FinalTotalScore . \" \"; \n }\n\n if(isset($this->ContractAwarded))\n {\n $query = $query . \", ContractAwarded = \" . $this->ContractAwarded . \" \"; \n }\n\n $query = $query . \" WHERE ProposalID = '\" . $this->ProposalID . \"';\";\n\n $stmt = $this->conn->prepare( $query );\n\n // bind parameters\n //$stmt->bindParam(':ProposalID', $this->ProposalID);\n //$stmt->bindParam(':OpportunityID', $this->OpportunityID);\n //$stmt->bindParam(':BidderID', $this->BidderID);\n //$stmt->bindParam(':Status', $this->Status);\n //$stmt->bindParam(':TechnicalScore', $this->TechnicalScore);\n // $stmt->bindParam(':FeeScore', $this->FeeScore);\n //$stmt->bindParam(':FinalTotalScore', $this->FinalTotalScore);\n\n if($stmt->execute())\n return true;\n else\n return false;\n }", "public function update($data = NULL, $where = NULL){\n $this->db->where($where);\n return $this->db->update($this->table,$data);\n }", "public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function update($sObject = null, $type = 'Contact') {\n $this->error = false;\n try {\n $this->connect();\n if (!isset($sObject->type)) {\n $sObject->type = $type;\n }\n $responseArray = $this->client->update(array($sObject));\n $response = $responseArray[0];\n } catch (Exception $e) {\n print_r($this->client->getLastRequest());\n echo $e->faultstring;\n }\n return($response->success);\n }", "private function Update() {\n $Update = new Update;\n $Update->ExeUpdate(self::Entity, $this->Data, \"WHERE id = :id\", \"id={$this->Post}\");\n if ($Update->getResult()):\n $this->Error = [\"As informações de <b>contato</b> foram atualizadas com sucesso!\", WS_ACCEPT];\n $this->Result = true;\n endif;\n }", "public function updateRecord ($sqlString);", "public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}", "public function update($entity)\n {\n \n }", "protected function execUpdate($table, $where, $fields_values)\n {\n $no_quote_fields = FALSE;\n $GLOBALS[\"TYPO3_DB\"]->exec_UPDATEquery($table, $where, $fields_values, $no_quote_fields);\n }", "public function update($opt) {\n\t\t\t\n\t\t\t$statement = $this->buildUpdate($opt);\n\t\t\t$pdoStatement = $this->prepare($statement);\n\t\t\t$this->__bindValues($pdoStatement);\n\t\t\t\n\t\t\t$pdoStatement->execute();\n\t\t\t$pdoStatement->closeCursor();\n\t\t\t$this->__reset();\n\t\t}", "public function update() {\n if (!$this->id) {\n //echo \"No se tiene referencia al ID del objeto a actulizar.\";\n throw new Exception(\"No se tiene referencia al ID del objeto a actulizar.\");\n }\n\n $sql = \"UPDATE contratos SET numero_contrato=:numero_contrato, objeto_contrato=:objeto_contrato, presupuesto=:presupuesto, fecha_estimada_finalizacion=:fecha_estimada_finalizacion WHERE id=:id\";\n $args = array(\n \":id\" => $this->id,\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }", "abstract public function mass_update();", "protected function update()\n\t{\n\t\t$set = array();\n\t\tforeach( $this->attributes as $column => $value )\n\t\t{\n\t\t\t$set[] = \"`$column`=?\";\n\t\t}\n\t\t$set = implode(\",\", $set);\n\t\t\n\t\t$methodAttributes = array_values( $this->attributes );\n\t\t// add first method attribute - query\n\t\tarray_unshift($methodAttributes, \"UPDATE `\" . static::$table . \"` SET $set WHERE `\" . static::$primaryKey . \"` = ?\");\n\t\t// add last method attribute - primaryKey to WHERE\n\t\t$methodAttributes[] = $this->attributes[static::$primaryKey];\n\t\t\n\t\t// inserting\n\t\treturn call_user_func_array(\"Database::update\", $methodAttributes);\n\t}", "public function updateData()\n {\n try {\n// echo \"<pre>\";\n// print_r($this->where);\n// print_r($this->insertUpdateArray);\n// exit;\n DB::table($this->dbTable)\n ->where($this->where)\n ->update($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n }", "function test_update($urabe, $body)\n{\n $values = $body->update_params;\n $column_name = $body->column_name;\n $column_value = $body->column_value;\n if ($body->driver == \"PG\")\n $table_name = $body->schema . \".\" . $body->table_name;\n else\n $table_name = $body->table_name;\n return $urabe->update($table_name, $values, \"$column_name = $column_value\");\n}" ]
[ "0.6530865", "0.63997346", "0.6393035", "0.63816196", "0.63217145", "0.626907", "0.62530017", "0.620886", "0.6183809", "0.6174507", "0.61533076", "0.61521614", "0.6147019", "0.6140654", "0.61103815", "0.6096868", "0.60962546", "0.6090113", "0.60681206", "0.6049748", "0.6046548", "0.6046548", "0.6045096", "0.60302347", "0.60263526", "0.6023061", "0.60140383", "0.5990493", "0.5985545", "0.5983351", "0.5977784", "0.597568", "0.5940107", "0.59386915", "0.59365976", "0.5904261", "0.5903744", "0.59019405", "0.58934456", "0.5876911", "0.58735764", "0.5855338", "0.58308685", "0.5825999", "0.5820744", "0.5818524", "0.58095604", "0.58023405", "0.5801487", "0.5797412", "0.5790946", "0.5781721", "0.5781721", "0.5765603", "0.5762483", "0.57529163", "0.57501775", "0.5748646", "0.57375383", "0.57318157", "0.5731408", "0.57310075", "0.5726851", "0.57240856", "0.57204217", "0.5716088", "0.57090414", "0.5708393", "0.56926614", "0.568703", "0.5683486", "0.56829756", "0.56803054", "0.5677681", "0.56743467", "0.5674291", "0.56678605", "0.5665726", "0.565781", "0.56553644", "0.5648836", "0.5645738", "0.56438583", "0.5639677", "0.5631599", "0.5630814", "0.56281364", "0.56265", "0.562058", "0.5619834", "0.561681", "0.56119615", "0.5610318", "0.5607297", "0.5601775", "0.55965304", "0.5594636", "0.5593408", "0.55840784", "0.55837005" ]
0.6081812
18
Deletes all rows from the castle_type table.
public static function doDeleteAll(PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); } $affectedRows = 0; // initialize var to track total num of affected rows try { // use transaction because $criteria could contain info // for more than one table or we could emulating ON DELETE CASCADE, etc. $con->beginTransaction(); $affectedRows += BasePeer::doDeleteAll(CastleTypePeer::TABLE_NAME, $con, CastleTypePeer::DATABASE_NAME); // Because this db requires some delete cascade/set null emulation, we have to // clear the cached instance *after* the emulation has happened (since // instances get re-added by the select statement contained therein). CastleTypePeer::clearInstancePool(); CastleTypePeer::clearRelatedInstancePool(); $con->commit(); return $affectedRows; } catch (Exception $e) { $con->rollBack(); throw $e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clear() {\n\n switch ($this->type) {\n case 'sqlite':\n case 'mysql':\n $query[0] = 'DROP TABLE `enrolled`;';\n\n $query[1] = 'DROP TABLE `paid`;';\n\n $query[2] = 'DROP TABLE `admin`;';\n\n $query[3] = 'DROP TABLE `log`';\n\n $query[4] = 'DROP TABLE `stage`';\n\n\t\t\t\t$query[5] = 'DROP TABLE `guest`';\n\n break;\n\n default:\n throw new Exception($this->type . \" is not a valid database type.\");\n break;\n\n }\n\n foreach ($query as $drop) {\n $this->query($drop);\n }\n\n /**\n * Integrity Checking goes here\n */\n\n }", "public function wipe($type) {\n\t\t$table = $this->safeTable($type);\n\t\t$this->adapter->exec(\"DELETE FROM $table\");\n\t}", "public function clearDataByType($type) {\n $sql = 'DELETE shadow_objects.*, shadow_object_relations.* FROM shadow_object_relations LEFT JOIN shadow_objects ON shadow_object_relations.real_object_id = shadow_objects.id WHERE shadow_objects.type = ?';\n $this->database->execute($sql, array($type));\n\n $sql = 'DELETE from `shadow_meta` WHERE type = ?';\n $this->database->execute($sql, array($type));\n }", "public function dropAllTypes()\n {\n $types = [];\n\n foreach ($this->getAllTypes() as $row) {\n $row = (array) $row;\n\n $types[] = reset($row);\n }\n\n if (empty($types)) {\n return;\n }\n\n $this->connection->statement(\n $this->grammar->compileDropAllTypes($types)\n );\n }", "public function dropAllTypes()\n {\n $types = [];\n\n foreach ($this->getAllTypes() as $row) {\n $row = (array) $row;\n\n $types[] = reset($row);\n }\n\n if (empty($types)) {\n return;\n }\n\n $this->connection->statement(\n $this->grammar->compileDropAllTypes($types)\n );\n }", "public function deleteAll(){\n try {\n $this->getTable()->delete();\n } catch (\\Exception $e) {\n $this->handleException($e);\n }\n return;\n }", "public function rebuild()\r\n {\r\n $this->delete(array());\r\n\r\n $table = new Car_Types();\r\n\r\n $this->rebuildStep($table, array(0), 0);\r\n }", "public function deleteAll()\n {\n $query = 'TRUNCATE TABLE `'. $this->getTableName() .'`';\n $this->db->sql_query($query);\n }", "function deleteAll ($tablename) {\n\t\t$this->deleteWhere($tablename, NULL);\n\t}", "function deleteall() {\n\t\t$this->_query( \"DELETE FROM $0\" );\n\t}", "protected function deleteAll()\n {\n Yii::$app->db->createCommand()\n ->delete($this->tableName, [$this->primaryKey => $this->owner->{$this->primaryKey}])\n ->execute();\n }", "public function clearDb ()\n {\n // Empty tables and reset auto-increment values\n $this->_dbh->query('SET FOREIGN_KEY_CHECKS = 0');\n foreach (self::$dbTables as $table) {\n $stmt = $this->_dbh->prepare('TRUNCATE `' . $table . '`');\n $stmt->execute();\n $stmt = $this->_dbh->prepare('ALTER TABLE `' . $table . '` AUTO_INCREMENT = 1');\n $stmt->execute();\n }\n // Re-enable checks only if set as such in config\n $config = parse_ini_file('config/AcToBs.ini', true);\n if (isset($config['checks']['fk_constraints']) && $config['checks']['fk_constraints'] == 1) {\n $this->_dbh->query('SET FOREIGN_KEY_CHECKS = 1');\n }\n // Delete denormalized tables\n foreach (self::$dbDenormalizedTables as $table) {\n $stmt = $this->_dbh->prepare('DROP TABLE IF EXISTS `' . $table . '`');\n $stmt->execute();\n }\n // Delete non-standard taxonomic ranks\n $stmt = $this->_dbh->prepare(\n 'DELETE FROM `taxonomic_rank` WHERE `standard` = ?');\n $stmt->execute(array(\n 0\n ));\n unset($stmt);\n }", "public function wipeAll() {\n\t\tforeach($this->getTables() as $t) {\n\t\t\tforeach($this->getKeys($t) as $k) {\n\t\t\t\t$this->adapter->exec(\"ALTER TABLE \\\"{$k['FKTABLE_NAME']}\\\" DROP FOREIGN KEY \\\"{$k['FK_NAME']}\\\"\");\n\t\t\t}\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t\tforeach($this->getTables() as $t) {\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t}", "static function deleteAll()\n {\n $GLOBALS['DB']->exec(\"DELETE FROM stores;\");\n $GLOBALS['DB']->exec(\"DELETE FROM stores_brands;\");\n }", "function delete_type($id)\n\t\t{\n\t\t\n\t\t$this->db->where('revenue_id',$id);\n\t\t\n\t\t$this->db->delete($this->table_name);\n\t\t\n\t\t}", "public function removeAll() {\n $sql = 'SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE course';\n \n $connection_manager = new connection_manager();\n $conn = $connection_manager->connect();\n \n $stmt = $conn->prepare($sql);\n \n $stmt->execute();\n $count = $stmt->rowCount();\n }", "public function deleteAllTagForType($typeID){\n\t\t$sql = \n\t\t\t\"DELETE FROM typetag \n\t\t\tWHERE typetag.type_id = :typeID\";\n\t\t$query1 = $this->databaseConnection->dbConnection->prepare($sql);\n\t\t$query1->bindParam(':typeID', $typeID);\n\t\t$query1->execute();\n\t}", "public function drop ()\n {\n //delete the records of the lookup value\n $records = LookupValue::where('lookup_type_id', 1)->get();\n foreach ( $records as $record )\n $record->forceDelete();\n\n //delete the lookup definition itself\n $record = LookupType::find(1);\n $record->forceDelete();\n }", "function deleteAll() {\n\t\t$dbh=$this->getdbh();\n\t\t$sts = $dbh->exec('DELETE FROM '.$this->enquote($this->tablename));\n\t\treturn $sts;\n\t\n\t}", "public function delete_all()\n {\n }", "function deleteType($id) {\n \t$sql = \"DELETE FROM type WHERE id=:id\";\n try {\n $db = getConnection(\"alcapp\");\n $stmt = $db->prepare($sql);\n $stmt->bindParam(\"id\", $id);\n $stmt->execute();\n $db = null;\n } catch(PDOException $e) {\n echo '{\"error\":{\"text\":'. $e->getMessage() .'}}';\n }\n }", "protected function deleteStore() {\n $keys = ['entity_type', 'entity_id', 'export_type'];\n foreach ($keys as $key) {\n $this->store->delete($key);\n }\n }", "public function truncate_all_tables_associated_with_contract_table()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n ContractParticipant::truncate();\n Contract::truncate();\n Participant::truncate();\n Payment::truncate();\n Invoice::truncate();\n Legal::truncate();\n Individual::truncate();\n Client::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->assertNull(ContractParticipant::first());\n $this->assertNull(Contract::first());\n $this->assertNull(Participant::first());\n $this->assertNull(Payment::first());\n $this->assertNull(Invoice::first());\n $this->assertNull(Legal::first());\n $this->assertNull(Individual::first());\n $this->assertNull(Client::first());\n }", "public function truncate_all_tables_associated_with_contract_table()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n ContractParticipant::truncate();\n Contract::truncate();\n Participant::truncate();\n Payment::truncate();\n Invoice::truncate();\n Legal::truncate();\n Individual::truncate();\n Client::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->assertNull(ContractParticipant::first());\n $this->assertNull(Contract::first());\n $this->assertNull(Participant::first());\n $this->assertNull(Payment::first());\n $this->assertNull(Invoice::first());\n $this->assertNull(Legal::first());\n $this->assertNull(Individual::first());\n $this->assertNull(Client::first());\n }", "public function delete_type_record($id){\n\t\t$this->db->where('training_type_id', $id);\n\t\t$this->db->delete('training_types');\n\t\t\n\t}", "public static function deleteAll() {\n // Initiate implicit tx if explicit one doesn't exist\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail because 'databaseHandle' wasn't initialized by 'beginTx()' \n assert(isset(self::$databaseHandle));\n\n try {\n $sql_records = static::fetchAll();\n foreach ($sql_records as $record) {\n $record->delete();\n } \n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n }", "public function clear()\r\n\t{\r\n\t\t$this->db->runQuery(\"TRUNCATE TABLE `\" . $this->name . \"`\");\r\n\t}", "public function delete()\n {\n $class = strtolower(get_called_class());\n $table = self::$_table_name != null ? self::$_table_name : $class . 's';\n\n $pdo = PDOS::getInstance();\n\n $whereClause = '';\n foreach (static::$_primary_keys as $pk)\n $whereClause .= $pk . ' = :' . $pk . ' AND ';\n $whereClause = substr($whereClause, 0, -4);\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $whereClause;\n $query = $pdo->prepare($sql);\n $attributes = $this->getAttributes(new \\ReflectionClass($this));\n foreach ($attributes as $k => $v)\n {\n if (in_array($k, static::$_primary_keys))\n $query->bindValue(':' . $k, $v);\n }\n $query->execute();\n }", "public function dropAllTypes()\n {\n throw new LogicException('This database driver does not support dropping all types.');\n }", "public static function dbClearTable($table){\n\t\tif (App::runningUnitTests()) {\n\t\t\tif (DB::table($table)->count() != 0) {\n\t\t\t\t//Turn foreign key checks off <- USE WITH CAUTION!\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\t\t\t//Delete all entries & reset indexes\n\t\t\t\tDB::table($table)->truncate();\n\t\t\t\t//Turn foreign key checks on <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t\t\t}\n\t\t}\n\t}", "public function deleteAll(): void;", "private function purgeTables()\n\t{\t\n\t\t$this->db->query(\"DELETE FROM categories\");\n\t\t$this->db->query(\"DELETE FROM album_art\");\n\t\t$this->db->query(\"TRUNCATE TABLE albums\");\n\t\t\n\t}", "public function dropAllData()\n {\n $database_name = $this->conn->getDatabase();\n\n $tables = $this->conn->query(\"SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = '$database_name';\")->fetchAll();\n\n $queries = \"SET FOREIGN_KEY_CHECKS=0;\\n\";\n\n foreach ($tables as $aTable){\n $queries .= reset($aTable);\n }\n\n $this->conn->executeQuery($queries);\n\n $editora_structure = file_get_contents(__DIR__ .'/../../../../data/editora.sql');\n\n $this->conn->executeQuery($editora_structure);\n }", "public function delall()\n {\n }", "function base_clear(){\n $tables = array(\n 'oc_product',\n 'oc_product_image',\n 'oc_manufacturer',\n 'oc_manufacturer_description',\n 'oc_product_description',\n 'oc_product_to_category',\n 'oc_product_attribute',\n 'oc_attribute',\n 'oc_attribute_description',\n // 'oc_attribute_value',\n // 'oc_category',\n // 'oc_category_description',\n 'oc_product_to_store',\n // 'oc_category_to_store',\n 'oc_manufacturer_to_store',\n 'oc_product_to_layout',\n // 'oc_category_to_layout',\n );\n foreach ($tables as $table)\n {\n sDb::query(\"TRUNCATE TABLE $table\");\n echo \"Таблица $table очищена\\n\";\n }\n}", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function destroy(TypesConges $typesConges)\n {\n //\n }", "abstract public function deleteAll();", "public function deleteAll() {\n if (isset($this::$has)) {\n foreach ($this::$has as $key => $value) {\n if(isset($this->$key)) {\n foreach ($this->$key as $item) {\n $item->deleteAll();\n }\n }\n }\n }\n $this->delete();\n }", "private function clear_dummy_data()\n {\n $this->adapter->query('DELETE FROM ' . RUCKUSING_TS_SCHEMA_TBL_NAME);\n }", "public function dropAllTables()\n {\n $this->connection->statement($this->grammar->compileDropAllForeignKeys());\n\n $this->connection->statement($this->grammar->compileDropAllTables());\n }", "private function truncate()\n {\n // Désactivation des contraintes FK\n $this->co->executeQuery('SET foreign_key_checks = 0');\n // On tronque\n $this->co->executeQuery('TRUNCATE TABLE casting');\n $this->co->executeQuery('TRUNCATE TABLE department');\n $this->co->executeQuery('TRUNCATE TABLE genre');\n $this->co->executeQuery('TRUNCATE TABLE job');\n $this->co->executeQuery('TRUNCATE TABLE movie');\n $this->co->executeQuery('TRUNCATE TABLE movie_genre');\n $this->co->executeQuery('TRUNCATE TABLE person');\n $this->co->executeQuery('TRUNCATE TABLE review');\n $this->co->executeQuery('TRUNCATE TABLE team');\n $this->co->executeQuery('TRUNCATE TABLE user');\n }", "public function dropAllTables()\n {\n $tables = [];\n\n $excludedTables = $this->connection->getConfig('dont_drop') ?? ['spatial_ref_sys'];\n\n foreach ($this->getAllTables() as $row) {\n $row = (array) $row;\n\n $table = reset($row);\n\n if (! in_array($table, $excludedTables)) {\n $tables[] = $table;\n }\n }\n\n if (empty($tables)) {\n return;\n }\n\n $this->connection->statement(\n $this->grammar->compileDropAllTables($tables)\n );\n }", "public function dropAllTables()\n {\n $tables = [];\n\n $excludedTables = $this->connection->getConfig('dont_drop') ?? ['spatial_ref_sys'];\n\n foreach ($this->getAllTables() as $row) {\n $row = (array) $row;\n\n $table = reset($row);\n\n if (! in_array($table, $excludedTables)) {\n $tables[] = $table;\n }\n }\n\n if (empty($tables)) {\n return;\n }\n\n $this->connection->statement(\n $this->grammar->compileDropAllTables($tables)\n );\n }", "function delete($rowid='')\n {\n \tif (empty($rowid)) $rowid=$this->id;\n\n $sql = \"DELETE FROM \".MAIN_DB_PREFIX.\"adherent_type WHERE rowid = \".$rowid;\n\n $resql=$this->db->query($sql);\n if ($resql)\n {\n if ($this->db->affected_rows($resql))\n {\n return 1;\n }\n else\n\t\t\t{\n return 0;\n }\n }\n else\n {\n print \"Err : \".$this->db->error();\n return 0;\n }\n }", "public function deleteAll(){\n if(APPLICATION_ENV == 'production'){\n throw new Exception(\"Not Allowed\");\n }\n $this->getMapper()->deleteAll();\n }", "static function remove_existing_records_cookie_table($action, $camp_id, $types){\n\t\tglobal $wpdb;\n\t\t$tables = self::get_tables_name();\n\t\textract($tables);\n\t\t\n\t\t$sql = \"DELETE FROM $cookie WHERE camp_id = $camp_id AND action = '$action' AND \";\n\t\t\n\t\tswitch($types) {\n\t\t\tcase \"permalink-tag\" :\n\t\t\t\t$sql .= \" ( type = 'permalink' OR type = 'tag' ) \";\n\t\t\t\tbreak;\n\t\t\tcase \"category-tag\" :\n\t\t\t\t$sql .= \" ( type = 'tag' OR type = 'category' ) \";\n\t\t\t\tbreak;\n\t\t\tcase \"permalink\" :\n\t\t\t\t$sql .= \" type = 'permalink' \";\t\t\t\t\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t$wpdb->query($sql);\n\t}", "public function deleted(ClaseType $clases_type)\n {\n // $clases_type->blocks()->delete();\n }", "public function clear_tables()\n\t{\n\t\tglobal $wpdb;\n\t\t$wpdb->query( 'DELETE FROM '.self::$site_table.';' );\n\t}", "public function delete()\r\n\t{\r\n\t\t$sql = 'DELETE FROM ' . TABLE_PREFIX . 'access_ticket_type\r\n\t\t\t\tWHERE att_id = ?';\r\n\t\t$rowCount = $this->db->query($sql, array($this->id))->rowCount();\r\n\r\n\t\treturn $rowCount;\r\n\t}", "public function flush()\n {\n $this->table()->delete();\n }", "public function truncate(): void\n {\n $sql = <<<SQL\nTRUNCATE TABLE `cfg_centreonbroker`;\nTRUNCATE TABLE `cfg_centreonbroker_info`\nSQL;\n $stmt = $this->db->prepare($sql);\n $stmt->execute();\n }", "public function deleteAll() {\n \n $stmt = $this->pdo->prepare('DELETE FROM stocks');\n $stmt->execute();\n return $stmt->rowCount();\n }", "public static function clear(): void\n {\n self::$dialects = [];\n self::$definitions = [];\n self::$loaded = [];\n }", "private function cleanDatabase()\n {\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n foreach($this->tables as $table)\n {\n\n DB::table($table)->truncate();\n\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n\n }", "private function delete_tables()\n {\n global $wpdb;\n\n // this needs to occur at this level, and not in the\n foreach ($this->tables as $tablename) {\n $sql = 'DROP TABLE IF EXISTS ' . $tablename;\n $wpdb->query($sql);\n }\n }", "function timetracking_type_delete(timetrackingType $type) {\n $type->delete();\n}", "public function deleteAll(): int\n {\n return $this->pdo->exec(\"TRUNCATE \" . $this->table);\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public function clearAllDevices(){\n\t\t$db = Db::getInstance();\n\n\t\t$req = $db->prepare('DELETE FROM Devices');\n\t\t$req->execute();\n\t\t\n\n\n\t}", "public function deleteTable(){\n\t \n\t\tglobal $wpdb;\n\n\t\t$wpdb->query('DELETE FROM wp_nouveautes_test WHERE datep_nouveaute > \"2014-04-13\"');\n\n\t\t$wpdb->query('DELETE FROM wp_custom_categories_test WHERE term_id > 247');\n\t\t\t\t \n\t\t$wpdb->query('TRUNCATE TABLE wp_subcategories_test');\n\t\t\n\t\t$wpdb->query('TRUNCATE TABLE wp_extracategories_test');\n\t\t\n\t\t$wpdb->query('TRUNCATE TABLE wp_updated');\n\t\t \t\t \n\t}", "protected function deleteStore() {\n $keys = ['community', 'address', 'state', 'city', 'country','attention_to','company','promocode','is_student','payment_type','name_card','card_number'];\n foreach ($keys as $key) {\n $this->store->delete($key);\n }\n }", "protected function _clearSchema()\n {\n\n // Show all tables in the installation.\n foreach (get_db()->query('SHOW TABLES')->fetchAll() as $row) {\n\n // Extract the table name.\n $rv = array_values($row);\n $table = $rv[0];\n\n // If the table is a Neatline table, drop it.\n if (in_array('neatline', explode('_', $table))) {\n $this->db->query(\"DROP TABLE $table\");\n }\n\n }\n\n }", "public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }", "public function cleanupTypeFeatureTypeLinksAction()\n {\n $type_features_model = new shopTypeFeaturesModel();\n\n $sql = <<<SQL\n DELETE tf\n FROM shop_type_features AS tf\n LEFT JOIN shop_feature AS f\n ON f.id=tf.feature_id\n LEFT JOIN shop_type AS t\n ON t.id=tf.type_id\n WHERE f.id IS NULL OR (t.id IS NULL AND tf.type_id > 0)\nSQL;\n\n $res = $type_features_model->query($sql);\n\n echo \"ok (\".$res->affectedRows().\")\";\n }", "public static function deleteAll() {\n\t\treturn self::_getDao()->deleteAll();\n\t}", "function clearwatson(){\n\t\t$connection = Database::getConnection();\n\t\t//Empty watson table\n\t\t$query=\"TRUNCATE TABLE watson\";\n\t\tif (!$connection->query($query)){\n\t\t\techo \"Error :\" .$query . \"<br>\" . $connection->error;\n\t\t}\n\t\t//Empty watson_country table\n\t\t$query=\"TRUNCATE TABLE watson_country\";\n\t\tif (!$connection->query($query)){\n\t\t\techo \"Error :\" .$query . \"<br>\" . $connection->error;\n\t\t}\n\t}", "public function clear(): void\n {\n $this->transactionsByUserAndType = [];\n }", "public function truncateTables()\n {\n $tables = [\n 'properties',\n 'users',\n ];\n\n DB::unprepared('TRUNCATE TABLE ' . implode(',', $tables) . ' RESTART IDENTITY CASCADE');\n }", "public function deleteTables()\n {\n $db = Core::$db;\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_forms\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_form_placeholders\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_form_templates\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_templates\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_sets\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_set_placeholders\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_set_placeholder_opts\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_set_resources\");\n $db->execute();\n }", "static function clearContact( $table='mapContact' ) {\n $sql = \"DROP TABLE IF EXISTS {$table}\";\n return $sql;\n }", "public static function gc() {\n\t\t// iterate over our types and delete the images\n\t\tforeach (array('album', 'artist') as $type) {\n\t\t\t$sql = \"DELETE FROM `image` USING `image` LEFT JOIN `\" .\n\t\t\t\t$type . \"` ON `\" . $type . \"`.`id`=\" .\n\t\t\t\t\"`image`.`object_id` WHERE `object_type`='\" .\n\t\t\t\t$type . \"' AND `\" . $type . \"`.`id` IS NULL\";\n\t\t\t$db_results = Dba::write($sql);\n\t\t} // foreach\n\t}", "function delete(){\n // Delete subclauses\n foreach($this->subClause as $clause){\n $clause->delete();\n }\n \n mysql_query(\"DELETE FROM resolution WHERE id='$this->clauseId'\") or die(mysql_error());\n }", "protected function delete() {\n $this->db->deleteRows($this->table_name, $this->filter);\n storeDbMsg($this->db);\n }", "public function destroy() {\n $this->connection->schema()->dropTable($this->mapTable);\n $this->connection->schema()->dropTable($this->messageTable);\n }", "public function deleteAll()\n {\n //Find and destroy\n $entities = $this->findAll();\n return $this->deleteAll($entities);\n }", "function remove() {\n $keys = \"\";\n $keys_array = $this->keys();\n for ($i = 0; $i < sizeof($keys_array); $i ++) {\n $keys .= \"'\" . $keys_array[$i] . \"',\";\n }\n $keys = substr($keys, 0, - 1);\n \n if (MODULE_PAYMENT_CGP_DROP_TABLE === 'True') {\n tep_db_query(\"DROP TABLE IF EXISTS `CGP_orders_table`\");\n }\n \n tep_db_query(\"DELETE FROM \" . TABLE_CONFIGURATION . \" WHERE configuration_key IN (\" . $keys . \")\");\n }", "public function deleteAll()\n {\n $this->ensureModels();\n foreach ($this->_models as $model) {\n $model->delete();\n }\n }", "public function run()\n {\n DB::table('abuseTypes')->delete();\n\n AbuseType::create(array(\n 'type' => 'physical'\n ));\n \n }", "static function remove_dispaly_tables_existing_data($camp_id, $type){\n\t\tglobal $wpdb;\n\t\t$tables = self::get_tables_name();\n\t\textract($tables);\n\t\t$camp_id = (int) $camp_id;\n\t\t\n\t\t$sql = \"DELETE FROM $display WHERE camp_id = $camp_id AND type = '$type'\";\n\t\t$wpdb->query($sql);\n\t}", "public function remove_all_rolls() {\r\n\t\t$rolls_count = $this->db\r\n\t\t\t->delete($this->rolls_table);\r\n\t}", "public static function dbClear(){\n\t\tif (App::runningUnitTests()) {\n\t\t\tself::clearModelTables(TestSettings::$modelTables);\n\t\t\tself::clearTables(TestSettings::$pivotTables);\n\t\t}\n\t}", "function objDeleteType($dbh, $otid)\r\n{\r\n $dbh->Query(\"delete from app_object_types where id = '$otid' and f_system='f';\");\r\n return true;\r\n}", "public function deleteTestEntities() {\n $statement = sprintf(\"DELETE FROM %s WHERE %s < 0 AND %s < 0\", static::TABLE, static::FIELDS[0], static::FIELDS[1]);\n\n $this->db->exec($statement);\n }", "public function deleteTables () {\n $this->usersDB->deleteTables();\n $this->categoriesDB->deleteTables();\n $this->itemsDB->deleteTables();\n }", "public final function destroy_all()\n {\n }", "public function deleteByIdType($id, $type);", "public function clearRootBindingTypes();", "public function truncateAll(): void\n {\n $tables = [\n Newsletter::TABLE_NAME,\n Link::TABLE_NAME,\n Log::TABLE_NAME,\n Queue::TABLE_NAME,\n ];\n foreach ($tables as $table) {\n DatabaseUtility::getConnectionForTable($table)->truncate($table);\n }\n }", "public static function deleteAllPlayers() {\n \tCommonDao::connectToDb();\n \t$query = \"delete from player where player_id > 0\";\n \tmysql_query($query);\n }", "function clearAllClicks()\n {\n global $wpdb;\n $query = \"TRUNCATE TABLE \" . $this->table_name;\n return $wpdb->query($query);\n }", "public function delete_all() {\n\t\t$this->_cache = array();\n\t\t$this->_collections = array();\n\t}", "function delete_card_type($CardTypeID)\n {\n return $this->db->delete('card_types',array('CardTypeID'=>$CardTypeID));\n }", "public function deleteDatabaseStructure( );", "function lp_delete_table(){\r\n\tglobal $wpdb;\r\n\t$charset_collation = $wpdb->get_charset_collate();\r\n\t$table_name = $wpdb->prefix.'like_post';\r\n\r\n $sql = \"DROP TABLE IF EXISTS $table_name;\";\r\n $wpdb->query($sql);\r\n\r\n delete_option('lp_showing_year');\r\n}", "public function delete() {\n\t\tglobal $wpdb;\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'woocommerce_tax_rates' );// phpcs:ignore\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'wc_tax_rate_classes' );// phpcs:ignore\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'woocommerce_order_items' );// phpcs:ignore\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'woocommerce_order_itemmeta' );// phpcs:ignore\n\t\t$this->order = null;\n\t\t$this->product = null;\n\t\t$this->tax_rate_ids = array();\n\t}", "function clear_pamm_accounts_correction()\n\t{\n\t $this->db->query(\"DELETE FROM pamm_accounts_correction\");\n\t}", "public function cleanupDatabase() {\n\t\t\tif ( !$this->getTableExists() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$sQuery = \"\n\t\t\t\tDELETE from `%s`\n\t\t\t\tWHERE\n\t\t\t\t\t`day_id`\t\t\t!= '0'\n\t\t\t\t\tAND `created_at`\t< '%s'\n\t\t\t\";\n\t\t\t$sQuery = sprintf( $sQuery,\n\t\t\t\t$this->getTableName(),\n\t\t\t\t( $this->loadDP()->time() - 31*DAY_IN_SECONDS )\n\t\t\t);\n\t\t\t$this->loadDbProcessor()->doSql( $sQuery );\n\t\t}" ]
[ "0.6491475", "0.63497335", "0.61928195", "0.6133089", "0.6133089", "0.60953563", "0.60759395", "0.59900624", "0.5988884", "0.59792113", "0.5974758", "0.5925061", "0.58245164", "0.5823327", "0.5815067", "0.58147556", "0.58058035", "0.5785412", "0.5765372", "0.57217145", "0.5712406", "0.5629686", "0.56244904", "0.56244904", "0.56146234", "0.5602007", "0.55880344", "0.5582652", "0.5578638", "0.556602", "0.5547506", "0.55318624", "0.5503869", "0.54967666", "0.54955715", "0.5492133", "0.5492133", "0.5492133", "0.54692024", "0.5467299", "0.54554117", "0.54526204", "0.5443981", "0.5438542", "0.5428127", "0.5428127", "0.54276246", "0.54180706", "0.54175425", "0.5412691", "0.54101515", "0.5402208", "0.54003483", "0.5385289", "0.53783065", "0.53703135", "0.53668576", "0.53654224", "0.536082", "0.53593", "0.5359125", "0.5357209", "0.53410524", "0.5327099", "0.5326011", "0.5308688", "0.5307476", "0.5302574", "0.52926767", "0.52852094", "0.52847964", "0.52798456", "0.5278863", "0.5270784", "0.5264258", "0.52627486", "0.5262221", "0.52611613", "0.52579784", "0.52548224", "0.52508235", "0.52442884", "0.5241757", "0.5240229", "0.52344924", "0.52284056", "0.5219493", "0.5194406", "0.51911396", "0.51894945", "0.5187332", "0.51831275", "0.5178706", "0.5170407", "0.5155517", "0.5150725", "0.5147792", "0.5141187", "0.51374656", "0.5137173" ]
0.53874904
53
Performs a DELETE on the database, given a CastleType or Criteria object OR a primary key value.
public static function doDelete($values, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_WRITE); } if ($values instanceof Criteria) { // invalidate the cache for all objects of this type, since we have no // way of knowing (without running a query) what objects should be invalidated // from the cache based on this Criteria. CastleTypePeer::clearInstancePool(); // rename for clarity $criteria = clone $values; } elseif ($values instanceof CastleType) { // it's a model object // invalidate the cache for this single object CastleTypePeer::removeInstanceFromPool($values); // create criteria based on pk values $criteria = $values->buildPkeyCriteria(); } else { // it's a primary key, or an array of pks $criteria = new Criteria(CastleTypePeer::DATABASE_NAME); $criteria->add(CastleTypePeer::ID, (array) $values, Criteria::IN); // invalidate the cache for this object(s) foreach ((array) $values as $singleval) { CastleTypePeer::removeInstanceFromPool($singleval); } } // Set the correct dbName $criteria->setDbName(CastleTypePeer::DATABASE_NAME); $affectedRows = 0; // initialize var to track total num of affected rows try { // use transaction because $criteria could contain info // for more than one table or we could emulating ON DELETE CASCADE, etc. $con->beginTransaction(); $affectedRows += BasePeer::doDelete($criteria, $con); CastleTypePeer::clearRelatedInstancePool(); $con->commit(); return $affectedRows; } catch (Exception $e) { $con->rollBack(); throw $e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n $class = strtolower(get_called_class());\n $table = self::$_table_name != null ? self::$_table_name : $class . 's';\n\n $pdo = PDOS::getInstance();\n\n $whereClause = '';\n foreach (static::$_primary_keys as $pk)\n $whereClause .= $pk . ' = :' . $pk . ' AND ';\n $whereClause = substr($whereClause, 0, -4);\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $whereClause;\n $query = $pdo->prepare($sql);\n $attributes = $this->getAttributes(new \\ReflectionClass($this));\n foreach ($attributes as $k => $v)\n {\n if (in_array($k, static::$_primary_keys))\n $query->bindValue(':' . $k, $v);\n }\n $query->execute();\n }", "public function delete (ValueObjectAbstract $valueObject);", "public function deleteRowByPrimaryKey()\n {\n if ($this->getTipoId() === null) {\n throw new \\Exception('Primary Key does not contain a value');\n }\n\n return $this->getMapper()->getDbTable()->delete(\n 'tipoId = ' .\n $this->getMapper()->getDbTable()->getAdapter()->quote($this->getTipoId())\n );\n }", "public function delete( $value = NULL, $field = 'id' );", "public function delete($primaryKeyValue) {\n return $this->_dataHandler->delete($this->_table, $this->getPrimaryKeyCondition($primaryKeyValue));\n }", "public function delete($primaryKey, $shardByValue=FALSE) {\n\t\t\tif($this->shardBy && $shardByValue===FALSE)\n\t\t\t\tthrow new SERIA_Exception('Unable to delete this row, since you have not specified the \"'.$this->shardBy.'\" column as parameter two.');\n\t\t\t$sql = 'DELETE FROM '.$this->table.' WHERE `'.$this->primaryKey.'`=:sdbdatakey';\n\t\t\t$res = SERIA_Base::db()->exec($sql, array('sdbdatakey' => $primaryKey));\n\t\t\t$this->_cacheClean();\n\t\t\treturn $res;\n\t\t}", "public function delete($value, $searchField = null);", "public final function delete($pk=null)\n {\n // When pk is set\n if (isset($pk))\n {\n // Do we have a definition like filter and paramerter to process?\n if (is_array($pk))\n $this->processQueryDefinition($pk);\n // Or is it a primary key value?\n else\n {\n $this->filter = $this->pk . '={int:pk}';\n $this->param = array('pk' => $pk);\n }\n }\n\n // Do we have to prepare a filter statement\n $filter = $this->filter ? ' WHERE ' . $this->filter : '';\n\n // Build sql string\n $sql = \"DELETE FROM {db_prefix}{$this->tbl}{$filter}\";\n\n // Running delete\n $this->db->query($sql, $this->param);\n\n // Reset filter and parameter\n $this->resetFilter();\n $this->resetParameter();\n }", "public function deleteRowByPrimaryKey()\n {\n if ($this->getCuboId() === null) {\n $this->_logger->log('The value for CuboId cannot be null in deleteRowByPrimaryKey for ' . get_class($this), \\Zend_Log::ERR);\n throw new \\Exception('Primary Key does not contain a value');\n }\n\n return $this->getMapper()->getDbTable()->delete(\n 'cuboId = ' .\n $this->getMapper()->getDbTable()->getAdapter()->quote($this->getCuboId())\n );\n }", "public static function deleteByCriteria($criteria, $params = array())\n {\n \treturn FactoryAbastract::dao(get_called_class())->deleteByCriteria($criteria, $params);\n }", "public function delete_by($key, $value){\n \n if (empty($key)) {\n return FALSE;\n }\n \n $this->db->where(htmlentities($key), htmlentities($value))->delete($this->table_name);\n }", "function delete($primary){\n $this->primary=$primary;\n //\n //create the delete\n $update= new delete($this, $primary);\n //\n //Execute the the insert\n $update->query($this->entity->get_parent());\n }", "public function delete() {\n\t\ttry {\n\t\t\tif($this->_state == self::STATE_UNCHANGED) {\n\t\t\t\t$sql = 'DELETE FROM ' . self::sanitize($this->_table->getProperty('name')) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]);\n\t\t\t\t\\Bedrock\\Common\\Logger::info('Deleting record with query: ' . $sql); echo $sql;\n\t\t\t\t$this->_connection->exec($sql);\n\t\t\t}\n\t\t\telseif($this->_state == self::STATE_CHANGED) {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Unsaved changes found, cannot delete record.');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Record not found in database.');\n\t\t\t}\n\t\t}\n\t\tcatch(\\PDOException $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('A database error was encountered, the record could not be deleted.');\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The record could not be deleted.');\n\t\t}\n\t}", "public function deleteBy($criteria, $params = false)\n {\n $query = $this->model->query();\n\n /*== FILTER ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;\n\n if (isset($filter->field))//Where field\n $field = $filter->field;\n }\n\n /*== REQUEST ==*/\n $model = $query->where($field ?? 'id', $criteria)->first();\n $model ? $model->delete() : false;\n }", "public function delete() {\r\n\r\n $retVal = false;\r\n\r\n $table = static::getDbTable();\r\n $map = static::getDbMap();\r\n $primaryKey = static::getDbPrimaryKey();\r\n if ($this->$primaryKey) {\r\n $query = 'DELETE FROM `' . $table . '` WHERE `' . $map[$primaryKey] . '` = :id';\r\n $params = array( ':id' => $this->$primaryKey );\r\n $retVal = Db::Query($query, $params);\r\n }\r\n\r\n return $retVal;\r\n\r\n }", "function delete($options = array())\n\t{\n\t\t$required = array($this->primary_key);\n\t\tif ( ! $this->_required($required, $options))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t$this->db->where($this->primary_key, $options[$this->primary_key]);\n\t\treturn $this->db->delete($this->primary_table);\n\t}", "public function delete($primaryKey = 'id')\n\t{\n\t\t$table = $this->getGateway()->getPrimaryTable();\n\t\t\n\t\t$id \t= $this->id; \n\t\t$where \t= $table->getAdapter()->quoteInto($primaryKey. ' = ?', $id);\n\t\t\n\t\tif ($table->delete($where)) {\n\t\t\t//clean object data\n\t\t\t$this->_data = array();\n\t\t\treturn true; \n\t\t}else {\n\t\t\treturn false; \n\t\t}\n\t}", "public function testDelete()\n {\n $mockPDO = $this->getMock('\\\\PDOMock', array('perform'));\n $mockPDO\n ->expects($this->once())\n ->method('perform')\n ->will($this->returnCallback(function($arg1, $arg2) {\n $sql = <<<ENDSQL\nDELETE FROM `users`\nWHERE\n id = :id\nENDSQL;\n if($arg1 == $sql && $arg2 = array('id' => 1)) {\n return;\n } else {\n throw new \\Exception('We did not get the parameters we were expecting');\n }\n }))\n ;\n $storage = new AuraExtendedPdo($mockPDO, new QueryFactory('mysql'));\n $res = $storage->delete(array('id' => 1), 'users');\n\n $this->assertNull($res);\n }", "public function deleteByPrimaryKeys(stubObject $entity);", "function delete($rowid='')\n {\n \tif (empty($rowid)) $rowid=$this->id;\n\n $sql = \"DELETE FROM \".MAIN_DB_PREFIX.\"adherent_type WHERE rowid = \".$rowid;\n\n $resql=$this->db->query($sql);\n if ($resql)\n {\n if ($this->db->affected_rows($resql))\n {\n return 1;\n }\n else\n\t\t\t{\n return 0;\n }\n }\n else\n {\n print \"Err : \".$this->db->error();\n return 0;\n }\n }", "public static function Delete($key) {\r\n\t\t$cls = get_called_class();\r\n\t\t$model = new $cls();\r\n\t\t$primary = $model->index('primary');\r\n\t\tif (is_null($primary)) {\r\n\t\t\tthrow new Exception(\"The schema for {$cls} does not identify a primary key\");\r\n\t\t}\r\n\t\tif (is_array($key)) {\r\n\t\t\tforeach ($primary['fields'] as $field) {\r\n\t\t\t\tif (!isset($key[$field])) {\r\n\t\t\t\t\tthrow new Exception(\"No value provided for the {$field} field in the primary key\");\r\n\t\t\t\t}\r\n\t\t\t\t$model->query()->where(\"{$field} = ?\", $key[$field]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (count($primary['fields']) > 1) {\r\n\t\t\t\tthrow new Exception(\"The schema for {$cls} has more than one field in its primary key\");\r\n\t\t\t}\r\n\t\t\t$model->where(\"{$primary['fields'][0]} = ?\", $key);\r\n\t\t}\r\n\t\t$src = Dbi_Source::GetModelSource($model);\r\n\t\t$src->delete($model);\r\n\t}", "abstract public function deleteById($id);", "public function delete($params=''){\n\t\t$this->_connect();\n\t\tif($this->_schema){\n\t\t\t$table = $this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$table = $this->_source;\n\t\t}\n\t\t$conditions = '';\n\t\tif(is_array($params)){\n\t\t\t$numberArguments = func_num_args();\n\t\t\t$params = Utils::getParams(func_get_args(), $numberArguments);\n\t\t\tif(isset($params['conditions'])){\n\t\t\t\t$conditions = $params['conditions'];\n\t\t\t}\n\t\t} else {\n\t\t\t$primaryKeys = $this->_getPrimaryKeyAttributes();\n\t\t\tif(is_numeric($params)){\n\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t$conditions = $primaryKeys[0].\" = '\".$params.\"'\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new ActiveRecordException('Número de parámetros insuficientes para realizar el borrado');\n\t\t\t\t}\n\t\t\t} else{\n\t\t\t\tif($params){\n\t\t\t\t\t$conditions = $params;\n\t\t\t\t} else {\n\t\t\t\t\tif(count($primaryKeys)==1){\n\t\t\t\t\t\t$primaryKeyValue = $this->readAttribute($primaryKeys[0]);\n\t\t\t\t\t\t$conditions = $primaryKeys[0].\" = '\".$primaryKeyValue.\"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$conditions = array();\n\t\t\t\t\t\tforeach($primaryKeys as $primaryKey){\n\t\t\t\t\t\t\t$primaryKeyValue = $this->readAttribute($primaryKey);\n\t\t\t\t\t\t\t$conditions[] = $primaryKey.\" = '\".$primaryKeyValue.\"'\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$conditions = join(' AND ', $conditions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($this->_callEvent('beforeDelete')===false){\n\t\t\treturn false;\n\t\t}\n\t\t$success = $this->_db->delete($table, $conditions);\n\t\t$this->_operationMade = self::OP_DELETE;\n\t\tif($success==true){\n\t\t\t$this->_callEvent('afterDelete');\n\t\t}\n\t\treturn $success;\n\t}", "public function deleteRowByPrimaryKey()\n {\n if (!$this->getId())\n throw new Exception('Primary Key does not contain a value');\n return $this->getMapper()->getDbTable()->delete('id = '.$this->getId());\n }", "public function deleteRowByPrimaryKey()\n {\n if (!$this->getId())\n throw new Exception('Primary Key does not contain a value');\n return $this->getMapper()->getDbTable()->delete('id = '.$this->getId());\n }", "public function delete($entity) {\r\n\t\tif($entity instanceof Model_Abstract) {\r\n\t\t\t$id = $entity->getIdentityValue();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$id = $entity;\r\n\t\t}\r\n\t\t// Need to unset the entity in the identity map if it exists\r\n\t\t$this->_unsetIdentity($id);\r\n\t\t \r\n\t\t$rowset = $this->_getGateway()->find($id);\r\n\t\tif($rowset->count() > 0) {\r\n\t\t\t$row = $rowset->current();\r\n\t\t\t$result = $row->delete();\r\n\t\t}\r\n\t}", "function delete_by( $conds = array() )\n\t{\n\t\t// where clause\n\t\t$this->custom_conds( $conds );\n\t\t// delete the record\n\t return $this->db->delete( $this->table_name );\n\t //print_r($this->db->last_query());die;\n\t \n \t}", "public function delete() {\n\t\t\tif (!$this->isKnown()) { return FALSE; }\n\t\t\t$this->preDelete();\n\t\t\t$query = sprintf('DELETE FROM %s WHERE `%s` = :key', static::$_table, static::$_key);\n\t\t\ttry {\n\t\t\t\t$statement = $this->myDB->getPDO()->prepare($query);\n\t\t\t\t$params[':key'] = $this->getData(static::$_key);\n\t\t\t\t$result = $statement->execute($params);\n\t\t\t} catch (\\PDOException $t) {\n\t\t\t\t$result = FALSE;\n\t\t\t}\n\t\t\tif (!$result) {\n\t\t\t\t$this->lastError = $statement->errorInfo();\n\t\t\t}\n\t\t\t$this->postDelete($result);\n\t\t\treturn $result;\n\t\t}", "public function deleteRowByPrimaryKey()\n {\n if ($this->getId() === null) {\n throw new Exception('Primary Key does not contain a value');\n }\n\n return $this->getMapper()\n ->getDbTable()\n ->delete('id = ' .\n $this->getMapper()\n ->getDbTable()\n ->getAdapter()\n ->quote($this->getId()));\n }", "function Delete()\n\t{\n\t\tglobal $dal_info;\n\t\t\n\t\t$deleteFields = \"\";\n\t\t$tableinfo = &$dal_info[ $this->infoKey ];\n\t\t//\tprepare parameters\t\t\n\t\tforeach($tableinfo as $fieldname => $fld)\n\t\t{\n\t\t\tif( isset($this->{$fld['varname']}) )\n\t\t\t{\n\t\t\t\t$this->Param[ $fieldname ] = $this->{$fld['varname']};\n\t\t\t}\n\t\t\t\n\t\t\tforeach($this->Param as $field => $value)\n\t\t\t{\n\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t$deleteFields.= $this->_connection->addFieldWrappers( $fieldname ).\"=\". $this->PrepareValue($value, $fld[\"type\"]) . \" and \";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//\tdo delete\n\t\tif ($deleteFields)\n\t\t{\n\t\t\t$deleteFields = substr($deleteFields, 0, -5);\n\t\t\t$dalSQL = \"delete from \".$this->_connection->addTableWrappers( $this->m_TableName ).\" where \".$deleteFields;\n\t\t\t$this->_connection->exec( $dalSQL );\n\t\t}\n\t\n\t\t//\tcleanup\n\t $this->Reset();\n\t}", "function delete($tabla,$campo,$criterio){\n\treturn $GLOBALS['cn']->query('DELETE FROM '.$tabla.' WHERE '.$campo.'=\"'.$criterio.'\"');\n}", "function delete($tabla,$campo,$criterio){\n\treturn $GLOBALS['cn']->query('DELETE FROM '.$tabla.' WHERE '.$campo.'=\"'.$criterio.'\"');\n}", "public function hard_delete(){\n\t\tif($this->data[$this->primary_key]){\n\t\t\treturn $this->db\n\t\t\t\t->where($this->primary_key, $this->data[$this->primary_key])\n\t\t\t\t->delete($this->table);\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "abstract public function deleteByUser($userDao);", "public function delete_by()\n\t{\n\t\t$where = func_get_args();\n\t\t$this->_set_where($where);\n\n\t\t$where = $this->trigger('before_delete', $where);\n\n\t\tif($this->soft_delete)\n\t\t{\n\t\t\t$result = $this->db->update($this->_table, array($this->soft_delete_key => TRUE));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $this->delete($this->_table);\n\t\t}\n\n\t\t$this->trigger('after_delete', $result);\n\n\t\treturn $result;\n\t}", "public function delete() {\n\t\t$args = func_get_args();\n\n\t\t// no argument, so delete current object\n\t\tif (empty($args))\n\t\t\treturn $this->db->where('id', $this->id)->delete($this->table);\n\n\t\t// argument given, so delete that object\n\t\treturn $this->db->where('id', $args[0])->delete($this->table);\n\t}", "public final function delete() {\n\t\t$sql = \"\n\tDELETE FROM\n\t\t\" . $this->table . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute(array($this->{$this->primaryField}));\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}", "function doRealDelete()\n {\n $this->assignSingle();\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "public abstract function deleteObject($objKey);", "function doRealDelete()\n {\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "function deleteRecordByCondition($tablename, $condition) {\n $ci = & get_instance();\n $ci->load->database();\n $ci->db->delete($tablename, $condition);\n}", "abstract protected function _doDelete($id);", "public abstract function delete($model, $useTransaction);", "abstract public function delete(Entity $oMappedEntity);", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "public function delete(){\n\t\t$parametro = func_get_args();\t\t\n\t\t$resultado=$this->execSql($this->DELETE,$parametro);\n\t\tif (!$resultado){\n\t\t\t$this->onError(\"COD_DELETE\",$this->DELETE);\n\t\t}\n\t\treturn $resultado;\n\t}", "public function delete($key=null,$value=null){\n return $this->methodsData(\"delete\",$key,$value);\n }", "abstract public function delete ($key);", "public function delete($deleteParam = NULL){\n $this->debugBacktrace();\n $this->queryType= \"delete\";\n $this->deleteParam = $deleteParam;\n return $this;\n }", "public function deleteByIdType($id, $type);", "public function deleteRowByPrimaryKey()\n {\n if ($this->getId() === null) {\n $this->_logger->log('The value for Id cannot be null in deleteRowByPrimaryKey for ' . get_class($this), \\Zend_Log::ERR);\n throw new \\Exception('Primary Key does not contain a value');\n }\n\n return $this->getMapper()->getDbTable()->delete(\n 'id = ' .\n $this->getMapper()->getDbTable()->getAdapter()->quote($this->getId())\n );\n }", "public function deleteRowByPrimaryKey()\n {\n if ($this->getId() === null) {\n $this->_logger->log('The value for Id cannot be null in deleteRowByPrimaryKey for ' . get_class($this), \\Zend_Log::ERR);\n throw new \\Exception('Primary Key does not contain a value');\n }\n\n return $this->getMapper()->getDbTable()->delete(\n 'id = ' .\n $this->getMapper()->getDbTable()->getAdapter()->quote($this->getId())\n );\n }", "function delete($table, array $conditions);", "public function delete()\n {\n $this->each(function ($item) {\n if (empty($item->_KEY_)) {\n throw new LogicException('Unable to create query for collection with mixed types.');\n }\n });\n\n return DB::connection('datastore')->delete($this->pluck('_KEY_'));\n }", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "function delete($val){\n $del = $this -> query(\"DELETE FROM {$this ->table} WHERE {$this -> pk} = '{$val}'\");\n return ($del)?true:false;\n }", "public function delete()\n {\n $conn = $this->getConnection();\n\n if (!isset($this->attributes->{$this->primaryKey})) {\n $trace = debug_backtrace()[0];\n throw new ModelException(\n 'No object has been loaded',\n 8000,\n $trace['file'],\n $trace['line']\n );\n }\n $key = $this->attributes->{$this->primaryKey};\n\n $bind = $this->getNamedParam();\n\n $statement = $this->getStatement();\n $statement->setWhere($this->primaryKey, '=', $bind);\n $statement->setBindings($bind, $key);\n\n $this->query = $statement->getDelete();\n $delete = $conn->prepare($this->query);\n\n return $this->execute($delete, $statement);\n }", "public function delete() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_delete', array($where));\n\n $result = $this->db->delete($this->_table());\n\n $this->_callbacks('after_delete', array($where, $result));\n\n return $this->db->affected_rows();\n }", "public function __doDelete()\n {\n $strSQL = $this->getDeleteSql();\n $result = $this->query($strSQL);\n }", "public abstract function delete($id);", "public function delete($where);", "public static function doDelete($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->delete(self::TABLE_NAME);\n\t\tparent::doSelectParameters($conn, $params, self::PRIMARY_KEY);\n\t\treturn (int) DbModel::doAffected($conn, new CampaignDefinitionsModel());\n\t}", "abstract public function delete($key);", "public function deleteRecord()\n { \n $sql = \"DELETE FROM Cubans WHERE Id = :Id\";\n $statement = $this->connect->prepare($sql);\n $statement->bindValue(':Id', $this->id);\n $statement->execute();\n }", "public function delete($Enterprise) { ; }", "abstract public function delete($id);", "abstract public function delete($id);", "abstract public function delete($id);", "abstract public function deleteRecord($tableName, $where);", "public function delete(DataObject $obj){\n\n //Vérifie si l'objet entré en paramètre est instance de Album\n if($obj instanceof Album){\n\n //Récupère la méthode de connection à la BDD\n $dbc = Application::getInstance()->getDBConnection();\n\n //Prépare la requête SQL\n $query = \"DELETE FROM Album WHERE IdAlbum = :IdAlbum\";\n\n //Prépare la requête en dur avec la BDD et la requête correspondante\n $stmt = $dbc->prepare($query);\n\n //Remplace les paramètres \":IdAlbum\" par la valeur de l'objet\n $stmt->bindValue(':IdAlbum',$obj->getIDAlbum(),PDO::PARAM_STR);\n\n //Exécute finallement la requête\n $stmt->execute($data);\n }\n}", "abstract public function delete( $key );", "public function delete(DataObject $entity){\n }", "public function delete($data='')\n\t{\n\t\tif (func_num_args() == 2) {\n\t\t\t$this->_table = func_get_arg(0);\n\t\t\t$data = func_get_arg(1);\n\t\t}\n\n\t\treturn $this->db->delete($this->_table, $data);\n\t}", "public function delete( $oid=null );", "abstract protected function concreteDelete(DomainObjectInterface &$domainObject): void;", "function delete(IContract $entity);", "public function delete_form_db($conn,$table,$condition_column,$condition_data,$userid){\r\n $query=\"DELETE FROM \".$table.\" WHERE \".$condition_column.\"= :data AND user_id= \".$userid;\r\n $get=$conn->prepare($query);\r\n $get->bindValue(':data', $condition_data);\r\n if($get->execute()){return true;}\r\n\r\n\r\n}", "public function delete() {\n if ($this->_is_new) return false;\n\n if (isset($this->_data[$this->_key_field])) {\n $where = array($this->_key_field=>$this->_data[$this->_key_field]); \n } elseif ($this->_load_criteria) {\n $where = $this->_load_criteria;\n } else {\n return false;\n }\n\n Q::create($this->_structure['table'])->delete($where)->exec();\n if (isset($this->_structure['relations'])) {\n foreach($this->_structure['relations'] as $relation_name=>$info) {\n $this->detach(null, $relation_name);\n }\n }\n if (isset($this->_structure['abilities'])) {\n foreach($this->_structure['abilities'] as $ability_name=>$info) {\n $ability_name = ucfirst($ability_name);\n if (!is_object($this->_loaded_abilities[$ability_name])) continue;\n $objects = array(&$this);\n $this->_loaded_abilities[$ability_name]->unlink($objects);\n }\n }\n return null;\n }", "public function delete($primary=NULL)\n {\n $primaryName = $this->primaryName;\n $primary = ($primary) ? $primary : $this->$primaryName;\n $stmt = $this->Adapter->prepare(\"DELETE FROM $this->table WHERE $this->primaryName=:id\");\n return $stmt->execute(['id' => $primary]);\n }", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function delete($table, $clause) {\t\t\r\n\t\treturn $this->query(\"delete from $table where $clause\");\r\n\t}", "public function delete()\n {\n try {\n parent::delete(null, $this->data['id']);\n } catch (Exception $e) {\n die('ERROR');\n }\n }", "public function delete($pk = null)\n {\n \t$k = $this->_tbl_key;\n \n \t// Implement JObservableInterface: Pre-processing by observers\n \t$this->_observers->update('onBeforeDelete', array($pk, $k));\n \n \t$pk = (is_null($pk)) ? $this->$k : $pk;\n \n \t// If no primary key is given, return false.\n \tif ($pk === null)\n \t{\n \t\tthrow new UnexpectedValueException('Null primary key not allowed.');\n \t}\n \n \t// If tracking assets, remove the asset first.\n \tif ($this->_trackAssets)\n \t{\n \n \t\t// Get and the asset name.\n \t\t$savedK = $this->$k;\n \n \t\t$this->$k = $pk;\n \t\t$name = $this->_getAssetName();\n \t\t$asset = self::getInstance('Asset');\n \n \t\tif ($asset->loadByName($name))\n \t\t{\n \n \t\t\tif (!$asset->delete())\n \t\t\t{\n \t\t\t\t\t\n \t\t\t\t$this->setError($asset->getError());\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\t$this->setError($asset->getError());\n \t\t\t//no assset? let it go\n \t\t\t//return false;\n \t\t}\n \n \t\t$this->$k = $savedK;\n \t}\n \n \t// Delete the row by primary key.\n \t$query = $this->_db->getQuery(true)\n \t->delete($this->_tbl)\n \t->where($this->_tbl_key . ' = ' . $this->_db->quote($pk));\n \t$this->_db->setQuery($query);\n \n \t// Check for a database error.\n \t$this->_db->execute();\n \n \t// Implement JObservableInterface: Post-processing by observers\n \t$this->_observers->update('onAfterDelete', array($pk));\n \t\n \t$dispatcher = JEventDispatcher::getInstance();\n \tJPluginHelper::importPlugin('finder');\n \t$res = $dispatcher->trigger('onFinderAfterDelete', array('com_mymuse.product', $this, $isNew));\n\n \n \treturn true;\n }", "function delete_contact($contactID) {\r\n $db = Database::getDB();\r\n $query = 'DELETE FROM contact\r\n WHERE contactID = :contactID';\r\n $statement = $db->prepare($query);\r\n $statement->bindValue(':contactID', $contactID);\r\n $statement->execute();\r\n $statement->closeCursor();\r\n}", "public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function delete($entity);", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "public static function doDelete($params=NULL) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$conn->delete(self::TABLE_NAME);\n\t\tparent::doSelectParameters($conn, $params, self::PRIMARY_KEY);\n\t\treturn (int) DbModel::doAffected($conn, new PollTemplatesModel());\n\t}", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delete() {\n global $db;\n $this->_predelete();\n $result = $db->query(\"DELETE FROM \".$this->table.\" WHERE \".$this->id_field.\"=?\", array($this->{$this->id_field}));\n $this->_postdelete($result);\n return $result;\n }", "public function delete($database, CouchDBObject $object);", "public function delete(int $id): void\r\n{\r\n \r\n\r\n $maRequete = $this->pdo->prepare(\"DELETE FROM {$this->table} WHERE id =:id\");\r\n\r\n $maRequete->execute(['id' => $id]);\r\n}", "public function byCriterion()\n {\n $mockCriterion = $this->getMock('stubCriterion');\n $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example'));\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->exactly(2))->method('count')->will($this->onConsecutiveCalls(0, 1));\n $data = $this->dbEraser->deleteByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockNoTableAnnotationEntity'));\n $this->assertEquals(0, $data);\n $data = $this->dbEraser->deleteByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockNoTableAnnotationEntity'));\n $this->assertEquals(1, $data);\n $this->assertEquals('MockNoTableAnnotationEntitys', $this->mockQueryBuilder->getDeleteTable());\n $this->assertEquals('example', $this->mockQueryBuilder->getDeleteCriterion()->toSQL());\n }", "public function delete($records = '')/*# : DeleteStatementInterface */;", "public function delete(AbstractEntity $entity)\n\t{\n\t\tif(!$this->isValidEntity($entity))\n\t\t{\n\t\t\tthrow new \\Exception('The specified entity is not allowed for this mapper. (' . get_class($entity) . ')');\n\t\t}\n\t\t\n\t\t$aCriterias['id'][] = array(\n\t\t\t'operator'\t=> '=',\n\t\t\t'value'\t\t=> $entity->id\n\t\t);\n\t\t\n\t\t$aTableSource = array_merge($this->_acceptedFields, $this->_cascadeFields);\n\t\t\n\t\t$aTables\t= $this->extractTables($aTableSource);\t\n\t\t$sWhere\t\t= $this->compileClauseStrings(array(\n\t\t\t\t\t\t\t$this->getClauseStrings($aCriterias),\n\t\t\t\t\t\t\t$this->compileClauseStrings($this->_cascadeFields)\n\t\t\t\t\t));\n\t\t\t\t\t\n\t\treturn $this->_adapter->delete($aTables, $sWhere);\n\t}", "public function delete( array $params );", "public function delete($entity)\n {\n $statement = \"DELETE FROM contact WHERE id = :id\";\n $prepare = $this->db->prepare($statement);\n $prepare->bindValue(\":id\", $entity->getId());\n $prepare->execute();\n }", "public function delete()\n\t{\n\t\tif( !isset($this->attributes[static::$primaryKey]) || $this->attributes[static::$primaryKey] <= 0 )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn DataBase::delete(\"DELETE FROM `\" . static::$table . \"` WHERE `\" . static::$primaryKey . \"` = ?\", $this->attributes[static::$primaryKey]);\n\t}", "public function delete($proveedor);" ]
[ "0.68341583", "0.6608787", "0.6560278", "0.65151256", "0.6485194", "0.6481085", "0.6448722", "0.6434292", "0.6398659", "0.6395862", "0.6393299", "0.63735336", "0.6356264", "0.6353667", "0.63534623", "0.63390326", "0.6334386", "0.63103616", "0.62810326", "0.62734145", "0.62733734", "0.626926", "0.6264627", "0.62546515", "0.62546515", "0.62290025", "0.6217259", "0.621178", "0.6206747", "0.62060857", "0.6200007", "0.6200007", "0.6196522", "0.6192804", "0.618217", "0.61748725", "0.61738896", "0.61644167", "0.61585575", "0.6154375", "0.61499643", "0.6149286", "0.6143343", "0.614007", "0.61359715", "0.6130136", "0.6118105", "0.6111878", "0.61110693", "0.6105236", "0.6095935", "0.6095935", "0.60957897", "0.6090389", "0.6087489", "0.6082256", "0.6069091", "0.6067435", "0.606562", "0.6063575", "0.6056531", "0.60559285", "0.6051831", "0.60483974", "0.6046365", "0.6044798", "0.6044798", "0.6044798", "0.60428363", "0.6037557", "0.60347426", "0.6034656", "0.60310847", "0.60292697", "0.6018681", "0.60185194", "0.6016967", "0.6014095", "0.6009834", "0.600928", "0.60046095", "0.6001173", "0.60009205", "0.59993154", "0.5996919", "0.5990194", "0.5989733", "0.5959355", "0.59466046", "0.59290427", "0.59272367", "0.5924548", "0.5917612", "0.5916318", "0.59064716", "0.5899092", "0.58966184", "0.5893351", "0.58929425", "0.58878154" ]
0.6367154
12
Validates all modified columns of given CastleType object. If parameter $columns is either a single column name or an array of column names than only those columns are validated. NOTICE: This does not apply to primary or foreign keys for now.
public static function doValidate($obj, $cols = null) { $columns = array(); if ($cols) { $dbMap = Propel::getDatabaseMap(CastleTypePeer::DATABASE_NAME); $tableMap = $dbMap->getTable(CastleTypePeer::TABLE_NAME); if (! is_array($cols)) { $cols = array($cols); } foreach ($cols as $colName) { if ($tableMap->hasColumn($colName)) { $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); $columns[$colName] = $obj->$get(); } } } else { } return BasePeer::doValidate(CastleTypePeer::DATABASE_NAME, CastleTypePeer::TABLE_NAME, $columns); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValidColumns(array $columns);", "private function validateColumns($columns) {\n\t\tif(is_object($columns)) {\n\t\t\tforeach($columns as $key => $val) {\n\t\t\t\tif(!is_string($val)) {\n\t\t\t\t\t$display = is_object($val) ? \"Object\" : \"$val\";\n\t\t\t\t\t$this->error(\"Expected a string description for column '$key', but got '$display'\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->error(\"Expected property 'columns' to be an object, but it was '$columns'\");\n\t\t}\n\t}", "public function validate ($columns = null)\n {\n return true;\n }", "public function dtPerformColumnFilter($columns);", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aPtk !== null) {\n if (!$this->aPtk->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPtk->getValidationFailures());\n }\n }\n\n if ($this->aJenisHapusBuku !== null) {\n if (!$this->aJenisHapusBuku->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aJenisHapusBuku->getValidationFailures());\n }\n }\n\n if ($this->aTanah !== null) {\n if (!$this->aTanah->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aTanah->getValidationFailures());\n }\n }\n\n if ($this->aJenisPrasarana !== null) {\n if (!$this->aJenisPrasarana->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aJenisPrasarana->getValidationFailures());\n }\n }\n\n if ($this->aSekolah !== null) {\n if (!$this->aSekolah->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSekolah->getValidationFailures());\n }\n }\n\n if ($this->aStatusKepemilikanSarpras !== null) {\n if (!$this->aStatusKepemilikanSarpras->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aStatusKepemilikanSarpras->getValidationFailures());\n }\n }\n\n\n if (($retval = BangunanPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collBangunanDariBlockgrants !== null) {\n foreach ($this->collBangunanDariBlockgrants as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collBangunanLongitudinals !== null) {\n foreach ($this->collBangunanLongitudinals as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collRuangs !== null) {\n foreach ($this->collRuangs as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collVldBangunans !== null) {\n foreach ($this->collVldBangunans as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "public static function validateModel($tableName, $columns)\n {\n }", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aSekolah !== null) {\n if (!$this->aSekolah->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSekolah->getValidationFailures());\n }\n }\n\n if ($this->aSemester !== null) {\n if (!$this->aSemester->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSemester->getValidationFailures());\n }\n }\n\n if ($this->aSumberAirRelatedBySumberAirId !== null) {\n if (!$this->aSumberAirRelatedBySumberAirId->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSumberAirRelatedBySumberAirId->getValidationFailures());\n }\n }\n\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null) {\n if (!$this->aSumberAirRelatedBySumberAirMinumId->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSumberAirRelatedBySumberAirMinumId->getValidationFailures());\n }\n }\n\n\n if (($retval = SanitasiPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aSerial !== null) {\n\t\t\t\tif (!$this->aSerial->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aSerial->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->aPrecinct !== null) {\n\t\t\t\tif (!$this->aPrecinct->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aPrecinct->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->aGenre !== null) {\n\t\t\t\tif (!$this->aGenre->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aGenre->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->aBroadcast !== null) {\n\t\t\t\tif (!$this->aBroadcast->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aBroadcast->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = MmPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collMmI18ns !== null) {\n\t\t\t\t\tforeach($this->collMmI18ns as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collFiles !== null) {\n\t\t\t\t\tforeach($this->collFiles as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collLinks !== null) {\n\t\t\t\t\tforeach($this->collLinks as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collMmPersons !== null) {\n\t\t\t\t\tforeach($this->collMmPersons as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPicMms !== null) {\n\t\t\t\t\tforeach($this->collPicMms as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collGroundMms !== null) {\n\t\t\t\t\tforeach($this->collGroundMms as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collMaterials !== null) {\n\t\t\t\t\tforeach($this->collMaterials as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collLogTranscodings !== null) {\n\t\t\t\t\tforeach($this->collLogTranscodings as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collTranscodings !== null) {\n\t\t\t\t\tforeach($this->collTranscodings as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPubChannelMms !== null) {\n\t\t\t\t\tforeach($this->collPubChannelMms as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collAnnounceChannelMms !== null) {\n\t\t\t\t\tforeach($this->collAnnounceChannelMms as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collMmMatterhorns !== null) {\n\t\t\t\t\tforeach($this->collMmMatterhorns as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCategoryMms !== null) {\n\t\t\t\t\tforeach($this->collCategoryMms as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCategoryMmTimeframes !== null) {\n\t\t\t\t\tforeach($this->collCategoryMmTimeframes as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aActionPropertyTypeRelatedByid !== null) {\n if (!$this->aActionPropertyTypeRelatedByid->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aActionPropertyTypeRelatedByid->getValidationFailures());\n }\n }\n\n\n if (($retval = ActionTypePeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collActions !== null) {\n foreach ($this->collActions as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collActionPropertyTypesRelatedByactionTypeId !== null) {\n foreach ($this->collActionPropertyTypesRelatedByactionTypeId as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "public function setColumns($columns)\n {\n $columns = MySQLParser::Columns($columns);\n if($columns) $this->columns = $columns;\n return (bool)($columns);\n }", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n if (($retval = YearPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collMonths !== null) {\n foreach ($this->collMonths as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collFileCats !== null) {\n foreach ($this->collFileCats as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collDocCats !== null) {\n foreach ($this->collDocCats as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collBookks !== null) {\n foreach ($this->collBookks as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collAccounts !== null) {\n foreach ($this->collAccounts as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collReports !== null) {\n foreach ($this->collReports as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collProjects !== null) {\n foreach ($this->collProjects as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\tif (($retval = C060InventarioPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their corresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aOperations !== null) {\n if (!$this->aOperations->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aOperations->getValidationFailures());\n }\n }\n\n if ($this->aRCurrencies !== null) {\n if (!$this->aRCurrencies->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aRCurrencies->getValidationFailures());\n }\n }\n\n if ($this->aRRewardTypes !== null) {\n if (!$this->aRRewardTypes->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aRRewardTypes->getValidationFailures());\n }\n }\n\n if ($this->aRRewardExpeditionModes !== null) {\n if (!$this->aRRewardExpeditionModes->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aRRewardExpeditionModes->getValidationFailures());\n }\n }\n\n if ($this->aRRewardTransporters !== null) {\n if (!$this->aRRewardTransporters->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aRRewardTransporters->getValidationFailures());\n }\n }\n\n\n if (($retval = OperationPrimesPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collOperationPrestationss !== null) {\n foreach ($this->collOperationPrestationss as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collOperationScenariis !== null) {\n foreach ($this->collOperationScenariis as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collLnkOperationPrimeRCountriess !== null) {\n foreach ($this->collLnkOperationPrimeRCountriess as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aCampaignTemplate !== null) {\n\t\t\t\tif (!$this->aCampaignTemplate->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aCampaignTemplate->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->asfGuardUserProfile !== null) {\n\t\t\t\tif (!$this->asfGuardUserProfile->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->asfGuardUserProfile->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = CampaignPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collCampaignContactGroups !== null) {\n\t\t\t\t\tforeach ($this->collCampaignContactGroups as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCampaignContacts !== null) {\n\t\t\t\t\tforeach ($this->collCampaignContacts as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCampaignContactElements !== null) {\n\t\t\t\t\tforeach ($this->collCampaignContactElements as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCampaignLinks !== null) {\n\t\t\t\t\tforeach ($this->collCampaignLinks as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aRuang !== null) {\n if (!$this->aRuang->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aRuang->getValidationFailures());\n }\n }\n\n if ($this->aSekolahLongitudinal !== null) {\n if (!$this->aSekolahLongitudinal->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSekolahLongitudinal->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe01 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe01->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe01->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe02 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe02->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe02->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe03 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe03->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe03->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe04 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe04->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe04->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe05 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe05->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe05->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe06 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe06->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe06->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe07 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe07->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe07->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe08 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe08->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe08->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe09 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe09->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe09->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe10 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe10->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe10->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe11 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe11->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe11->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe12 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe12->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe12->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe13 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe13->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe13->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe14 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe14->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe14->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe15 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe15->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe15->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe16 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe16->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe16->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe17 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe17->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe17->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe18 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe18->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe18->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe19 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe19->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe19->getValidationFailures());\n }\n }\n\n if ($this->aPembelajaranRelatedByBelKe20 !== null) {\n if (!$this->aPembelajaranRelatedByBelKe20->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPembelajaranRelatedByBelKe20->getValidationFailures());\n }\n }\n\n\n if (($retval = JadwalPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their corresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aSucursal !== null) {\n if (!$this->aSucursal->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSucursal->getValidationFailures());\n }\n }\n\n\n if (($retval = MontacargasPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collDeshabilitamcs !== null) {\n foreach ($this->collDeshabilitamcs as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collMontacargasBateriass !== null) {\n foreach ($this->collMontacargasBateriass as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collUsoBateriasMontacargass !== null) {\n foreach ($this->collUsoBateriasMontacargass as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\tif (($retval = UserPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collExperts !== null) {\n\t\t\t\t\tforeach ($this->collExperts as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collExpertCategorys !== null) {\n\t\t\t\t\tforeach ($this->collExpertCategorys as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collHistorys !== null) {\n\t\t\t\t\tforeach ($this->collHistorys as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collItemRatings !== null) {\n\t\t\t\t\tforeach ($this->collItemRatings as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collOfferVoucher1s !== null) {\n\t\t\t\t\tforeach ($this->collOfferVoucher1s as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPurchaseDetails !== null) {\n\t\t\t\t\tforeach ($this->collPurchaseDetails as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collShoppingCarts !== null) {\n\t\t\t\t\tforeach ($this->collShoppingCarts as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collShoutsRelatedByPosterId !== null) {\n\t\t\t\t\tforeach ($this->collShoutsRelatedByPosterId as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collShoutsRelatedByRecipientId !== null) {\n\t\t\t\t\tforeach ($this->collShoutsRelatedByRecipientId as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserAwardss !== null) {\n\t\t\t\t\tforeach ($this->collUserAwardss as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->singleUserGtalk !== null) {\n\t\t\t\t\tif (!$this->singleUserGtalk->validate($columns)) {\n\t\t\t\t\t\t$failureMap = array_merge($failureMap, $this->singleUserGtalk->getValidationFailures());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->singleUserFb !== null) {\n\t\t\t\t\tif (!$this->singleUserFb->validate($columns)) {\n\t\t\t\t\t\t$failureMap = array_merge($failureMap, $this->singleUserFb->getValidationFailures());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserRates !== null) {\n\t\t\t\t\tforeach ($this->collUserRates as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->singleUserTutor !== null) {\n\t\t\t\t\tif (!$this->singleUserTutor->validate($columns)) {\n\t\t\t\t\t\t$failureMap = array_merge($failureMap, $this->singleUserTutor->getValidationFailures());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserQuestionTags !== null) {\n\t\t\t\t\tforeach ($this->collUserQuestionTags as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collStudentQuestionsRelatedByStudentId !== null) {\n\t\t\t\t\tforeach ($this->collStudentQuestionsRelatedByStudentId as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collStudentQuestionsRelatedByTutorId !== null) {\n\t\t\t\t\tforeach ($this->collStudentQuestionsRelatedByTutorId as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collWhiteboardSessions !== null) {\n\t\t\t\t\tforeach ($this->collWhiteboardSessions as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "public static function validateColumnNames($model, array $columns)\n {\n $errors = array();\n \n foreach ($columns as $column)\n {\n if (!ullGeneratorTools::isValidColumn($model, $column))\n {\n $errors[] = $column;\n } \n }\n \n if (count($errors))\n {\n throw new InvalidArgumentException('Unkown columns: ' . implode(',', $errors));\n }\n \n return true;\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aUser !== null) {\n\t\t\t\tif (!$this->aUser->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aUser->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = VenuePeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collEvents !== null) {\n\t\t\t\t\tforeach ($this->collEvents as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collVenueratings !== null) {\n\t\t\t\t\tforeach ($this->collVenueratings as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "public function validate($columns = null)\n\t{\n\t\t$res = $this->doValidate($columns);\n\t\tif ($res === true) {\n\t\t\t$this->validationFailures = array();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->validationFailures = $res;\n\t\t\treturn false;\n\t\t}\n\t}", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aBentukLembaga !== null) {\n if (!$this->aBentukLembaga->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aBentukLembaga->getValidationFailures());\n }\n }\n\n if ($this->aFasilitasLayanan !== null) {\n if (!$this->aFasilitasLayanan->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aFasilitasLayanan->getValidationFailures());\n }\n }\n\n if ($this->aJadwalPaudRelatedByFreqParenting !== null) {\n if (!$this->aJadwalPaudRelatedByFreqParenting->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aJadwalPaudRelatedByFreqParenting->getValidationFailures());\n }\n }\n\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null) {\n if (!$this->aJadwalPaudRelatedByJadwalDdtk->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aJadwalPaudRelatedByJadwalDdtk->getValidationFailures());\n }\n }\n\n if ($this->aJadwalPaudRelatedByJadwalKesehatan !== null) {\n if (!$this->aJadwalPaudRelatedByJadwalKesehatan->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aJadwalPaudRelatedByJadwalKesehatan->getValidationFailures());\n }\n }\n\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null) {\n if (!$this->aJadwalPaudRelatedByJadwalPmtas->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aJadwalPaudRelatedByJadwalPmtas->getValidationFailures());\n }\n }\n\n if ($this->aKategoriTk !== null) {\n if (!$this->aKategoriTk->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aKategoriTk->getValidationFailures());\n }\n }\n\n if ($this->aKlasifikasiLembaga !== null) {\n if (!$this->aKlasifikasiLembaga->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aKlasifikasiLembaga->getValidationFailures());\n }\n }\n\n if ($this->aLembagaPengangkat !== null) {\n if (!$this->aLembagaPengangkat->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aLembagaPengangkat->getValidationFailures());\n }\n }\n\n if ($this->aSekolah !== null) {\n if (!$this->aSekolah->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSekolah->getValidationFailures());\n }\n }\n\n if ($this->aSumberDanaSekolah !== null) {\n if (!$this->aSumberDanaSekolah->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aSumberDanaSekolah->getValidationFailures());\n }\n }\n\n\n if (($retval = SekolahPaudPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "public function modifyColumns($columns)\n {\n $columns = $this->columns->modifyColumns($columns);\n\n return $columns;\n }", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n if (($retval = EventPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collEtablissementEvents !== null) {\n foreach ($this->collEtablissementEvents as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collRegionEvents !== null) {\n foreach ($this->collRegionEvents as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collEventI18ns !== null) {\n foreach ($this->collEventI18ns as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "public function validate($columns = null)\n {\n $res = $this->doValidate($columns);\n if ($res === true) {\n $this->validationFailures = array();\n\n return true;\n }\n\n $this->validationFailures = $res;\n\n return false;\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aPerfil !== null) {\n\t\t\t\tif (!$this->aPerfil->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aPerfil->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = UsuarioPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collPermissaosRelatedByCoUsuarioAlteracao !== null) {\n\t\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioAlteracao as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPermissaosRelatedByCoUsuarioCadastro !== null) {\n\t\t\t\t\tforeach ($this->collPermissaosRelatedByCoUsuarioCadastro as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collRlUsuarioOrgaos !== null) {\n\t\t\t\t\tforeach ($this->collRlUsuarioOrgaos as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collTbDescricaoChamados !== null) {\n\t\t\t\t\tforeach ($this->collTbDescricaoChamados as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUsuarioCategorias !== null) {\n\t\t\t\t\tforeach ($this->collUsuarioCategorias as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUsuarioTarefas !== null) {\n\t\t\t\t\tforeach ($this->collUsuarioTarefas as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aJ002tUsuario !== null) {\n\t\t\t\tif (!$this->aJ002tUsuario->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aJ002tUsuario->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->aJ016tForense !== null) {\n\t\t\t\tif (!$this->aJ016tForense->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aJ016tForense->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->aJ018tInformeForense !== null) {\n\t\t\t\tif (!$this->aJ018tInformeForense->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aJ018tInformeForense->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = J019tParticipantesPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "public function setColumns($columns)\n\t{\n\t\tif(false == is_array($columns))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tforeach($columns as $name => $options)\n\t\t{\n\t\t\t$column = new Column;\n\n\t\t\t$type = $this->getOptionByKey(\"type\", $options);\n\t\t\t$length = $this->getOptionByKey(\"length\", $options);\n\t\t\t$notNull = $this->getOptionByKey(\"notNull\", $options);\n\t\t\t$autoIncrement = $this->getOptionByKey(\"autoIncrement\", $options);\n\t\t\t$index = $this->getOptionByKey(\"index\", $options);\n\t\t\t$collate = $this->getOptionByKey(\"collate\", $options);\n\n\t\t\t$column->setName($name);\n\n\t\t\t// Set all options if set\n\t\t\tif(false != $type)\n\t\t\t{\n\t\t\t\t$column->setType($type);\n\t\t\t}\n\n\t\t\tif(false != $length)\n\t\t\t{\n\t\t\t\t$column->setLength($length);\n\t\t\t}\n\n\t\t\tif(false != $notNull)\n\t\t\t{\n\t\t\t\t$column->setNotNull($notNull);\n\t\t\t}\n\n\t\t\tif(false != $autoIncrement)\n\t\t\t{\n\t\t\t\t$column->setAutoIncrement($autoIncrement);\n\t\t\t}\n\n\t\t\tif(false != $index)\n\t\t\t{\n\t\t\t\t$column->setIndex($index);\n\t\t\t}\n\n\t\t\tif(false != $collate)\n\t\t\t{\n\t\t\t\t$column->setCollate($collate);\n\t\t\t}\n\n\t\t\t// Add column\n\t\t\t$this->columns[] = $column;\n\t\t}\n\n\t}", "public function editColumns( $columns ) {\n \n unset($columns['author']); // Remove author, we normally dont need it\n unset($columns['date']); // Remove date, we normally dont need it\n unset($columns['categories']); \n \n foreach($this->fields_list as $field => $label):\n $columns[$field] = __( self::getLabel($field) );\n endforeach;\n return $columns;\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\tif (($retval = UserPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collUserExperiences !== null) {\n\t\t\t\t\tforeach ($this->collUserExperiences as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collOpenids !== null) {\n\t\t\t\t\tforeach ($this->collOpenids as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collrpxAuths !== null) {\n\t\t\t\t\tforeach ($this->collrpxAuths as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collQuestions !== null) {\n\t\t\t\t\tforeach ($this->collQuestions as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collQuestionComments !== null) {\n\t\t\t\t\tforeach ($this->collQuestionComments as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collAnswers !== null) {\n\t\t\t\t\tforeach ($this->collAnswers as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collAnswerComments !== null) {\n\t\t\t\t\tforeach ($this->collAnswerComments as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collQuestionVotes !== null) {\n\t\t\t\t\tforeach ($this->collQuestionVotes as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collAnswerVotes !== null) {\n\t\t\t\t\tforeach ($this->collAnswerVotes as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserFavorites !== null) {\n\t\t\t\t\tforeach ($this->collUserFavorites as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserTags !== null) {\n\t\t\t\t\tforeach ($this->collUserTags as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collCheckInformations !== null) {\n\t\t\t\t\tforeach ($this->collCheckInformations as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collAnswerOffensives !== null) {\n\t\t\t\t\tforeach ($this->collAnswerOffensives as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collQuestionOffensives !== null) {\n\t\t\t\t\tforeach ($this->collQuestionOffensives as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserAwards !== null) {\n\t\t\t\t\tforeach ($this->collUserAwards as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collMemberReferrals !== null) {\n\t\t\t\t\tforeach ($this->collMemberReferrals as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collGearCompanyInfos !== null) {\n\t\t\t\t\tforeach ($this->collGearCompanyInfos as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collGearInfos !== null) {\n\t\t\t\t\tforeach ($this->collGearInfos as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collGearReviews !== null) {\n\t\t\t\t\tforeach ($this->collGearReviews as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collUserGears !== null) {\n\t\t\t\t\tforeach ($this->collUserGears as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collOffensives !== null) {\n\t\t\t\t\tforeach ($this->collOffensives as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collRecentActivitys !== null) {\n\t\t\t\t\tforeach ($this->collRecentActivitys as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "public function admin_table_columns($_columns)\n {\n }", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\tif (($retval = VpoRequestPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collVpoRequestAnimals !== null) {\n\t\t\t\t\tforeach ($this->collVpoRequestAnimals as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collVpoRequestCargos !== null) {\n\t\t\t\t\tforeach ($this->collVpoRequestCargos as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collVpoRequestPassengers !== null) {\n\t\t\t\t\tforeach ($this->collVpoRequestPassengers as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "protected function doValidate($columns = null)\n\t{\n\t\tif (!$this->alreadyInValidation) {\n\t\t\t$this->alreadyInValidation = true;\n\t\t\t$retval = null;\n\n\t\t\t$failureMap = array();\n\n\n\t\t\t// We call the validate method on the following object(s) if they\n\t\t\t// were passed to this object by their coresponding set\n\t\t\t// method. This object relates to these object(s) by a\n\t\t\t// foreign key reference.\n\n\t\t\tif ($this->aPartie !== null) {\n\t\t\t\tif (!$this->aPartie->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aPartie->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->aPostRelatedByReplicaPostId !== null) {\n\t\t\t\tif (!$this->aPostRelatedByReplicaPostId->validate($columns)) {\n\t\t\t\t\t$failureMap = array_merge($failureMap, $this->aPostRelatedByReplicaPostId->getValidationFailures());\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (($retval = PostPeer::doValidate($this, $columns)) !== true) {\n\t\t\t\t$failureMap = array_merge($failureMap, $retval);\n\t\t\t}\n\n\n\t\t\t\tif ($this->collPostBadges !== null) {\n\t\t\t\t\tforeach ($this->collPostBadges as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collInappropriates !== null) {\n\t\t\t\t\tforeach ($this->collInappropriates as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPostsRelatedByReplicaPostId !== null) {\n\t\t\t\t\tforeach ($this->collPostsRelatedByReplicaPostId as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPostPollAnswers !== null) {\n\t\t\t\t\tforeach ($this->collPostPollAnswers as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPostPollVotes !== null) {\n\t\t\t\t\tforeach ($this->collPostPollVotes as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPostVisitss !== null) {\n\t\t\t\t\tforeach ($this->collPostVisitss as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPostDailyStatss !== null) {\n\t\t\t\t\tforeach ($this->collPostDailyStatss as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->collPostIndexs !== null) {\n\t\t\t\t\tforeach ($this->collPostIndexs as $referrerFK) {\n\t\t\t\t\t\tif (!$referrerFK->validate($columns)) {\n\t\t\t\t\t\t\t$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t$this->alreadyInValidation = false;\n\t\t}\n\n\t\treturn (!empty($failureMap) ? $failureMap : true);\n\t}", "public function setColumns($columns)\n {\n $this->columns = $columns;\n }", "static function setUpColumns($columns)\n {\n $columns->id = Column::AUTO_ID;\n $columns->type = Column::STRING;\n $columns->text = Column::STRING + Column::NOT_NULL;\n }", "static function setUpColumns($columns)\n {\n $columns->id = Column::AUTO_ID;\n $columns->name = Column::create(Column::STRING + Column::NOT_NULL)->setUnique();\n $columns->address = Column::STRING;\n $columns->createdAt = Column::TIMESTAMP;\n }", "protected function columnMatchCheck ( $lineColumns ) {\n }", "protected function transfer(array $columns)\n {\n $fields = [];\n\n foreach ($columns as $column) {\n $field = new Field($column->COLUMN_NAME);\n\n $this->setIsNullable($field, $column->IS_NULLABLE)\n ->setMaxLength($field, $column->CHARACTER_MAXIMUM_LENGTH)\n ->setDefault($field, $column->COLUMN_DEFAULT)\n ->setDataType($field, $column->DATA_TYPE)\n ->setKey($field, $column->COLUMN_KEY, $column->EXTRA)\n ->setLabel($field, $column->COLUMN_NAME)\n ->setHtmlType($field, $column->DATA_TYPE);\n\n $optimizer = new FieldOptimizer($field);\n\n $fields[] = $optimizer->optimize()->getField();\n }\n\n return $fields;\n }", "public function setColumns($columns) {\n\t\t$this->columns = $columns;\n\t}", "public static function setColumns($columns) {\n\t\tself::$columns = $columns;\n\t}", "public function columnsUpdate($columns){\n $columns = explode(\",\",$columns);\n $resultColomnsUpdate=\"\";\n foreach ($columns as $col) {\n $resultColomnsUpdate.= $col.\" = ? , \";\n }\n $resultColomnsUpdate = substr($resultColomnsUpdate, 0, -2);\n return $resultColomnsUpdate;\n }", "public function setColumns(array $columns): void\n {\n foreach ($columns as $column => [$type, $size]) {\n $this->columns[$column] = [(int)$type, (int)$size];\n }\n }", "public function setAllowSearchColumn($columns){\n\t\tif(is_array($columns))\n\t\t{\n\t\t\tforeach($columns AS $column)\n\t\t\t{\n\t\t\t\t$this->allowSearchColumns[] = $this->tablename . \".\" . $column;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->allowSearchColumns[] = $this->tablename . \".\" . $columns;\n\t\t}\n\t}", "static function setUpColumns($columns)\n {\n $columns->id = Column::AUTO_ID;\n $columns->oneId = OneABBR::columns()->id;\n $columns->createdAt = Column::TIMESTAMP;\n $columns->updatedAt = Column::TIMESTAMP;\n $columns->info = Column::create(Column::STRING)->setIndexed();\n }", "public function setColumns($columns)\n {\n $this->columns = array();\n $this->aliases = array();\n $this->customColumns = array();\n foreach ($columns as $columnIndex => $column) {\n // Is custom Column\n if (array_key_exists($column, $this->builtInCustomColumns) ||\n isset($this->columnProperties[$column]['callback'])) {\n if (array_key_exists($column, $this->builtInCustomColumns)) {\n $column = $this->builtInCustomColumns[$column];\n } elseif (isset($this->columnProperties[$column]['callback'])) {\n $column = $this->columnProperties[$column];\n unset($column['width']);\n }\n $this->addCustomColumn($column);\n } else {\n $alias = $this->getAliasColumn($column);\n // Check column alias or not\n if ($alias) {\n // Set alias columns\n $this->aliases[$alias] = $column;\n $columnIdentifier = $alias;\n } else {\n // Add prefix entity or table name to column name ( support column name only )\n $columnIdentifier = $this->addPrefixEntity($column);\n }\n $this->columns[] = $columnIdentifier;\n }\n }\n }", "public function setColumnTypes(array $columns)\n {\n foreach($columns as $c => $t)\n {\n $this->setColumnType($c, $t);\n }\n }", "public function setColumns(array $columns);", "static function setUpColumns($columns)\n {\n parent::setUpColumns($columns);\n $columns->utCreated = Column::INTEGER + Column::TIMESTAMP;\n }", "public function setColumns(array $columns);", "function migrate()\n {\n if (!$this->object->_columns) {\n throw new E_ColumnsNotDefinedException(\"Columns not defined for {$this->get_table_name()}\");\n }\n $added = FALSE;\n $removed = FALSE;\n // Add any missing columns\n foreach ($this->object->_columns as $key => $properties) {\n if (!in_array($key, $this->object->_table_columns)) {\n if ($this->object->_add_column($key, $properties['type'], $properties['default_value'])) {\n $added = TRUE;\n }\n }\n }\n // Remove any columns not defined\n //\t\tforeach ($this->object->_table_columns as $key) {\n //\t\t\tif (!isset($this->object->_columns[$key])) {\n //\t\t\t\t$this->object->_remove_column($key);\n // $removed = TRUE;\n //\t\t\t}\n //\t\t}\n if ($added or $removed) {\n // var_dump($this->object->_table_columns);\n $this->object->lookup_columns();\n // var_dump($added, $removed);\n }\n }", "private function verifyColumnType($serializationName, $columnType, $existingColumns, Model $model) {\n\t\tif (\n\t\t\tarray_key_exists($serializationName, $existingColumns)\n\t\t\t&& !$this->isCompatibleTypes($existingColumns[$serializationName]['type'], $columnType)\n\t\t) {\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Type conflict on column with name '$serializationName' from model {$model->getName()} \"\n\t\t\t\t.\"on SQL table '{$model->getSerializationSettings()->getValue('name')}' : \".PHP_EOL\n\t\t\t\t.\" - existing column type : '{$existingColumns[$serializationName]['type']}'\".PHP_EOL\n\t\t\t\t.\" - new column type : '$columnType'\"\n\t\t\t);\n\t\t}\n\t}", "public function isValid() {\n\n foreach ($this->entity as $nameColumn => $column) {\n\n $validate = null;\n // Se for chave primaria e tiver valor, valida inteiro somente sem nenhuma outra validacao.\n if ($column['contraint'] == 'pk' && $column['value']) {\n $validate = new Zend_Validate_Digits();\n } else {\n\n//______________________________________________________________________________ VALIDANDO POR TIPO DA COLUNA NO BANCO\n // Se tiver valor comeca validacoes de acordo com o tipo.\n // Se nao pergunta se é obrigatorio, se for obrigatorio valida.\n if ($column['value']) {\n // Se for inteiro\n if ($column['type'] == 'integer' || $column['type'] == 'smallint') {\n $validate = new Zend_Validate_Digits();\n // Se for data\n } else if ($column['type'] == 'numeric') {\n $column['value'] = str_replace('.', '', $column['value']);\n $column['value'] = (float) str_replace(',', '.', $column['value']);\n $validate = new Zend_Validate_Float();\n } else if ($column['type'] == 'date') {\n\n\t\t\t\t\t\t$posBarra = strpos($column['value'], '/');\n\t\t\t\t\t\t$pos = strpos($column['value'], '-');\n\t\t\t\t\t\tif ($posBarra !== false) {\n\t\t\t\t\t\t\t$date = explode('/', $column['value']);\n\t\t\t\t\t\t\tif (!checkdate($date[1], $date[0], $date[2])) {\n\t\t\t\t\t\t\t\t$this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($column['value'] . self::MSG_DATA_INVALIDA));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($pos !== false) {\n\t\t\t\t\t\t\t$date = explode('-', $column['value']);\n\t\t\t\t\t\t\tif (!checkdate($date[1], $date[2], $date[0])) {\n\t\t\t\t\t\t\t\t$this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($column['value'] . self::MSG_DATA_INVALIDA));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n // Se for texto\n } else if ($column['type'] == 'character' || $column['type'] == 'character varying') {\n\n // Se for Bollean\n } else if ($column['type'] == 'boolean') {\n\n // Se for texto\n } else if ($column['type'] == 'text') {\n \n } else if ($column['type'] == 'timestamp without time zone') {\n if (strpos($column['value'], '/')) {\n\n if (strpos($column['value'], ' ')) {\n $arrDate = explode(' ', $column['value']);\n\n // Validando a data\n $date = explode('/', $arrDate[0]);\n if (!checkdate($date[1], $arrDate[0], $date[2])) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($arrDate[0] . self::MSG_DATA_INVALIDA));\n }\n\n // Validando a hora\n $validateTime = new Zend_Validate_Date('hh:mm');\n $validateTime->isValid($arrDate[1]);\n if ($validateTime->getErrors()) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($arrDate[1] . self::MSG_DATA_HORA_INVALIDA));\n }\n } else {\n // Validando a data\n $date = explode('/', trim($column['value']));\n if (!checkdate($date[1], $date[0], $date[2])) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ($column['value'] . self::MSG_DATA_INVALIDA));\n }\n }\n }\n }\n\n//______________________________________________________________________________ VALIDANDO POR LIMITE DA COLUNA NO BANCO\n // Validando quantidade de caracteres.\n if ($column['maximum']) {\n $validateMax = new Zend_Validate_StringLength(array('max' => $column['maximum']));\n $validateMax->isValid($column['value']);\n if ($validateMax->getErrors()) {\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => (reset($validateMax->getMessages())));\n }\n $validateMax = null;\n }\n } else {\n//______________________________________________________________________________ VALIDANDO POR NAO VAZIO DA COLUNA NO BANCO\n // Validando se nao tiver valor e ele for obrigatorio.\n if ($column['is_null'] == 'NO' && $column['contraint'] != 'pk') {\n $validate = new Zend_Validate_NotEmpty();\n }\n }\n\n//______________________________________________________________________________ VALIDANDO A CLOUNA E COLOCANDO A MENSAGEM\n if ($validate) {\n $validate->isValid($column['value']);\n if ($validate->getErrors()) {\n\t\t\t\t\t\t$msg = $validate->getMessages();\n $this->error[] = array(\"name\" => $nameColumn, \"msg\" => ( reset($msg) ));\n }\n\n $validate = null;\n }\n }\n }\n\t\t\n if ($this->error)\n return false;\n else\n return true;\n }", "public function validate_column($column)\n {\n }", "public function set_columns( $columns ) {\n\n\t\t$date_column = $columns['date'];\n\t\t$author_column = $columns['author'];\n\n\t\tunset( $columns['date'] );\n\t\tunset( $columns['author'] );\n\n\t\t$columns['type'] = esc_html__( 'Type', 'elementskit' );\n\t\t$columns['condition'] = esc_html__( 'Conditions', 'elementskit' );\n\t\t$columns['date'] = $date_column;\n\t\t$columns['author'] = $author_column;\n\n\t\treturn $columns;\n\t}", "protected function doValidate($columns = null)\n {\n if (!$this->alreadyInValidation) {\n $this->alreadyInValidation = true;\n $retval = null;\n\n $failureMap = array();\n\n\n // We call the validate method on the following object(s) if they\n // were passed to this object by their coresponding set\n // method. This object relates to these object(s) by a\n // foreign key reference.\n\n if ($this->aCvterm !== null) {\n if (!$this->aCvterm->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aCvterm->getValidationFailures());\n }\n }\n\n if ($this->aFeature !== null) {\n if (!$this->aFeature->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aFeature->getValidationFailures());\n }\n }\n\n if ($this->aPub !== null) {\n if (!$this->aPub->validate($columns)) {\n $failureMap = array_merge($failureMap, $this->aPub->getValidationFailures());\n }\n }\n\n\n if (($retval = FeatureCvtermPeer::doValidate($this, $columns)) !== true) {\n $failureMap = array_merge($failureMap, $retval);\n }\n\n\n if ($this->collFeatureCvtermDbxrefs !== null) {\n foreach ($this->collFeatureCvtermDbxrefs as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collFeatureCvtermPubs !== null) {\n foreach ($this->collFeatureCvtermPubs as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n if ($this->collFeatureCvtermprops !== null) {\n foreach ($this->collFeatureCvtermprops as $referrerFK) {\n if (!$referrerFK->validate($columns)) {\n $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());\n }\n }\n }\n\n\n $this->alreadyInValidation = false;\n }\n\n return (!empty($failureMap) ? $failureMap : true);\n }", "public function isValidColumnType($column);", "static public function hasColumns($table, array $columns)\n {\n return self::call(__FUNCTION__ , func_get_args());\n }", "public function setTableColumns($columns)\n {\n $this->tableColumns = $columns;\n }", "public function isValid($columns, $csv)\n {\n $columns = implode(\",\", $columns);\n $expected = \"Date\\tDescription\\tDebit\\tCredit\";\n\n return ($expected == $columns);\n }", "public function onDuplicateKeyUpdate(array $columns)\n\t{\n\t\t$this->updateColumns = $columns;\n\t}", "protected function updateTable( $p_columns = array() ) {\n\t\t// -----------------------------------------------------------------------------------------\n\t\t//\n\t\t// Update\n\t\t//\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$columns = (array) $p_columns;\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Has the id been provided?\n\t\t// -----------------------------------------------------------------------------------------\n\t\tif ( !array_key_exists('id',$columns) || is_null($columns['id']) || empty($columns['id']) || !is_numeric($columns['id']) ) {\n\t\t\treturn $this->return_handler->results(400,$this->database_name . \":\" . $this->table_name . \" ID not provided\",new stdClass());\n\t\t}\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Is this a valid ID?\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$id = $columns['id'];\n\t\t$query = $this->db->get_where($this->table_name,array('id' => $id));\n\t\tif ($query->num_rows() == 0) {\n\t\t\treturn $this->return_handler->results(400,$this->database_name . \":\" . $this->table_name . \" Valid ID not provided\",new stdClass());\n\t\t}\n\t\t$current_columns = $query->row();\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// clear and initialize the values in the table object to the current values (do not tag them as set)\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$return = $this->clear();\n\t\tif ( $return['status'] > 200 ) {\n\t\t\treturn $return;\n\t\t}\n\t\t$return = $this->set_columns($current_columns);\n\t\tif ( $return['status'] > 200 ) {\n\t\t\treturn $return;\n\t\t}\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// set the column values in the table object\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$return = $this->set_values($columns);\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Make sure all mandatory columns have been set\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$return = $this->mandatory_columns_set();\n\t\tif ( $return['status'] > 200 ) {\n\t\t\treturn $this->return_handler->results($return['status'],$this->table_name . \" \" . $return['message'],$return['response']);\n\t\t}\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Get an array of just the set columns for the table.\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$return = $this->get_set_columns();\n\t\tif ( $return['status'] > 200 ) {\n\t\t\treturn $return;\n\t\t}\n\t\t$table_columns = $return['response'];\n\t\t// echo \"table_columns : \"; print_r ($table_columns); echo '<br />';\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Make sure all unique keys have unique values (including the primary key)\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$return = $this->validateUniqueKeyValuesForUpdate($table_columns['id']);\n\t\tif ( $return['status'] > 200 ) {\n\t\t\treturn $return;\n\t\t}\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Remove id from $table_columns (a primary key can not be set in the update list)\n\t\t// -----------------------------------------------------------------------------------------\n\t\tunset($table_columns['id']);\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Has any columns (other than id) been passed to update. Do not update, do not fail.\n\t\t// -----------------------------------------------------------------------------------------\n\t\tif ( count($table_columns) == 0 ) {\n\t\t\treturn $this->return_handler->results(202,\"Nothing to chage\",new stdClass());\n\t\t}\n\t\t// echo $this->database_name . \".\" . $this->table_name . \".\" . $id . \" table columns:\"; print_r($table_columns); echo \"<br />\";\n\t\t// -----------------------------------------------------------------------------------------\n\t\t// Update\n\t\t// -----------------------------------------------------------------------------------------\n\t\t$this->db->where('id',$id)->update($this->table_name,$table_columns);\n\n\t\treturn $this->return_handler->results(202,\"Entry changed\",new stdClass());\n\t}", "private function setColumns(array $columns)\n {\n $this->columns = $columns;\n }", "public static function manage_sortable_columns( $columns ) {\n unset( $columns['wpseo-focuskw'] );\n unset( $columns['wpseo-score'] );\n unset( $columns['wpseo-title'] );\n unset( $columns['wpseo-metadesc'] );\n unset( $columns['date'] );\n $columns['expiration'] = 'expiration';\n $columns['registrar'] = 'registrar';\n return $columns;\n }", "public function setColumns(array $columns)\n {\n $this->clearColumns();\n return $this->addColumns($columns);\n }", "public function hasColumns($columns) {\n\t\t$returnValue = TRUE;\n\t\tforeach ($columns as $column) {\n\t\t\tif (!array_key_exists($column, $this->_allowedColumns)) {\n\t\t\t\t$returnValue = FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn $returnValue;\n\t}", "public function filterColumns(Collection $columns): Collection\n {\n return $columns->diff(\n $this->filter_columns\n );\n }", "protected abstract function getUpdateStatement(array $columns);", "private function _ParseInput(\n &$arrNew,\n &$arrFields,\n &$arrValues,\n $blnRespectNotNulls = true\n ) {\n $arrFields = array();\n $arrValues = array();\n // cosmetic reference\n $arrColSpec = $this->_arrTableColumns;\n // begin some basic sanity checks.\n if(!is_array($arrNew)) {\n $this->Throw(\n \"_EntBase::_ParseInput(): The Insert or Update method \" .\n \"expects an array.\"\n ,debug_backtrace()\n );\n return false;\n }\n if(!count($arrNew)) {\n $this->Throw(\n \"_EntBase::_ParseInput(): Array is empty.\",debug_backtrace()\n );\n return false;\n }\n \n if(!is_array($arrColSpec)) {\n $this->XaoThrow(\n \"_EntBase::_ParseInput(): Method SetTableColumns() has \" .\n \"received an invalid column specification. It should at least\" .\n \" be an array of some sort.\"\n ,debug_backtrace()\n );\n return false;\n }\n // create a flat list of column names\n $arrColNames = array();\n foreach($arrColSpec AS $mxdColItem) {\n // simple mode\n if(is_string($mxdColItem)) {\n $arrColNames[] = $mxdColItem;\n }\n // complex mode\n elseif(is_array($mxdColItem)) {\n if(is_string($mxdColItem[0])) {\n $arrColNames[] = $mxdColItem[0];\n }\n else {\n $this->XaoThrow(\"_EntBase::_ParseInput(): Invalid column \" .\n \"specification passed to SetTableColumns(). First \" .\n \"value of a column specification should be a string.\"\n , debug_backtrace());\n return false;\n }\n }\n else{\n $this->XaoThrow(\"_EntBase::_ParseInput(): Invalid column \" .\n \"specification passed to SetTableColumns(). Expecting \" .\n \"either a string, or an array for each column.\"\n , debug_backtrace());\n return false;\n }\n }\n // begin parsing data array\n foreach($arrNew AS $field => $value) {\n // ignore items not in the column spec\n if(!in_array($field,$arrColNames)) continue;\n if(in_array($field,$arrColSpec)) {\n // DO THE THING\n $arrFields[] = $field;\n $this->objDb->PrepText($value);\n $arrValues[] = $value;\n }\n else {\n foreach($arrColSpec AS $key => $arrColItem) {\n if(\n !is_array($arrColItem) \n || !count($arrColItem) \n || $field != $arrColItem[0]\n ) continue;\n if(count($arrColItem) == 1) {\n // DO THE THING\n $arrFields[] = $field;\n $this->objDb->PrepText($value);\n $arrValues[] = $value;\n continue;\n }\n // 0 - name (string)\n // 1 - type (string)\n // 2 - nullability (bool) (default true)\n // 3 - default value callback function\n $strPrepMethod = \"Prep\".$arrColItem[1];\n if(method_exists($this->objDb,$strPrepMethod)) {\n // DO THE THING\n $arrFields[] = $arrColItem[0];\n if(!array_key_exists(2,$arrColItem)) \n $arrColItem[2] = true;\n if(\n array_key_exists(3,$arrColItem) \n && is_string($arrColItem[3])\n && method_exists($this,$arrColItem[3])\n ) {\n $value = $this->{$arrColItem[3]}($value);\n }\n $this->objDb->$strPrepMethod($value,$arrColItem[2]);\n $arrValues[] = $value;\n }\n else {\n $this->XaoThrow(\n \"_EntBase::_ParseInput(): Could not find method \" .\n \"called \".$strPrepMethod.\"(). Invalid TYPE \"\n .$arrColItem[1].\" specified in SetTableColumns \" .\n \"for column \".$field\n ,debug_backtrace()\n );\n return false;\n }\n }\n }\n }\n // check for any compulsory fields \n // missing from $arrNew\n $blnMissingFields = false;\n if(\n $blnRespectNotNulls\n && is_array($arrColSpec) \n && count($arrColSpec) \n && is_array($arrColSpec[0])\n ) {\n foreach($arrColSpec AS $arrRowSpec) {\n if(count($arrRowSpec) == 3) {\n if(!$arrRowSpec[2] && !in_array($arrRowSpec[0],$arrFields)){\n $this->XaoThrow(\n \"_ParseInput(): You appear to be missing data for \".\n \"the following COMPULSORY field: \".$arrRowSpec[0]\n ,debug_backtrace()\n );\n $blnMissingFields = true;\n }\n }\n else {\n $this->XaoThrow(\n \"_ParseInput(): incomplete column spec assigned.\"\n ,debug_backtrace()\n );\n return false;\n }\n }\n }\n if($blnMissingFields) return false;\n return true;\n }", "protected function prepareSeederColumns($columns)\n {\n if (! $columns) {\n return;\n }\n\n $cols = [];\n\n foreach ($columns as $name => $type) {\n $name = $this->sanitize($name, '/[^a-zA-Z0-9_-]/');\n\n switch ($type) {\n case 'tinyInteger':\n case 'boolean':\n\n $cols[] = \"'$name' => \".'rand(0, 1)'.\",\";\n break;\n\n case 'text':\n case 'mediumText':\n case 'longText':\n\n $cols[] = \"'$name' => \".'$faker->text()'.\",\";\n break;\n\n case 'float':\n case 'double':\n case 'decimal':\n\n $cols[] = \"'$name' => \".'$faker->randomFloat()'.\",\";\n break;\n\n case 'integer':\n case 'smallInteger':\n case 'mediumInteger':\n case 'bigInteger':\n\n $cols[] = \"'$name' => \".'$faker->randomDigit()'.\",\";\n break;\n\n case 'dateTime':\n\n $cols[] = \"'$name' => \".'$faker->dateTime()'.\",\";\n break;\n\n case 'time':\n\n $cols[] = \"'$name' => \".'$faker->time()'.\",\";\n break;\n\n default:\n $cols[] = \"'$name' => \".'$faker->sentence()'.\",\";\n break;\n }\n }\n\n if ($this->timestamps) {\n $cols[] = \"'created_at' => \".'$faker->dateTime()'.\",\";\n $cols[] = \"'updated_at' => \".'$faker->dateTime()'.\",\";\n }\n\n return implode(\"\\n\\t\\t\\t//\\t\", $cols);\n }", "function addColumns($columns)\n {\n if (is_array($columns)) {\n foreach ($columns as $column) {\n if (!isset($this->columns_list[$column])) {\n $this->columns[] = $column;\n $this->columns_list[$column] = 1;\n }\n }\n }\n else {\n if (!isset($this->columns_list[$columns])) {\n $this->columns[] = $columns;\n $this->columns_list[$columns] = 1;\n }\n }\n }", "public function drop($columns) {\n if (!is_array($columns))\n $columns = array($columns);\n\n $fields = array();\n\n foreach ($columns as $column) {\n $fields[$column] = 1;\n }\n\n $query = array('$unset' => $fields);\n\n return $this->performUpdate($query);\n }", "public function drop($columns)\n {\n if (!is_array($columns)) {\n $columns = [$columns];\n }\n\n $fields = [];\n\n foreach ($columns as $column) {\n $fields[$column] = 1;\n }\n\n $query = ['$unset' => $fields];\n\n return $this->performUpdate($query);\n }", "public function drop($columns)\n {\n if (! is_array($columns)) {\n $columns = [$columns];\n }\n\n $query = $this->getGrammar()->compileUnset($this, $columns);\n $bindings = $this->getBindings();\n\n return $this->connection->update($query, $bindings);\n }", "public function setColumns(...$columns)\n {\n $this->columns = [];\n\n foreach ($columns as $column) {\n if (is_string($column))\n $this->addColumn($column);\n elseif (is_array($column)) {\n $this->addColumnsFromArray($column);\n } else\n throw new InvalidArgumentException(\"Argument should be a string or array\");\n }\n\n if (!$columns)\n $this->addColumn('*');\n\n return $this;\n }", "public function update(string $table, array $columns, array $conditions): bool;", "function tt_validate_upload_columns(csv_import_reader $cir, $stdfields, moodle_url $returnurl) {\n $columns = $cir->get_columns();\n\n if (empty($columns)) {\n $cir->close();\n $cir->cleanup();\n print_error('cannotreadtmpfile', 'error', $returnurl);\n }\n if (count($columns) < 2) {\n $cir->close();\n $cir->cleanup();\n print_error('csvfewcolumns', 'error', $returnurl);\n }\n\n // test columns\n $processed = array();\n foreach ($columns as $key=>$unused) {\n $field = $columns[$key];\n $lcfield = textlib::strtolower($field);\n if (in_array($field, $stdfields) or in_array($lcfield, $stdfields)) {\n // standard fields are only lowercase\n $newfield = $lcfield;\n } else {\n $cir->close();\n $cir->cleanup();\n print_error('invalidfieldname', 'error', $returnurl, $field);\n }\n if (in_array($newfield, $processed)) {\n $cir->close();\n $cir->cleanup();\n print_error('duplicatefieldname', 'error', $returnurl, $newfield);\n }\n $processed[$key] = $newfield;\n }\n return $processed;\n}", "public function __construct(\r\n array $columns = []\r\n ) {\r\n $this->lastError = '';\r\n $this->columns = [];\r\n foreach ($columns as $id => $rules) {\r\n $this->addColumn($id, $rules);\r\n }\r\n }", "public function crudTableCol($columns) {\r\n $this->columns = $columns;\r\n return $this;\r\n }", "public function drop($columns)\n {\n if ( ! is_array($columns)) $columns = array($columns);\n\n $fields = array();\n\n foreach ($columns as $column)\n {\n $fields[$column] = 1;\n }\n\n $query = array('$unset' => $fields);\n\n return $this->performUpdate($query);\n }", "public function deleteColumns( $columns )\r\n {\r\n rsort( $columns );\r\n foreach ($columns as $column) {\r\n $this->deleteColumn( $column );\r\n }\r\n }", "public function modifyRecords(){\n \n // Get the sql statement\n $sql = $this->updateSql();\n // Prepare the query\n $stmt = $this->db->prepare($sql);\n\n foreach ($this->requestUpdateValues as $key => $value) {\n $stmt->bindParam($this->params['columnName_Pdo'][$key], $this->requestUpdateValues[$key]);\n }\n \n $stmt->execute();\n \n return true;\n \n }", "function change_order_columns_filter( $columns ) {\n unset($columns['shipping_address']);\n unset($columns['customer_message']);\n unset($columns['order_total']);\n return $columns;\n}", "public function setColumns( $columns )\n\t{\n\t\t$this->columns = $columns;\n\t\treturn $this;\n\t}", "public function setColumns($columns)\n {\n $this->columns = $columns;\n return $this;\n }" ]
[ "0.6780082", "0.6415807", "0.636581", "0.6234922", "0.6124479", "0.6096371", "0.6078615", "0.60098153", "0.5973185", "0.5922245", "0.5819985", "0.5798123", "0.5797835", "0.57818246", "0.57704145", "0.573968", "0.5718231", "0.5704828", "0.56957954", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5682755", "0.5677461", "0.565763", "0.56317973", "0.5625306", "0.5625306", "0.5625306", "0.5625306", "0.5625306", "0.5625306", "0.5625306", "0.5625306", "0.5625306", "0.5606139", "0.5574014", "0.5570733", "0.5547159", "0.55405074", "0.5523307", "0.5501387", "0.54960436", "0.54879194", "0.5433825", "0.5433556", "0.54259247", "0.5403041", "0.5396683", "0.5393216", "0.53878593", "0.5378062", "0.53563756", "0.5330277", "0.53263915", "0.5311337", "0.5273849", "0.52463853", "0.5226285", "0.5177913", "0.51778764", "0.51659554", "0.5165778", "0.5158469", "0.5131073", "0.5116918", "0.50972915", "0.5093414", "0.50862086", "0.5085195", "0.5075766", "0.5062212", "0.5052085", "0.50495905", "0.5047063", "0.5029968", "0.50281936", "0.5012581", "0.5005079", "0.50027716", "0.49962956", "0.49789652", "0.49778146", "0.49487498", "0.49313864", "0.49299684", "0.49124986", "0.4910755", "0.48959532", "0.48878768", "0.48764354", "0.4874617", "0.48690468", "0.4868432" ]
0.5114727
72
Retrieve a single object by pkey.
public static function retrieveByPK($pk, PropelPDO $con = null) { if (null !== ($obj = CastleTypePeer::getInstanceFromPool((string) $pk))) { return $obj; } if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_READ); } $criteria = new Criteria(CastleTypePeer::DATABASE_NAME); $criteria->add(CastleTypePeer::ID, $pk); $v = CastleTypePeer::doSelect($criteria, $con); return !empty($v) > 0 ? $v[0] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function getObject($objKey);", "public function getObject($key) {\n\t\treturn $this->objects[$key];\n\t}", "public function getObject($key)\n\t{\n\t\treturn $this->objects[$key];\n\t}", "public function get($primaryKeyValue)\n\t{\n\t\t// Get only one record using the primary key\n\t\treturn $this->getOne(array($this->getPrimaryKeyField(), '=', $primaryKeyValue));\n\t}", "public static function one($pkey)\n {\n if (count(func_get_args()) > 1) {\n $pkey = func_get_args();\n }\n\n return static::tinydb_add_where_for_pkey($pkey, new \\TinyDb\\Internal\\Query\\Model(get_called_class()))->one();\n }", "public static function find($pkey = null)\n {\n if (count(func_get_args()) > 1) {\n $pkey = func_get_args();\n }\n\n if ($pkey !== null) {\n return static::one($pkey);\n } else {\n return new \\TinyDb\\Internal\\Query\\Model(get_called_class());\n }\n }", "public function getObject( $key )\r\n\t{\r\n\t\tif( is_object ( self::$objects[ $key ] ) )\r\n\t\t{\r\n\t\t\treturn self::$objects[ $key ];\r\n\t\t}\r\n\t}", "public static function find($primary_key)\n {\n return static::select()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fetchOne();\n }", "public static function retrieveByPK($pk, PropelPDO $con = null)\n\t{\n\n\t\tif (null !== ($obj = MissionPhotoPeer::getInstanceFromPool((string) $pk))) {\n\t\t\treturn $obj;\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(MissionPhotoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$criteria = new Criteria(MissionPhotoPeer::DATABASE_NAME);\n\t\t$criteria->add(MissionPhotoPeer::ID, $pk);\n\n\t\t$v = MissionPhotoPeer::doSelect($criteria, $con);\n\n\t\treturn !empty($v) > 0 ? $v[0] : null;\n\t}", "public static function retrieveByPK($pk, PropelPDO $con = null)\n {\n\n if (null !== ($obj = SertifikasiPdPeer::getInstanceFromPool((string) $pk))) {\n return $obj;\n }\n\n if ($con === null) {\n $con = Propel::getConnection(SertifikasiPdPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria = new Criteria(SertifikasiPdPeer::DATABASE_NAME);\n $criteria->add(SertifikasiPdPeer::ID_SERT_PD, $pk);\n\n $v = SertifikasiPdPeer::doSelect($criteria, $con);\n\n return !empty($v) > 0 ? $v[0] : null;\n }", "public function byPK($class, $pkey) {\n /** @var PassiveRecord $class */\n /** @var PassiveRecord $Model */\n $Model = G::build($class);\n if (!is_a($Model, PassiveRecord::class)) {\n trigger_error('Supplied class name does not extend PassiveRecord', E_USER_ERROR);\n }\n\n if ($class::getFieldList()[$class::getPkey()]['type'] == 'i') {\n if (!is_array($pkey)) {\n $pkey = (int)$pkey;\n } else {\n foreach ($pkey as $key => $val) {\n $pkey[$key] = (int)$val;\n }\n }\n }\n\n $result = $this->fetch($class, [$class::getPkey() => $pkey]);\n\n if (!is_array($pkey)) {\n if (!isset($result[$pkey])) {\n $result = false;\n } else {\n $result = $result[$pkey];\n }\n }\n\n return $result;\n }", "public static function retrieveByPK($pk, PropelPDO $con = null)\n\t{\n\n\t\tif (null !== ($obj = TbprofessorPeer::getInstanceFromPool((string) $pk))) {\n\t\t\treturn $obj;\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbprofessorPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$criteria = new Criteria(TbprofessorPeer::DATABASE_NAME);\n\t\t$criteria->add(TbprofessorPeer::MATRICULA_PROF, $pk);\n\n\t\t$v = TbprofessorPeer::doSelect($criteria, $con);\n\n\t\treturn !empty($v) > 0 ? $v[0] : null;\n\t}", "public static function retrieveByKey($object_name, $key)\n {\n if (!class_exists($object_name))\n {\n throw new sfRatingException('Class %s does not exist', \n $object_name);\n }\n $object = new $object_name;\n $peer = $object->getPeer();\n $field = sfRatingToolkit::getObjectReferenceField($object);\n if (is_null($field))\n {\n return call_user_func(array($peer, 'retrieveByPK'), $key);\n }\n else\n {\n $column = call_user_func(array($peer, 'translateFieldName'),\n $field, \n BasePeer::TYPE_PHPNAME, \n BasePeer::TYPE_COLNAME);\n $c = new Criteria();\n $c->add($column, $key);\n return call_user_func(array($peer, 'doSelectOne'), $c);\n }\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `ID_API_ID`, `ID_NAME`, `ID_EMAIL`, `ID_FBID`, `CDATE`, `MDATE`, `ID_TWID`, `ID_IMAGE` FROM `invite_detail` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new InviteDetail();\n\t\t\t$obj->hydrate($row);\n\t\t\tInviteDetailPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function getObject(string $key): ?object;", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DropboxPersonPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "protected function objectForKey($key) {\n\t\tif ($this->keyField == 'ID') {\n\t\t\treturn ExternalContent::getDataObjectFor($key);\n\t\t} else {\n\t\t\treturn DataObject::get_one($this->sourceObject, \"\\\"{$this->keyField}\\\" = '\" . Convert::raw2sql($key) . \"'\");\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `gallery_id`, `name`, `path`, `path_min`, `description`, `active`, `last_modified`, `created` FROM `photos` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Photos();\n $obj->hydrate($row);\n PhotosPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function getByKey($key);", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = PersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public static function retrieveByPK($pk, PropelPDO $con = null)\n {\n\n if (null !== ($obj = GsGeneriekeProductenPeer::getInstanceFromPool((string) $pk))) {\n return $obj;\n }\n\n if ($con === null) {\n $con = Propel::getConnection(GsGeneriekeProductenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria = new Criteria(GsGeneriekeProductenPeer::DATABASE_NAME);\n $criteria->add(GsGeneriekeProductenPeer::GENERIEKEPRODUCTCODE, $pk);\n\n $v = GsGeneriekeProductenPeer::doSelect($criteria, $con);\n\n return !empty($v) > 0 ? $v[0] : null;\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `NAME`, `VALUE`, `REMOTE` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public static function findByPrimaryKey($primary_key)\n {\n return self::find($primary_key);\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `USER_ID`, `NAME`, `DESCRIPTION`, `BARE_PATH`, `CLONE_PATH`, `FORKED_FROM_ID`, `FORKED_AT`, `CREATED_AT`, `UPDATED_AT` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public static function Get($key) {\r\n\t\t$cls = get_called_class();\r\n\t\t$model = new $cls();\r\n\t\t$primary = $model->index('primary');\r\n\t\tif (is_null($primary)) {\r\n\t\t\tthrow new Exception(\"The schema for {$cls} does not identify a primary key\");\r\n\t\t}\r\n\t\tif (!is_array($key)) {\r\n\t\t\tif (count($primary['fields']) > 1) {\r\n\t\t\t\tthrow new Exception(\"The schema for {$cls} has more than one field in its primary key\");\r\n\t\t\t}\r\n\t\t\t$key = array(\r\n\t\t\t\t$primary['fields'][0] => $key\r\n\t\t\t);\r\n\t\t}\r\n\t\tforeach ($primary['fields'] as $field) {\r\n\t\t\tif (!isset($key[$field])) {\r\n\t\t\t\tthrow new Exception(\"No value provided for the {$field} field in the primary key for \" . get_called_class());\r\n\t\t\t}\r\n\t\t\t$model->where(\"{$field} = ?\", $key[$field]);\r\n\t\t}\r\n\t\t//$src = Dbi_Source::GetModelSource($model);\r\n\t\t$result = $model->select();\r\n\t\tif ($result->count()) {\r\n\t\t\tif ($result->count() > 1) {\r\n\t\t\t\tthrow new Exception(\"{$cls} returned multiple records for primary key {$id}\");\r\n\t\t\t}\r\n\t\t\t$record = $result[0];\r\n\t\t} else {\r\n\t\t\t$record = new Dbi_Record($model, null);\r\n\t\t\t$record->setArray($key, false);\r\n\t\t}\r\n\t\treturn $record;\r\n\t}", "static function retrieveByPK($id) {\n\t\treturn static::retrieveByPKs($id);\n\t}", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT ID, ROUTEID, PROVIDERID, PROVIDERNAME, NAMEZH, NAMEEN, PATHATTRIBUTEID, PATHATTRIBUTENAME, PATHATTRIBUTEENAME, BUILDPERIOD, DEPARTUREZH, DEPARTUREEN, DESTINATIONZH, DESTINATIONEN, REALSEQUENCE, DISTANCE, GOFIRSTBUSTIME, BACKFIRSTBUSTIME, GOLASTBUSTIME, BACKLASTBUSTIME, OFFPEAKHEADWAY FROM routes_2011 WHERE ID = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Routes2011();\n\t\t\t$obj->hydrate($row);\n\t\t\tRoutes2011Peer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function retrieve($key) {\n return $this->connection->get($this->key($key));\n }", "public function getObject($key) {\n $get = $this->get($key);\n $get = unserialize($get);\n\t\treturn $get;\n\t}", "public function getPersistentObject($key)\n {\n if (!$this->loaded) {\n $this->load();\n }\n\n return $this->doGetPersistentObject($key);\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `ARTIST_ID`, `ARTIST_DCE_NAME`, `ARTIST_FIRST_NAME`, `ARTIST_LAST_NAME` FROM `artist` WHERE `ARTIST_ID` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Artist();\n $obj->hydrate($row);\n ArtistPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = LpPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RespuestaItemPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public static function retrieveByPK($pk, PropelPDO $con = null)\n\t{\n\n\t\tif (null !== ($obj = CoursePeer::getInstanceFromPool((string) $pk))) {\n\t\t\treturn $obj;\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(CoursePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$criteria = new Criteria(CoursePeer::DATABASE_NAME);\n\t\t$criteria->add(CoursePeer::CODE, $pk);\n\n\t\t$v = CoursePeer::doSelect($criteria, $con);\n\n\t\treturn !empty($v) > 0 ? $v[0] : null;\n\t}", "function pkeyGet($kv)\n {\n return Memcached_DataObject::pkeyGet('QnA_Answer', $kv);\n }", "public function retrieveByPkTableProxy($pPk) {\n $lInvoker = $this->getInvoker();\n\n $lClassName = get_class($lInvoker);\n\n $lObject = null;\n $lMemcacheId = strtolower($lClassName) . \"-\" . $pPk;\n\n // first try GLOBALS cache\n if (isset($GLOBALS['CACHE'][strtoupper($lClassName)][$pPk])) {\n $lObject = $GLOBALS['CACHE'][strtoupper($lClassName)][$pPk];\n } else {\n $lObject = $lInvoker->getTable()->find($pPk);\n }\n\n if ($lObject) {\n $GLOBALS['CACHE'][strtoupper($lClassName)][$pPk] = $lObject;\n return $lObject;\n } else {\n return null;\n }\n }", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "public function fetch($primaryKey);", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MenuPersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function returnDetailFindByPK($id);", "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "function get_pk($key_id)\n\t{\n\t\t$key_id\t= $this->prepare_input($key_id, 42);\n\t\t$key\t= $this->call(\"{$this->context} --export $key_id\");\n\n\t\tif (false === $error = $this->get_error())\n\t\t{\n\t\t\treturn $key;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie($error);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT ID, LASTNAME, FIRSTNAME, BIRTHDATE, ADDRESS, CITY, ZIP_CODE, CREATED_AT, UPDATED_AT, CREATED_BY, UPDATED_BY FROM ratp_client WHERE ID = :p0';\n try {\n $stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Client();\n $obj->hydrate($row);\n ClientPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `idproveedormarca`, `idproveedor`, `idmarca` FROM `proveedormarca` WHERE `idproveedormarca` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Proveedormarca();\n $obj->hydrate($row);\n ProveedormarcaPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ExpositorFeriaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ProductoPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `TITULO`, `DURACION`, `FECHA_ESTRENO`, `ESTRENO`, `ACTOR1_NOM`, `ACTOR1_APELL`, `ACTOR2_NOM`, `ACTOR2_APELL`, `CATEGORIA_ID`, `ESTADO`, `SINOPSIS`, `IMAGEN` FROM `pelicula` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Pelicula();\n\t\t\t$obj->hydrate($row);\n\t\t\tPeliculaPeer::addInstanceToPool($obj, (string) $key);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `type`, `name`, `domain`, `api_url`, `api_auth_http_user`, `api_auth_http_password`, `api_auth_type`, `api_auth_user`, `api_auth_password`, `api_auth_token`, `api_auth_url_user_key`, `api_auth_url_pw_key`, `cron`, `customer_id`, `activated`, `notes`, `last_run`, `includeLog`, `public_key`, `website_hash`, `notification_recipient`, `notification_sender`, `notification_change`, `notification_error` FROM `remote_app` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new RemoteApp();\n $obj->hydrate($row);\n RemoteAppPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n if ($rs->EOF) {\n return null;\n }\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RegistrationPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "abstract protected function retrieve($key);", "public function query_get($key) {\n\t\t\treturn \\uri\\query::get($this->object, $key);\n\t\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `name`, `is_desc`, `short_desc`, `desc`, `prio`, `category`, `auter`, `date` FROM `news_subject` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new NewsSubject();\n $obj->hydrate($row);\n NewsSubjectPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\r\n\t{\r\n\t\tif ((null !== ($obj = PersonaCastingPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\r\n\t\t\t// the object is alredy in the instance pool\r\n\t\t\treturn $obj;\r\n\t\t} else {\r\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\r\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\t\t$stmt = $criteria\r\n\t\t\t\t->filterByPrimaryKey($key)\r\n\t\t\t\t->getSelectStatement($con);\r\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\r\n\t\t}\r\n\t}", "public function get($primaryKeyValue = 0)\n\t{\n\t\t// Create new row object\n\t\tif(!$primaryKeyValue) {\n\t\t\t$row = new $this->rowClass();\n\t\t\treturn $row;\n\t\t\n\t\t// Find record by primary key\n\t\t} else {\n\t\t\treturn $this->first(array($this->getPrimaryKeyField() => $primaryKeyValue));\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MesaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function get($key)\n {\n return $this->find($key);\n }", "public static function find($id, $key = 'id');", "public function findFirstByKey($key);", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = GoodsInSalePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function obtenerObjeto($key){\n\t\tif(is_object(self::$objetos[$key])){\n\t\t\treturn self::$objetos[$key];\n\t\t} \n\t}", "public static function get(&$object, $key) {\n\t\t\t$qarray = \\uri\\generate::query_array($object);\n\t\t\tif (isset($qarray[$key])) {\n\t\t\t\treturn $qarray[$key];\n\t\t\t}\n\t\t\treturn NULL;\n\t\t}", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `PEDIDO_ID`, `PRODUCTO_ID` FROM `pedido_producto` WHERE `PEDIDO_ID` = :p0 AND `PRODUCTO_ID` = :p1';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key[0], PDO::PARAM_INT);\n\t\t\t$stmt->bindValue(':p1', $key[1], PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new PedidoProducto();\n\t\t\t$obj->hydrate($row);\n\t\t\tPedidoProductoPeer::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1])));\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = InviteDetailPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(InviteDetailPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function &getObject($key) {\r\n if($this->hasObject($key)) {\r\n return $this->objects[$key];\r\n }\r\n return null;\r\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `netid`, `name`, `picture`, `year`, `is_admin` FROM `user` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new User();\n $obj->hydrate($row);\n UserPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function get($key) {\n\t\treturn $this -> conn -> get($key);\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `name`, `silver`, `copper`, `st`, `asx`, `pr`, `sk`, `bs`, `lr`, `type`, `X`, `Y`, `server`, `castle_groups_id` FROM `castles` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_STR);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Castles();\n $obj->hydrate($row);\n CastlesPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DomainCheckPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_ProductPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_ProductPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ArtistPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ArtistPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function retrieve(Datastore $oDB, $primaryKey)\n {\n $this->datastoreProxy = $oDB->getNewDatastoreProxy($this);\n $this->datastoreProxy->retrieve($oDB, $primaryKey);\n }", "public function findPk($key, $con = null)\r\n\t{\r\n\t\tif ((null !== ($obj = AdvertisementPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\r\n\t\t\t// the object is alredy in the instance pool\r\n\t\t\treturn $obj;\r\n\t\t} else {\r\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\r\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\t\t$stmt = $criteria\r\n\t\t\t\t->filterByPrimaryKey($key)\r\n\t\t\t\t->getSelectStatement($con);\r\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\r\n\t\t}\r\n\t}", "public function get($pk)\n {\n $row = $this->_queryResult->getRow($pk);\n\n if (!$row) {\n return null;\n }\n\n $modelClass = $this->_queryResult->getModelClass();\n\n return $modelClass::create($row);\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID_ADDRESS`, `ID_COUNTRY`, `ID_STATE`, `ID_CUSTOMER`, `ID_MANUFACTURER`, `ID_SUPPLIER`, `ALIAS`, `COMPANY`, `LASTNAME`, `FIRSTNAME`, `ADDRESS1`, `ADDRESS2`, `POSTCODE`, `CITY`, `OTHER`, `PHONE`, `PHONE_MOBILE`, `VAT_NUMBER`, `DNI`, `DATE_ADD`, `DATE_UPD`, `ACTIVE`, `DELETED` FROM `' . _DB_PREFIX_ . 'address` WHERE `ID_ADDRESS` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Oops_Db_Address();\n\t\t\t$obj->hydrate($row);\n\t\t\tOops_Db_AddressPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function get( $key );", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PeliculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PeliculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function fetch($key);", "public function fetch($key);", "public function fetch($key);", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `visible`, `bio` FROM `memberprofile` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new memberProfile();\n $obj->hydrate($row);\n memberProfilePeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = NewsSubjectPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(NewsSubjectPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, ConnectionInterface $con)\n {\n $sql = 'SELECT id, first_name, last_name, created_at, updated_at FROM professor WHERE id = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(\\PDO::FETCH_NUM)) {\n /** @var ChildProfessor $obj */\n $obj = new ChildProfessor();\n $obj->hydrate($row);\n ProfessorTableMap::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public static function get( $id )\n {\n //Logger::getInstance()->po_log(\"PersistentObject.get \" . self::$thisClass . \" \" . $id);\n return PersistentManager::getInstance()->get( self::$thisClass, $id );\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `username`, `password`, `salt`, `firstname`, `lastname`, `email`, `phone`, `memo`, `activated`, `last_login`, `notification_change`, `notification_error` FROM `user` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new User();\n $obj->hydrate($row);\n UserPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function getObjFromCache($key);", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_AddressPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_AddressPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `idpagocontrarecibo`, `pagocontrarecibo_comprobante`, `pagocontrarecibo_fechapago`, `pagocontrarecibo_cantidad`, `idcontrarecibodetalle`, `idusuario` FROM `pagocontrarecibo` WHERE `idpagocontrarecibo` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Pagocontrarecibo();\n $obj->hydrate($row);\n PagocontrareciboPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function get(string $key)\r\n\t{\r\n\t\treturn $this->connection->get($key);\r\n\t}", "public function findByKey($key)\n {\n return Page::where('key', $key)->first();\n }", "public function findByPk($primary)\n {\n $stmt = $this->Adapter->prepare(\"SELECT * FROM $this->table WHERE $this->primaryName=:id\");\n $stmt->execute(['id' => $primary]);\n return $stmt->fetch($this->pdoFetch);\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Routes2011Peer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Routes2011Peer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `original_id`, `name`, `school_unit`, `address`, `zip_code`, `city`, `phone_schulleitung`, `phone_lehrerzimmer`, `current_year`, `created_at`, `updated_at`, `created_by`, `updated_by` FROM `schools` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new School();\n $obj->hydrate($row);\n SchoolPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `kode_tugas`, `seri`, `berita`, `tanggal`, `filename` FROM `pdn_tugas` WHERE `kode_tugas` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new PdnTugas();\n $obj->hydrate($row);\n PdnTugasPeer::addInstanceToPool($obj, (string)$key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `USERNAME`, `ALGORITHM`, `SALT`, `PASSWORD`, `CREATED_AT`, `LAST_LOGIN`, `IS_ACTIVE`, `IS_SUPER_ADMIN` FROM `af_guard_user` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new afGuardUser();\n\t\t\t$obj->hydrate($row);\n\t\t\tafGuardUserPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `ID`, `COLLECTOR_ID`, `COLLECTOR_TYPE`, `BIRTHDAY`, `GENDER`, `ZIP_POSTAL`, `COUNTRY`, `COUNTRY_ISO3166`, `WEBSITE`, `ABOUT`, `COLLECTIONS`, `COLLECTING`, `MOST_SPENT`, `ANUALLY_SPENT`, `NEW_ITEM_EVERY`, `INTERESTS`, `IS_FEATURED`, `IS_SELLER`, `IS_IMAGE_AUTO`, `PREFERENCES`, `NOTIFICATIONS`, `UPDATED_AT`, `CREATED_AT`, `ARCHIVED_AT` FROM `collector_profile_archive` WHERE `ID` = :p0';\n try\n {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n }\n catch (Exception $e)\n {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM))\n {\n $obj = new CollectorProfileArchive();\n $obj->hydrate($row);\n CollectorProfileArchivePeer::addInstanceToPool($obj, (string) $row[0]);\n }\n $stmt->closeCursor();\n\n return $obj;\n }" ]
[ "0.68439263", "0.6835994", "0.68319094", "0.6721147", "0.6659628", "0.65827423", "0.6582093", "0.6554073", "0.64854956", "0.6440809", "0.6420919", "0.6361671", "0.6356136", "0.63537216", "0.6350474", "0.6330541", "0.6325395", "0.63175493", "0.6307702", "0.62956744", "0.6289697", "0.6289486", "0.62812775", "0.62685436", "0.6258019", "0.6250653", "0.62428844", "0.62406176", "0.62394005", "0.6237019", "0.62115204", "0.62077713", "0.62036175", "0.619138", "0.61858207", "0.6179773", "0.61759454", "0.61671466", "0.61632174", "0.61613226", "0.6148906", "0.6138652", "0.61357814", "0.6130829", "0.61252666", "0.6122851", "0.612279", "0.61177564", "0.6114701", "0.61135125", "0.610394", "0.6081464", "0.6077092", "0.60747886", "0.6071848", "0.6070189", "0.6065869", "0.60601014", "0.6059726", "0.60556877", "0.6032659", "0.60250604", "0.6023313", "0.6022092", "0.6020399", "0.6014521", "0.6005785", "0.6004346", "0.60004306", "0.5996355", "0.5979285", "0.59661174", "0.5953838", "0.5953257", "0.59511316", "0.59476155", "0.5945956", "0.5933691", "0.5928427", "0.5928427", "0.5928427", "0.59204817", "0.59204817", "0.59204817", "0.591955", "0.5918347", "0.5915039", "0.5914756", "0.5908805", "0.590836", "0.5905464", "0.59040004", "0.59030527", "0.59018487", "0.5900715", "0.58929807", "0.5887773", "0.5882207", "0.5879851", "0.58780915" ]
0.5991566
70
Retrieve multiple objects by pkey.
public static function retrieveByPKs($pks, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(CastleTypePeer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(CastleTypePeer::DATABASE_NAME); $criteria->add(CastleTypePeer::ID, $pks, Criteria::IN); $objs = CastleTypePeer::doSelect($criteria, $con); } return $objs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveByPKsTableProxy($pPks) {\n $q = $lInvoker->getQuery()->where('id IN ?', $pPks);\n\n return $q->fetch();\n }", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(MissionPhotoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(MissionPhotoPeer::DATABASE_NAME);\n\t\t\t$criteria->add(MissionPhotoPeer::ID, $pks, Criteria::IN);\n\t\t\t$objs = MissionPhotoPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "public function getMultiple($key)\n {\n return $this->doFetch($key);\n }", "public function fetchByPrimaryKey($pk){\n\t\t$sql = \"SELECT * FROM \".$this->_tableName.\" WHERE \".$this->_primaryKeyColumn.\"=?\";\n\n\t\ttry{\n\t\t\t$resultArray = $this->_dbConnection->fetchAssoc($sql, array($pk));\n\t\t} catch (\\Exception $e){\n\t\t\t$resultArray = array();\n\t\t}\n\t\t\n\t\treturn $resultArray;\n\t}", "function loadObjectList( $key='' ) {\n\t\tif (!($cur = $this->query())) {\n\t\t\treturn null;\n\t\t}\n\t\t$array = array();\n\t\twhile ($row = mysql_fetch_object( $cur )) {\n\t\t\tif ($key) {\n\t\t\t\t$array[$row->$key] = $row;\n\t\t\t} else {\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t}\n\t\tmysql_free_result( $cur );\n\t\treturn $array;\n\t}", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbprofessorPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(TbprofessorPeer::DATABASE_NAME);\n\t\t\t$criteria->add(TbprofessorPeer::MATRICULA_PROF, $pks, Criteria::IN);\n\t\t\t$objs = TbprofessorPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(SertifikasiPdPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(SertifikasiPdPeer::DATABASE_NAME);\n $criteria->add(SertifikasiPdPeer::ID_SERT_PD, $pks, Criteria::IN);\n $objs = SertifikasiPdPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(CoursePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(CoursePeer::DATABASE_NAME);\n\t\t\t$criteria->add(CoursePeer::CODE, $pks, Criteria::IN);\n\t\t\t$objs = CoursePeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(GsGeneriekeProductenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(GsGeneriekeProductenPeer::DATABASE_NAME);\n $criteria->add(GsGeneriekeProductenPeer::GENERIEKEPRODUCTCODE, $pks, Criteria::IN);\n $objs = GsGeneriekeProductenPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "public function get_all()\n {\n $sql = <<<SQL\n SELECT \n pigeon_keys.id as keys_id, pigeon_keys.users_id, profiles.first_name, profiles.last_name, users.username, pigeon_keys.key, pigeon_keys.level, pigeon_keys.date_created\n FROM \n profiles , users, {$this->rest_keys_table} pigeon_keys\n WHERE\n pigeon_keys.users_id = users.id\n AND\n profiles.user_id = users.id\nSQL;\n\n return $this->db->query($sql)->result_array();\n\n }", "public function showMany($pks){\n return $this->model->findMany($pks);\n }", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AsignacionScPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(AsignacionScPeer::DATABASE_NAME);\n\t\t\t$criteria->add(AsignacionScPeer::ID, $pks, Criteria::IN);\n\t\t\t$objs = AsignacionScPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(ReportPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(ReportPeer::DATABASE_NAME);\n $criteria->add(ReportPeer::ID, $pks, Criteria::IN);\n $objs = ReportPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RpMissionSummaryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(RpMissionSummaryPeer::DATABASE_NAME);\n\t\t\t$criteria->add(RpMissionSummaryPeer::ID, $pks, Criteria::IN);\n\t\t\t$objs = RpMissionSummaryPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "function getMulti($keys) {\n return $this->memcached->getMulti($keys);\n }", "public function fetch($primaryKey);", "function get_by_key($key,$id){\n\t\t$data = array();\n\t\t$sql = \"SELECT * FROM dinamic_media WHERE media_key='\".$key.\"' AND media_keyid=\".$id;\n\t\t$data = $this->mysql->get_data($sql,'clean');\n\t\treturn $data;\n\t}", "function getItems($db, $resource_pk) {\r\n\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nSELECT i.item_pk, i.item_title, i.item_text, i.item_url, i.max_rating mr, i.step st, i.visible vis, i.sequence seq,\r\n i.created cr, i.updated upd, COUNT(r.user_pk) num, SUM(r.rating) total\r\nFROM {$prefix}item i LEFT OUTER JOIN {$prefix}rating r ON i.item_pk = r.item_pk\r\nWHERE (i.resource_link_pk = :resource_pk)\r\nGROUP BY i.item_pk, i.item_title, i.item_text, i.item_url, i.max_rating, i.step, i.visible, i.sequence, i.created, i.updated\r\nORDER BY i.sequence\r\nEOD;\r\n\r\n $query = $db->prepare($sql);\r\n $query->bindValue('resource_pk', $resource_pk, PDO::PARAM_INT);\r\n $query->execute();\r\n\r\n $rows = $query->fetchAll(PDO::FETCH_CLASS, 'Item');\r\n if ($rows === FALSE) {\r\n $rows = array();\r\n }\r\n\r\n return $rows;\r\n\r\n }", "public function findByPrimaryKey($key)\n {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function getItems(array $keys = []);", "static function retrieveByPKs($id) {\n\t\tif (null === $id) {\n\t\t\treturn null;\n\t\t}\n\t\tif (static::$_poolEnabled) {\n\t\t\t$pool_instance = static::retrieveFromPool($id);\n\t\t\tif (null !== $pool_instance) {\n\t\t\t\treturn $pool_instance;\n\t\t\t}\n\t\t}\n\t\t$q = new Query;\n\t\t$q->add('id', $id);\n\t\treturn static::doSelectOne($q);\n\t}", "public function findPks($keys, $con = null)\r\n\t{\t\r\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\treturn $this\r\n\t\t\t->filterByPrimaryKeys($keys)\r\n\t\t\t->find($con);\r\n\t}", "public function findPks($keys, $con = null)\r\n\t{\t\r\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\treturn $this\r\n\t\t\t->filterByPrimaryKeys($keys)\r\n\t\t\t->find($con);\r\n\t}", "function loadAssocList( $key='' ) {\n\t\tif (!($cur = $this->query())) {\n\t\t\treturn null;\n\t\t}\n\t\t$array = array();\n\t\twhile ($row = mysql_fetch_assoc( $cur )) {\n\t\t\tif ($key) {\n\t\t\t\t$array[$row->$key] = $row;\n\t\t\t} else {\n\t\t\t\t$array[] = $row;\n\t\t\t}\n\t\t}\n\t\tmysql_free_result( $cur );\n\t\treturn $array;\n\t}", "public function fetchAll($key, $keyn = null) {}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "public static function find_all(){\n $result = array();\n static::setConnection();\n $keyColumn = static::$keyColumn;\n $table = static::$table;\n $sql = \"SELECT * FROM \".$table.\" ORDER BY \".$keyColumn.\" DESC\";\n $res = mysqli_query(static::$conn,$sql);\n while($row = mysqli_fetch_object($res,get_called_class())){\n $result[] = $row;\n }\n return $result;\n }", "function get_row_bypk($pk) {\n\t\tif($this->course_cache === false) {\n\t\t\t\n\t\t\t$this->course_cache = array();\n\t\t\t$search_query = \"\n\t\t\tSELECT idCourse, code, name\n\t\t\tFROM \".$GLOBALS['prefix_lms'].\"_course\";\n\t\t\t$re_course = sql_query($search_query);\n\t\t\tif(!$re_course) return false;\n\t\t\twhile(list($id_course, $code, $name) = sql_fetch_row($re_course)) {\n\t\t\t\t\n\t\t\t\t$this->course_cache[$name]['id'] = $id_course; \n\t\t\t\t$this->course_cache[$name]['course_name'] = $name; \n\t\t\t}\n\t\t}\n\t\t// if userid not cached search for it in the database and populate cache\n\t\tif(!isset($this->userid_cache[$pk['userid']])) {\n\t\t\tif($this->userid_cache === false) $this->userid_cache = array();\n\t\t\t\n\t\t\t$user = $this->acl_man->getUser(false, addslashes($pk['userid']));\n\t\t\tif($user === false) return false;\n\t\t\t\n\t\t\t$this->userid_cache[$pk['userid']] = $user[ACL_INFO_IDST];\n\t\t}\n\t\t$arr = array(\n\t\t\t'id_course' => ( isset($this->course_cache[$pk['course_code']]) ? $this->course_cache[$pk['course_code']]['id'] : 0 ),\n\t\t\t'course_name' => ( isset($this->course_cache[$pk['course_code']]) ? $this->course_cache[$pk['course_code']]['course_name'] : '' ),\n\t\t\t'idst_user' => ( isset($this->userid_cache[$pk['userid']]) ? $this->userid_cache[$pk['userid']] : 0 )\n\t\t);\n\t\treturn $arr;\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "function get_multi($keys) {\n\t\t$out = array();\n\t\tforeach($keys as $key)\n\t\t\t$out[$key] = $this->get($key);\n\t\treturn $out;\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(PhotosPeer::ID, $keys, Criteria::IN);\n }", "public static function for_select(array $collection, $key, $primary_key = 'id')\n {\n $result = array();\n foreach ($collection as $item) {\n $result[$item->$primary_key] = $item->$key;\n }\n return $result;\n }", "public function findPks($keys, $con = null)\r\n\t{\r\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\treturn $this\r\n\t\t\t->filterByPrimaryKeys($keys)\r\n\t\t\t->find($con);\r\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RespuestaItemPeer::ID, $keys, Criteria::IN);\n\t}", "function get_by_key($withSetAttributeValue=FALSE) {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM \".$this->hr_db.\".hr_person_detail \n\t\t\t\tWHERE psd_ps_id=?\";\n\t\t$query = $this->hr->query($sql, array($this->psd_ps_id));\n\t\tif ( $withSetAttributeValue ) {\n\t\t\t$this->row2attribute( $query->row() );\n\t\t} else {\n\t\t\treturn $query ;\n\t\t}\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $keys, Criteria::IN);\n\t}", "public function get() {\r\n $this->checkGateway();\r\n\r\n $id = func_get_args();\r\n\r\n // Create the SQL Query\r\n $sql = \"SELECT * FROM {$this->name} WHERE \";\r\n foreach ((array) $this->primary as $key => $primary) {\r\n\r\n // More primary keys than parameters\r\n if (! isset($id[$key])) {\r\n throw new DatabaseGatewayException(\"The 'get' method requires every primary keys as parameters to be given in the same order\");\r\n }\r\n\r\n // Query parameter\r\n $sql .= $primary . \" = :$primary AND \";\r\n\r\n // Safe query\r\n $this->db->bind($primary, $id[$key]);\r\n }\r\n $sql = trim($sql, \" AND \");\r\n\r\n // Result\r\n return $this->db->row($sql);\r\n }", "public abstract function getObjects();", "public function consultarItems($idPresupuesto)\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idPresupuesto',$idPresupuesto);\n\t\n\t\t$criteria->select = \"t.*\";\n\t\t\n\n\t\treturn self::model()->findAll($criteria);\n\t\n\t}", "public static function fetchPairs($args)\n\t{\n\t\t$args = func_get_args();\n\t\treturn self::getConnection()->query($args)->fetchPairs();\n\t}", "public function getPairs($_key = null, $_val = null, $_deleted = 0, $_where = array())\n {\n $key = $_key ? $_key : $this->primary;\n $val = $_val ? $_val : $this->priName;\n\n $select = $this->getSql()->select();\n $select->columns(array($key, $val));\n\n // except delete\n if (!$_deleted) {\n $select->where(array('is_deleted' => 0));\n }\n\n if ($_where) {\n $select->where($_where);\n }\n\n $rows = $this->selectWith($select);\n $res = array();\n foreach ($rows as $row) {\n $res[$row->$key] = $row->$val;\n }\n return $res;\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null)\n {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function get_all() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_get', array($where));\n\n if ($this->result_mode == 'object') {\n $result = $this->db->get($this->_table())->result();\n } else {\n $result = $this->db->get($this->_table())->result_array();\n }\n\n foreach ($result as &$row) {\n $row = $this->_callbacks('after_get', array($row));\n }\n\n return $result;\n }", "public function getMultipleByTag($tag, $keysInResult = false){\n $keys = $this->getAdapter()->sMembers($this->_keyFromTag($tag));\n return $this->getMultiple($keys, $keysInResult );\n }", "function SqlFetchKeys($prikaz,$key){\n /* zjednoduseni nacteni celeho vysledku select primo do pole podle klice */\n $a=array();\n if (!$this->Sql($prikaz)){\n while ($this->FetchRow()){\n if (isset($a[$this->Data($key)])){\n /* tato hodnota klice se opakuje, struktura bude pole */\n if (!isset($a[$this->Data($key)][0]) ){\n /* pole zatim neexistuje, vlozeni jiz zarazeneho prvku do pole */\n $tmp=$a[$this->Data($key)];\n $a[$this->Data($key)]=array();\n array_push($a[$this->Data($key)],$tmp);\n }\n /* pripojeni prvku k poli */\n array_push($a[$this->Data($key)],$this->DataHash()); \n }else{\n $a[$this->Data($key)]=$this->DataHash();\n } \n }\n }\n return $a; \n }", "function getPrimByFk($fk1, $pkCol, $fk1Col, $table)\n\t{\n\t\t//intialize variable\n\t\t$pkIds\t= array();\n\t\t\n\t\t//statement\n\t\t$sql\t= \"SELECT \".$pkCol.\" FROM \".$table. \n\t\t\t\t \" WHERE \".$fk1Col.\"='\".$fk1.\"' \";\n\t\t\t\t \n\t\t\n\t\t$query\t= mysql_query($sql);\n\t\t\n\t\tif(mysql_num_rows($query) > 0)\n\t\t{\t\n\t\t\twhile($result = mysql_fetch_object($query))\n\t\t\t{\n\t\t\t\t$pkIds[]\t= $result->$pkCol;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return\n\t\treturn $pkIds;\n\t\t\n\t}", "private function get_recs() {\n\tglobal $_DB;\n\n\t$sql = \"SELECT e00.name, e00.property_id AS name_id,\n\t\t\t\te02.name AS value, e02.prop_value_id AS value_id\n\t\t\tFROM (\n\t\t\t\tSELECT property_id, name FROM \".$_DB->prefix.\"e00_property\n\t\t\t\tWHERE organization_idref = \".$_SESSION[\"organization_id\"].\"\n\t\t\t) AS e00\n\t\t\tJOIN \".$_DB->prefix.\"e02_prop_value AS e02 ON e02.property_idref = e00.property_id\n\t\t\tORDER BY name, value;\";\n\t$stmt = $_DB->query($sql);\n\t$this->records = array();\n\twhile ($row = $stmt->fetchObject()) {\n\t\t$record = array(\n\t\t\t\t\"name\" =>\t\t$row->name,\n\t\t\t\t\"name_id\" =>\t$row->name_id,\n\t\t\t\t\"value\" =>\t\t$row->value,\n\t\t\t\t\"value_id\" =>\t$row->value_id,\n\t\t);\n\t\t$this->records[] = $record;\n\t}\n\t$stmt->closeCursor();\n}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function getPrimaryKeys();", "public function getPrimaryKeys();", "public function get_instances() { \n\n\t\t$sql = \"SELECT * FROM `localplay_mpd` ORDER BY `name`\"; \n\t\t$db_results = Dba::query($sql); \n\n\t\t$results = array(); \n\n\t\twhile ($row = Dba::fetch_assoc($db_results)) { \n\t\t\t$results[$row['id']] = $row['name']; \n\t\t} \n\n\t\treturn $results; \n\n\t}", "public function getMany($args = null);", "public function fetch_objects($query);", "public function fetchForMultiSelect($key, $value)\n\t{\n\t\t$select = $this->table->select()\n\t\t\t->from($this->table, array('key' => $key, 'value' => $value));\n\t\t$results = $this->table->fetchAll($select);\n\t\n\t\treturn $results->toArray();\n\t}", "function sthFetchObjects($sth) {\r\n\t$out = array();\r\n\twhile($o = $sth->fetchObject()) {\r\n\t\t$out[] = $o;\r\n\t}\r\n\treturn $out;\r\n}", "public function getMultipleData();", "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_group\n\t\t\t\tWHERE gru_id=?\";\n\t\t$query = $this->db->query($sql, array($this->gru_id));\n\t\treturn $query;\n\t}", "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t $condition = array(\"IDP\" =>$this->IDP);\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_key_component\n\t\t\t\tWHERE kcp_id=?\";\n\t\t$this->db->query($sql, array($this->kcp_id));\n\t\treturn $query;\n\t}", "public function mget(string ...$keys): array\r\n\t{\r\n\t\treturn $this->connection->mget($keys);\r\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}" ]
[ "0.68747616", "0.67442334", "0.6710901", "0.66203785", "0.64334416", "0.6383386", "0.63442695", "0.62873673", "0.6251598", "0.6176803", "0.6059888", "0.6007207", "0.58621407", "0.5809914", "0.5779223", "0.5773636", "0.5767458", "0.5686989", "0.56526375", "0.5648855", "0.5648855", "0.5648855", "0.5639886", "0.5633422", "0.5613997", "0.5613997", "0.56131494", "0.5609821", "0.5605095", "0.5605095", "0.5605095", "0.5605095", "0.5605095", "0.5605095", "0.5605095", "0.5605095", "0.5605095", "0.5559806", "0.55469865", "0.5508189", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5499388", "0.5496007", "0.54864454", "0.5482945", "0.5454835", "0.54482126", "0.54455554", "0.544455", "0.54441", "0.5430345", "0.54299134", "0.5427694", "0.5424194", "0.5417228", "0.5416448", "0.54073155", "0.54072386", "0.54023695", "0.5399935", "0.53931403", "0.5391674", "0.5391674", "0.53790617", "0.537762", "0.5375884", "0.5359149", "0.53493875", "0.53425056", "0.5331579", "0.5329349", "0.53268933", "0.5324341", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956", "0.5321956" ]
0.58334446
13
Return the Element attributes
public function getAttributes(): array { return $this->attributes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attributes()\r\n\t{\r\n\t\treturn $this->attribs;\r\n\t}", "public function attributes()\n\t{\n\t\treturn $this->attribs;\n\t}", "public function getAttributes()\r\n\t{\r\n\t\treturn $this->attr;\r\n\t}", "public function getAttributes() {}", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes() {}", "public function getAttribs()\n {\n return $this->attribs;\n }", "function attributes() {\n\t\t$this->load_attributes();\n\t\treturn $this->_attributes;\n\t}", "public function getAttributes() {\n\t\treturn $this->attributes;\n\t}", "function getAttributes()\n {\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttribs() {\n\t\treturn $this->_attribs;\n\t}", "public function getAttributes(){\n\t\treturn $this->_attributes;\n\t}", "public function getInnerAttributes()\n\t{\n\t\t$element = $this->getElement();\n\t\t$classes = $this->getInnerClasses();\n\t\tif ($classes) $attrs['class'] = implode(' ', $classes);\n\t\treturn $attrs;\n\t}", "public function getAttributes() {\n\t\treturn $this->_attributes;\n\t}", "public function getAttributes() {\n\t\treturn $this->_attributes;\n\t}", "public function getAttributes() {\n return $this->attributes;\n }", "public function getAllAttributes()\n {\n if ($this->node->hasAttributes()) {\n $attributes = [];\n foreach ($this->node->attributes as $attr) {\n $attributes[$attr->name] = $attr->value;\n }\n\n return $attributes;\n }\n\n return null;\n }", "public function getAttributes()\n {\n return $this->_attributes;\n }", "public function getAttributes()\n {\n return $this->_attributes;\n }", "public function getAttributes(){\n return $this->attributes;\n }", "public function getAttributes()\n {\n $return = [];\n foreach ($this->attr as $attr => $info) {\n $return[$attr] = $this->getAttribute($attr);\n }\n\n return $return;\n }", "public function getAttributes() {\n return $this->_attributes;\n }", "public function getAttributes() {\n return $this->attributes->getArray();\n }", "public function getAllAtributes() {\r\n $class = get_class($this->getInvoker());\r\n return mdAttributeHandler::getAllAttributes($class);\r\n }", "public function GetAttributes() {\n\t\treturn [\n\t\t\t'class'=> implode(' ', $this->getCSS())\n\t\t];\n\t}", "public function getAttributesList() {\n return $this->_get(24);\n }", "public function getAttributes()\n {\n }", "protected function getAttributes()\n {\n $attributes = [];\n\n if ($this->reader->hasAttributes) {\n while ($this->reader->moveToNextAttribute()) {\n $attributes[$this->reader->localName] = $this->reader->value;\n }\n\n $this->reader->moveToElement();\n }\n\n return $attributes;\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function attributes() { return $this->attributes; }", "protected function readElementAttributes()\n {\n $attributes = new Collection;\n\n while ($this->reader->moveToNextAttribute()) {\n $attributes->put($this->reader->name, $this->castify($this->reader->value));\n }\n\n $this->reader->moveToElement();\n\n return $attributes;\n }", "public function getAttributesList() {\n return $this->_get(9);\n }", "public function getAttributesList() {\n return $this->_get(15);\n }", "public function getAttributesList() {\n return $this->_get(15);\n }", "public function getAttributesList() {\n return $this->_get(7);\n }", "public function getAttributesList() {\n return $this->_get(3);\n }", "public function getAttributes(){ }", "public function getAttributesList() {\n return $this->_get(2);\n }", "public function getHtmlAttributes();", "public function buildAttributes() {\n // Start with the element attributes (e.g., type of text)\n $attributes = $this->elementAttributes();\n\n // The form attributes.\n $attributes += array(\n 'action' => $this->action,\n 'method' => $this->method,\n );\n\n // The attributes that have been set.\n $attributes += $this->attributes;\n\n return $attributes;\n }", "function getAttrList() {\n return array_keys($this->attributes);\n }", "public function getAttributes(): array {\n return $this->attributes;\n }", "public function getHtmlAttributes()\n {\n return [\n 'data-password-min-character-sets',\n 'data-password-min-length',\n 'type',\n 'title',\n 'class',\n 'style',\n 'onclick',\n 'onchange',\n 'disabled',\n 'readonly',\n 'tabindex',\n 'placeholder',\n 'data-form-part',\n 'data-role',\n 'data-action',\n 'checked',\n ];\n }", "public function attributes()\n {\n return parent::attributes();\n }", "public function getHtmlAttributes() {}", "public function getHtmlAttributes() {}", "protected function getAttr()\r\n\t{\r\n\t\treturn array( 'maxLength', 'width', 'searchMethod', 'searchRangeValues' );\r\n\t}", "public function getAttributes(): array\n {\n return $this->_attributes;\n }", "public function defineAttributes()\n\t{\n\t\treturn array();\n\t}", "public function getAttributes() : array\n {\n\n return $this->attributes;\n }", "public static function getAttributes() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::getAttributes();\t\t\n\t}", "public function getAttributes(){\n\t\t$this->_connect();\n\t\treturn $this->_getAttributes();\n\t}", "public function attributes();", "public function attributes()\n {\n return [\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "function getAdditionalAttributes() ;", "public function attributes()\n {\n return $this->activeAttributes();\n }", "protected function getAttributes()\n {\n return [];\n }", "public function getAttributes()\n {\n $this->attributes['id'] = $this->getId();\n\n return $this->attributes;\n }", "public function getElementAttribs()\n {\n if (null === ($element = $this->getElement())) {\n return null;\n }\n\n $attribs = $element->getAttribs();\n if (isset($attribs['helper'])) {\n unset($attribs['helper']);\n }\n\n return $attribs;\n }" ]
[ "0.8239562", "0.82319975", "0.80255115", "0.77410644", "0.7740926", "0.7740926", "0.7740926", "0.7740926", "0.7740926", "0.7740926", "0.7740926", "0.7740926", "0.7740926", "0.77401537", "0.76959574", "0.7628231", "0.76194006", "0.7611993", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7568354", "0.7560674", "0.7556898", "0.7547631", "0.7522353", "0.7522353", "0.751148", "0.74969846", "0.7479897", "0.7479897", "0.747963", "0.7421697", "0.7416628", "0.74159044", "0.7407844", "0.7400756", "0.73740077", "0.7367069", "0.7366273", "0.73495245", "0.73495245", "0.73495245", "0.73495245", "0.7333652", "0.7322802", "0.73207366", "0.7318623", "0.7318623", "0.73136556", "0.731123", "0.73083", "0.72753626", "0.72733206", "0.72670203", "0.72611624", "0.7242179", "0.7231341", "0.72116727", "0.71977246", "0.71977246", "0.7187399", "0.7187335", "0.7166364", "0.7141736", "0.7125912", "0.7120205", "0.7108304", "0.7106246", "0.7080271", "0.7080271", "0.7080271", "0.7080271", "0.7080271", "0.7080271", "0.7080271", "0.7080271", "0.7080271", "0.7074721", "0.7068965", "0.70488936", "0.7044098", "0.70078576" ]
0.7244388
73
Serialize the Input Element
public function __toString(): string { $html = '<input'; foreach ($this->attributes as $name => $value) { $html .= ' '.htmlspecialchars($name).'="'.htmlspecialchars($value).'"'; } $html .= '/>'; try { if ($this->renderer !== null) { return strval(call_user_func($this->renderer, $this, $html)); } } catch (\Exception $e) { return $e->getMessage(); } return $html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "protected function _toString()\n\t{\n\t\t//Get method to call\n\t\t$type = $this->_getType();\n\t\t$method = \"input$type\";\n\n\t\t//Set attribs\n\t\t$attribs = $this->_attributes;\n\t\t$attribs['value'] = $this->getValue();\n\n\t\treturn \\Framework\\DOM\\CDomGenerator::$method($this->_id, $attribs);\n\t}", "public function serialize()\n {\n // TODO: Implement serialize() method.\n }", "public function serialize();", "public function serialize();", "public function serialize();", "public function serialize()\n {\n }", "public function serialize()\n {\n }", "public function serialize(){ }", "public abstract function serialize();", "public function input(){\n\t\treturn '<input '.\n\t\t\t\t\t'type=\"'. $this->tipo .'\" '.\n\t\t\t\t\t'id=\"'. $this->name .'\" '.\n\t\t\t\t\t'name=\"'. $this->name .'\" '.\n\t\t\t\t\t'class=\"form-control\" '.\n\t\t\t\t\t'value=\"'.( isset($_POST[$this->name]) ? $_POST[$this->name] : '').'\"'.\n\t\t\t\t'/>';\n\t}", "abstract public function serialize();", "abstract public function serialize();", "public function SerializeObject () {\n return serialize ($this);\n }", "public function serialize(): array\n {\n return array_merge([\n 'inputs' => SerializeUtil::serializeArray($this->inputs),\n 'balance' => $this->balance->serialize(),\n ], parent::serialize());\n }", "public function serialize()\n {\n // Interface for convenience.\n return serialize($this->__serialize());\n }", "public function serialize()\n {\n return serialize($this->data);\n }", "public function serialize()\n {\n return serialize($this->data);\n }", "public function serialize()\r\n {\r\n $data = $this->toArray();\r\n\r\n return serialize($data);\r\n }", "public function serialize()\n {\n return serialize($this->toArray());\n }", "public function serialize($value){\n return parent::serialize($value);\n }", "public function binarySerialize();", "final public function serialize(): string\n {\n return \\serialize($this);\n }", "public function serialize() {\r\n return json_encode($this);\r\n }", "public function get_input_attributes() {\n\n\t\t$attributes = parent::get_input_attributes();\n\n\t\t$attributes['type'] = 'hidden';\n\t\t$attributes['value'] = ! is_null( $this->args['value'] ) ? wp_json_encode( $this->args['value'] ) : '';\n\t\t$attributes['data-parent'] = $this->args['_unique_id'];\n\n\t\treturn $attributes;\n\t}", "public function serialize()\n {\n return json_encode($this);\n }", "public function toSerial() {\n\t\treturn serialize($this->toArray());\n\t}", "protected function input()\n {\n return '<input type=\"' . $this->property->input_type . '\" placeholder=\"Значение\" ' .\n 'name=\"property[' . $this->property->id . ']\" class=\"form-control\">';\n }", "public function __toString()\n {\n\n $attributes = array();\n \n $tag = '<'.$this->name;\n \n $attr = array();\n \n foreach( $this->attributes as $key => $value ) \n {\n if ( is_array($value) )\n {\n $value = str_replace('\"', \"'\", json_encode($value));\n }\n \n $attr[] = $key.'='.'\"'.$value.'\"';\n }\n\n $attr = implode(' ',$attr);\n \n $tag .= ' '.$attr;\n \n if ( (isset($this->content) && !is_null($this->content)) || ($this->name == 'textarea'))\n {\n $tag .= '>'.$this->content.'</'.$this->name.'>';\n }\n else\n { \n $tag .= ' />';\n }\n \n return $tag;\n }", "public function serialize($data);", "public function __toString()\n {\n return $this->saveXML();\n }", "public function toString() : void\n {\n $out = serialize($this);\n \n }", "public function serialize()\n {\n return serialize([\n $this->nodes,\n $this->root,\n $this->pointer,\n ]);\n }", "abstract protected function serializeData();", "public function serialize()\n {\n return serialize($this->text);\n }", "public function serialize()\n {\n $data = array();\n foreach( $this->toSerialize as $var ) { $data[ $var ] = $this->$var; }\n return serialize( $data );\n }", "public function serialize()\n {\n return serialize([\n 'net_id' => $this->net_id,\n 'permissions' => $this->permissions,\n 'name' => $this->name,\n ]);\n }", "public function serialize($data)\n {\n }", "public function __toString() {\n return $this->getDocument()->saveXml();\n }", "public function serialize()\n {\n return serialize(array(\n \"id\"=>$this->getId()\n ));\n }", "public function serialize($element, SerializerContext $context)\n {\n return $this->_serialize($element, $context);\n }", "public function serialize()\n\t{\n\t\t// Load all of the inputs.\n\t\t$this->loadAllInputs();\n\n\t\t// Remove $_ENV and $_SERVER from the inputs.\n\t\t$inputs = $this->inputs;\n\t\tunset($inputs['env']);\n\t\tunset($inputs['server']);\n\n\t\t// Serialize the executable, args, options, data, and inputs.\n\t\treturn serialize(array($this->calledScript, $this->args, $this->filter, $this->data, $inputs));\n\t}", "public function serialize()\n {\n return serialize([\n 'identity' => $this->identity,\n 'name' => $this->name,\n 'emailAddress' => $this->emailAddress\n ]);\n }", "public function serialize(): string\n {\n return serialize($this->toArray());\n }", "public function serialize()\n {\n $nonce = $this->getNonce();\n\n return serialize([$this->id, $nonce, $this->parameters->serialize()]);\n }", "public function __toString()\n\t{\n\t\treturn $this->serialize();\n\t}", "public function renderInput();", "public function serialize(): string\n {\n return serialize([\n 'ast' => AST::toArray($this->documentNode),\n 'locked' => $this->locked,\n ]);\n }", "public function __toString()\n {\n return $this->asXML();\n }", "public function serialize()\n {\n return serialize([\n $this->id,\n $this->firstName,\n $this->cin,\n $this->email,\n $this->password\n ]);\n }", "public function serialize()\n\t{\n\t\treturn json_encode(array(\n\t\t\t'data' => $this->data,\n\t\t\t'this' => $this->getArrayCopy(),\n\t\t\t'name' => $this->name,\n\t\t\t'merged' => $this->merged,\n\t\t));\n\t}", "public function input_attrs()\n {\n }", "public function serialize(): string\n {\n return $this->toRawString();\n }", "abstract public function serialize($data);", "protected function inputAttributes()\n {\n $this->input_attributes['name'] = $this->name;\n $this->input_attributes['type'] = 'submit';\n $this->input_attributes['value'] = $this->params['title'];\n }", "public function __toString(): string {\n return $this->saveXML();\n }", "public function __toString()\r\n\t{\r\n\t\treturn $this->dom->saveXML();\r\n\t}", "public function serialize()\n {\n $data = [\n 'len' => $this->len,\n 'lag' => $this->lag,\n 'threshold' => $this->threshold,\n 'influence' => $this->influence,\n 'signals' => $this->signals,\n 'avgFilter' => $this->avgFilter,\n 'stdFilter' => $this->stdFilter,\n 'filteredY' => $this->filteredY,\n ];\n\n if (!$this->shrink) {\n $data['data'] = $this->data;\n }\n\n return serialize($data);\n }", "public function jsonSerialize() {\n\t\treturn [\n\t\t\t'label' => $this->label,\n\t\t\t'value' => $this->value,\n\t\t\t'icon' => $this->get_icon(),\n\t\t];\n\t}", "public function serialize()\n {\n return serialize(array(\n $this->id,\n $this->nombre,\n $this->password,\n ));\n }", "public function renderWidget()\n {\n if ($this->data !== null) {\n $this->htmlAttributes['value'] = $this->data;\n }\n\n // And to be sure to generate a proper html text input with the proper name...\n $this->htmlAttributes['type'] = $this->type;\n $this->htmlAttributes['name'] = $this->name;\n $this->htmlAttributes['id'] = $this->getId();\n\n $output = '<input ';\n\n $output .= $this->renderHtmlAttributes();\n\n $output .= '/>';\n\n return $output;\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }" ]
[ "0.63983375", "0.63983375", "0.6396979", "0.6396979", "0.6396979", "0.6396979", "0.6396979", "0.6396979", "0.6385711", "0.6358972", "0.62807244", "0.62807244", "0.62807244", "0.621166", "0.621166", "0.60567355", "0.60351044", "0.5960204", "0.5947147", "0.5947147", "0.594002", "0.58994526", "0.5894614", "0.5857794", "0.5857794", "0.57584465", "0.5744772", "0.5687159", "0.5673288", "0.56674194", "0.5663755", "0.56365234", "0.5635668", "0.5623338", "0.5609114", "0.5586481", "0.5566843", "0.5563387", "0.555148", "0.5543404", "0.55339736", "0.55053586", "0.5500234", "0.5491233", "0.54883516", "0.545846", "0.54579234", "0.5456296", "0.54561424", "0.54408437", "0.54315335", "0.54297537", "0.54232705", "0.54224044", "0.54137456", "0.5398974", "0.53978074", "0.5385842", "0.5376385", "0.53742677", "0.5370406", "0.53645664", "0.533923", "0.5339042", "0.5315276", "0.5306584", "0.530602", "0.529589", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756", "0.5295756" ]
0.604988
16
Return all serializable properties The renderer closure must be omitted in order to make the input element serializable
public function __sleep() { return ['attributes']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function jsonSerialize() {\r\n\t\treturn $this->props;\r\n\t}", "public function serializar() {\n\t return json_encode(get_object_vars($this), JSON_FORCE_OBJECT);\n\t\t}", "public function serializar() {\n\t return json_encode(get_object_vars($this), JSON_FORCE_OBJECT);\n\t\t}", "public function jsonSerialize()\r\n {\r\n return get_object_vars($this);\r\n }", "abstract protected function getToStringProperties();", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function serialize()\n {\n return serialize(get_object_vars($this));\n }", "public function serialize()\n {\n return serialize(get_object_vars($this));\n }", "public function serialize()\n {\n return serialize(get_object_vars($this));\n }", "public function jsonSerialize() {\n return get_object_vars($this);\n }", "public function jsonSerialize() {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "function jsonSerialize()\n {\n return Helper::serialize(get_object_vars($this));\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize() {\n return $this->elements;\n }", "abstract public function getJsProperties();", "public function jsonSerialize()\n\t{\n\n\t\treturn get_object_vars($this);\n\n\t}", "function jsonSerialize()\n {\n return get_object_vars($this);\n }", "function jsonSerialize()\n {\n return get_object_vars($this);\n }", "function jsonSerialize()\n {\n return get_object_vars($this);\n }", "public function jsonSerialize() {\n\t\treturn(get_object_vars($this));\n\t}", "public function toJSON()\n {\n \n return new StringWrapper(json_encode($this->vars()));\n \n }", "function jsonSerialize()\n {\n return get_object_vars($this);\n // TODO: Implement jsonSerialize() method.\n }", "public function jsonSerialize() {\n\t\treturn [\n\t\t\t'label' => $this->label,\n\t\t\t'value' => $this->value,\n\t\t\t'icon' => $this->get_icon(),\n\t\t];\n\t}", "public function JsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\treturn ($fields);\n\t}", "public function JsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\treturn ($fields);\n\t}", "public function toJson() {\n return json_encode(get_object_vars($this));\n }", "public function toArray()\n {\n return [\n 'attributes' => $this->htmlAttributesToString(),\n ];\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\MuhimbiPDFOnline\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\MuhimbiPDFOnline\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\treturn ($fields);\n\t}", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\treturn($fields);\n\t}", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\treturn($fields);\n\t}", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\treturn($fields);\n\t}", "public function jsonSerialize()\n {\n return $this->toDisplay;\n }", "public function jsonSerialize() {\n\t\t$output = (array) $this->attributes;\n\n\t\t// add mappings to json\n\t\tforeach ($this->mapping as $new => $old) {\n\t\t\tif (empty($output[$old])) continue;\n\t\t\t$output[$new] = $output[$old];\n\t\t\tunset($output[$old]);\n\t\t}\n\n\t\tforeach ($output as &$line) $line = htmlentities($line);\n\n\t\treturn $output;\n\t}", "public function __toString(){\n\t\t$ref = new ReflectionObject($this);\n\t\t$r = \"[\".$ref->getName().\"]\\n\";\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\t$r .= \"\\t - \".$prop->getName().\"=\".$prop->getValue().\"\\n\";\n\t\t}\n\t\treturn $r;\n\t}", "public function jsonSerialize()\n {\n return array_merge(parent::jsonSerialize(), [\n 'sanitizedAttribute' => Str::plural(Str::kebab($this->attribute)),\n 'shouldShow' => $this->shouldBeExpanded(),\n 'headingClasses' => $this->headingClasses,\n 'itemWrapperClasses' => $this->itemWrapperClasses,\n 'deleteButtonClasses' => $this->deleteButtonClasses,\n 'addRowButtonClasses' => $this->addRowButtonClasses,\n 'rowWrapperClasses' => $this->rowWrapperClasses,\n 'sumWrapperClasses' => $this->sumWrapperClasses,\n 'sumFieldClasses' => $this->sumFieldClasses,\n 'fields' => $this->fields,\n ]);\n }", "public function __toString()\n {\n return json_encode( $this->js_vars );\n }", "function jsonSerialize()\n {\n $vars = get_object_vars($this);\n return $vars;\n }", "public function toProp() {\n\t\treturn htmlspecialchars(json_encode($this, true));\n\t}", "public function toJSON(): string\n {\n $this->update();\n\n // Copied from DataObjectToJSONTrait. Do not modify here !!!\n $toJSON = function($object): string {\n $result = [];\n\n $vars = get_object_vars($object);\n foreach ($vars as $name => $value) {\n if ($name !== 'internalDataObjectData') {\n $reflectionProperty = new \\ReflectionProperty($object, $name);\n if ($reflectionProperty->isPublic()) {\n $result[$name] = null;\n }\n }\n }\n $propertiesToEncode = [];\n if (isset($object->internalDataObjectData)) {\n foreach ($object->internalDataObjectData as $name => $value) {\n $result[substr($name, 1)] = null;\n if (substr($name, 0, 1) === 'p' && isset($value[7])) { // encodeInJSON is set\n $propertiesToEncode[substr($name, 1)] = true;\n }\n }\n }\n ksort($result);\n foreach ($result as $name => $null) {\n $value = $object instanceof \\ArrayAccess ? $object[$name] : (isset($object->$name) ? $object->$name : null);\n if (method_exists($value, 'toJSON')) {\n $result[$name] = $value->toJSON();\n } else {\n if ($value instanceof \\DateTime) {\n $value = $value->format('c');\n }\n if (isset($propertiesToEncode[$name]) && $value !== null) {\n if (is_string($value)) {\n $value = 'data:;base64,' . base64_encode($value);\n } else {\n throw new \\Exception('The value of the ' . $name . ' property cannot be JSON encoded. It must be of type string!');\n }\n }\n $result[$name] = json_encode($value);\n if ($result[$name] === false) {\n throw new \\Exception('Invalid characters in ' . $name . '! Cannot JSON encode the value: ' . print_r($value, true));\n }\n }\n }\n $json = '';\n foreach ($result as $name => $value) {\n $json .= '\"' . addcslashes($name, '\"\\\\') . '\":' . $value . ',';\n }\n $json = '{' . rtrim($json, ',') . '}';\n return $json;\n };\n\n $json = '';\n foreach ($this->data as $index => $object) {\n $object = $this->updateValueIfNeeded($this->data, $index);\n if (method_exists($object, 'toJSON')) {\n $json .= $object->toJSON() . ',';\n } else {\n $json .= $toJSON($object) . ',';\n }\n }\n $json = '[' . rtrim($json, ',') . ']';\n return $json;\n }", "public function getWriteableElementValues()\n\t{\n\t\t$ret = array();\n\t\tforeach ($this->elements as $id=>$el)\n\t\t{\n\t\t\tif (!is_a($el,'StaticFormElement') && !is_a($el,'Button'))\t\n\t\t\t\t$ret[$id]= $el->getValue();\n\t\t}\n\t\treturn $ret;\n\t\t\t\n\t}", "public function jsonSerialize()\n {\n return array_filter(get_object_vars($this), function ($item) {\n return $item !== null;\n });\n }", "function get_properties()\r\n {\r\n return $this->properties;\r\n }", "public function getSerializableData()\n {\n return [\n 'id' => $this->getId(),\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'profile' => $this->getProfile(),\n 'salt' => $this->getSalt(),\n 'type' => $this->getType(),\n 'value' => $this->getValue(),\n ];\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\ChrisHemmings\\Electio\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\ChrisHemmings\\Electio\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\Infoplus\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\Infoplus\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function get_properties()\r\n\t{\r\n\t\treturn get_object_vars($this);\r\n\t}", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function toHTML() {\n\t\treturn rtrim( static::buildHTML( get_object_vars($this) ), PHP_EOL );\n\t}", "public function __toString()\n {\n //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n // return json_encode(\n // ObjectSerializer::sanitizeForSerialization($this),\n // JSON_PRETTY_PRINT\n // );\n //}\n\n return json_encode(ObjectSerializer::sanitizeForSerialization($this));\n }", "public function sectionSerialize()\n {\n $templatePrefix = $this->getTranslationTemplate();\n\n $properties = array_combine(\n array_map(function ($k) use ($templatePrefix) {\n return $templatePrefix . $k;\n },\n array_keys(get_object_vars($this))),\n get_object_vars($this)\n );\n return $properties;\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\CyberSource\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\CyberSource\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\CyberSource\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\CyberSource\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function getProperties()\n {\n return get_object_vars($this);\n }", "public function customSerialize()\n {\n return [\n 'id' => $this->getId(),\n 'name' => $this->getName(),\n 'lastName' => $this->getLastName(),\n 'age' => $this->getAge(),\n 'company' =>[\n 'id' => $this->getCompany()->getId(),\n 'name' => $this->getCompany()->getName(),\n ],\n 'type' => [\n 'id' => $this->getTypes()->getId(),\n 'name' => $this->getTypes()->getName(),\n ]\n ];\n }", "public function serialize()\n {\n $data = array();\n foreach( $this->toSerialize as $var ) { $data[ $var ] = $this->$var; }\n return serialize( $data );\n }" ]
[ "0.6247459", "0.6108671", "0.6108671", "0.61009914", "0.61009717", "0.6100584", "0.6093064", "0.6093064", "0.6093064", "0.6079996", "0.6079996", "0.60757184", "0.60757184", "0.60757184", "0.60757184", "0.60757184", "0.60757184", "0.6051206", "0.60474133", "0.60474133", "0.60378104", "0.60282433", "0.6027286", "0.6020408", "0.6020408", "0.6020408", "0.60178405", "0.59828484", "0.59364086", "0.59006536", "0.58838224", "0.58838224", "0.58761686", "0.58645636", "0.586238", "0.5825056", "0.58131593", "0.58131593", "0.58131593", "0.579108", "0.57803035", "0.5777457", "0.5775925", "0.5745244", "0.57228535", "0.57157856", "0.57023865", "0.57003844", "0.5690258", "0.5689753", "0.5682047", "0.568039", "0.5674408", "0.56733084", "0.56717575", "0.56717575", "0.5669689", "0.56684417", "0.56539243", "0.5648518", "0.5648518", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.56462204", "0.5636378", "0.56361645", "0.5628487" ]
0.0
-1
Display a listing of the resource.
public function index() { /*$trucks = Truck::with(['type', 'brand', 'service', 'owner'])->get();*/ /*echo json_encode($trucks);*/ return view('maintenance.trucks.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { DB::beginTransaction(); $truck = (new Truck)->fill($request->all()); $truck->status_mileage = $truck->statusMileage(); $truck->save(); /*$user->roles()->attach($request->roles);*/ if($truck){ DB::commit(); return back()->with('success', 'El tractor se ha registrado correctamente.'); }else{ DB::rollBack(); return back()->with('error', 'Ocurrió un problema al registrar el tractor.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676" ]
0.0
-1
Display the specified resource.
public function show($id) { $truck = Truck::findOrFail($id); return view('maintenance.trucks.show')->with(compact('truck')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show(Resena $resena)\n {\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function get_resource();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "public function display() {\n echo $this->render();\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n {\n //\n $this->_show($id);\n }", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public abstract function display();", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "abstract public function resource($resource);", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047151", "0.60409963", "0.6021287", "0.5989136", "0.5964405", "0.5962407", "0.59518087", "0.59309924", "0.5921466", "0.5908002", "0.5908002", "0.5908002", "0.59051657", "0.5894554", "0.5871459", "0.5870088", "0.586883", "0.5851384", "0.58168566", "0.58166975", "0.5815869", "0.58056176", "0.5799148", "0.5795126", "0.5791158", "0.57857597", "0.5783371", "0.5761351", "0.57592535", "0.57587147", "0.5746491", "0.57460666", "0.574066", "0.5739448", "0.5739448", "0.57295275", "0.57293373", "0.5729069", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57214445", "0.57149816", "0.5712036", "0.5710076", "0.57073003", "0.5707059", "0.5705454", "0.5705454", "0.5700382", "0.56997055", "0.5693362", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { DB::beginTransaction(); $truck = Truck::findOrFail($id); $truck->update($request->all()); $truck->status_mileage = $truck->statusMileage(); $truck->save(); $truck->updateSubparts(); if($truck){ DB::commit(); return back()->with('success', 'La información del tractor se ha guardado correctamente.'); }else{ DB::rollBack(); return back()->with('error', 'Ocurrió un problema al guardar la información del tractor.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "public function remove($id);", "public function remove($id);", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853", "0.58968836", "0.58958197", "0.58958197", "0.58958197", "0.58958197", "0.58800334", "0.5869308", "0.5861188", "0.5811069", "0.5774596", "0.5763277", "0.5755447", "0.5747713", "0.5742094", "0.573578", "0.5727048", "0.57164854", "0.5712422", "0.57092893", "0.57080173", "0.5707143", "0.5704078", "0.5696418", "0.5684556", "0.5684556", "0.56790006", "0.5678463", "0.5658492", "0.564975", "0.5648406", "0.56480885", "0.5641393", "0.5638992", "0.56302536", "0.56228197", "0.5616424", "0.5607389", "0.56033397", "0.5602035", "0.55991143", "0.55988586", "0.5590501", "0.5581284", "0.55681103", "0.5566215", "0.55644745", "0.5563726", "0.55593926", "0.55583876", "0.5548547", "0.5542015", "0.5541403", "0.5541403", "0.55397224", "0.55390894", "0.55376494", "0.5531044", "0.5529739", "0.55279493", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527671", "0.5527155", "0.5526666", "0.55245256", "0.552101", "0.55183184" ]
0.0
-1
Sets the [[$editable]] property.
public function editable(bool $value = true) { $this->editable = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEditable(bool $editable=true): self;", "public function setEditable($editable = true, $setDefaultValue = true) {}", "public function editable($editable)\n {\n $this->editable = $editable;\n\n return $this;\n }", "public static function setEditable($bool) {\n\t\tself::$editable = $bool;\n\t}", "public function setEditable($value);", "public function is_editable() {\n\t\treturn false;\n\t}", "public function editable($value) {\n return $this->setProperty('editable', $value);\n }", "public function isEditable()\n {\n return $this->_editable;\n }", "public function isEditable() {}", "public function isEditable();", "public function isEditable();", "public function editable(bool $value = true)\n {\n $this->editable = $value;\n\n return $this;\n }", "public function setEditableInColumn(bool $editableInColumn=true): self;", "public function setIsEditable(?bool $value): void {\n $this->getBackingStore()->set('isEditable', $value);\n }", "public function editable()\n {\n if ($this->getMode() == \"only_external\") {\n return false;\n }\n if ($this->hasScript()) {\n // can't edit calculated fields\n return false;\n }\n if (!isset($this->data[\"editable\"])) {\n return true;\n }\n return (true == $this->data[\"editable\"]);\n }", "public function isEditable()\n\t{\n\t\tif (($this->getName() === 'publicid') || ($this->getName() === 'posturl')) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function set_edit($param)\n\t{\n\t\t$this->edit = (bool)$param;\n\t\treturn $this;\n\t}", "public function isEditable($id)\n\t{\n\t\t// TODO: Implement isEditable() method.\n\t}", "public function setEditOnlyMode($value);", "public function isEditable() {\n\t\tif ($this->isVariable()) {\n\t\t\t$editables = $this->parent->editables();\n\t\t\tif (empty($editables)) {\n\t\t\t\treturn $this->isValueEditable;\n\t\t\t}\n\t\t\treturn ((in_array($this->parsedVarName, $editables) !== false) && $this->isValueEditable);\n\t\t}\n\t\treturn false;\n\t}", "public function setCellEdit($val=false)\n {\n $this->_cellEdit = $val;\n }", "function eman_post_editable( $post )\n{\n\tif ( is_numeric($post) ) $post = get_post($post);\n\tif ( ! is_object($post) ) return false;\n\n\t// Settings area always editable\n\tif ( emanager_post::is_settings($post) ) return true;\n\n\t$status = emanager_post::status($post, 'slug');\n\n\t// If no status yet or is in draft or revise, it is editable\n\tif ( 'draft' == $status || 'revise' == $status ) return true;\n\n\treturn false;\n}", "public static function setEditMode(bool $mode = true): void\n\t{\n\t\tself::$editMode = $mode;\n\t}", "public function isSwitchToEditEnabled();", "public function setIsAnswerEditable(?bool $value): void {\n $this->getBackingStore()->set('isAnswerEditable', $value);\n }", "public function getIsUserEditable()\n\t{\n\t\treturn $this->is_user_editable;\n\t}", "public function setSwitchToEditEnabled($switchToEditEnabled);", "public function canEdit()\n {\n return true;\n }", "public function canBeEdited() {}", "public function can_edit() {\n return true;\n }", "public function __construct(Editable $editable)\n {\n $this->editable = $editable;\n $this->performer = auth()->guard('api')->user();\n }", "protected function canEdit() {}", "public function enabledInEditMode()\n\t{\n\t\treturn false;\n\t}", "public function MetaEditable() {\n\t\t\treturn true;\n\t\t}", "public function setEditMode($value = true)\n {\n $this->_editMode = (bool)$value;\n return $this;\n }", "function _set_editable_fields()\n\t{\n\t\tif (empty($this->fields))\n\t\t{\n\t\t\t// pull the fields dynamically from the database\n\t\t\t$this->db->cache_on();\n\t\t\t$this->fields = $this->db->list_fields($this->primary_table);\n\t\t\t$this->db->cache_off();\n\t\t}\n\t}", "public function edit($flag = true) {\n\t\t$this->edit = (boolean) $flag;\n\t\treturn $this;\n\t}", "public function setEditais($editais)\n {\n if (!is_null($editais))\n $this->editais = $editais;\n }", "function isEditable(Eloquent $model);", "public function isEditOnlyMode();", "private function _applyEditableParam()\n {\n if ($this->editable) {\n // Limit the query to only the global sets the user has permission to edit\n $editableSetIds = Craft::$app->getGlobals()->getEditableSetIds();\n $this->subQuery->andWhere(['elements.id' => $editableSetIds]);\n }\n }", "private function _applyEditableParam()\n {\n if ($this->editable) {\n // Limit the query to only the global sets the user has permission to edit\n $editableSetIds = Craft::$app->getGlobals()->getEditableSetIds();\n $this->subQuery->andWhere(['elements.id' => $editableSetIds]);\n }\n }", "public function canBeEdited()\n {\n return false;\n }", "public function setInlineEdit($val = false) {\r\n $this->inlineEdit = $val;\r\n return $this;\r\n }", "public function set_editentries($value) {\n $this->_editentries = $value;\n }", "function canEdit() {\n\t\t\treturn true;\n\t\t}", "public function edit($value) {\n return $this->setProperty('edit', $value);\n }", "public function edit($value) {\n return $this->setProperty('edit', $value);\n }", "public function getIsEditableAttribute(): string\n {\n return ! $this->start_at->isPast() ? true : false;\n }", "public function isEditable()\n {\n // Need to be able to save the DataObject if this is being called during PublishTargetJob.\n if ($this->owner->getIsPublishJobRunning()) {\n return true;\n }\n\n // Need to be able to save the DataObject if this is being called during UnPublishTargetJob.\n if ($this->owner->getIsUnPublishJobRunning()) {\n return true;\n }\n\n if ($this->owner->config()->get('allow_embargoed_editing')) {\n return true;\n }\n\n if ($this->owner->getIsPublishScheduled()) {\n return false;\n }\n\n $embargoRecordIsEditable = $this->owner->invokeWithExtensions('embargoRecordIsEditable');\n if (in_array(false, $embargoRecordIsEditable)) {\n return false;\n }\n\n return true;\n }", "public function isEditable($operation = OperationTypes::OP_UPDATE, $ignore_op = FALSE);", "public function isLabelEditable() {}", "public function isEditable(User $u){\n\t\t\tif( $u->id == $this->user->id){\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function setActiveEdit($active_edit){\n $this->active_edit = (int)$active_edit;\n }", "public function readonly()\n {\n $this->editable = false;\n\n return $this;\n }", "public function getIsStaffEditable()\n\t{\n\t\treturn $this->is_staff_editable;\n\t}", "public function setReadOnly ()\n {\n $this->resetNeedsSaving();\n $this->readOnly = true;\n }", "public function simple($editable = true)\n {\n return $this->addIdentifierCol()->addLanguagesTextCols($editable);\n }", "public function setReadOnly($flag);", "public function getEditMode()\n {\n return $this->_editMode;\n }", "public function canEdit()\n {\n return $this->is_locked == 0;\n }", "public static function getEditMode(): bool\n\t{\n\t\treturn self::$editMode;\n\t}", "public function edit(Python $python)\n {\n //\n }", "public function setReadOnlyFlag($readOnly = true) {}", "public function getCanEditAttribute()\n {\n // Are you the owner if the note?\n return Auth::id() == $this->user_id;\n }", "public function setReadOnly($readOnly = true) {}", "public function setReadOnly($readOnly = true) {}", "public function setEditor(): self\n {\n $this->edited_by_user_id = auth()->user() ? auth()->user()->id : User::SYSUID;\n return $this;\n }", "public function setEditorial($editorial)\n {\n $this->editorial = $editorial;\n }", "public function isEditable()\n\t{\n\t\tif(Auth::check())\n\t\t{\n\t\t\tif(Auth::user()->id == $this->author_id)\n\t\t\t{\n\t\t\t\tif ($this->created_at->diffInMinutes(Carbon::now()) < 30)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(Auth::user()->hasRole(['moderator', 'administrator', 'super user'])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "protected function allowEdit($data = array(), $key = 'id')\n {\n return true;\n }", "protected function allowEdit($data = array(), $key = 'a_id')\n\t{\n\t\treturn true;\n\t}", "function IsRecordEditable($values, $isEditable)\n{\n\n\t\t\n\n$lkd=$values[\"Locked\"];\n\nif($lkd==1) {\n\nreturn $isEditable=false;\n\n}\n\nelse return $isEditable=true;\n;\t\t\n}", "public function setReadOnly($readOnly = true);", "public function setReadOnly($readOnly = true);", "function setNoteText(){\n $html = \"\";\n \n $this->aFields[\"note\"]->editable = true;\n $this->aFields[\"note\"]->value = $html;\n }", "public function setReadOnly($readOnly)\n {\n $this->readOnly = (boolean) $readOnly;\n }", "protected function is_editable($file_model) {\n $allowed_types = array_map('strtolower', $this->config['security']['editRestrictions']);\n return in_array(strtolower($file_model['attributes']['extension']), $allowed_types);\n }", "public function edit() {\n\t\t\t\n\t\t}", "public function getEditingAttribute()\n {\n return false;\n }", "public function setNonEditable() {\n\n if($this->controlID != null) {\n throw new BadMethodCallException('You cannot set styles after the control is added to the UI.');\n }\n\n $this->style = self::NON_EDITABLE;\n }", "public function setEditMode(bool $enabled = true): Client\n {\n $this->editModeEnabled = $enabled;\n\n return $this;\n }", "public function init()\n {\n parent::init();\n if(empty($this->defaults)) $this->defaults = array();\n //copy mode from first level config to defaults (for compability)\n if(empty($this->defaults['mode'])) $this->defaults['mode'] = $this->mode;\n $defaults = CJavaScript::encode($this->defaults);\n Yii::app()->getClientScript()->registerScript(\n 'editable-defaults', 'if($.fn.editable) $.extend($.fn.editable.defaults, '.$defaults.');'\n );\n }", "public function setReadOnly($readOnly)\n {\n $this->_readOnly = $readOnly;\n }", "protected function isPageEditable()\n {\n if ($this->getBackendUser()->isAdmin()) {\n return true;\n }\n return !$this->pageinfo['editlock'] && $this->getBackendUser()->doesUserHaveAccess($this->pageinfo, Permission::PAGE_EDIT);\n }", "public function setReadOnly($flag = true)\n {\n $this->readOnly = (boolean)$flag;\n }", "function SetSortable($bolSortable)\n\t{\n\t\t$this->_bolSortable = $bolSortable;\n\t}", "public function setEditMode()\n {\n $this->validatorSchema['snapshot'] = new sfValidatorFile(array('required' => false));\n }", "public function set_writable() {\n $this->readonly = false;\n\n return $this;\n }", "public function edit()\n {\n \n }", "public function edit(Tipo_documento $tipo_documento)\n {\n //\n }", "public function edit()\n\t{\n\t\t\n\t}", "public function edit()\n\t{\n\t\t//\n\t}", "public function setReadOnly($ro){\n\t\tparent::setReadOnly($ro);\n\t\t$this->_year->setReadOnly($ro);\n\t\t$this->_month->setReadOnly($ro);\n\t\t$this->_day->setReadOnly($ro);\n\t}", "public function edit_toko(){\n\t}", "public function edit() {\n }", "function OnBeforeEdit(){\n }", "public function edit( )\r\n {\r\n //\r\n }", "public function setReadOnly()\n {\n $this->_allowModifications = false;\n foreach ($this->_data as $key => $value) {\n if ($value instanceof Zend_Config) {\n $value->setReadOnly();\n }\n }\n }", "public function edit(TipoAtributo $tipoAtributo)\n {\n //\n }" ]
[ "0.8299192", "0.80036676", "0.79648817", "0.7821985", "0.76616275", "0.7437074", "0.73750985", "0.7317165", "0.707417", "0.68474936", "0.68474936", "0.6820435", "0.6466342", "0.64517975", "0.63963103", "0.62618643", "0.6154804", "0.6147055", "0.6062777", "0.6032498", "0.60224146", "0.59424114", "0.5932821", "0.5909423", "0.5883758", "0.5866911", "0.58369803", "0.58327293", "0.5808822", "0.5771179", "0.5763206", "0.5756233", "0.5731721", "0.57208204", "0.57147574", "0.5712761", "0.5711251", "0.57028955", "0.56222105", "0.55951476", "0.5569332", "0.5569332", "0.55684876", "0.55442595", "0.55364037", "0.5506867", "0.5501932", "0.5501932", "0.5469255", "0.5453034", "0.54435694", "0.54364574", "0.5409274", "0.53484565", "0.5332499", "0.5331982", "0.532015", "0.5300494", "0.52954656", "0.5280815", "0.5259876", "0.5243796", "0.5215608", "0.52054304", "0.52033246", "0.51861227", "0.51849765", "0.5184415", "0.5180001", "0.5146041", "0.5139369", "0.51366025", "0.51204336", "0.5117415", "0.5117063", "0.5102129", "0.5082049", "0.50529593", "0.50470775", "0.5046063", "0.5039463", "0.5031612", "0.50234675", "0.5023133", "0.5022675", "0.50104994", "0.49980712", "0.49942213", "0.49932134", "0.4980134", "0.49789485", "0.49758044", "0.49749178", "0.49633363", "0.49600115", "0.49495524", "0.49407277", "0.4930676", "0.49184653", "0.4917011" ]
0.6845789
11
Applies the 'ref' param to the query being prepared.
private function _applyRefParam() { if (!$this->ref) { return; } $this->subQuery->andWhere(Db::parseParam('globalsets.handle', $this->ref)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDBRef($ref)\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }", "public function setRef($ref);", "public function byReferenceMatch($ref)\n {\n $this->qb->andWhere('(so.id like :ref ' .\n 'or so.customerReference like :ref ' .\n 'or so.sourceID like :ref)')\n ->setParameter('ref', \"%$ref%\");\n return $this;\n }", "public function setRef($ref)\n {\n $this->_ref = $ref;\n }", "public function fetch($id, $ref = '')\n {\n global $conf;\n\n // Check parameters\n if (empty($id) && empty($ref)) return -1;\n\n $sql = \"SELECT c.rowid, c.entity, c.ref, ref_supplier, c.fk_soc, c.fk_statut, c.amount_ht, c.total_ht, c.total_ttc, c.tva as total_vat,\";\n $sql.= \" c.localtax1, c.localtax2, \";\n $sql.= \" c.date_creation, c.date_valid, c.date_approve, c.date_approve2,\";\n $sql.= \" c.fk_user_author, c.fk_user_valid, c.fk_user_approve, c.fk_user_approve2,\";\n $sql.= \" c.date_commande as date_commande, c.date_livraison as date_livraison, c.fk_cond_reglement, c.fk_mode_reglement, c.fk_projet as fk_project, c.remise_percent, c.source, c.fk_input_method,\";\n $sql.= \" c.fk_account,\";\n $sql.= \" c.note_private, c.note_public, c.model_pdf, c.extraparams, c.billed,\";\n $sql.= \" c.fk_multicurrency, c.multicurrency_code, c.multicurrency_tx, c.multicurrency_total_ht, c.multicurrency_total_tva, c.multicurrency_total_ttc,\";\n $sql.= \" cm.libelle as methode_commande,\";\n $sql.= \" cr.code as cond_reglement_code, cr.libelle as cond_reglement_libelle, cr.libelle_facture as cond_reglement_libelle_doc,\";\n $sql.= \" p.code as mode_reglement_code, p.libelle as mode_reglement_libelle\";\n $sql.= ', c.fk_incoterms, c.location_incoterms';\n $sql.= ', i.libelle as libelle_incoterms';\n $sql.= \" FROM \".MAIN_DB_PREFIX.\"commande_fournisseur as c\";\n $sql.= \" LEFT JOIN \".MAIN_DB_PREFIX.\"c_payment_term as cr ON c.fk_cond_reglement = cr.rowid\";\n $sql.= \" LEFT JOIN \".MAIN_DB_PREFIX.\"c_paiement as p ON c.fk_mode_reglement = p.id\";\n $sql.= \" LEFT JOIN \".MAIN_DB_PREFIX.\"c_input_method as cm ON cm.rowid = c.fk_input_method\";\n $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_incoterms as i ON c.fk_incoterms = i.rowid';\n $sql.= \" WHERE c.entity = \".$conf->entity;\n if ($ref) $sql.= \" AND c.ref='\".$this->db->escape($ref).\"'\";\n else $sql.= \" AND c.rowid=\".$id;\n\n dol_syslog(get_class($this).\"::fetch\", LOG_DEBUG);\n $resql = $this->db->query($sql);\n if ($resql)\n {\n $obj = $this->db->fetch_object($resql);\n if (! $obj)\n {\n $this->error='Bill with id '.$id.' not found';\n dol_syslog(get_class($this).'::fetch '.$this->error);\n return 0;\n }\n\n $this->id\t\t\t\t\t= $obj->rowid;\n $this->entity\t\t\t\t= $obj->entity;\n\n $this->ref\t\t\t\t\t= $obj->ref;\n $this->ref_supplier\t\t\t= $obj->ref_supplier;\n $this->socid\t\t\t\t= $obj->fk_soc;\n $this->fourn_id\t\t\t\t= $obj->fk_soc;\n $this->statut\t\t\t\t= $obj->fk_statut;\n $this->billed\t\t\t\t= $obj->billed;\n $this->user_author_id\t\t= $obj->fk_user_author;\n $this->user_valid_id\t\t= $obj->fk_user_valid;\n $this->user_approve_id\t\t= $obj->fk_user_approve;\n $this->user_approve_id2\t\t= $obj->fk_user_approve2;\n $this->total_ht\t\t\t\t= $obj->total_ht;\n $this->total_tva\t\t\t= $obj->total_vat;\n $this->total_localtax1\t\t= $obj->localtax1;\n $this->total_localtax2\t\t= $obj->localtax2;\n $this->total_ttc\t\t\t= $obj->total_ttc;\n $this->date\t\t\t\t\t= $this->db->jdate($obj->date_creation);\n $this->date_valid\t\t\t= $this->db->jdate($obj->date_valid);\n $this->date_approve\t\t\t= $this->db->jdate($obj->date_approve);\n $this->date_approve2\t\t= $this->db->jdate($obj->date_approve2);\n $this->date_commande\t\t= $this->db->jdate($obj->date_commande); // date we make the order to supplier\n\t\t\t$this->date_livraison = $this->db->jdate($obj->date_livraison);\n $this->remise_percent\t\t= $obj->remise_percent;\n $this->methode_commande_id\t= $obj->fk_input_method;\n $this->methode_commande\t\t= $obj->methode_commande;\n\n $this->source\t\t\t\t= $obj->source;\n $this->fk_project\t\t\t= $obj->fk_project;\n $this->cond_reglement_id\t= $obj->fk_cond_reglement;\n $this->cond_reglement_code\t= $obj->cond_reglement_code;\n $this->cond_reglement\t\t= $obj->cond_reglement_libelle;\n $this->cond_reglement_doc\t= $obj->cond_reglement_libelle_doc;\n $this->fk_account = $obj->fk_account;\n $this->mode_reglement_id\t= $obj->fk_mode_reglement;\n $this->mode_reglement_code\t= $obj->mode_reglement_code;\n $this->mode_reglement\t\t= $obj->mode_reglement_libelle;\n $this->note\t\t\t\t\t= $obj->note_private; // deprecated\n $this->note_private\t\t\t= $obj->note_private;\n $this->note_public\t\t\t= $obj->note_public;\n $this->modelpdf\t\t\t\t= $obj->model_pdf;\n\n\t\t\t//Incoterms\n\t\t\t$this->fk_incoterms = $obj->fk_incoterms;\n\t\t\t$this->location_incoterms = $obj->location_incoterms;\n\t\t\t$this->libelle_incoterms = $obj->libelle_incoterms;\n\n\t\t\t// Multicurrency\n\t\t\t$this->fk_multicurrency \t\t= $obj->fk_multicurrency;\n\t\t\t$this->multicurrency_code \t\t= $obj->multicurrency_code;\n\t\t\t$this->multicurrency_tx \t\t= $obj->multicurrency_tx;\n\t\t\t$this->multicurrency_total_ht \t= $obj->multicurrency_total_ht;\n\t\t\t$this->multicurrency_total_tva \t= $obj->multicurrency_total_tva;\n\t\t\t$this->multicurrency_total_ttc \t= $obj->multicurrency_total_ttc;\n\n $this->extraparams\t\t\t= (array) json_decode($obj->extraparams, true);\n\n $this->db->free($resql);\n\n // Retreive all extrafield\n // fetch optionals attributes and labels\n $this->fetch_optionals();\n\n if ($this->statut == 0) $this->brouillon = 1;\n\n /*\n * Lines\n */\n $result=$this->fetch_lines();\n if ($result < 0)\n {\n \treturn -1;\n }\n else\n {\n \treturn 1;\n }\n }\n else\n {\n $this->error=$this->db->error().\" sql=\".$sql;\n return -1;\n }\n }", "private function bindParam()\n\t{\n\t\tif($this->nbParameters == 0)\n\t\t\treturn;\n\t\t$stmt = $this->stmt;\n\t\tcall_user_func_array(array($stmt, \"bind_param\"), $this->refValues(array_merge(array($this->parametersTypes), $this->parametersValues)));\n\t}", "public function queryReferencesByReference($ref_id){\n $result=$this->query(\"SELECT page_id FROM Reference WHERE ref_id='$ref_id'\");\n }", "function getProdutoCol($col, $ref, $rel)\n{\n global $conn;\n /*\n *query da disciplina\n */\n $sql = \"SELECT pro_{$col} FROM \".TABLE_PREFIX.\"_produto WHERE pro_{$ref}=?\";\n if(!$qry = $conn->prepare($sql))\n echo divAlert($conn->error, 'error');\n\n else {\n\n if (!apenasNumeros($rel))\n $qry->bind_param('s', $rel);\n else\n $qry->bind_param('i', $rel);\n\n $qry->execute();\n $qry->bind_result($$col);\n $qry->fetch();\n $qry->close();\n\n return $$col;\n }\n\n}", "function query() {\n $this->field_alias = $this->real_field;\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "public function fillPrepared( $preparedQuery, $args ) {\n\t\treset( $args );\n\t\t$this->preparedArgs =& $args;\n\n\t\treturn preg_replace_callback( '/(\\\\\\\\[?!&]|[?!&])/',\n\t\t\tarray( &$this, 'fillPreparedArg' ), $preparedQuery );\n\t}", "protected function prepareQuery($query) {}", "private function _prepareQuery() \n\t{\n\t\t\t// Establish connection to the database if not already connected\n\t\tif (! $this->_connection || empty($this->_connection)) {\n\t\t\t\n\t\t\t // retrieve the database configuration from the registry\n\t\t\t$config = Registry::getSetting('dbConfig');\n\t\t\t\n\t\t\t$this->_newConnection(\n\t\t\t\t\t$config['host'], \n\t\t\t\t\t$config['database'], \n\t\t\t\t\t$config['user'], \n\t\t\t\t\t$config['password']);\n\t\t}\n\t\t\n\t\tif (! $stmt = $this->_connection->prepare ( $this->_query )) {\n\t\t\ttrigger_error ( 'Problem preparing query', E_USER_ERROR );\n\t\t}\n\t\t$this->_stmt = $stmt;\n\t}", "public function filterByRef($ref = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($ref)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $ref)) {\n\t\t\t\t$ref = str_replace('*', '%', $ref);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(LpPeer::REF, $ref, $comparison);\n\t}", "public function &prepare_self($q)\n {\n $st = &$this->prepare($q);\n $st->setFetchMode(PDO::FETCH_INTO, $this->type);\n //$st->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n return $st;\n }", "public function query() {\n $this->field_alias = $this->real_field;\n }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function query($rawQuery, $param = array()){\n \n $stmt = $this->conn->prepare($rawQuery);\n \n $this->setParams($stmt, $param);\n \n $stmt->execute();\n \n return $stmt;\n \n}", "public function edit_produit_reference($reference,$id_produit)\n\t{\n\t\ttry\n\t\t{\n\t\t\t\t$stmt = $this->conn->prepare(\"UPDATE produit SET Reference = :reference WHERE IDProduit = :id\");\n\t\t\t\t$stmt->bindparam(\":reference\", $reference);\n\t\t\t\t$stmt->bindparam(\":id\", $id_produit);\n\t\t\t\t$stmt->execute();\n\t\t\treturn $stmt;\n\t\t}\n\t\tcatch(PDOException $e)\n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\t}", "private function PrepStatement()\n\t{\n\t\t$this->stmt = $this->prepare($this->query->statement);\n\t\tif($this->query->parameters !==NULL && $this->query->paramtype !==NULL\n\t\t\t&& count($this->query->parameters) == count($this->query->paramtype))\n\t\t{\n\t\t\tforeach ($this->query->parameters as $parameter => $value)\n\t\t\t{\n\t\t\t\t$this->stmt->bindValue($parameter, $value, $this->query->paramtype[$parameter]);\n\t\t\t}\n\t\t}\n\t\telseif ($this->query->parameters!==NULL)\n\t\t{\n\t\t\tforeach ($this->query->parameters as $parameter => $value)\n\t\t\t{\n\t\t\t\t$this->stmt->bindValue($parameter, $value, pdo::PARAM_STR);\n\t\t\t}\n\t\t}\n\t}", "function setRef($name, &$value) {\n $this->vars[$name] =& $value; //is_object($value) ? $value->fetch() : $value;\n }", "function stmt_bind_assoc (&$stmt, &$out) {\n //$resultrow = array();\n //stmt_bind_assoc($stmt, $resultrow);\n\n $data = mysqli_stmt_result_metadata($stmt);\n $fields = array();\n $out = array();\n\n $fields[0] = $stmt;\n $count = 1;\n\n while($field = mysqli_fetch_field($data)) {\n $fields[$count] = &$out[$field->name];\n $count++;\n }\n call_user_func_array(mysqli_stmt_bind_result, $fields);\n}", "protected function set_callable_reference( $callable_reference, $is_prepared = false ) {\n\t\t$this->callable_reference = $callable_reference;\n\t\t$this->is_callable_reference_prepared = $is_prepared;\n\t}", "function query($query, $use_prepare=false)\n {\n if ($use_prepare)\n $param = &$this->getParamaters();\n \n\t\t\t// check for ezQuery placeholder tag and replace tags with proper prepare tag\n\t\t\t$query = str_replace(_TAG, '?', $query);\n \n\t\t\t// For reg expressions\n\t\t\t$query = str_replace(\"/[\\n\\r]/\",'',trim($query)); \n\n\t\t\t// initialize return\n\t\t\t$return_val = 0;\n\n\t\t\t// Flush cached values..\n\t\t\t$this->flush();\n\n\t\t\t// Log how the function was called\n\t\t\t$this->log_query(\"\\$db->query(\\\"$query\\\")\");\n\n\t\t\t// Keep track of the last query for debug..\n\t\t\t$this->last_query = $query;\n\n\t\t\t// Perform the query via std SQLite3 query or SQLite3 prepare function..\n if (!empty($param) && is_array($param) && ($this->getPrepare())) {\n $this->result = $this->query_prepared($query, $param);\t\n\t\t\t\t$this->setParamaters();\n } else \n $this->result = $this->dbh->query($query);\n\t\t\t$this->count(true, true);\n\n\t\t\t// If there is an error then take note of it..\n\t\t\tif (@$this->dbh->lastErrorCode())\n\t\t\t{\n\t\t\t\t$err_str = $this->dbh->lastErrorMsg();\n\t\t\t\t$this->register_error($err_str);\n\t\t\t\t$this->show_errors ? trigger_error($err_str,E_USER_WARNING) : null;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// Query was an insert, delete, update, replace\n\t\t\tif ( preg_match(\"/^(insert|delete|update|replace)\\s+/i\",$query) )\n\t\t\t{\n\t\t\t\t$this->rows_affected = @$this->dbh->changes();\n\t\t\t\t\n\t\t\t\t// Take note of the insert_id\n\t\t\t\tif ( preg_match(\"/^(insert|replace)\\s+/i\",$query) )\n\t\t\t\t{\n\t\t\t\t\t$this->insert_id = @$this->dbh->lastInsertRowID();\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Return number of rows affected\n\t\t\t\t$return_val = $this->rows_affected;\n\t\n\t\t\t}\n\t\t\t// Query was an select\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\t// Take note of column info\t\n\t\t\t\t$i=0;\n\t\t\t\t$this->col_info = array();\n\t\t\t\twhile ($i < @$this->result->numColumns())\n\t\t\t\t{\n\t\t\t\t\t$this->col_info[$i] = new StdClass;\n\t\t\t\t\t$this->col_info[$i]->name = $this->result->columnName($i);\n\t\t\t\t\t$this->col_info[$i]->type = null;\n\t\t\t\t\t$this->col_info[$i]->max_length = null;\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Store Query Results\n\t\t\t\t$num_rows=0;\n\t\t\t\twhile ($row = @$this->result->fetchArray(SQLITE3_ASSOC))\n\t\t\t\t{\n\t\t\t\t\t// Store result as an objects within main array\n\t\t\t\t\t$obj= (object) $row; //convert to object\n\t\t\t\t\t$this->last_result[$num_rows] = $obj;\n\t\t\t\t\t$num_rows++;\n\t\t\t\t}\n \n\n\t\t\t\t// Log number of rows the query returned\n\t\t\t\t$this->num_rows = $num_rows;\n\t\t\t\t\n\t\t\t\t// Return number of rows selected\n\t\t\t\t$return_val = $this->num_rows;\n\t\t\t\n\t\t\t}\n \n //if (($param) && is_array($param) && ($this->getPrepare()))\n // $this->result->finalize(); \n\n\t\t\t// If debug ALL queries\n\t\t\t$this->trace||$this->debug_all ? $this->debug() : null ;\n\n\t\t\treturn $return_val;\n\t\t\n\t\t}", "public function query($query){\r\n $args = func_get_args();\r\n array_shift($args); //first element is not an argument but the query itself, should removed\r\n\r\n $reponse = parent::prepare($query);\r\n $reponse->execute($args);\r\n return $reponse;\r\n\r\n }", "public function check_for_references ( $referenced_table_name , $_params = array() )\n\t{\n\t\t//----------------------------------\n\t\t// Fetching reference information\n\t\t//----------------------------------\n\n\t\t$this->cur_query = array(\n\t\t\t\t'do' => \"select\",\n\t\t\t\t'fields' => array( \"table_name\" , \"column_name\" , \"referenced_column_name\"),\n\t\t\t\t'table' => array( \"information_schema.KEY_COLUMN_USAGE\" ),\n\t\t\t\t'where' => array(\n\t\t\t\t\t\tarray( 'table_schema = ' . $this->quote( $this->Registry->config['sql']['dbname'] ) ),\n\t\t\t\t\t\tarray( 'referenced_table_name = ' . $this->quote( $referenced_table_name ) ),\n\t\t\t\t\t)\n\t\t\t);\n\t\t$reference_information = $this->simple_exec_query();\n\n\t\t//----------------------------------------\n\t\t// Fetching referenced data statistics\n\t\t//----------------------------------------\n\n\t\tif ( !empty( $_params ) and $_params['_do_count'] === true and !empty( $_params['referenced_column_name'] ) and !empty( $_params['value_to_check'] ) )\n\t\t{\n\t\t\t$_data_statistics = array();\n\t\t\tforeach ( $reference_information as $_r )\n\t\t\t{\n\t\t\t\tif ( $_r['referenced_column_name'] != $_params['referenced_column_name'] )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->cur_query = array(\n\t\t\t\t\t\t'do' => \"select_one\",\n\t\t\t\t\t\t'fields' => array( new Zend_Db_Expr( \"count(*)\" ) ),\n\t\t\t\t\t\t'table' => $_r['table_name'],\n\t\t\t\t\t\t'where' => $_r['table_name'] . \".\" . $_r['column_name'] . \"=\" .\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\tis_int( $_params['value_to_check'] )\n\t\t\t\t\t\t\t\t?\n\t\t\t\t\t\t\t\t$this->quote( $_params['value_to_check'], \"INTEGER\" )\n\t\t\t\t\t\t\t\t:\n\t\t\t\t\t\t\t\t$this->quote( $_params['value_to_check'] )\n\t\t\t\t\t\t\t),\n\t\t\t\t\t);\n\t\t\t\t$_data_statistics[ $_r['table_name'] ] = $this->simple_exec_query();\n\t\t\t}\n\t\t}\n\n\t\t//----------\n\t\t// Return\n\t\t//----------\n\n\t\treturn array( 'reference_information' => $reference_information, '_data_statistics' => $_data_statistics );\n\t}", "public function get($sql)\n{\n $stmt = $this->link->prepare($sql);\n $stmt->execute();\n return $stmt;\n\n}", "private function stmt_bind_assoc (&$stmt, &$out) {\n\t $data = mysqli_stmt_result_metadata($stmt);\n\t $fields = array();\n\t $out = array();\n\t\n\t $fields[0] = $stmt;\n\t $count = 1;\n\t\n\t while($field = mysqli_fetch_field($data)) {\n\t $fields[$count] = &$out[$field->name];\n\t $count++;\n\t } \n\t mysqli_free_result($data);\n\t call_user_func_array('mysqli_stmt_bind_result', $fields);\n\t}", "public function hook_query(&$query)\n {\n \n }", "public function hook_query(&$query)\n {\n \n }", "public function setRef($ref)\n {\n $this->ref = $ref;\n\n return $this;\n }", "function bind_subq($stmt){\n global $params;\n foreach ($params as $name => &$value){\n switch ($name){\n case 'grouping': case 'page': case 'sort':\n // none of these affect bindings\n break;\n case 'collection': case 'yearstart': case 'yearend':\n $stmt->bindParam(\":$name\", $value, PDO::PARAM_INT);\n break;\n default:\n // all other params are arrays\n foreach ($value as $index => &$component){\n $bindstr = ':' . $name . $index;\n $stmt->bindParam($bindstr, $component, PDO::PARAM_INT);\n }\n }\n }\n}", "public function _prepare() {\n if( !DBwrite::connected() ) {\n DBwrite::connect();\n }\n\n $query = $this->query;\n foreach( $this->key_value_map as $key => $value ) {\n $query = str_replace(\n '#'.$key, \n $this->sanitizeValue( $key, $value ),\n $query\n );\n }\n \n $this->real_query = $query;\n return $this->real_query;\n }", "public function prepare_query()\n {\n }", "function augmentSQL(SQLQuery &$query) {\r\n\t}", "protected function prepareSelectStatement() {}", "function prepareQuery() {\n\t\t$q = \"SET \n\t\t\t\t\t`template` = '{$this->newIdt}',\n\t\t\t\t\t`description` = '{$this->description}',\n\t\t\t\t\t`PostsHeader` = '{$this->postsHeader}',\n\t\t\t\t\t`PostBody` = '{$this->postBody}',\n\t\t\t\t\t`PostsFooter` = '{$this->postsFooter}',\n\t\t\t\t\t`FormLogged` = '{$this->formLogged}',\n\t\t\t\t\t`Form` = '{$this->form}',\n\t\t\t\t\t`Navigation` = '{$this->navigation}',\n\t\t\t\t\t`Name` = '{$this->name}',\n\t\t\t\t\t`NameLin` = '{$this->nameLin}',\n\t\t\t\t\t`MemberName` = '{$this->memberName}',\n\t\t\t\t\t`Date` = '{$this->date}',\n\t\t\t\t\t`Time` = '{$this->time}',\n\t\t\t\t\t`NextPage` = '{$this->nextPage}',\n\t\t\t\t\t`PreviousPage` = '{$this->previousPage}',\n\t\t\t\t\t`FirstPage` = '{$this->firstPage}',\n\t\t\t\t\t`LastPage` = '{$this->lastPage}',\n\t\t\t\t\t`UrlsToLinks`\t=\t'\".($this->urlToLink ? 'yes' : 'no').\"',\n\t\t\t\t\t`EmoToImg` \t\t=\t'\".($this->emoToImg ? 'yes' : 'no').\"',\n\t\t\t\t\t`GravDefault`\t=\t'{$this->gravDefault}',\n\t\t\t\t\t`GravSize`\t\t=\t{$this->gravSize}\";\n\t\treturn $q;\n\n\t}", "function updateBinaire($id, $field, $ref)\n {\n if ($id > 0 && strlen($field) > 0 && !is_null($ref)) {\n try {\n $field = $this->encodeData($field);\n $sql = \"update $this->table\n\t\t\t\tset $field = ?\n\t\t\t\twhere $this->cle = ?\";\n $stmt = $this->connection->prepare($sql);\n $stmt->bindParam(1, $ref, PDO::PARAM_LOB);\n $stmt->bindParam(2, $id);\n $stmt->execute();\n } catch (PDOException $pe) {\n throw new ObjetBDDException($pe->getMessage());\n }\n }\n }", "public function query($sql){\r\n $this->stmt = $this->dbh->prepare($sql);\r\n }", "function getCategoriaCol($col, $ref, $rel)\n{\n global $conn;\n /*\n *query da disciplina\n */\n $sql = \"SELECT cat_{$col} FROM \".TABLE_PREFIX.\"_categoria WHERE cat_{$ref}=?\";\n if(!$qry = $conn->prepare($sql))\n echo divAlert($conn->error, 'error');\n\n else {\n\n $qry->bind_param('s', $rel);\n $qry->execute();\n $qry->bind_result($$col);\n $qry->fetch();\n $qry->close();\n\n return $$col;\n }\n\n}", "function pdo_unbuffered_query($sql, $link=NULL, $params=NULL) {\r\n \r\n // find optional $link param\r\n $params = func_get_args();\r\n $link = array_filter($params, \"is_object\");\r\n $link = pdo_handle($link ? reset($link) : NULL);\r\n $link->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);\r\n \r\n // invoke real pdo_query()\r\n $result = call_user_func_array(\"pdo_query\", $params);\r\n\r\n // reset to buffered mode\r\n $link->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);\r\n \r\n // done\r\n return $result;\r\n }", "public function setRefToSomething($refToSomething)\r\n {\r\n $this->refToSomething = $refToSomething;\r\n }", "public function readBy($ref)\n {\n\n // query to read single record\n $query = \"SELECT *\n FROM \" . $this->table_name . \" t\n WHERE t.\" . $ref . \"='\" . $this->$ref . \"'\";\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->id = $row['id'];\n $this->firstname = $row['firstname'];\n $this->lastname = $row['lastname'];\n $this->email = $row['email'];\n $this->password = $row['password'];\n $this->created = $row['created'];\n $this->modified = $row['modified'];\n }", "function query($query, $use_prepare=false) {\n\t\treturn false;\n\t}", "private function prepare ($sql) {\n $this->query = $this->connection->prepare($sql);\n }", "function prepare( $query = null ) {\n if ( is_null( $query ) )\n return;\n\n $args = func_get_args();\n array_shift( $args );\n // If args were passed as an array (as in vsprintf), move them up\n if ( isset( $args[0] ) && is_array($args[0]) )\n $args = $args[0];\n $query = str_replace( \"'%s'\", '%s', $query ); // in case someone mistakenly already singlequoted it\n $query = str_replace( '\"%s\"', '%s', $query ); // doublequote unquoting\n $query = preg_replace( '|(?<!%)%s|', \"'%s'\", $query ); // quote the strings, avoiding escaped strings like %%s\n array_walk( $args, array( &$this, 'escape_by_ref' ) );\n return @vsprintf( $query, $args );\n }", "public function setQuery(rbQuery &$query) {\n $this->query =& $query;\n }", "public function prepare($query)\n {\n }", "function prepare( $query = null ) {\n\t\tif ( is_null( $query ) )\n\t\t\treturn;\n\n\t\t$args = func_get_args();\n\t\tarray_shift( $args );\n\t\t// If args were passed as an array (as in vsprintf), move them up\n\t\tif ( isset( $args[0] ) && is_array($args[0]) )\n\t\t\t$args = $args[0];\n\t\t$query = str_replace( \"'%s'\", '%s', $query ); // in case someone mistakenly already singlequoted it\n\t\t$query = str_replace( '\"%s\"', '%s', $query ); // doublequote unquoting\n\t\t$query = preg_replace( '|(?<!%)%s|', \"'%s'\", $query ); // quote the strings, avoiding escaped strings like %%s\n\t\tarray_walk( $args, array( &$this, 'escape_by_ref' ) );\n\t\treturn @vsprintf( $query, $args );\n\t}", "function set_query($query) {\n\t\t\t// it just sets the query with which to get a recordset\n\t\t\t$this->query = $query;\n\t\t}", "function bindParam(&$sql,$location,$var,$type){\n switch($type){\n default:\n case 'STRING':\n $var = addslashes($var);\n $var = \"'\".$var.\"'\";\n break;\n case 'INTEGER':\n case 'INT':\n $var = (int)$var;\n }\n\n for($i=1,$pos=0;$i<=$location;$i++){\n $pos = strpos($sql,\"? \",$pos+1);\n }\n\n $sql = substr($sql,0,$pos).$var.substr($sql,$pos+1);\n}", "public function setReference( &$ref ) {\n\t\t$this->items = $ref;\n\t\treturn $this;\n\t}", "public function prepare($query)\n {\n // Store the query\n $this->query = $query;\n \n // Get arguments\n $arguments = func_get_args();\n \n // Replace the arugmnets in\n for($argIndex = 0; $argIndex < func_num_args(); $argIndex ++)\n {\n // Find argument\n $argValue = func_get_arg($argIndex);\n \n // Replace content\n $this->query = str_replace('{' . $argIndex . '}', $argValue, $this->query);\n $this->query = str_replace('{int:' . $argIndex . '}', intval($argValue), $this->query);\n }\n \n return $this;\n }", "public function filterByRef($ref = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($ref)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $ref)) {\n $ref = str_replace('*', '%', $ref);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(DegressifProductsTableMap::REF, $ref, $comparison);\n }", "function query_prepared($query, $param=null)\n { \n $stmt = $this->dbh->prepare($query);\n foreach ($param as $index => $val) {\n // indexing start from 1 in Sqlite3 statement\n if (is_array($val)) {\n $ok = $stmt->bindParam($index + 1, $val);\n } else {\n $ok = $stmt->bindValue($index + 1, $val, $this->getArgType($val));\n }\n \n if (!$ok) {\n $type_error = \"Unable to bind param: $val\";\n $this->register_error($type_error);\n $this->show_errors ? trigger_error($type_error,E_USER_WARNING) : null;\n return false;\n }\n }\n \n return $stmt->execute();\n }", "public function prepare(/*# string */ $sql)/*# : bool */;", "function sql_query($query) {\n\t\t// Added to log select queries\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->sql_query_preProcessAction($query);\n\t\t}\n\n\t\t$pointer = parent::sql_query($query);\n\n\t\t// Added to log select queries\n\t\tforeach($this->postProcessHookObjects as $postProcessHookObject) { /* @var $postProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPostProcessHookInterface */\n\t\t\t$postProcessHookObject->sql_query_postProcessAction($query);\n\t\t}\n\n\t\treturn $pointer;\n\t}", "function sql_query($query) {\n\t\t// Added to log select queries\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->sql_query_preProcessAction($query);\n\t\t}\n\n\t\t$pointer = parent::sql_query($query);\n\n\t\t// Added to log select queries\n\t\tforeach($this->postProcessHookObjects as $postProcessHookObject) { /* @var $postProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPostProcessHookInterface */\n\t\t\t$postProcessHookObject->sql_query_postProcessAction($query);\n\t\t}\n\n\t\treturn $pointer;\n\t}", "function fetch($id,$ref='')\n {\n \tglobal $langs;\n $sql = \"SELECT\";\n\t\t$sql.= \" t.rowid,\";\n\n\t\t$sql.= \" t.fk_commande,\";\n\t\t$sql.= \" t.fk_product,\";\n\t\t$sql.= \" t.fk_commandefourndet,\";\n\t\t$sql.= \" t.qty,\";\n\t\t$sql.= \" t.fk_entrepot,\";\n\t\t$sql.= \" t.fk_user,\";\n\t\t$sql.= \" t.datec,\";\n\t\t$sql.= \" t.comment,\";\n\t\t$sql.= \" t.status,\";\n\t\t$sql.= \" t.tms,\";\n\t\t$sql.= \" t.batch,\";\n\t\t$sql.= \" t.eatby,\";\n\t\t$sql.= \" t.sellby\";\n\n\n $sql.= \" FROM \".MAIN_DB_PREFIX.$this->table_element.\" as t\";\n if ($ref) $sql.= \" WHERE t.ref = '\".$ref.\"'\";\n else $sql.= \" WHERE t.rowid = \".$id;\n\n \tdol_syslog(get_class($this).\"::fetch\");\n $resql=$this->db->query($sql);\n if ($resql)\n {\n if ($this->db->num_rows($resql))\n {\n $obj = $this->db->fetch_object($resql);\n\n $this->id = $obj->rowid;\n\n\t\t\t\t$this->fk_commande = $obj->fk_commande;\n\t\t\t\t$this->fk_product = $obj->fk_product;\n\t\t\t\t$this->fk_commandefourndet = $obj->fk_commandefourndet;\n\t\t\t\t$this->qty = $obj->qty;\n\t\t\t\t$this->fk_entrepot = $obj->fk_entrepot;\n\t\t\t\t$this->fk_user = $obj->fk_user;\n\t\t\t\t$this->datec = $this->db->jdate($obj->datec);\n\t\t\t\t$this->comment = $obj->comment;\n\t\t\t\t$this->status = $obj->status;\n\t\t\t\t$this->tms = $this->db->jdate($obj->tms);\n\t\t\t\t$this->batch = $obj->batch;\n\t\t\t\t$this->eatby = $this->db->jdate($obj->eatby);\n\t\t\t\t$this->sellby = $this->db->jdate($obj->sellby);\n\n\n }\n $this->db->free($resql);\n\n return 1;\n }\n else\n {\n \t $this->error=\"Error \".$this->db->lasterror();\n return -1;\n }\n }", "function setRefFields($val) {\n $this->_refFields = $val;\n }", "public function parameterPassedByReference(&$param) {\n unset($param);\n }", "public function run_sql($bindVars = FALSE, $outvar = NULL);", "private function fetch_stat_refs() {\n\t\t\t$this->build_params();\n\t\t\t$stat_ref_id = $this->request->get_param( 'id' );\n\t\t\t$stat_ref_mapper = new WpProQuiz_Model_StatisticRefMapper();\n\n\t\t\tif ( ! $stat_ref_id ) {\n\t\t\t\t$args = array(\n\t\t\t\t\t'limit' => $this->per_page,\n\t\t\t\t\t'offset' => $this->per_page * ( $this->page - 1 ),\n\t\t\t\t);\n\n\t\t\t\t$order = $this->request->get_param( 'order' );\n\t\t\t\t$orderby = $this->request->get_param( 'orderby' );\n\t\t\t\tif ( ( ! empty( $order ) ) && ( ! empty( $orderby ) ) ) {\n\t\t\t\t\t$args['order'] = $order;\n\t\t\t\t\t$args['orderby'] = $orderby;\n\t\t\t\t}\n\n\t\t\t\t$stat_refs = $stat_ref_mapper->fetchSelected( $args );\n\t\t\t\t$this->stat_refs_count = $stat_ref_mapper->fetchSelectedCount( $args );\n\n\t\t\t\tif ( $stat_refs ) {\n\t\t\t\t\tforeach ( $stat_refs as $ref ) {\n\t\t\t\t\t\t$ref->setMapper( $stat_ref_mapper );\n\t\t\t\t\t\t$this->stat_refs[ $ref->getStatisticRefId() ] = $ref;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->stat_refs[ $stat_ref_id ] = $stat_ref_mapper->fetchAllByRef( $stat_ref_id );\n\t\t\t$this->stat_refs[ $stat_ref_id ] = $this->stat_refs[ $stat_ref_id ] ? $this->stat_refs[ $stat_ref_id ]->setMapper( $stat_ref_mapper ) : null;\n\t\t}", "protected function prepareQueryForLogging(string &$query): void\n {\n }", "function pdo_query($sql, $link=NULL, $params=NULL) {\r\n\r\n // separate params from $sql and $link \r\n $params = func_get_args();\r\n $sql = TRIM( array_shift($params) );\r\n $flags = array();\r\n $direct = false;\r\n \r\n\r\n // find pdo $link \r\n if (count($params)) {\r\n // $link can be the first element\r\n if (is_object(reset($params))) {\r\n $link = array_shift($params);\r\n }\r\n // or the last\r\n elseif (is_object(end($params))) {\r\n $link = array_pop($params);\r\n }\r\n }\r\n // or we use the default $pdo\r\n $link = pdo_handle($link);\r\n \r\n // is $params a list to pdo_query(), or just one array with :key=>value pairs?\r\n if (count($params)==1 && is_array($params[0])) {\r\n $params = array_shift($params);\r\n }\r\n\r\n\r\n // add PDO_MySQL driver flag / workaround for specific query types\r\n switch (strtoupper(substr($sql, 0, strspn(strtoupper($sql), \"SELECT,USE,CREATE\")))) {\r\n\r\n // ought to make ->rowCount() work\r\n case \"SELECT\":\r\n $flags[PDO::MYSQL_ATTR_FOUND_ROWS] = true;\r\n break;\r\n\r\n // temporarily disable prepared statement mode for unbindable directives\r\n case \"USE\":\r\n $direct = true;\r\n $link->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);\r\n break;\r\n\r\n default:\r\n }\r\n\r\n\r\n // unparameterized query()\r\n if ($direct) {\r\n $stmt = $link->query($sql);\r\n $link->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\r\n }\r\n // or prepare() and execute()\r\n else {\r\n if ($stmt = $link->prepare($sql, $flags)) { // no try-catch in _WARNING mode\r\n $stmt->execute($params);\r\n }\r\n }\r\n \r\n // result\r\n if (!$stmt and PDO_HELPFUL) {\r\n pdo_trigger_error(\"pdo_query() SQL query failed, see pdo_error()\", E_USER_WARNING);\r\n }\r\n elseif (PDO_SEEKABLE & !$direct) {\r\n return new PDOStatement_Seekable($stmt, $params);\r\n }\r\n else {\r\n return $stmt;\r\n }\r\n }", "function resolve_ref($entity){\n $db=$entity->get_parent();\n //\n //Create a new identifier using this entity \n $identify = new identifier($entity->name, $db->name);\n //\n //Get the fields from it \n $cols2= $identify->get_fields();\n //\n //Get the new join entities of the referenced entity\n $enames= $identify->join_entities;\n //\n //Include the joins of the referenced entity\n foreach ( $enames as $ename) {\n $enn= array_search($ename, $this->join_entities);\n //\n if ($enn == false){\n //\n array_push($this->join_entities, $ename);\n } \n }\n //\n //\n return $cols2;\n }", "public function setExternalRef($ref)\n {\n $this->externalRef = $ref;\n }", "public function searchRefItems( \\Aimeos\\MW\\Criteria\\Iface $search, array $ref = [], &$total = null );", "public function query($query) {\n $this->result = $this->dbHandler->prepare($query);\n }", "public function affectingStatement($query, $bindings = []);", "public function affectingStatement($query, $bindings = []);", "protected function addReferenced($name,$info)\n\t{\n\t\t\n\t\t$value = isset($info['current_value']) ? $info['current_value'] : NULL;\n\t\t$this->addElement($name, new Select($name,$name,$info['references'],$value));\t\n\t}", "public function prepare($sql);", "public function prepare()\n {\n // Define column parameters\n $columns = func_get_args();\n if (!empty($columns)){\n\n // clear current parameters\n unset($this->parameters);\n $this->parameters = array();\n foreach ($columns as $column) {\n $this->parameters[$column] = null;\n } \n }\n\n // build query\n parent::prepare(); \n return $this;\n }", "public function runQuery($sql){\n $stmt = $this->conn->prepare($sql);\n return $stmt;\n }", "function statement_prep($connection, $sql) {\n\t\n\tif($stmt = $connection->prepare($sql)) {\n\t\t\n\t\t/*No Bind params */\n\t\t\n\t\t/*execute statement*/\n\t\t$stmt->execute();\n\t\t\n\t\t/*get result*/\n\t\t$result=$stmt->get_result();\n\t\t\n\t\t$stmt->close();\n\t\t\n\t} else {\n\t\t\t$result=null;\n\t\t\techo 'Prepared statement error: %s\\n'. $connection->error;\n\t}\n\t\n\treturn $result;\n}", "abstract public function prepareSelect();", "public function prepare($query, $cacheStatement = false)\n\t{\n\t\tif($cacheStatement) {\n\t\t\t$this->currentStatement = $this->db->prepare($query);\n\t\t} else {\n\t\t\t$this->currentStatement = $this->setCachedStatement($query);\n\t\t}\n\t}", "function push_raw_ref ( ) {\n\t\t$this->raw_refs[] = $this->raw_ref;\n\t\t$this->clear_raw_ref();\n\t}", "function bindParam(& $sql,$location,$var,$type){\n\n //确定类型\n switch ($type){\n //字符串\n default: //默认使用字符串类型\n\n case 'STRING' :\n $var = addslashes($var); //转义\n $var = \"'\".$var.\"'\"; //加上单引号\n break;\n\n case 'INTEGER':\n\n case 'INT':\n $var = (int)$var;//强转int\n }\n\n for ($i = 1,$pos =0 ;$i <= $location ;$i++){\n $pos = strpos($sql,'?',$pos+1);\n }\n\n //替换?\n $sql = substr($sql,0,$pos).$var.substr($sql,$pos+1);\n}", "function execute_prepared_query($prep_q, $bound_vars, $bound_var_types, $result_expected = false)\n{\n\tglobal $spebs_db;\n\t$pstmt = $spebs_db -> prepare($prep_q);\t\n\tif($spebs_db->errno != 0)\n\t{\n\t\terror_log(\"PREPARE STATEMENT error \".$spebs_db->errno.\": \".$spebs_db->error.\" (Q = \\\"$prep_q\\\")\");\n\t\treturn false;\n\t}\n\t\n\t$bound_varrefs = array();\n\t$bound_varrefs[0] = $bound_var_types;\n\t$i=1;\n\tforeach($bound_vars AS $thisvar)\n\t{\t\n\t\t${\"x$i\"} = $thisvar;\n\t\t$bound_varrefs[$i] = &${\"x$i\"};\n\t\t$i++;\n\t}\n\t$bind_action = call_user_func_array(array($pstmt, 'bind_param'), $bound_varrefs);\n\tif(!$bind_action)\n\t{\t\n\t\terror_log(\"CALL_USER_FUNC_ARRAY error \");\n\t\treturn false;\n\t}\n\tif($pstmt->errno != 0)\n\t{\n\t\terror_log(\"PREPARED QUERY BIND error \".$pstmt->errno.\": \".$pstmt->error);\n\t\treturn false;\n\t}\t\n\tif($pstmt -> execute())\n\t{\n\t\tif(!$result_expected)\n\t\t{\n\t\t\tif(isset($pstmt -> insert_id) && is_int($pstmt -> insert_id) && $pstmt -> insert_id > 0)\n\t\t\t\t$res = $pstmt -> insert_id;\n\t\t\telse\n\t\t\t\t$res = true;\n\t\t\t\t\n\t\t\t$pstmt -> close();\n\t\t\treturn $res;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$results = array();\n\t\t\t$row = array();\n\t\t\t$metadata = $pstmt -> result_metadata();\n\t\t\tforeach($metadata -> fetch_fields() AS $field)\n\t\t\t{\t\n\t\t\t\t$row[$field -> name] = NULL;\n\t\t\t\t$bound_resrefs[] = &$row[$field -> name];\n\t\t\t}\n\t\t\t$bind_action = call_user_func_array(array($pstmt, 'bind_result'), $bound_resrefs);\n\t\t\t$i = 0;\n\t\t\twhile($pstmt -> fetch())\n\t\t\t{\t\n\t\t\t\tforeach($row AS $k => $v)\n\t\t\t\t$results[$i][$k] = $v;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\t$pstmt -> close();\n\t\t\treturn $results;\n\t\t}\n\t\t\n\t}\n\telse\n\t{\n\t\terror_log($pstmt->errno.\": \".$pstmt->error);\n\t\t$pstmt -> close();\t\n\t\treturn false;\n\t}\n}", "public function doReferenceTransaction($ref) {\n\t\t$nvpstr =\n\t\t\t'&REFERENCEID=' . $ref .\n\t\t\t'&AMT=10' .\n\t\t\t'&PAYMENTACTION=Sale&REQCONFIRMSHIPPING=0';\n\n\t\t$this->hash_call('DoReferenceTransaction', $nvpstr);\n\t}", "public function query($sql) {\n $this->stmt = $this->dbh->prepare($sql);\n }", "public function delegateQueryTemporary($drupal_table_name, $query, array $args = [], array $options = []);", "public function &prepare($q)\n {\n self::$db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);\n $st = self::$db->prepare($q);\n $st->setFetchMode(PDO::FETCH_CLASS, 'stdClass');\n //$st->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n return $st;\n }", "function _referProperty(&$posql){\n $this->charset = & $posql->charset;\n }", "protected function set_query($sql) {\n $this->open_link();\n $this->conx->query($sql);\n $this->close_link();\n }", "function addToQuery(&$query, $tablename=\"\", $fieldaliasprefix=\"\", $rec=\"\", $level, $mode)\n {\n }", "private\tfunction\t_prepareFindQuery()\n\t\t{\n\t\t\tself::$_queries[$this->_class]['find']\t=\t'SELECT '.trim(str_replace('<alias>','a0',self::$_queries[$this->_class]['select']), ', ')\n\t\t\t\t\t\t\t\t\t\t\t\t\t.\t\"\\rFROM \".'`'.$this->_table.'` `a0`'.self::$_queries[$this->_class]['from'];\n\t\t\tunset(self::$_queries[$this->_class]['select'], self::$_queries[$this->_class]['from']);\n\t\t\t\n\t\t\treturn\tself::$_queries[$this->_class]['find'];\n\t\t}", "public function preparedQuery( $query, array $_binds )\n\t{\n\t\t/* Init Bind object */\n\t\t$bind = new Db\\Bind();\n\t\t\n\t\t/* Sort out subqueries */\n\t\t$binds = array();\n\t\t$i = 0;\n\t\tforeach ( $_binds as $bindVal )\n\t\t{\n\t\t\t$i++;\n\t\t\tif ( $bindVal instanceof \\IPS\\Db\\Select )\n\t\t\t{\n\t\t\t\t$pos = 0;\n\t\t\t\tfor ( $j=0; $j<$i; $j++ )\n\t\t\t\t{\n\t\t\t\t\t$pos = mb_strpos( $query, '?', $pos ) + 1;\n\t\t\t\t}\n\t\t\t\t$query = mb_substr( $query, 0, $pos - 1 ) . $bindVal->query . mb_substr( $query, $pos );\n\t\t\t\t$i--;\n\t\t\t\t\n\t\t\t\tforeach ( $bindVal->binds as $v )\n\t\t\t\t{\n\t\t\t\t\t$binds[] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$binds[] = $bindVal;\n\t\t\t}\n\t\t}\n\n\t\t/* Loop values to bind */\n\t\t$i = 0;\n\t\t$longThreshold = 1048576;\n\t\t$sendAsLong = array();\n\t\tforeach ( $binds as $bindVal )\n\t\t{\n\t\t\tif( ( is_object( $bindVal ) OR is_string( $bindVal ) ) AND \\strlen( (string) $bindVal ) > $longThreshold )\n\t\t\t{\n\t\t\t\t$sendAsLong[ $i ] = (string) $bindVal;\n\t\t\t}\n\n\t\t\t$i++;\n\t\t\tswitch ( gettype( $bindVal ) )\n\t\t\t{\n\t\t\t\tcase 'boolean':\n\t\t\t\tcase 'integer':\n\t\t\t\t\t$bind->add( 'i', $bindVal );\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'double':\n\t\t\t\t\t$bind->add( 'd', $bindVal );\n\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tcase 'string':\n\t\t\t\t\t$bind->add( 's', ( \\strlen( $bindVal ) > $longThreshold ) ? NULL : $bindVal );\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'object':\n\t\t\t\t\tif( method_exists( $bindVal, '__toString' ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$bind->add( 's', ( \\strlen( $bindVal ) > $longThreshold ) ? NULL : (string) $bindVal );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Deliberately no break\n\t\t\t\t\t\n\t\t\t\tcase 'NULL':\n\t\t\t\tcase 'array':\n\t\t\t\tcase 'resource':\n\t\t\t\tcase 'unknown type':\n\t\t\t\tdefault:\n\t\t\t\t\t/* For NULL values, you can't bind, so we adjust the query to actually pass a NULL value */\n\t\t\t\t\t$pos = 0;\n\t\t\t\t\tfor ( $j=0; $j<$i; $j++ )\n\t\t\t\t\t{\n\t\t\t\t\t\t$pos = mb_strpos( $query, '?', $pos ) + 1;\n\t\t\t\t\t}\n\t\t\t\t\t$query = mb_substr( $query, 0, $pos - 1 ) . 'NULL' . mb_substr( $query, $pos );\n\t\t\t\t\t$i--;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t/* Log */\n\t\tif ( \\IPS\\QUERY_LOG )\n\t\t{\t\n\t\t\t/* Replace ?s with the actual values */\n\t $logQuery = $query;\n\t foreach ( $binds as $b )\n\t {\n\t\t $logQuery = preg_replace( '/\\?/', var_export( $b, TRUE ), $logQuery, 1 );\n\t }\n\t \n\t\t\t/* Log */\n\t\t\t$this->log( $logQuery );\t\n\t\t}\n\t\t\n\t\t/* Add a backtrace to the query so we know where it came from if it causes issues */\n\t\t$comment = '??';\n\t\t$line = '?';\n\t\tforeach( debug_backtrace( FALSE ) as $b )\n\t\t{\n\t\t\tif ( isset( $b['line'] ) )\n\t\t\t{\n\t\t\t\t$line = $b['line'];\n\t\t\t}\n\t\t\t\n\t\t\tif( isset( $b['class'] ) and $b['class'] !== 'IPS\\_Db' and $b['class'] !== 'IPS\\Db\\_Select' )\n\t\t\t{\n\t\t\t\t$comment = \"{$b['class']}::{$b['function']}:{$line}\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$_query = $query;\n\t\t$query = \"/*{$comment}*/ {$query}\";\n\t\t\t\t\n\t\t/* Prepare */\n\t\t$stmt = parent::prepare( $query );\n\t\tif( $stmt === FALSE )\n\t\t{\n\t\t\tthrow new \\IPS\\Db\\Exception( $this->error, $this->errno, NULL, $_query, $binds );\n\t\t}\n\t\t\n\t\t/* Bind values */\n\t\tif( $bind->haveBinds() === TRUE )\n\t\t{\n\t\t\tcall_user_func_array( array( $stmt, 'bind_param' ), $bind->get() );\n\n\t\t\tif( count( $sendAsLong ) )\n\t\t\t{\n\t\t\t\tforeach( $sendAsLong as $index => $data )\n\t\t\t\t{\n\t\t\t\t\t$chunks = str_split( $data, $longThreshold - 1 );\n\n\t\t\t\t\tforeach( $chunks as $chunk )\n\t\t\t\t\t{\n\t\t\t\t\t\t$stmt->send_long_data( $index, $chunk );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* Execute */\n\t\t$stmt->execute();\t\t\n\t\tif ( $stmt->error )\n\t\t{\n\t\t\tthrow new \\IPS\\Db\\Exception( $stmt->error, $stmt->errno, NULL, $_query, $binds );\n\t\t}\n\t\t$stmt->store_result();\n\t\t\t\t\t\t\n\t\t/* Return a Statement object */\n\t\treturn $stmt;\n\t}", "function DBWrapperMDB2Result( &$result, $link ) {\r\n $this->result = &$result;\r\n }", "public function query(string $sql) {\n //Store the new prepared statement object in $this->_pstmt;\n\n $this->_pstmt = $this->_dbh->prepare($sql);\n }", "protected function _prepQuery($sql)\n {\n return $sql;\n }", "private function bind_params($query, $bindings, $update = false)\n {\n $query = \\str_replace('\"', '`', $query);\n $bindings = $this->prepareBindings($bindings);\n\n if (!$bindings) {\n return $query;\n }\n\n $bindings = \\array_map(function ($replace) {\n if (\\is_string($replace)) {\n $replace = \"'\" . esc_sql($replace) . \"'\";\n } elseif ($replace === null) {\n $replace = \"null\";\n }\n\n return $replace;\n }, $bindings);\n\n $query = \\str_replace(array('%', '?'), array('%%', '%s'), $query);\n $query = \\vsprintf($query, $bindings);\n\n return $query;\n }", "function addToQuery(&$query, $tablename=\"\", $fieldaliasprefix=\"\", $rec, $level, $mode)\n {\n }", "protected function renderReferences() {}", "public function prepare ($sql) {\n $this->query = $this->conn->prepare($sql);\n return $this->query;\n }" ]
[ "0.57047206", "0.5651822", "0.5453584", "0.5220829", "0.51574314", "0.5092207", "0.50805503", "0.5037387", "0.5024351", "0.5024351", "0.4988168", "0.4947402", "0.49436864", "0.49435544", "0.49257338", "0.49152496", "0.4907309", "0.4907309", "0.4907309", "0.4907309", "0.48843902", "0.48528463", "0.48451728", "0.4813392", "0.4812962", "0.4802632", "0.4799927", "0.47936895", "0.47891054", "0.47867513", "0.47822165", "0.4780113", "0.4780113", "0.47788548", "0.47745648", "0.47560352", "0.47198147", "0.47194993", "0.47157598", "0.46959272", "0.46818617", "0.46813482", "0.4681296", "0.46727905", "0.4670998", "0.46612406", "0.46571195", "0.46521667", "0.46372217", "0.46326077", "0.4629854", "0.46297497", "0.46242404", "0.46220395", "0.46081263", "0.46049163", "0.4584662", "0.45800784", "0.45799544", "0.45737058", "0.45737058", "0.45729837", "0.45653176", "0.45636705", "0.45598817", "0.45595604", "0.45513067", "0.45478565", "0.45477772", "0.4544459", "0.45434883", "0.45431143", "0.45397025", "0.45397025", "0.4538051", "0.4537235", "0.45325345", "0.45210454", "0.45186216", "0.45147532", "0.45141482", "0.4510589", "0.45086074", "0.45032024", "0.44976187", "0.44943717", "0.4493308", "0.44853473", "0.448261", "0.44821423", "0.4479255", "0.4477043", "0.44704774", "0.4465758", "0.4458844", "0.44539267", "0.44534883", "0.4453343", "0.4450751", "0.44497013" ]
0.77686644
0
Applies the 'editable' param to the query being prepared.
private function _applyEditableParam() { if ($this->editable) { // Limit the query to only the global sets the user has permission to edit $editableSetIds = Craft::$app->getGlobals()->getEditableSetIds(); $this->subQuery->andWhere(['elements.id' => $editableSetIds]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEditable(bool $editable=true): self;", "public function setEditableInColumn(bool $editableInColumn=true): self;", "public function editable($editable)\n {\n $this->editable = $editable;\n\n return $this;\n }", "function _set_editable_fields()\n\t{\n\t\tif (empty($this->fields))\n\t\t{\n\t\t\t// pull the fields dynamically from the database\n\t\t\t$this->db->cache_on();\n\t\t\t$this->fields = $this->db->list_fields($this->primary_table);\n\t\t\t$this->db->cache_off();\n\t\t}\n\t}", "public function setEditable($editable = true, $setDefaultValue = true) {}", "public function is_editable() {\n\t\treturn false;\n\t}", "function BeforeQueryEdit(&$strSQL, &$strWhereClause, &$pageObject)\n{\n\n\t\t$strSQL = calendar_getDbValuesById($_REQUEST[\"editid1\"], $pageObject->connection);\n;\t\t\n}", "public function setEditable($value);", "function edit($tablename, $edit_field, $edit_value, $find_field = \"\", $find_value = \"\") {\r\n if (($find_field == \"\") && ($find_value == \"\")) {\r\n $query = \"update $tablename set $edit_field = '$edit_value';\";\r\n return $this->makeQuery($query);\r\n } else if (($find_field != \"\") && ($find_value != \"\")) {\r\n $query = \"update $tablename set $edit_field = '$edit_value' where $find_field = '$find_value';\";\r\n //echo $query;\r\n return $this->makeQuery($query);\r\n }\r\n }", "public function isEditable() {}", "public function editSaveQuery() {\n\t\t$this->expiredStatusToQuery('expired', 'expiration');\n\t}", "public function isEditable();", "public function isEditable();", "public function isEditable()\n {\n return $this->_editable;\n }", "public function isEditable()\n\t{\n\t\tif (($this->getName() === 'publicid') || ($this->getName() === 'posturl')) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function PMA_urlParamsInEditMode($url_params)\n{\n if (isset($_REQUEST['where_clause'])) {\n $url_params['where_clause'] = trim($_REQUEST['where_clause']);\n }\n if (! empty($_REQUEST['sql_query'])) {\n $url_params['sql_query'] = $_REQUEST['sql_query'];\n }\n return $url_params;\n}", "public static function setEditable($bool) {\n\t\tself::$editable = $bool;\n\t}", "public function editable()\n {\n if ($this->getMode() == \"only_external\") {\n return false;\n }\n if ($this->hasScript()) {\n // can't edit calculated fields\n return false;\n }\n if (!isset($this->data[\"editable\"])) {\n return true;\n }\n return (true == $this->data[\"editable\"]);\n }", "function BeforeQueryView(&$strSQL, &$strWhereClause, &$pageObject)\n{\n\n\t\t$strSQL = calendar_getDbValuesById($_REQUEST[\"editid1\"], $pageObject->connection);\n;\t\t\n}", "public function isEditable($id)\n\t{\n\t\t// TODO: Implement isEditable() method.\n\t}", "public function edit(){\n try{\n $stmt = $this->conn->prepare(\"UPDATE tbltodo SET completed=:completed,\n title =:title WHERE id=:id \");\n $stmt->bindparam(\":id\",$this->id);\n $stmt->bindparam(\":title\",$this->title);\n $stmt->bindparam(\":completed\",$this->completed);\n $stmt->execute();\n return true;\n }catch(PDOException $e){\n echo $e->getMessage();\n return false;\n }\n }", "function IsRecordEditable($values, $isEditable)\n{\n\n\t\t\n\n$lkd=$values[\"Locked\"];\n\nif($lkd==1) {\n\nreturn $isEditable=false;\n\n}\n\nelse return $isEditable=true;\n;\t\t\n}", "private function internalUpdate()\n {\n $param = array();\n\n // Run before update methods and stop here if the return bool false\n if ($this->runBefore('update') === false)\n return false;\n\n // Define fieldlist array\n $fieldlist = array();\n\n // Build updatefields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n $val = $this->checkFieldvalue($fld, $val);\n $type = $val == 'NULL' ? 'raw' : $this->getFieldtype($fld);\n\n $fieldlist[] = $this->alias . '.' . $fld . '={' . $type . ':' . $fld . '}';\n $param[$fld] = $val;\n }\n\n // Create filter\n $filter = ' WHERE ' . $this->alias . '.' . $this->pk . '={' . $this->getFieldtype($this->pk) . ':' . $this->pk . '}';\n\n // Even if the pk value is present in data, we set this param manually to prevent errors\n $param[$this->pk] = $this->data->{$this->pk};\n\n // Build fieldlist\n $fieldlist = implode(', ', $fieldlist);\n\n // Create complete sql string\n $sql = \"UPDATE {db_prefix}{$this->tbl} AS {$this->alias} SET {$fieldlist}{$filter}\";\n\n // Run query\n $this->db->query($sql, $param);\n\n // Run after update event methods\n if ($this->runAfter('update') === false)\n return false;\n }", "public function editable($value) {\n return $this->setProperty('editable', $value);\n }", "function userIsAdminUpdate(PDO $db, bool $isAdmin, $id)\n{\n $sql = \"UPDATE users SET isAdmin = :isAdmin WHERE id = :id\";\n\n $stmt = $db->prepare($sql); \n \n $stmt->bindParam(':isAdmin', $isAdmin, PDO::PARAM_STR);\n $stmt->bindParam(':id', $id, PDO::PARAM_INT);\n $stmt->execute();\n}", "function PMA_getValuesForEditMode($paramArray)\n{\n $found_unique_key = false;\n list($table, $db) = $paramArray;\n if (isset($_REQUEST['where_clause'])) {\n $where_clause_array = PMA_getWhereClauseArray();\n list($whereClauses, $resultArray, $rowsArray, $found_unique_key)\n = PMA_analyzeWhereClauses($where_clause_array, $paramArray, $found_unique_key);\n return array(false, $whereClauses, $resultArray, $rowsArray, $where_clause_array, $found_unique_key);\n } else {\n list($results, $row) = PMA_loadFirstRowInEditMode($paramArray);\n return array(true, null, $results, $row, null, $found_unique_key);\n }\n}", "public function edit($sql){\n\t\t$this->db->query($sql) or die ($this->db->error);\n\t}", "function edit_data($where,$table){\n return $this->db->get_where($table,$where);\n }", "public function set_edit($param)\n\t{\n\t\t$this->edit = (bool)$param;\n\t\treturn $this;\n\t}", "function edit_data($where,$table){ \n return $this->db->get_where($table,$where);\n }", "public function isEditable($operation = OperationTypes::OP_UPDATE, $ignore_op = FALSE);", "function edit($param) {\n extract($param);\n $sql = \"UPDATE operario SET fk_usuario='$id_usuario', nombres='$nombres', apellidos='$apellidos' WHERE fk_usuario='$id_usuario';\n UPDATE usuario SET id_usuario='$id_usuario', direccion='$direccion', telefonos='$telefonos', correos='$correos', contrasena='$contrasena' WHERE id_usuario = '$id_usuario'; \"; // <-- el ID de la fila asignado en el SELECT permite construir la condición de búsqueda del registro a modificar\n $conexion->getPDO()->exec($sql);\n echo $conexion->getEstado();\n }", "function AfterEdit(&$values, $where, &$oldvalues, &$keys, $inline, &$pageObject)\n{\n\n\t\t\n//DB::Delete(\"dloglimit2\", \"ID>0\" );\n\n\n//$rs = DB::Select(\"dloglimit\", \"EmployeeID>0\" );\n\n//while( $record = $rs->fetchAssoc() )\n\n//{\n\n//$emp = $record[\"EmployeeID\"];\n//$sdat = $record[\"SDate\"];\n//$sti = $record[\"STimeInC\"];\n\n//$sql = \"INSERT INTO dloglimit2 (EmployeeID, SDate, STimeInC) values ('$emp', '$sdat', '$sti')\";\n\n//CustomQuery($sql);\n\n//}\n;\t\t\n}", "function isEditable(Eloquent $model);", "function get_editable_field($role_id,$table)\n {\n // LEFT JOIN TBM_EDITFIELD a ON a.fieldname = b.COLUMN_NAME AND a.role_id = '\".$role_id.\"'\n // WHERE b.TABLE_NAME ='\".$table.\"' \";\n $sql = \" SELECT DISTINCT UPPER(b.COLUMN_NAME) AS fieldname, a.editable FROM INFORMATION_SCHEMA.COLUMNS b\n LEFT JOIN TBM_EDITFIELD a ON a.fieldname = b.COLUMN_NAME AND a.role_id = '\".$role_id.\"'\n WHERE b.TABLE_NAME IN (\".$table.\") \";\n\n Debugbar::info($sql);\n $data = DB::SELECT($sql);\n\n if(!empty($data))\n {\n foreach($data as $k => $v)\n {\n //echo \"1<pre>\"; print_r($v);\n $result[$v->fieldname]= $v->editable;\n }\n }\n\n return $result;\n }", "public function SQL_UPDATE() {\r\n\t}", "function AfterEdit(&$values,$where,&$oldvalues,&$keys,$inline,&$pageObject)\n{\n\n\t\tglobal $conn;\n$proid= $keys['proid'];\n$date=$values['bill_date'];\n$amount=$values['amount'];\n$item=$values['item'];\n$bill_no=$values['bill_no'];\n\n\n$sql_update=\"UPDATE student_billing SET \nitem='$item',amount='$amount',amount_balance='$amount',\ndate='$date',\nbill_no='$bill_no'\nWHERE proid='$proid'\";\ndb_exec($sql_update,$conn);\n\n;\t\t\n}", "protected function prepareUpdateStatement() {\n $clauses = [];\n foreach ($this->uniqueColumns as $column) {\n $clauses[] = \"$column = :$column\";\n }\n\n $clauses = implode(' AND ', $clauses);\n\n // Fields to update.\n $fields = [];\n foreach (array_diff($this->columns, $this->uniqueColumns) as $field) {\n $fields[] = \"$field = :$field\";\n }\n $fields = implode(',', $fields);\n\n // Prepare our statement.\n return $this->connection->prepare(\"UPDATE {$this->table} SET $fields WHERE $clauses\");\n }", "public function affectingStatement($query, $bindings = []);", "public function affectingStatement($query, $bindings = []);", "function prepare_update($rowindex) {\r\n foreach ($this->properties as $colvar=>$col) {\r\n if ($col->on_edit_callback != '') {\r\n $this->ds->{$colvar}[$rowindex] = eval($col->on_edit_callback);\r\n }\r\n }\r\n return True;\r\n }", "public function __construct(Editable $editable)\n {\n $this->editable = $editable;\n $this->performer = auth()->guard('api')->user();\n }", "protected function getAclParam()\n\t{\n\t\treturn 'caneditrow_access';\n\t}", "protected function canEdit() {}", "public function isEditable()\n {\n // Need to be able to save the DataObject if this is being called during PublishTargetJob.\n if ($this->owner->getIsPublishJobRunning()) {\n return true;\n }\n\n // Need to be able to save the DataObject if this is being called during UnPublishTargetJob.\n if ($this->owner->getIsUnPublishJobRunning()) {\n return true;\n }\n\n if ($this->owner->config()->get('allow_embargoed_editing')) {\n return true;\n }\n\n if ($this->owner->getIsPublishScheduled()) {\n return false;\n }\n\n $embargoRecordIsEditable = $this->owner->invokeWithExtensions('embargoRecordIsEditable');\n if (in_array(false, $embargoRecordIsEditable)) {\n return false;\n }\n\n return true;\n }", "public function editable(bool $value = true)\n {\n $this->editable = $value;\n return $this;\n }", "public function isEditable(User $u){\n\t\t\tif( $u->id == $this->user->id){\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "function eman_post_editable( $post )\n{\n\tif ( is_numeric($post) ) $post = get_post($post);\n\tif ( ! is_object($post) ) return false;\n\n\t// Settings area always editable\n\tif ( emanager_post::is_settings($post) ) return true;\n\n\t$status = emanager_post::status($post, 'slug');\n\n\t// If no status yet or is in draft or revise, it is editable\n\tif ( 'draft' == $status || 'revise' == $status ) return true;\n\n\treturn false;\n}", "function setParamsToSaveQuery()\n {\n \n \n if($this->form->getQuery())\n {\n $stringTmp=$this->form->getQuery()->getSqlQuery();\n $stringTmp=substr($stringTmp, strpos($stringTmp,' FROM ' ));\n $stringTmp=substr($stringTmp, 0, strpos($stringTmp,' LIMIT ' ));\n $this->getUser()->setAttribute('queryToSaveWhere', $stringTmp);\n }\n \n if($this->form->getQuery()->getParams())\n {\n $stringTmp=\"\";\n $arrayTmp=$this->form->getQuery()->getParams();\n if(isset($arrayTmp['where']))\n {\n foreach($arrayTmp['where'] as $key=>$value)\n {\n $stringTmp.=\";|\".$value.\"|\";\n }\n $this->getUser()->setAttribute('queryToSaveParams', $stringTmp);\n }\n }\n return;\n }", "public function modifyRecords(){\n \n // Get the sql statement\n $sql = $this->updateSql();\n // Prepare the query\n $stmt = $this->db->prepare($sql);\n\n foreach ($this->requestUpdateValues as $key => $value) {\n $stmt->bindParam($this->params['columnName_Pdo'][$key], $this->requestUpdateValues[$key]);\n }\n \n $stmt->execute();\n \n return true;\n \n }", "public function simple($editable = true)\n {\n return $this->addIdentifierCol()->addLanguagesTextCols($editable);\n }", "public function editable(bool $value = true)\n {\n $this->editable = $value;\n\n return $this;\n }", "public function edit(Pager $pager)\n {\n //\n }", "function getItems($where, $value, $approve = NULL){\r\n\tglobal $con;\r\n\tif($approve == NULL) { $sql = 'AND Approve = 1';}else{$sql = '';}\r\n\t$getItems = $con->prepare(\"SELECT * FROM items WHERE $where = ? $sql ORDER BY item_ID DESC\");\r\n\t$getItems->execute(array($value));\t\r\n\t$items = $getItems->fetchAll();\r\n\treturn $items;\r\n\r\n\r\n}", "function update()\n {\n\n $query = \"UPDATE Proposal set \";\n $query = $query . \"LastEditDate=NOW()\";\n if(isset($this->BidderID))\n {\n $query = $query . \", OpportunityID = '\" . $this->OpportunityID . \"'\"; \n }\n\n if(isset($this->BidderID))\n {\n $query = $query . \", BidderID = '\" . $this->BidderID . \"'\"; \n }\n\n if(isset($this->Status))\n {\n $query = $query . \", Status = \" . $this->Status . \"\"; \n }\n\n if(isset($this->TechnicalScore))\n {\n $query = $query . \", TechnicalScore = \" . $this->TechnicalScore . \" \"; \n }\n\n if(isset($this->FeeScore))\n {\n $query = $query . \", FeeScore = \" . $this->FeeScore . \" \"; \n }\n\n if(isset($this->FinalTotalScore))\n {\n $query = $query . \", FinalTotalScore = \" . $this->FinalTotalScore . \" \"; \n }\n\n if(isset($this->ContractAwarded))\n {\n $query = $query . \", ContractAwarded = \" . $this->ContractAwarded . \" \"; \n }\n\n $query = $query . \" WHERE ProposalID = '\" . $this->ProposalID . \"';\";\n\n $stmt = $this->conn->prepare( $query );\n\n // bind parameters\n //$stmt->bindParam(':ProposalID', $this->ProposalID);\n //$stmt->bindParam(':OpportunityID', $this->OpportunityID);\n //$stmt->bindParam(':BidderID', $this->BidderID);\n //$stmt->bindParam(':Status', $this->Status);\n //$stmt->bindParam(':TechnicalScore', $this->TechnicalScore);\n // $stmt->bindParam(':FeeScore', $this->FeeScore);\n //$stmt->bindParam(':FinalTotalScore', $this->FinalTotalScore);\n\n if($stmt->execute())\n return true;\n else\n return false;\n }", "public function canBeEdited() {}", "protected function user_where_clause() {}", "abstract protected function renderEdit();", "public function isEditable() {\n\t\tif ($this->isVariable()) {\n\t\t\t$editables = $this->parent->editables();\n\t\t\tif (empty($editables)) {\n\t\t\t\treturn $this->isValueEditable;\n\t\t\t}\n\t\t\treturn ((in_array($this->parsedVarName, $editables) !== false) && $this->isValueEditable);\n\t\t}\n\t\treturn false;\n\t}", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}", "public function edit(ResultItem $resultItem)\n {\n //\n }", "private function getUpdateableClause () {\n\t\t$where = new Where;\n\t\tforeach ($this->primaryKeys as $key) {\n\t\t\t$value = $this->retreive($key);\n\t\t\tif ($value){\n\t\t\t\t$where->equals($key, $this->retreive($key));\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"Primary key (\". $key .\") has no value!\");\n\t\t\t}\n\t\t}\n\n\t\treturn $where;\n\t}", "public function update( $sql, $params=array());", "public function edit(ResultAtividade $resultAtividade)\n {\n //\n }", "protected function _prepareBind($record, & $data)\n\t{\n\t\t/**\n\t\t * Support for 'dirty' field properties\n\t\t */\n\t\tif ($data['id'])\n\t\t{\n\t\t\tif ($record->issearch==-1 || $record->issearch==2) unset($data['issearch']); // Already dirty\n\t\t\telseif (@ $data['issearch']==0 && $record->issearch==1) $data['issearch'] = -1; // Becomes dirty OFF\n\t\t\telseif (@ $data['issearch']==1 && $record->issearch==0) $data['issearch'] = 2; // Becomes dirty ON\n\n\t\t\tif ($record->isadvsearch==-1 || $record->isadvsearch==2) unset($data['isadvsearch']); // Already dirty\n\t\t\telseif (@ $data['isadvsearch']==0 && $record->isadvsearch==1) $data['isadvsearch'] = -1; // Becomes dirty OFF\n\t\t\telseif (@ $data['isadvsearch']==1 && $record->isadvsearch==0) $data['isadvsearch'] = 2; // Becomes dirty ON\n\n\t\t\tif ($record->isadvfilter==-1 || $record->isadvfilter==2) unset($data['isadvfilter']); // Already dirty\n\t\t\telseif (@ $data['isadvfilter']==0 && $record->isadvfilter==1) $data['isadvfilter'] = -1; // Becomes dirty OFF\n\t\t\telseif (@ $data['isadvfilter']==1 && $record->isadvfilter==0) $data['isadvfilter'] = 2; // Becomes dirty ON\n\n\t\t\t// FORCE dirty OFF, if field is being unpublished -and- is not already normal OFF\n\t\t\tif (isset($data['published']) && $data['published']==0 && $record->published==1)\n\t\t\t{\n\t\t\t\tif ($record->issearch!=0) $data['issearch'] = -1;\n\t\t\t\tif ($record->isadvsearch!=0) $data['isadvsearch'] = -1;\n\t\t\t\tif ($record->isadvfilter!=0) $data['isadvfilter'] = -1;\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Positions are always posted, otherwise they must be cleared\n\t\t */\n\t\tif (!isset($data['positions']))\n\t\t{\n\t\t\t$data['positions'] = '';\n\t\t}\n\n\t\t// Call parent class bind preparation\n\t\tparent::_prepareBind($record, $data);\n\t}", "public function _prepare() {\n if( !DBwrite::connected() ) {\n DBwrite::connect();\n }\n\n $query = $this->query;\n foreach( $this->key_value_map as $key => $value ) {\n $query = str_replace(\n '#'.$key, \n $this->sanitizeValue( $key, $value ),\n $query\n );\n }\n \n $this->real_query = $query;\n return $this->real_query;\n }", "abstract public function prepareSelect();", "protected function prepareQuery($query) {}", "function getItem($where, $value, $approve = null)\n{\n global $con;\n\n $sql = $approve == null ? 'AND Item_Approve = 1' : '';\n\n $getItem = $con->prepare(\"Select * From items WHERE $where =? $sql ORDER BY Item_ID DESC\");\n\n $getItem->execute(array($value));\n\n $items = $getItem->fetchAll();\n\n return $items;\n}", "function EDIT(){\r\n $stmt = $this->db->prepare(\"UPDATE edificio SET\r\n nombre_edif = ?, telef_edif = ?, agrup_edificio = ?\r\n\t\t\t\t\tWHERE edificio_id = ?\");\r\n $resultado = $stmt->execute(array($this->nombre_edif, $this->telef_edif, $this->agrup_edificio,\r\n $this->edificio_id));\r\n\r\n if($resultado === true){\r\n return true;\r\n }else{\r\n return 'Error inesperado al intentar cumplir su solicitud de modificacion';\r\n }\r\n }", "public function edit() {\n\t\t\t\n\t\t}", "protected function prepareSelectStatement() {}", "protected function allowEdit($data = array(), $key = id)\n\t{\n\t\treturn parent::allowEdit($data, $key, array(\n\t\t\t'key_author' => 'created_by'\n\t\t));\n\t}", "public function editar(){\n $sql = \"UPDATE especialidad SET Especialidad = ? WHERE Id_Especialidad = ?;\";\n //preparando la consulta\n $query = $this->conexion->prepare($sql);\n //bindeando los parametros de la consulta prepar\n $query->bindParam(1, $this->especialidad);\n $query->bindParam(2, $this->id_especialidad);\n //ejecutando\n $result = $query->execute();\n //retornando true si se ejecuto, false si no\n return $result;\n }", "public function queryEDIT($query,$wideView) {\n\t\tif (strlen(stristr($query,\"limit\"))>0) { \n\t\t\t$query=str_replace(\"limit\",\"LIMIT\",$query);\n\t\t\t$q=explode(\"LIMIT\",$query);\n\t\t\t//is it 'LIMIT x,y' or just 'LIMIT x'?\n\t\t\tif (strlen(stristr($q[1],\",\"))>0) { \n\t\t\t\t//It is 'LIMIT x,y'\n\t\t\t\t$sc=explode(\",\",$q[1]);\n\t\t\t\t$start=$sc[0];\n\t\t\t\t$count=$sc[1];\n\t\t\t\t$limit=\" LIMIT \" . $start . \", \" . $count;\n\t\t\t} else {\n\t\t\t\t//It is 'LIMIT x'\n\t\t\t\t$count=$q[1];\n\t\t\t\t$limit=\"LIMIT \" . $count;\n\t\t\t}\n\t\t\t$query=$q[0];\n\t\t} else {\n\t\t\t$limit = \" limit \" . ITEMS_PER_PAGE;\n\t\t}\n\t\tif ($this->is_mobile()==\"mobile\"){\n\t\t\t$x_m=\"mobile\";\n\t\t}\n\t\t$first=true;\n\t\t$table = '<style>';\n\t\t$table .= '.table_custom{padding:10px;margin:auto;left:0;right:0;margin:auto;color:#333; background:#fff; font-size:0.8em!Important; padding:10px; text-shadow:1px 1px 1px #fff} .table_header{color:#fff;background:#000;text-shadow:none} .table_row{background:aliceblue; color:#333; text-shadow:2px 2px 0px #fff} .table_row_alt{color:#000;background:#fff}';\n\t\t$table .= '</style>';\n\t\t$x=0; $first_row = true;\n\t\t$arr=explode(\"from \",$query); \n\t\t$t=explode(\" \",$arr[1])[0];\n\t\t$tab=$t;\n\t\t$t=\"'\" . $t . \"'\";\n\n\t\t$columnCount=$this->columnCount($_COOKIE['db_name'],$tab)*1;\n\t\tif (($columnCount>10) || ($wideView==\"1\")) {\n\t\t\treturn $this->queryEditWide($query . $limit);\n\t\t}\n\t\t$f = $this->strAB('select','from', $query);\n\t\t$f = explode(',', $f);\n\t\t$f = $this->_sql_arr($query . $limit);\n\t\t$rows = count($f);\n\t\t$header = \"<div class='' style='margin-top:100px'>\";\t\n\t\t$table .= $header;\n\t\tfor($c=0; $c <= $rows-1; $c++){\n\t\t\t$class = ($x==0) ? 'table_row' : 'table_row_alt';\n\t\t\t$x = ($x == 1) ? 0 : 1;\n\t\t\t$colCnt=0;\n\t\t\t$ctr=0;\n\t\t\t\t\tif ($first) {\n\t\t\t\t\t\t$first=false;\n\t\t\t\t\t\t$table .= \"<div class='row $class' style='height:50px' id='th'>\";\n\t\t\t\t\t\tforeach($f[$c] as $_key => $_value)\t{\n\t\t\t\t\t\t\t$colCnt++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$colCnt++;\n\t\t\t\t\t\t$width=\"\";\n\t\t\t\t\t\tif ($x_m !== \"mobile\") {\n\t\t\t\t\t\t\t$width=\"width: \" . ((1/$colCnt)*100) . '%';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tforeach($f[$c] as $_key => $_value)\t{\n\t\t\t\t\t\t\t\t$w=((1/$colCnt)*100) . '%';\n\t\t\t\t\t\t\t\tif ($x_m !== \"mobile\") {\n\t\t\t\t\t\t\t\t\t$table .= \"<div style='$width' class='col-md-1 table_header'>\" . strtoupper($_key) . \"</div>\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$h[]=$_key;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$c--;\n\t\t\t\t\t\t\tif ($x_m !== \"mobile\") $table .= \"<div style='$width' class='col-md-1 table_header'>DEL</div></div>\";\n\t\t\t\t\t\t\t$ctr=0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$table .= \"<div class='row $class' id='r$x'>\";\n\t\t\t\t\t\tforeach($f[$c] as $_key => $_value)\t{\n\t\t\t\t\t\t\tif ($ctr==0) {\n\t\t\t\t\t\t\t\t$id=$_value;\n\t\t\t\t\t\t\t\t$index=$_key;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$fname=\"'\".$h[$ctr].\"'\";\n\t\t\t\t\t\t\t$where=\"'\".$h[0].\"'\";\n\t\t\t\t\t\t\tif ($x_m == \"mobile\") {\n\t\t\t\t\t\t\t\t$table .= \"<div style='text-align:left;padding:20px;$width' onclick='setEdit(this,\\\"$_key|$id\\\")' onmouseover=\\\"mover(this)\\\" onmouseout=\\\"mout(this)\\\" class='col-md-1 table_cell'><div style='font-size:12px' contentEditable id='$_key|$id' onblur=\\\"update_fld($t,$fname,this,$where,$id)\\\"><span style='margin-left:0px'><b>\" . strtoupper($_key). '</b></span><br>' . ($_value) . \"</div></div>\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$table .= \"<div style='text-align:left;padding:20px;$width' onclick='setEdit(this,\\\"$_key|$id\\\")' onmouseover=\\\"mover(this)\\\" onmouseout=\\\"mout(this)\\\" class='col-md-1 table_cell'><div style='font-size:12px' contentEditable id='$_key|$id' onblur=\\\"update_fld($t,$fname,this,$where,$id)\\\">\" . ($_value) . \"</div></div>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$ctr++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$table .= \"<div style='$width' class='col-md-1' style='text-align:center;opacity:0.3'><a href=\\\"javascript:delTableRow('$index',$id)\\\"><img src='images/trash.png' style='width:50px;vertical-align:center;position:;margin-top:10px'></a></div></div>\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t$table .= \"</table>\";\n\t\t$table .= \"<script>\n\t\tvar table\n\t\tvar page=getCookie('page')\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\ttable='$tab'\n\t\t\t\t\t\tsetCookie('table',table)\n\t\t\t\t\t\tif (qs('selectCell')) {\n\t\t\t\t\t\t\tcellSelector(qs('selectCell'))\n\t\t\t\t\t\t\tdocument.getElementsByClassName('rangeslider__handle')[0].innerHTML='<div style=\\\"width:150px;position:absolute;margin-bottom:50px;height:60px;bottom:0;\\\">Page: <span style=\\\"padding:5px;background:cyan;border-radius:6px\\\">' + (getCookie('last_page')*1+1) + '</span><br><br><br></div>'\n\t\t\t\t\t\t}\n\t\t\t\t\t},1000)\n\t\t\t\t\tfunction cellSelector(divID) {\n\t\t\t\t\t\tsaveCSS=$$(divID).style.cssText\n\t\t\t\t\t\tconsole.log(saveCSS)\n\t\t\t\t\t\t$$(divID).style.background='white'\n\t\t\t\t\t\t$$(divID).style.border='5px solid red'\n\t\t\t\t\t\t$$(divID).contentEditable=true\n\t\t\t\t\t\t$$(divID).style.width='100%'\n\t\t\t\t\t\t$$(divID).style.margin='0'\n\t\t\t\t\t\t$$(divID).style.padding='10px'\n\t\t\t\t\t\t$$(divID).style.textShadow='none'\n\t\t\t\t\t\tsel(divID)\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfunction mover(obj) {\n\t\t\t\t\t\tobj.style.background='gold'\n\t\t\t\t\t}\n\t\t\t\t\tfunction mout(obj) {\n\t\t\t\t\t\tobj.style.background=''\n\t\t\t\t\t}\n\t\t\t\t\tfunction $$(obj) {\n\t\t\t\t\t\treturn (document.getElementById(obj))\n\t\t\t\t\t}\n\t\t\t\t\tfunction queryEDITCode() {\n\t\t\t\t\t\tvar url='php_preview.php'\n\t\t\t\t\t\tjconfirm({content: 'url:php_preview.php', 'useBootstrap':false,'boxWidth':'850px','title':'Code For queryEDIT','theme':'material'})\n\t\t\t\t\t}\n\n\t\t\t\t\tvar wl = window.location.href;\n\t\t\t\t\tvar mob = (window.location.href.indexOf('file://')>=0);\n\t\tvar wl = window.location.href;\n\t\tvar mob = (window.location.href.indexOf('file://')>=0);\";\n$table .='\n\t\tfunction qs(name, url) {\n\t\t\tif (!url) {\n\t\t\t url = window.location.href;\n\t\t\t}\n\t\t\tname = name.replace(/[\\[\\]]/g, \"\\\\$&\");\n\t\t\tvar regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|$)\"),\n\t\t\t\tresults = regex.exec(url);\n\t\t\tif (!results) return null;\n\t\t\tif (!results[2]) return \"\";\n\t\t\treturn decodeURIComponent(results[2].replace(/\\+/g, \" \"));\n\t\t}';\n$table .=\"\n\t\t\t\t\tfunction update_fld(a,b,c,d,e) {\n\t\t\t\t\t\tc.style.cssText=saveCSS\n\t\t\t\t\t\tc.style.paddingLeft='10px'\n\t\t\t\t\t\tvar sql='\" . HOST . \"/x_form_update.php?sql=update `' + a + '` set ' + b + '=\\\"' + c.textContent + '\\\" where ' + d + '=' + e + '&db_server='+getCookie('db_server')+'&db_name='+getCookie('db_name')+'&db_user='+getCookie('db_user')+'&db_password='+getCookie('db_password')\n\t\t\t\t//\t\tconsole.log(sql)\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\turl: sql,\n\t\t\t\t\t\t\tsuccess: function(msg){\n\t\t\t\t\t\t\t\tc.style.cssText=saveCSS\n\t\t\t\t\t\t\t\tc.style.paddingLeft='10px'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}\t\n\t\t\t\t\tfunction addRow() {\n\t\t\t\t\t\tvar table=getCookie('table')\n\t\t\t\t\t\tvar url = 'addTableRow.php?db_name='+getCookie('db_name')+'&table='+table\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\turl:url,\n\t\t\t\t\t\t\tsuccess:function(data){\n\t\t\t\t\t\t\t\tconsole.log(data)\n\t\t\t\t\t\t\t\tsetCookie('sel',data)\n\t\t\t\t\t\t\t\tvar url = 'SQLEdit.php?db_name='+getCookie('db_name')+'&table='+table+'&selectCell='+data+'&page='+getCookie('last_page')\n\t\t\t\t\t\t\t\tlocation.href=url\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t\tfunction delTableRow(index,id) {\n\t\t\t\t\t\tvar table=getCookie('table')\n\t\t\t\t\t\tvar url = 'delTableRow.php?db_name='+getCookie('db_name')+'&table='+table+'&index='+index+'&id='+id\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\turl:url,\n\t\t\t\t\t\t\tsuccess:function(data){\n\t\t\t\t\t\t\t\tconsole.log(data)\n\t\t\t\t\t\t\t\tsetCookie('sel',data)\n\t\t\t\t\t\t\t\tvar url = 'SQLEdit.php?db_name='+getCookie('db_name')+'&table='+table+'&page='+getCookie('page')\n\t\t\t\t\t\t\t\tlocation.href=url\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t\tvar saveCSS\n\t\t\t\t\tfunction setEdit(objC,divID) {\n\t\t\t\t\t\t// objC.style.background='white'\n\t\t\t\t\t\t// objC.style.border='none'\n\t\t\t\t\t\t// objC.style.border='none'\n\t\t\t\t\t\t// objC.style.margin='0'\n\t\t\t\t\t\t// objC.style.padding='0'\n\t\t\t\t\t\tsaveCSS=$$(divID).style.cssText\n\t\t\t\t\t\tconsole.log(saveCSS)\n\t\t\t\t\t\t$$(divID).style.background='white'\n\t\t\t\t\t\t$$(divID).style.border='5px solid red'\n\t\t\t\t\t\t$$(divID).contentEditable=true\n\t\t\t\t\t\t$$(divID).style.width='100%'\n\t\t\t\t\t\t$$(divID).style.margin='0'\n\t\t\t\t\t\t$$(divID).style.padding='0'\n\t\t\t\t\t\t$$(divID).style.textShadow='none'\n\t\t\t\t\t\tsel(divID)\n\t\t\t\t\t}\n\t\t\t\t\tfunction sel(node) {\n\t\t\t\t\t\tnode = document.getElementById(node);\n\t\t\t\t\t\tif (document.body.createTextRange) {\n\t\t\t\t\t\t\tconst range = document.body.createTextRange();\n\t\t\t\t\t\t\trange.moveToElementText(node);\n\t\t\t\t\t\t\trange.select();\n\t\t\t\t\t\t} else if (window.getSelection) {\n\t\t\t\t\t\t\tconst selection = window.getSelection();\n\t\t\t\t\t\t\tconst range = document.createRange();\n\t\t\t\t\t\t\trange.selectNodeContents(node);\n\t\t\t\t\t\t\tselection.removeAllRanges();\n\t\t\t\t\t\t\tselection.addRange(range);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconsole.warn('Could not select text in node: Unsupported browser.');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tvar pre\n\t\t\t\t\tfunction php_code(n,uri) {\n\t\t\t\t\t\tpre=$$('pre')\n\t\t\t\t\t\tpre.dataset.src=uri\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction edit(table) {\n\t\t\t\t\t\t//alert()\n\t\t\t\t\t\tsetCookie('table',table)\n\t\t\t\t\t\tvar url = 'editQuery.php?db_name='+getCookie('db_name')+'&table='+table\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\turl:url,\n\t\t\t\t\t\t\tsuccess:function(data){\n\t\t\t\t\t\t\t\t$$('wrapper').innerHTML=data\n\t\t\t\t\t\t\t\t$$('wrapper').style.marginTop='-150px!Important;'\n\t\t\t\t\t\t\t\tcellSelector(getCookie('sel'))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction setCookie(cname,cvalue)\t{\n\t\t\t\t\t\tvar d = new Date(); \n\t\t\t\t\t\td.setTime(d.getTime()+(1*24*60*60*1000));\n\t\t\t\t\t\tvar expires = 'expires='+d.toGMTString(); \n\t\t\t\t\t\tdocument.cookie = cname + '=' + cvalue + '; ' + expires; \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfunction getCookie(cname)\t{ \n\t\t\t\t\t\tvar name = cname + '='; \n\t\t\t\t\t\tvar ca = document.cookie.split(';'); \n\t\t\t\t\t\tfor(var i=0; i<ca.length; i++) { \n\t\t\t\t\t\t var c = ca[i].trim(); \n\t\t\t\t\t\t if (c.indexOf(name)==0) return c.substring(name.length,c.length); \n\t\t\t\t\t\t} \n\t\t\t\t\t\treturn ''; \n\t\t\t\t\t} \t\t\n\t\t\t\t</script>\";\n\t\t\treturn $table;\n\t}", "public function edit(Dateplanner $dateplanner)\n {\n //\n }", "function CustomEdit(&$values, $where, &$oldvalues, &$keys, &$error, $inline, &$pageObject)\n{\n\n\t\tcalendar_UpdateRecord($values, $oldvalues, $keys);\n\nreturn false;\n;\t\t\n}", "public function update(){\n $set_param_cols_vals = $this->iniParamvalues($this->data, \",\");\n // check for extra set_column\n $extra_set = ($this->custom !== NULL) ? $this->custom : NULL ;\n if($this->custom !== NULL){\n if($this->data !== NULL){\n if(!empty($this->where)){\n $this->custom = \",$this->custom\"; \n }\n else{\n $this->custom = 'WHERE '.$this->custom; \n }\n }\n else{\n if(empty($this->where)){\n $this->custom = 'WHERE '.$this->custom; \n }\n else{\n $this->custom = $this->custom; \n }\n } \n }\n // set where cols param values\n $set_param_where = $this->update_iniParamvalues($this->where, \"and\", \"WHERE\");\n\n $sql = \"UPDATE \".self::$table.\" SET $set_param_cols_vals $this->custom $set_param_where\";\n\n // prepare sql statement\n $this->query = $this->conn->prepare($sql);\n\n // bind cols_vals param values\n $this->update_cusBindparam($this->data);\n \n // bind where param values\n if(!empty($this->data)){\n $this->cusBindparam($this->where,count($this->data)+1); \n }\n else if(!empty($this->where)){\n $this->cusBindparam($this->where); \n }\n // execute query\n $execute = $this->query->execute();\n\n if(!$execute){\n return false;\n }\n else{\n return true;\n }\n }", "function doLimitedUpdate() {\n\t\t$sQuery = 'UPDATE ' . $this->_table() . ' SET ';\n\t\t$aParams = array();\n\t\t\n\t\t$blacklist = array(\n\t\t\t\"sPassword\" => 1,\n\t\t);\n\t\t\n\t\t$aParts = array(); // quick workaround to make the join less hurtful.\n\t\t\n\t\tforeach ($this->_aFieldToSelect as $attr => $column) {\n\t\t\tif (!array_key_exists($attr, $blacklist)) {\n\t\t\t\t$val = $this->$attr;\n\t\t\t\t$aParts[] = $column . ' = ?';\n\t\t\t\t$aParams[] = $val; \n\t\t\t} \n\t\t}\n\t\t$sQuery .= join(', ', $aParts);\n\t\t\n\t\t$sQuery .= ' WHERE id = ? ';\n\t\t$aParams[] = $this->getId();\n\t\t\n\t\t$res = DBUtil::runQuery(array($sQuery, $aParams));\n\n $group = sprintf(\"%s/%s\", get_class($this), 'id');\n $oCache =& KTCache::getSingleton();\n $oCache->remove($group, $this->iId);\n $this->clearCachedGroups();\n\n\t\treturn $res;\n\t}", "function editEntry($title, $date, $time_spent, $learned, $resources, $id)\n{\n //Including the access php file\n include(\"access.php\");\n\n //Writing query to update changes of entry to database\n $sql = 'UPDATE entries SET title = ?, date = ?, time_spent = ?, learned = ?, resources = ? WHERE id = ?';\n\n //Using a try-catch block to update entries\n try\n {\n $results = $db->prepare($sql);\n $results->bindValue(1,$title,PDO::PARAM_STR);\n $results->bindValue(2,$date,PDO::PARAM_STR);\n $results->bindValue(3,$time_spent,PDO::PARAM_STR);\n $results->bindValue(4,$learned,PDO::PARAM_STR);\n $results->bindValue(5,$resources,PDO::PARAM_STR);\n $results->bindValue(6,$id,PDO::PARAM_INT);\n $results->execute();\n } \n catch (Exception $e)\n {\n //Creating a error message\n echo \"Sorry!, Can't update entry.\" . $e->getMessage();\n exit;\n }\n\n //Returning results\n return $results;\n}", "abstract function allowEditAction();", "abstract protected function createEdit($dataToBind, $id = 0);", "function setLocationAllow($locid, $allow) {\n global $dbc;\n $query = \"UPDATE `locations` \"\n . \"SET `allownewevents` = ? \"\n . \"WHERE `locationid`= ?\";\n \n $stmt = mysqli_prepare($dbc, $query);\n mysqli_stmt_bind_param($stmt, 'ii', $allow, $locid);\n \n if (mysqli_stmt_execute($stmt)) {\n return true;\n } else {\n echo '<p>' . \"Execute failed: (\" . $stmt->errno . \") \" . $stmt->error . '</p>';\n return false;\n }\n}", "function update($where) {\n}", "function query() {\n // Don't filter if we're exposed and the checkbox isn't selected.\n\n if ((!empty($this->options['exposed'])) && empty($this->value)) {\n return;\n }\n if (!$this->options['exposed']) {\n $value = $this->options['uid'];\n }\n else {\n $value = $this->validated_exposed_input[0];\n }\n\n\n $this->ensure_my_table();\n\n\n $table = 'scheduling_appointments';\n //$field1 = $this->query->add_field($table, 'nid');\n //$field2 = $this->query->add_field($table, 'title');\n\n\n //$field1 = $table . '.nid';\n //$field2 = $table . '.title';\n if ($value != '') {\n $this->query->add_where(\n $this->options['group'],\n db_and()\n ->condition($table . '.uid', $value, '=')\n );\n }\n }", "public function modelDoEdit(){\n\t\t\t$maphongban = isset($_GET[\"maphongban\"])&&is_numeric($_GET[\"maphongban\"])?$_GET[\"maphongban\"]:0;\n\t\t\t$tenphongban = $_POST[\"tenphongban\"];\n\t\t\t//lay bien ket noi de thao tac csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//chuan bi truy van\n\t\t\t$query = $conn->prepare(\"update phongban set tenphongban=:ten where maphongban=:ma\");\n\t\t\t$query->execute(array(\"ten\"=>$tenphongban,\"ma\"=>$maphongban));\n\t\t}", "function updatePrivate($id, $private)\r\n{\r\n\tglobal $mysqli,$db_table_prefix;\r\n\t$stmt = $mysqli->prepare(\"UPDATE \".$db_table_prefix.\"pages\r\n\t\tSET \r\n\t\tprivate = ?\r\n\t\tWHERE\r\n\t\tid = ?\");\r\n\t$stmt->bind_param(\"ii\", $private, $id);\r\n\t$result = $stmt->execute();\r\n\t$stmt->close();\t\r\n\treturn $result;\t\r\n}", "public function MetaEditable() {\n\t\t\treturn true;\n\t\t}", "function accesrestreint_documents_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('IN','$primary','('.sql_get_select('zzz.id_document','spip_documents_liens as zzz',\r\n\tarray(array('OR',\r\n\t\tarray('OR',\r\n\t\t\tarray('AND','zzz.objet=\\'rubrique\\'',\".accesrestreint_rubriques_accessibles_where('zzz.id_objet','NOT',$_publique).\"),\r\n\t\t\tarray('AND','zzz.objet=\\'article\\'',\".accesrestreint_articles_accessibles_where('zzz.id_objet',$_publique).\")\r\n\t\t),\r\n\t\t\tarray('AND','zzz.objet=\\'breve\\'',\".accesrestreint_breves_accessibles_where('zzz.id_objet',$_publique).\")\r\n\t))\"\r\n\t.\",'','','','',\\$connect).')')\";\r\n\t/*return \"array('IN','$primary',array('SUBSELECT','id_document','spip_documents_liens',\r\n\tarray(array('OR',\r\n\t\tarray('OR',\r\n\t\t\tarray('AND','objet=\\'rubrique\\'',\".accesrestreint_rubriques_accessibles_where('id_objet').\"),\r\n\t\t\tarray('AND','objet=\\'article\\'',\".accesrestreint_articles_accessibles_where('id_objet').\")\r\n\t\t),\r\n\t\t\tarray('AND','objet=\\'breve\\'',\".accesrestreint_breves_accessibles_where('id_objet').\")\r\n\t))\r\n\t))\";*/\r\n}", "public function edit()\n\t{\n\t\t\n\t}", "public function edit(Quote $quote)\n {\n //\n }", "public function edit(Quote $quote)\n {\n //\n }", "function edit ()\n {\n $sql= \"UPDATE acceso SET id_acceso = '{$this->id_acceso}' , id_rol3 = '{$this->id_rol3}' , nombre ='{$this->nombre}' , password ='{$this->password}' , email= '{$this->email}', telefono ='{$this->telefono}', id_explotacion3 = '{$this->id_explotacion3}' WHERE id_acceso = '{$this->id_acceso}'\";\n \n echo $sql;\n \n $query=$this->db->query($sql);\n \n return $query;\n }", "public function onEdit($param)\n {\n try\n {\n if(isset($param['key']))\n {\n $key = $param['key'];\n\n TTransaction::open($this->database);\n $class = $this->activeRecord;\n $object = new $class($key);\n\n $this->form->setData($object);\n\n TTransaction::close();\n\n return $object;\n }\n else\n {\n $this->form->clear();\n }\n } catch (Exception $e)\n {\n new TMessage('error', $e->getMessage());\n TTransaction::rollback();\n }\n }", "function modifier_article($bdd, $id, $texte, $titre) {\n $requete = $bdd->prepare(\"UPDATE articles SET texte = :texte , titre = :titre WHERE id= :id_article_modifier\"); // On prépare la requête de mise à jour de la table\n $requete->bindValue(':texte', $_POST['texte_article'], PDO::PARAM_STR);\n $requete->bindValue(':titre', $_POST['titre_article'], PDO::PARAM_STR);\n $requete->bindValue(':id_article_modifier', $_POST['id_article_modifier'], PDO::PARAM_INT);\n $requete->execute(); // On execute la requete \n}", "public function edit( )\r\n {\r\n //\r\n }", "public function edit($room){\r\n $sql=\"UPDATE salas SET nombre_sala=:name,is3d=:is3D,capacidad=:capacity WHERE id_sala=:roomId\";\r\n $parameters[\"name\"]=$room->getName();\r\n $parameters[\"capacity\"]=$room->getCapacity();\r\n $parameters[\"is3D\"]=$room->getIs3D();\r\n $parameters[\"roomId\"]=$room->getId(); \r\n try\r\n {\r\n $this->connection = Connection::getInstance();\r\n return $this->connection->ExecuteNonQuery($sql, $parameters);\r\n }\r\n catch(PDOException $ex)\r\n {\r\n throw $ex;\r\n }\r\n }", "function mass_edit() {\n \tif ($this->getControllerName() == 'people') {\n $this->mass_edit_objects = Users::findByIds($this->request->post('selected_item_ids'), STATE_ARCHIVED, $this->logged_user->getMinVisibility());\n } // if\n\n parent::mass_edit();\n }" ]
[ "0.64965355", "0.61671996", "0.61587083", "0.6102476", "0.6025041", "0.5967622", "0.58838236", "0.57766664", "0.5710694", "0.5706289", "0.5664719", "0.5577722", "0.5577722", "0.55641896", "0.55317223", "0.5508274", "0.54628587", "0.52885413", "0.52797174", "0.5232665", "0.52182865", "0.5211997", "0.520645", "0.5199485", "0.51865566", "0.5136378", "0.51193947", "0.51039827", "0.5074701", "0.5072821", "0.506743", "0.5045868", "0.5030205", "0.5030146", "0.5001028", "0.49915278", "0.49903384", "0.49747112", "0.4973196", "0.4973196", "0.4971201", "0.4946238", "0.49356622", "0.4926923", "0.48975918", "0.4893497", "0.48927966", "0.48899245", "0.48622218", "0.4851547", "0.48513532", "0.48328182", "0.48246077", "0.48232725", "0.4821967", "0.48211053", "0.48178548", "0.48174572", "0.4814184", "0.48090905", "0.4803393", "0.47981885", "0.47838527", "0.47787085", "0.47666365", "0.47593075", "0.4756595", "0.47449204", "0.47442833", "0.4743898", "0.4740228", "0.47377566", "0.47377348", "0.47332644", "0.47252676", "0.47245002", "0.4724341", "0.4717824", "0.4716369", "0.47100103", "0.47089368", "0.47052583", "0.47029838", "0.47022665", "0.46938658", "0.46908548", "0.46814904", "0.4673603", "0.4669327", "0.4667861", "0.46651474", "0.46635485", "0.46635485", "0.4663383", "0.46625704", "0.46598226", "0.46593028", "0.4655803", "0.46550852" ]
0.782693
1
Check if there is a personalized product on car, since it can only have 1 per order
public function addCustomization($id, Request $request) { if ($request->session()->get("customization")) { return redirect()->route('home.index'); } $request->session()->put("customization", $id); $request->session()->increment("amount"); return redirect()->route('cart.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAlreadyPurchasedProduct()\n {\n // If is Guest then hide the review form\n if (!$this->getCustomerId()) {\n return false;\n }\n try {\n $product = $this->getProductInfo();\n $orders = $this->getCustomerOrders();\n foreach ($orders as $order) {\n // Get all visible items in the order\n /** @var $items \\Magento\\Sales\\Api\\Data\\OrderItemInterface[] **/\n $items = $order->getAllVisibleItems();\n // Loop all items\n foreach ($items as $item) {\n // Check whether the current product exist in the order.\n if ($item->getProductId() == $product->getId()) {\n return true;\n }\n }\n }\n return false;\n } catch (\\Exception $e) {\n return false;\n }\n }", "public function hasProduct(){\n return $this->_has(1);\n }", "public function hasProduct(){\n return $this->_has(1);\n }", "public function hasProduct(){\n return $this->_has(1);\n }", "public function hasProduct(){\n return $this->_has(1);\n }", "public function hasProduct(){\n return $this->_has(1);\n }", "protected abstract function isSingleProduct();", "public function check_cart_has_physical_product()\n {\n $cart_items = $this->session_cart_items;\n if (!empty($cart_items)) {\n foreach ($cart_items as $cart_item) {\n if ($cart_item->product_type == 'physical') {\n return true;\n }\n }\n }\n return false;\n }", "private function getExistProductRecount() {\n return false;\n }", "function IsProduct() {\r\n\t\treturn true;\r\n\t}", "public function productExist()\n {\n if ($this->product) {\n $ret = true;\n } else {\n $ret = false;\n }\n \n return $ret;\n }", "public function hasProduct()\n {\n return $this->Product !== null;\n }", "public function isProduct()\n {\n return $this -> name == config('constant.categorytype.product_id');\n }", "private function product() {\n if ($this->is_logged_in()){\n return true; //check if user had been logged in!!!\n }else{\n exit;\n }\n }", "public function canPersonalize($product)\n {\n //var_dump($product->getData());\n \n return (bool)$product->getData('personalization_allowed');\n }", "public function canAddToCart($product)\n {\n return (!$product->getData('personalization_allowed') || !$product->getData('personalization_required'));\n }", "private function checkProducts()\n {\n $products = Product::with('prices')->get();\n $errors = [];\n foreach ($products as $product) {\n $basePrice = $product->prices->where('currency_id', Currency::defaultCurrency()->id)->first();\n if ( ! $basePrice) {\n $errors[] = sprintf(\n 'The product \"%s (%s)\" has no price set for your default currency.',\n $product->name,\n $product->id\n );\n }\n }\n\n return count($errors) > 0 ? implode(\"\\n\", $errors) : true;\n }", "public function isApplicable() : bool{\r\n $items = $this->order->getOrderItems();\r\n foreach($items as $item){\r\n // checks every item for order if the quantity is >= $products_nr\r\n if($item[\"quantity\"] >= $this->products_nr){\r\n $tmp_item = $this->order->getProductById($item[\"product-id\"]);\r\n\r\n // checks if product category equals $category_id \r\n if((int)$tmp_item[\"category\"] === $this->category_id){\r\n $tmp_item[\"qty\"] = $item[\"quantity\"];\r\n\r\n // saves the discounted items in a temporary array\r\n $this->items_matching[] = $tmp_item;\r\n\r\n // stores the total cost of the discount\r\n $this->discounted_value += $tmp_item[\"price\"] * floor($item[\"quantity\"] / $this->products_nr);\r\n }\r\n }\r\n }\r\n\r\n if($this->discounted_value > 0){\r\n $this->is_applicable = true;\r\n $this->calculateDiscount();\r\n return true; \r\n }\r\n return false;\r\n }", "public function hasCreditProduct(){\n foreach($this->cart->getQuote()->getAllItems() as $item){\n if($item->getProductType() == \\Vnecoms\\Credit\\Model\\Product\\Type\\Credit::TYPE_CODE)\n return true;\n }\n \n return false;\n }", "public function hasProductInfos(){\n return $this->_has(1);\n }", "public function check_cart_has_digital_product()\n {\n $cart_items = $this->session_cart_items;\n if (!empty($cart_items)) {\n foreach ($cart_items as $cart_item) {\n if ($cart_item->product_type == 'digital') {\n return true;\n }\n }\n }\n return false;\n }", "function VariationOrProductIsInCart() {\r\n\t\treturn ($this->owner->IsInCart() || $this->VariationIsInCart());\r\n\t}", "function order_contains_equal_plates_and_engravings($order) {\n if (!empty($order->commerce_line_items)) {\n $order_wrapper = entity_metadata_wrapper('commerce_order', $order);\n $plates = 0;\n $engravings = 0;\n\n foreach ($order_wrapper->commerce_line_items as $line_item_wrapper) {\n if (!empty($line_item_wrapper->value()->commerce_product) && $line_item_wrapper->commerce_product->value()->type == 'plates') {\n $plates++;\n }\n\n if ($line_item_wrapper->value()->type == 'engraving') {\n $engravings++;\n }\n }\n\n // If there is an equal number\n if (($engravings + $plates == 0) || ($engravings == $plates)) {\n return TRUE;\n }\n }\n\n return FALSE;\n}", "function is_product() {\n\t\treturn is_singular( array( 'product' ) );\n\t}", "public function containsProduct(Product $product): bool;", "function check_product_in_the_cart($product){\n if (auth()->check()){\n $cart = Cart::where('user_id', auth()->user()->id)->where('product_id', $product->id)->first();\n }else{\n if(session()->has('carts')){\n $cart = key_exists($product->uuid, session('carts'));\n }else{\n $cart = false;\n }\n }\n\n if ($cart){\n return true;\n }else{\n return false;\n }\n}", "private function validateAvailableProduct() {\n\n\t\t$studio_data = &$this->session->data['studio_data'][$this->request->post['price_studio_id']]; //make it short\n\n\t\t//if price_id_product is not empty\n\t\tif (!isset($studio_data['id_product'])) {\n\t\t\t$this->error['warning'] = $this->language->get('error_product');\n\t\t\t$this->error['hide_matrix'] = true;\n\t\t///if product exists\n\t\t} elseif (!$this->model_opentshirts_product->getTotalProductsByID($studio_data['id_product'])) {\n\t\t\t$this->error['warning'] = $this->language->get('error_product');\n\t\t\t$this->error['hide_matrix'] = true;\n\t\t//if product price is setted up\n\t\t}else if ($this->model_opentshirts_price_product->getMinQuantity($studio_data['id_product'])===false) {\n\t\t\t$this->error['warning'] = $this->language->get('error_not_available');\n\t\t\t$this->error['hide_matrix'] = true;\n\t\t}\n\n\t\tif (!$this->error) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function wordimpress_is_conditional_product_in_cart( $product_id ) {\n //Check to see if user has product in cart\n global $woocommerce;\n \n //flag no book in cart\n $book_in_cart = false;\n \n foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) {\n $_product = $values['data'];\n \n if ( in_array($_product->id, $product_id) ) {\n //book is in cart!\n $book_in_cart = true;\n \n }\n }\n \n return $book_in_cart;\n \n}", "public function isIncludedInPrice();", "function _check_product_in_db($product){\n if (in_array($product, $this->db)){\n // echo 'Product already in the database.';\n return True;\n }\n // echo 'Product not in the database.';\n return False;\n }", "public function check_duplicate_product()\n\t{\n\t\t$key=$this->input->post('keyword');\n\t\t$check=$this->db->query(\"SELECT `pr_name` from `products` where `pr_name`='\".$key.\"' AND `pr_deleted`='0'\");\n\t\tif($check->num_rows()>0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function hasRealPrice(){\n return $this->_has(21);\n }", "public function checkProductsList() {\n if (!is_array($this->products) || !count($this->products)) {\n $this->logger->info(\"No \".$this->type.\" found in DST.\");\n }\n $this->logger->info(\"Checking products List\");\n foreach ($this->products as $sku => $product) {\n $errors = $this->pimhelper->check_one_reference($this->type, $product->getData());\n if ($errors > 0) {\n $this->logger->info($errors.\" Fields are missing in product : \".$sku);\n die;\n }\n }\n $this->logger->info(\"Fields were created in every products\");\n return true;\n }", "function check_if_product_was_bought($product_id,$purchase_id)\n\t{\n\t\t\n\t\t$sql = \"SELECT p_details_id FROM cane_purchase_details WHERE purchase_id = ? AND p_product_id= ? \";\n\t\t\n \t\t$query = $this->db->query($sql,array( $purchase_id, $product_id ));\t\t\n\n\t\tif ($query->num_rows() > 0)\n\t\t{ \n\t\t\treturn true;\n\t\t} \n\t\telse \n\t\t{ \n\t\t\techo false; \n\t\t}\n\n\n\t}", "function harvest_in_order( $order ) {\n\n\t$items = $order->get_items(); \n\n\tforeach ( $items as $item_id => $item ) {\n\n\t\tif ( $item->get_product_id() === 37592 ) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\n\t}\n\t\n\treturn false;\n\n}", "public function isNewPossible()\n {\n // Check if ProductsModels exist\n $productmodels = $this->em->getRepository('ValentinStockBundle:Material')->countRecords();\n\n return ($productmodels > 0) ? true : false;\n }", "public function isProductPage();", "public function isProductNotAlreadyInTheCart($order_id,$product_id){\n $model = new OrderHasProducts;\n return $model->isProductNotAlreadyInTheCart($order_id,$product_id);\n }", "public function hasPrice(){\n return $this->_has(12);\n }", "function is_carton() {\n\treturn ( is_shop() || is_product_category() || is_product_tag() || is_product() ) ? true : false;\n}", "function VariationIsInCart() {\r\n\t\t$variations = $this->owner->Variations();\r\n\t\tif($variations) {\r\n\t\t\tforeach($variations as $variation) {\r\n\t\t\t\tif($variation->OrderItem() && $variation->OrderItem()->Quantity > 0) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function hasPrice(){\n return $this->_has(5);\n }", "public function hasPurify(){\n return $this->_has(18);\n }", "function userHasPurchashedProduct ($productID) {\r\n //if user is logged in\r\n if (checkLogin()) {\r\n $userid = getUserID();\r\n //get the times this user has purchased this product\r\n $sql = \"SELECT * FROM orders o join orderlines ol ON o.OrderID = ol.OrderID WHERE ol.StockItemID = $productID AND o.CustomerID = $userid\";\r\n //execute the query\r\n $stmt = runQuery($sql);\r\n //check if this user has purchased the product 1 or more times\r\n if ($stmt->rowCount() > 0) {\r\n //if so return true\r\n return true;\r\n }\r\n }\r\n //return false by default\r\n return false;\r\n}", "public function authorize()\n {\n return Cart::load()->getTotalQuantity() > 1;\n }", "function jetpack_is_product() {\n\treturn ( function_exists( 'is_product' ) ) ? is_product() : false;\n}", "private function checkIfExistsProducts()\n {\n if (isset($_COOKIE['cart-data'])) {\n $productCookie = htmlspecialchars($_COOKIE['cart-data']);\n $products = trim($productCookie, '|');\n $products = explode('|', $products);\n foreach ($products as $product) {\n if (!Product::find($product)) {\n $productCookie = str_replace('|' . $product . '|', '|', $productCookie);\n }\n }\n setcookie('cart-data', $productCookie, time() + (86400 * 365), \"/\");\n }\n }", "private function isProductCreatable(ProductDto $product)\n {\n return !empty($product->name)\n && !empty($product->categories);\n }", "public function isIncludedInDisplayPrice();", "public function isGoodsInShopcart()\n\t{\n\t\treturn !!$this->count();\n\t}", "function product_exists($pid){\n\t$cart = $_SESSION['custCart_ID']; // the SESSION and COOKIE customer cart items array\n\t$pid=intval($pid);\n\t$max=count($_SESSION[$cart]);\n\t$flag=0;\n\tfor($i=0;$i<$max;$i++){\n\t\tif($pid==$_SESSION[$cart][$i]['bookid']){\n\t\t\t$flag=1;\n\t\t\t// break;\n\t\t}\n\t}\n\treturn $flag;\n}", "function hasModel(){ return (tep_not_null($this->productInfo['products_model'])); }", "public function hasQuantity(): bool;", "public function hasProducenum(){\n return $this->_has(35);\n }", "public function isVirtualProductAvailable($order)\n {\n return $this->helper->isVirtualProductAvailable($order);\n }", "function tep_has_product_attributes($products_id) {\n $attributes_query = tep_db_query(\"select count(*) as count from \" . TABLE_PRODUCTS_ATTRIBUTES . \" where products_id = '\" . $products_id . \"'\");\n $attributes = tep_db_fetch_array($attributes_query);\n\n if ($attributes['count'] > 0) {\n return true;\n } else {\n return false;\n }\n}", "private function checkProduct($id)\n {\n return $this->productList->getProduct($id) ? true : false;\n }", "public function checkProductExistsByName()\n {\n $category = $this::find()\n ->select('id')\n ->where(['name' => $this->name])\n ->one();\n if($category !== NULL) {\n return true;\n }\n return false;\n }", "function order_contains_product_type($order, $type) {\n if (!empty($order->commerce_line_items)) {\n $order_wrapper = entity_metadata_wrapper('commerce_order', $order);\n foreach ($order_wrapper->commerce_line_items as $line_item_wrapper) {\n if (!empty($line_item_wrapper->commerce_product)) {\n if ($line_item_wrapper->commerce_product->type->value() == trim($type)) {\n return TRUE;\n }\n }\n }\n }\n return FALSE;\n}", "function checkAvailableProduct($prodNum )\n\t\t{\n\t\t\t$db = dbConnect::getInstance();\n \t\t $mysqli = $db->getConnection();\n\t\t\t$query = \" select * from products_tb where id= '\".$prodNum.\"' and status ='1' \"; \n $res = $mysqli->query($query) or die (mysqli_error($mysqli));\n\t\t\tif(mysqli_num_rows($res) > 0)\n\t\t\t{\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function is_licensed( TPM_Product $product ) {\n\n\t\t$exists = false;\n\n\t\t/**\n\t\t * @var $license_id int\n\t\t * @var $license TPM_License\n\t\t */\n\t\tforeach ( TPM_License::get_saved_licenses() as $license_id => $license ) {\n\t\t\tif ( $license->has_tag( $product->get_tag() ) ) {\n\t\t\t\t$exists = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $exists;\n\t}", "public function is_purchased( TPM_Product $product ) {\n\n\t\t//check old licenses\n\t\t$thrive_license = get_option( 'thrive_license', array() );\n\t\tif ( in_array( 'all', $thrive_license, false ) || in_array( $product->get_tag(), $thrive_license, false ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t/** @var $license TPM_License */\n\t\tforeach ( $this->get_ttw_license_instances() as $id => $license ) {\n\t\t\tif ( $license->has_tag( $product->get_tag() ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "function validProduct($dbc, $productId, $variationId = false)\n{\n\t/* Checks to make sure referenced product exists in the database */\n\tif(!$variationId)\n\t{\n\t\t$productId = cleanString($dbc, $productId);\n\t\t$q = \"SELECT ID FROM PRODUCTS WHERE ID = '$productId'\";\n\t\t$r = mysqli_query($dbc, $q);\n\t\t\n\t\tif(mysqli_num_rows($r) == 1)\n\t\t{\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}elseif($variationId)//End check if valid product id\n\t\t{\n\t\t\t$variationId = cleanString($dbc, $variationId);\n\t\t\t$q = \"SELECT ID FROM VARIATIONSET WHERE ID = '$variationId'\";\n\t\t\t$r = mysqli_query($dbc, $q);\n\t\t\t\n\t\t\tif(mysqli_num_rows($r) == 1)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}//End if $variationId set, check if that exists\n\t\n}", "public function isIngredient()\n {\n $productModel = new ProductModel();\n $ing = false;\n $datas = $productModel->isIngredient($this->id_products);\n if (count($datas) > 0) {\n $ing = true;\n }\n return $ing;\n }", "public function product_manufacturer_check($product_id,$manufacturer_id)\n\t{\n\t $this->db->select('*');\n\t $this->db->from('product_information');\n\t $this->db->where('product_id',$product_id);\n\t $this->db->where('manufacturer_id',$manufacturer_id);\t\n\t $query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn true;\t\n\t\t}\n\t\treturn 0;\n\t}", "public function canItemsAddToCart()\n {\n foreach ($this->getItems() as $item) {\n if (!$item->isComposite() && $item->isSaleable() && !$item->getRequiredOptions()) {\n return true;\n }\n }\n return false;\n }", "public function checkProductExist($data)\n {\n return $this->db->get_where('products', array('pro_name' => $data['pro_name']));\n }", "function wac_only_current_vendor_view($product_id){\n\tif(wac_is_vendor()){\n\t\t$cUID = get_current_user_id();\n\t\t$vendor_data = get_wcmp_product_vendors($product_id);\n\t\tif($vendor_data->id == $cUID){\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "public function is_needed() {\n\t\treturn $this->context->site_represents === 'company';\n\t}", "public function markCartsAdditionalProducts(Order $draftOrder): bool;", "function is_on_sale() {\n\t\n\t\tif ( $this->has_child() ) :\n\t\t\n\t\t\t$onsale = false;\n\t\t\t\n\t\t\tforeach ($this->children as $child) :\n\t\t\t\tif ( isset($child->product->data['sale_price']) && $child->product->data['sale_price']==$child->product->price ) :\n\t\t\t\t\treturn true;\n\t\t\t\tendif;\n\t\t\tendforeach;\n\t\t\t\n\t\telse :\n\t\t\n\t\t\tif ( isset($this->data['sale_price']) && $this->data['sale_price']==$this->price ) :\n\t\t\t\treturn true;\n\t\t\tendif;\n\t\t\n\t\tendif;\n\n\t\treturn false;\n\t}", "public function verifyProduct($product): bool\r\n {\r\n $prod = $this->getProductById($product[\"product-id\"]);\r\n if ($prod[\"price\"] == $product[\"unit-price\"] &&\r\n \\Mpopa\\Helper::compareFloats($product[\"total\"], ($prod[\"price\"] * $product[\"quantity\"]))\r\n ) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static function checkForNearProducts() {\n $cartDeliveryPostcodeSessionKey = \\Config::get('appConstants.user_delivery_postcode_session_key');\n $landingPagePostcodeSessionKey = \\Config::get('appConstants.user_landing_postcode_session_key');\n $landingPostcode = session()->get($landingPagePostcodeSessionKey, '');\n $cartPostcode = session()->get($cartDeliveryPostcodeSessionKey, '');\n if (!empty($landingPostcode)\n || !empty($cartPostcode)\n ) {\n return true;\n }\n return false;\n }", "public function hasActiveCart();", "public function isDetailedProductInfoNeeded() \n {\n $blForcedByPaymentMethod = in_array(\n $this->oxorder__oxpaymenttype->value,\n array(\n 'fcpobillsafe',\n 'fcpoklarna',\n 'fcpoklarna_invoice',\n 'fcpoklarna_installments',\n 'fcpoklarna_directdebit',\n 'fcpo_secinvoice',\n 'fcporp_bill',\n 'fcporp_debitnote',\n 'fcporp_installment',\n 'fcpopl_secinvoice',\n 'fcpopl_secinstallment',\n 'fcpopl_secdebitnote',\n )\n );\n\n if ($blForcedByPaymentMethod) return true;\n\n $oConfig = $this->_oFcpoHelper->fcpoGetConfig();\n $blSendArticleList = $oConfig->getConfigParam('blFCPOSendArticlelist');\n\n return $blSendArticleList;\n }", "public function validateHasAppartements() {\n return $this->cart->items()->where( 'class', Appartement::class )->count() > 0;\n }", "public function checkProduct($id, $type = null)\n {\n $product = Pi::model('product', 'shop')->find($id, 'id');\n if (empty($product) || $product['status'] != 1) {\n return false;\n }\n return true;\n }", "public static function is_item_special( $product_id ){\n $product = wc_get_product( $product_id );\n return $product && $product->get_meta( '_only_item_in_cart' ) == 'yes' ? true : false;\n }", "public function testProductHasMealVoucher()\n {\n $foundProduct = new ProductEntity();\n $foundProduct->setId('ID-123');\n $foundProduct->setCustomFields([\n 'mollie_payments_product_voucher_type' => VoucherType::TYPE_MEAL,\n ]);\n\n # build a repo that would return nothing...just in case ;)\n $fakeRepoProducts = new FakeProductRepository(null, $foundProduct);\n\n $item = $this->buildProductLineItem('10001');\n\n $vouchers = new VoucherService($fakeRepoProducts, new NullLogger());\n $voucherType = $vouchers->getFinalVoucherType($item, $this->salesChannelContext);\n\n $this->assertEquals(VoucherType::TYPE_MEAL, $voucherType);\n }", "public function hasPrice()\n {\n return $this->amount_month || $this->amount_year;\n }", "public function isProposition()\n {\n $u = $this->user()->first();\n\n return auth()->user()->id != $u->id;\n }", "public static function checkproduct($refp){\n $reference =$refp;\n //codigo para verificar referencia \n $sqlid_product = \"select * from \"._DB_PREFIX_.\"product where reference = '\".$reference.\"'\";\n $rowsidp = 0;\n $rowsidp = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sqlid_product);\n\n if(count($rowsidp) > 0 ){ // comprobamos si tiene lineas\n $pexiste = true; // Si existe\n }else{\n $pexiste = false; // No existe\n }\n return $pexiste; // devolvemos que existe o no existe\n }", "function stockremove_check_license_use()\n {\n $q = $this->db->where('action_type', 'install')\n ->where('license', $this->input->post('license_num'))\n ->where('company_id', $this->session->userdata('company_id'))\n ->limit(1)->get('software');\n\n if ($q->num_rows == 1)\n {\n return true;\n\n } else {\n\n return false;\n }\n\n }", "function product_novendor()\n\t{\n\t\tglobal $log;\n\t\t$log->debug(\"Entering product_novendor() method ...\");\n\t\t$query = \"SELECT ec_products.productname, ec_products.deleted\n\t\t\tFROM ec_products\n\t\t\tWHERE ec_products.deleted = 0\n\t\t\tAND ec_products.vendor_id is NULL\";\n\t\t$result=$this->db->query($query);\n\t\t$log->debug(\"Exiting product_novendor method ...\");\n\t\treturn $this->db->num_rows($result);\n\t}", "function is_publishable($product_id){\n $by = json_decode($this->db->get_where('product',array('product_id'=>$product_id))->row()->added_by,true);\n if($by['type'] == 'admin'){\n return true;\n } else if($by['type'] == 'vendor'){\n $vendor_status = $this->db->get_where('vendor',array('vendor_id'=>$by['id']))->row()->status;\n if ($vendor_status == 'approved') {\n return true;\n } else {\n return false;\n }\n }\n }", "public function hasShoporder(){\n return $this->_has(27);\n }", "public static function check_cart_for_specials() {\n\n $contains_special = false;\n\n foreach ( WC()->cart->get_cart() as $cart_item ) {\n if ( self::is_item_special( $cart_item['data'] ) ) {\n $contains_special = true;\n break;\n }\n }\n\n return $contains_special;\n }", "public function isAddingThisProductToCartASuccess($order_id,$product_id,$quantity_of_purchase,$amount_saved_on_purchase,$prevailing_retail_selling_price,$cobuy_member_selling_price,$start_price_validity_period,$end_price_validity_period,$is_escrowed,$is_escrow_accepted){\n \n $model = new OrderHasProducts;\n return $model->isAddingThisProductToCartASuccess($order_id,$product_id,$quantity_of_purchase,$amount_saved_on_purchase,$prevailing_retail_selling_price,$cobuy_member_selling_price,$start_price_validity_period,$end_price_validity_period,$is_escrowed,$is_escrow_accepted);\n }", "function ppom_pro_is_installed() {\n\t\n\t$return = false;\n\t \n if( class_exists('PPOM_PRO') ) \n $return = true;\n return $return;\n}", "function tep_has_product_attributes($products_id) {\n\t$attributes_query = tep_db_query(\"select count(*) as count from \" . TABLE_PRODUCTS_ATTRIBUTES . \" where products_id = '\" . (int)$products_id . \"'\");\n\t$attributes = tep_db_fetch_array($attributes_query);\n\tif ($attributes['count'] > 0) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "function is_in_cart($conditions){\n\t\tunset($conditions['quantity']);\n\t\t// odpojim modely, ktere nepotrebuju\n\t\t$this->unbindModel(\n\t\t\tarray(\n\t\t\t\t'belongsTo' => array('Cart', 'Product')\n\t\t\t)\n\t\t);\n\n\t\t// vyhledam si produkt\n\t\t$data = $this->find($conditions);\n\n\t\t// pokud se mi podarilo nacist jej,\n\t\t// vratim jeho id, ktere se pouzije\n\t\t// pro upravu quantity\n\t\tif ( !empty($data) ){\n\t\t\treturn $data['CartsProduct']['id'];\n\t\t}\n\n\t\t// produkt neexistuje\n\t\treturn false;\n\t}", "function is_wished($product_id)\n {\n if ($this->session->userdata('user_login') == 'yes') {\n $user = $this->session->userdata('user_id');\n //$wished = array('0');\n if ($this->get_type_name_by_id('user', $user, 'wishlist') !== '') {\n $wished = json_decode($this->get_type_name_by_id('user', $user, 'wishlist'));\n } else {\n $wished = array(\n '0'\n );\n }\n if (in_array($product_id, $wished)) {\n return 'yes';\n } else {\n return 'no';\n }\n } else {\n return 'no';\n }\n }", "function check_account_products($account, $product)\n{\n $account_data = node_load($account);\n $children = array_keys(taxonomy_get_children($product));\n foreach ($account_data->field_products['und'] as $key => $value) {\n foreach ($value as $product_id => $product_value) {\n if (in_array($product_value, $children)) {\n return TRUE;\n }\n }\n }\n return FALSE;\n}", "public function isUsableProduct(Mage_Catalog_Model_Product $product)\n {\n $stockItem = $product->getStockItem();\n if(!isset($stockItem))\n {\n return false;\n }\n if($this->isValidProductType($product) && $stockItem->getIsInStock())\n {\n return true;\n }\n \n }", "public function isFromVendor(): bool;", "private function isProductInNotifiyList($productId) {\r\n\r\n $this->bcc = array();\r\n $mailStaus = 'NO';\r\n\r\n $collection = Mage::getModel('outofstocknotification/outofstocknotification')->getCollection()\r\n ->addFieldToFilter('product_id', $productId)\r\n ->addFieldToFilter('status', '1')\r\n ->addFieldToFilter('mailsend_status', $mailStaus);\r\n $collection->getSelect()->group(array(\"email_id\"));\r\n $isArray = $collection->getSize();\r\n if ($isArray) {\r\n foreach ($collection as $productlist) {\r\n $this->bcc[] = $productlist->getEmailId();\r\n }\r\n $this->productUrl = base64_decode($productlist['product_url']);\r\n $this->productName = $productlist['product_name'];\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "final public function is_rental_product($id): bool {\n\n //Get product meta\n $rental = get_post_meta($id, '_rental', true);\n\t\t$rental_prices = get_post_meta($id, '_rent_prices', true);\n\t\t\n /**\n * Check if rental prices are set including the boolean variable\n */\n if( wc_string_to_bool($rental) && !empty($rental_prices) ){\n return true;\n\t\t}\n\n\t\treturn false;\n\t\t\n\t}", "function check_software_license()\n {\n $q = $this->db->where('license', $this->input->post('license_num'))->where('action_type', 'install')->where('company_id', $this->session->userdata('company_id'))->limit(1)->get('software');\n\n if ($q->num_rows == 1)\n {\n return true;\n\n } else {\n\n return false;\n }\n }", "public function quoteHasServiceProduct()\n {\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n if (!$quote->hasData('has_service_product')) {\n $quote->setData('has_service_product', false);\n foreach ($quote->getAllVisibleItems() as $item) {\n if ($this->isQuoteItemServiceProduct($item)) {\n $quote->setData('has_service_product', true);\n break;\n }\n }\n }\n\n return $quote->getData('has_service_product');\n }", "public function uniqueCombi() {\n\t\t\n\t\tif (isset($this->data[$this->alias]['cart_id'])) {\n\t\t\t\n\t\t\t$combi = array(\n\t\t\t\t\"{$this->alias}.cart_id\" => $this->data[$this->alias]['cart_id'],\n\t\t\t\t\"{$this->alias}.variant_id\" => $this->data[$this->alias]['variant_id']\n\t\t\t);\n\t\t\t\n\t\t\treturn $this->isUnique($combi, false);\t\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function isSupportedProduct()\n {\n /** @var Oyst_OneClick_Model_Catalog $oystCatalog */\n $oystCatalog = Mage::getModel('oyst_oneclick/catalog');\n\n return $oystCatalog->isSupportedProduct($this->getProduct());\n }" ]
[ "0.69714266", "0.69387", "0.69387", "0.69387", "0.69387", "0.69387", "0.6938074", "0.6590187", "0.65435916", "0.6538099", "0.65281963", "0.6456699", "0.62764966", "0.6267356", "0.62625325", "0.6250324", "0.62079585", "0.62074333", "0.6199409", "0.61472803", "0.61160976", "0.6105657", "0.6085322", "0.60790056", "0.60638344", "0.60605675", "0.6055791", "0.60205865", "0.6003252", "0.5996051", "0.5988429", "0.59804", "0.5958035", "0.5955376", "0.5951379", "0.59510875", "0.59509575", "0.59483683", "0.5945915", "0.59146374", "0.5899679", "0.589135", "0.58869356", "0.5885664", "0.58628666", "0.5841496", "0.5829405", "0.58159584", "0.5813065", "0.5804704", "0.57986146", "0.5784924", "0.5780432", "0.5780049", "0.57784283", "0.57660794", "0.57571447", "0.57426983", "0.5741274", "0.57334244", "0.57322145", "0.5722159", "0.57064086", "0.5688723", "0.5679461", "0.5667851", "0.5658516", "0.5658051", "0.56412256", "0.5640429", "0.5634188", "0.5633347", "0.56316614", "0.56288666", "0.5627288", "0.5624853", "0.5623896", "0.56223124", "0.56192774", "0.56113756", "0.56051344", "0.56026477", "0.55967736", "0.5592621", "0.55906963", "0.5589385", "0.55887073", "0.5580901", "0.55799", "0.5579214", "0.55784625", "0.5565431", "0.5561163", "0.55591965", "0.55550003", "0.5549536", "0.5549334", "0.55453634", "0.5540377", "0.5538024", "0.5537499" ]
0.0
-1
constructor de la clase
public function __construct() { $db = Db::conectar(); $select = $db->query("SET NAMES 'utf8'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "function __construct (){\n\t\t}", "public function __construct (){}", "function __construct(){}", "function __construct(){}", "function __construct(){}", "function __constructor(){}", "private function __construct()\t{}", "private function __construct() {\r\n\t\r\n\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "final private function __construct() {\n\t\t\t}", "public function __construct() { \n\t\t\n\n\t\t}", "final private function __construct(){\r\r\n\t}", "function __construct() ;", "private function __construct() {\n\t\t}", "public function __construct()\r\n\t\t{\r\n\t\t}", "private function __construct(){\n\t\t }", "public function __construct()\n\t\t{\n\t\t\t\n\t\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t// ben duoi nay se la cac logic cua __construct lop con ma chung ta can dinh nghia - xu ly\n\t}", "function __construct(){\n\n\t\t}", "private function __construct(){\n \t\n }", "public function __construct() {\n\n\t\t}", "function _construct() {\n \t\n\t\t\n\t}", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "function __construct() {\n\n\t\t}", "private function __construct()\r\n\t{\r\n\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "private function __construct() { \n\t\t\n\n\t}", "function __construct(){\n\t\t// nowt much...\n\t}", "function __construct() {\n\t\t\t\n\t\t}", "function _construct(){ }", "private function __construct()\r\r\n\t{\r\r\n\t}", "public function _construct()\n\t{\n\n\t}", "final private function __construct()\n\t{\n\t}", "private function __construct() {\r\n\t\t\r\n\t}", "private function __construct()\n\t{\n\n\t}", "function __construct(){\n\t\t}", "public function __construct()\n\t{}", "private function __construct () {}", "private function __construct()\n\t{\n\t\t\n\t}", "function __construct() { }", "function __construct() { }", "function __construct() { }", "private function __construct( )\n {\n\t}", "function __construct()\r\n\t{\r\n\t}", "private function __construct () \n\t{\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "private function __construct() {\r\n\t}", "private function __construct() {\r\n\t}", "public function __construct()\n\t{\n\t\n\t}", "public function __construct()\n\t{\n\t\n\t}", "private function __construct(){\n\t\n\t}", "function __construct(){\r\n\t\t}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "public function __construct() {\r\n\r\n\t\t}", "final private function __construct()\n {\n }", "private function __construct(){ }", "private function __construct(){ }", "protected abstract function __construct();", "public function __construct() {\r\n\t\t//\r\n\t}", "public function __init(){}", "function __construct()\n\t{\n\n\t}", "public function __construct()\n\t\t{\n\t\t\t# code...\n\t\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "private function __construct()\r\n {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8488931", "0.8399995", "0.8239138", "0.82375413", "0.82375413", "0.82375413", "0.8230485", "0.82221836", "0.8202789", "0.8195752", "0.8184256", "0.81820005", "0.8180776", "0.8173166", "0.81690466", "0.8162631", "0.8161558", "0.81543046", "0.81498563", "0.8149269", "0.8147294", "0.8145798", "0.8143592", "0.8142211", "0.81419986", "0.8138255", "0.81371194", "0.81322974", "0.8126812", "0.81239474", "0.81229067", "0.8121107", "0.81156784", "0.81145906", "0.8103626", "0.8101693", "0.8092323", "0.8088455", "0.80883294", "0.80830115", "0.8075537", "0.8075537", "0.8075537", "0.8072193", "0.80704355", "0.8069461", "0.8069206", "0.8069206", "0.8069206", "0.8069206", "0.8069206", "0.80677813", "0.80677813", "0.806675", "0.806675", "0.8066575", "0.8066493", "0.8066292", "0.8066292", "0.8066292", "0.8066292", "0.8066292", "0.8066292", "0.80638236", "0.8060916", "0.80486923", "0.80486923", "0.80473024", "0.804707", "0.8046002", "0.80450416", "0.80437833", "0.80416745", "0.80416745", "0.80416745", "0.80416745", "0.80416745", "0.8032777", "0.8031273", "0.8031273", "0.8031273", "0.8031273", "0.8031273", "0.8031273", "0.8031273" ]
0.0
-1
echo("console.log('Dato recibido en el crud: ".$id."');");
public function mostrarlistapoProvincia($id) { $db = Db::conectar(); $listacanton = NULL; $select = $db->prepare("SELECT * FROM `canton` WHERE cantonprovincia=:id"); $select->bindValue('id', $id); $select->execute(); foreach ($select->fetchAll() as $canton1) { $mycanton = new Cantones(); $mycanton->setCantonId($canton1['cantonId']); $mycanton->setCanton($canton1['canton']); $mycanton->setCantoncodigo($canton1['cantoncodigo']); $mycanton->setCantonprovincia($canton1['cantonprovincia']); $mycanton->setCantonAccion($canton1['cantonAccion']); $mycanton->setCantonOculto($canton1['cantonOculto']); $mycanton->setCantonfecha($canton1['cantonfecha']); $mycanton->setCantonuser($canton1['cantonuser']); $listacanton[] = $mycanton; } return $listacanton; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mostrar($id)\n {\n //\n }", "public function mostrar($id)\n {\n //\n }", "public function mostrar($id)\n {\n //\n }", "public function mostrar($id)\n {\n //\n }", "public function create($id)\n {\n //\n return \"这里是create:\".$id;\n }", "public function correu(){\n echo \" correu !\";\n }", "public function show($id)\n {\n //Para ver los datos guardados\n }", "public function create($id) //pasamos el id del cliente\n {\n \n }", "public function cadastrar()\n{\n //DEFINIR A DATA\n $this->data = date('Y-m-d H:i:s');\n\n //INSERIR A VAGA NO BANCO\n $obDatabase = new Database('vagas');\n $obDatabase->insert([\n 'titulo' => $this->titulo,\n 'descricao' => $this->descricao,\n 'ativo' => $this->ativo,\n 'data' => $this->data\n ]);\n //echo \"<pre>\"; print_r($obDatabase); echo \"</pre>\"; exit;\n\n\n //ATRIBUIR O ID DA VAGA NA INSTANCIA\n\n //RETORNAR SUCESSO\n}", "public function show($id)\n {\n echo \"Thank you \";\n }", "public function show($id) {\n echo '<pre>';\n print_r('aaa');\n echo '</pre>';\n die;\n }", "function getMovimiento()\n\t{\t\n\t\t$id = $this->input->post('numeroaula');\n\t\techo json_encode($this->crud_model->getMovimiento($id));\n\t}", "public function show($id)\n {\n //return \"Hola\";\n }", "public function id() {\n }", "public function show($id)\n {\n //\n // echo 'dsasasa';\n }", "function mostrar($id) {\r\n\r\n /* declarar e inicializar variables */\r\n $this->_vista->titulo = 'Curso-Mostrar';\r\n $this->_vista->curso = new Curso();\r\n $id = $this->filtrarEntero($id);\r\n\r\n /* logica */\r\n $this->_vista->curso->buscar($id);\r\n\r\n // comprobar que el registro exista\r\n if ($this->_vista->curso->getId() == '-1') {\r\n $this->redireccionar('error/tipo/Registro_NoExiste');\r\n }\r\n\r\n $this->_vista->render(\"curso/mostrar\");\r\n }", "function consultarInterfazId(){\n $id = $this->input->post('id');\n $result = $this->Interfaz_model->interfaz_Id($id);\n echo json_encode($result);\n }", "public function show($id)\n {\n dd('23232');\n }", "public function actionView($id)\n {\n///\n$nombre=Yii::$app->user->identity->username;\n$connection = \\Yii::$app->db;\n$db = $connection->createCommand(\"INSERT INTO auditoria (id, user, modelo, accion, fechahora) VALUES (NULL, '$nombre', 'PropiedadDet', 'View', NOW());\")->execute();\n///\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function edit($id)\n {\n return \"Editando cliente \".$id;\n }", "public function edit($id)\n {\n echo \"Day la trang edit co id = \".$id;\n }", "private function test()\n {\n pr('hola');\n $json = $this->reporte_model->get_json();\n pr($json);\n //$resultado = $this->reporte_model->insert_data($json);\n pr('fin');\n pr($resultado);\n }", "public function cadastrar() \n{\n //DEFINIR A DATA\n $this->data = date(\"Y:m:d H:i:s\");\n \n //INSERIR A VAGA NO BANCO\n\n //ATRIBUIR O ID NA VAGA DA INSTANCIA\n\n //RETORNAR SUCESSO\n\n}", "public function cargaDatos() {\n $id = $this->input->post(\"id\");\n $where = \"id=\" . $id;\n $datos = $this->AdministradorModel->buscar($this->tabla, \"*\", $where, 'row');\n echo json_encode($datos);\n }", "function consultarOtro(){\n $queryconsultarOtro=$this->mdlOrdenes->consultarOtro(base64_decode($_POST[\"idAtencion\"]));\n echo json_encode($queryconsultarOtro);\n }", "public function id() { }", "public function edit($id)\n {\n //\n echo \"edit\";\n }", "public function edit($id)\n {\n //\n echo \"edit\";\n }", "function setMovimiento()\n\t{\t\n\t\t$nrcEE = $this->input->post('nrc');\n\t\t$id = $this->input->post('id');\n\t\tlist($nrc, $numEE) = explode(\":\", $nrcEE);\n\t\tlist($dia, $hora, $numeroAula) = explode(\":\", $id);\n\t\t//$this->crud_model->setMovimiento($nrc, $numeroAula, $numEE, $hora, $dia);\n\t\techo json_encode($this->crud_model->setMovimiento($nrc, $numeroAula, $numEE, $hora, $dia));\n\t}", "public function show($id)\n {\n if($id != 0) {\n \n $poubelle = Poubelle::find($id) ;\t\n return json_encode( $poubelle ) ;\n\n }\n return 0 ;\n \n }", "public function show($id)\n {\n echo \"here is show\";\n }", "public function getId(){return $this->id;}", "public function show($id) {\n echo 'show';\n //\n }", "public function show($id)\n {\n echo $id;\n }", "public function show($id)\n {\n echo $id;\n }", "public function show($id)\n {\n echo 'show';\n }", "public function show($id)\n {\n $d=Asistencia::find($id);\n $d->salida=date('Y-m-d H:i:s');\n $d->estado=\"SALIDO\";\n $d->save();\n }", "public function mostrarPorId($id){ \n $sql = \"SELECT nombres,apellidos,email,clave,telefono FROM clientes\n WHERE id = :id\";\n\n $resultado = $this->cn->prepare($sql); \n\n $_array = array(\n ':id'=> $id\n );\n\n if($resultado->execute($_array))\n return $resultado->fetch();\n\n return false;\n }", "public function show($id)\n\t{\n\t\t//\n\t\techo'thanh cong';\n\t}", "public function insert($id){\n $fonction = Auth::user()->fonction;\n if($fonction == 'admin') return redirect('/admin/dashboard');\n if($fonction == 'gest') return redirect('/gest/dashboard');\n //get the id of the vehicule to repare\n $vech_id['vech_id'] = $id;\n return view('/tech/operation',$vech_id);\n }", "public function view($id)\n {\n $table=\"user\";\n $table_id=\"user_id\";\n\n $msg['data']=$this->crudm->view($table,$table_id,$id);\n\n $msg['title']=\"The user you choose\";\n\n echo json_encode($msg);\n }", "public function show($id)\n {\n // Desde la vista no hago uso de esta funcion nunca. \n // Seria para mostrar un solo registro, desde la API esta disponible en api_show\n }", "public function edit($id)\n {\n echo $id;\n }", "public function eventitoajqij(Request $request){\n $input = $request->all();\n $id = $input[\"id\"];\n\n\n $datos = Agenda::find($id);\n $descripcion = $datos->descripcion;\n $precio = $datos->precio;\n \n\n // Agenda::find($id);\n\n // $descripcion = $datos['descripcion'];\n // dd($descripcion);\n // $input = $request->all();\n \n // return view('agenda.index')->with('datos', $id);\n // return view(\"agenda.index\")->with('datos', $id);\n \n // return response()->json([\n // 'name' => 'Abigail',\n // 'state' => 'CA'\n // ]); \n return array(\"datoid\"=>$descripcion,\"precio\"=>$precio);\n \n // return response()->json([\"ok\"=>true ]);\n \n // return view(\"agenda.index\")->with(\"dato\",\"POR LA GRAN PUTAAAAA FUNCIONÄ MIERDA!!\" );\n }", "public function show($id)\n {\n dd(4);\n }", "public function reprova($id){\n \n $cliente = Cliente::find($id);\n //echo $cliente->status;\n $cliente->status = 'reprovado';\n $cliente->dataStatus = date_create()->format('Y-m-d H:i:s');\n $cliente->save();\n return redirect()->route('cliente.index');\n }", "public function show($id)\n {\n // dd(__METHOD__);\n }", "public function show($id)\n {\n return \"inside show method\";\n }", "public function edit($id)\n {\n echo \"edit\";\n }", "public function edit($id)\n {\n echo \"edit\";\n }", "public function personaYCargo($id)\n {\n\n }", "public function CrudCliente($id){\n //validamos si este fue enviado por metodo post\n if ($_SERVER['REQUEST_METHOD']=='POST') {\n $n_documento=trim($_POST['TxtNdoc']);\n $tipodoc=trim($_POST['TxtTipodoc']);\n $razon=trim($_POST['TxtRazon']);\n $direccion=trim($_POST['TxtDireccion']);\n $telefono=trim($_POST['TxtTelefono']);\n $celular=trim($_POST['TxtCelular']);\n $correo=trim($_POST['TxtCorreo']);\n $ciudad=trim($_POST['TxtCiudad']);\n $pais=trim($_POST['TxtPais']);\n $estado=trim($_POST['TxtEstado']);\n $codlista=trim($_POST['TxtCodlista']);\n\n $usuario=$this->usuario;; \n if ($id==1) {\n if ($this->mod_cli->Insert_Update_Cliente($id,$n_documento,$tipodoc,$razon,$direccion,$telefono,$celular,$correo,$ciudad,$pais,$codlista,$estado,$usuario)) {\n echo '<script>alert(\"Se almaceno con exito.\");</script>';\n $this->loadCliente();\n }else{\n echo '<script>alert(\"Error al insertar el cliente.\");</script>';\n $this->loadCliente();\n } \n }else if($id==2){\n if ($this->mod_cli->Insert_Update_Cliente($id,$n_documento,$tipodoc,$razon,$direccion,$telefono,$celular,$correo,$ciudad,$pais,$codlista,$estado,$usuario)) {\n echo '<script>alert(\"Se actualizo con exito.\");</script>';\n $this->loadCliente();\n }else{\n echo '<script>alert(\"Error al actualizar el cliente.\");</script>';\n $this->loadCliente();\n } \n }\n }else\n {\n $datos=[];//este es importante mandarlo para insertar como vacio para que asi no se active\n //la funcion de los datos para actualizar\n require_once \"views/Clientes/cliente/Frm_Clientes_Crud.php\";\n }\n }", "public function show($id)\n {\n //get form like show specifi record\n return \"in show function\";\n }", "public function show($id)\n {\n dd('hello');\n }", "public function mostrar_insertar() {\r\n\t\t\t$this -> pantalla_edicion('insertar'); \r\n\t\t }", "public function create()\n {\n echo 'Estoy en en create';\n }", "public function save($id)\n {\n $table=\"user\";\n $table_id=\"user_id\";\n\n $p=$this->input->post();\n\n $data=array(\n 'user_fname'=>$p['user_fname'],\n 'user_lname'=>$p['user_lname'],\n 'user_notel'=>$p['user_notel'],\n 'user_email'=>$p['user_email'],\n 'user_password'=>$p['user_password']\n );\n\n if($id==0)\n {\n $msg['alert']=$this->crudm->add($table,$data);\n }\n else\n {\n $msg['alert']=$this->crudm->update($table,$table_id,$id,$data);\n }\n\n $msg['link_to']='login-page';\n\n echo json_encode($msg);\n }", "public function aprova($id){\n \n $cliente = Cliente::find($id);\n //echo $cliente->status;\n $cliente->status = 'aprovado';\n $cliente->dataStatus = date_create()->format('Y-m-d H:i:s');\n $cliente->save();\n return redirect()->route('cliente.index');\n }", "public function show($id)\n {\n echo \"Hello world\"; \n }", "public function cadastrar(){\r\n //DEFINIR A DATA DE CADASTRO\r\n $this->cadastro = date('Y-m-d H:i:s');\r\n\r\n $db = new Database('cartao');\r\n $this->id = $db->insert([\r\n 'bandeira' => $this->bandeira,\r\n 'numero' => $this->numero,\r\n 'doador' => $this->doador,\r\n ]);\r\n\r\n }", "public function cargarCita(){\n if(isset($_GET[\"id\"])){\n echo ($_GET[\"datos\"]);\n }\n else\n {\n echo (\"No hay Id\");\n }\n }", "public function create()\n {\n //\n echo \"create\";\n }", "public function create()\n {\n //\n echo \"create\";\n }", "function insertar_historial($id){\n\t\t$this->accion=\"Descripci&oacute; de Nota de Seguimiento\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\"){\n\t\t\t$this->asignar_valores();\n\t\t\t$this->fecha = $this->convertir_fecha($this->fecha);\n\t\t\t$sql=\"INSERT INTO historial VALUES ('', '$this->tabla', '$this->pertenece', '$this->asunto', '$this->descripcion', '$this->fecha', '$this->hora', NOW())\";\n\t\t\t\n\t\t\t//echo $sql;\n\t\t\t\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\theader(\"location:/admin/$this->tabla/editar.php?id=$id\");\n\t\t}\n\t\t\t\n\t}", "public function getSekolahEdit()\n {\n echo json_encode($this->Crud_model->getSekolahById($this->input->post('id')));\n }", "public function edit($id)\n {\n $viaje = Viaje::find($id);\n print($id);\n $viaje->terminado = 1;\n $viaje->save();\n return redirect('viajesadmin')->with('success', 'Viaje Finalizado');\n }", "function id()\r\n {\r\n return $this->ID;\r\n }", "function consultarTratamiento(){\n $queryConsultarTratamiento=$this->mdlOrdenes->consultarTratamiento(base64_decode($_POST[\"idAtencion\"]));\n echo json_encode($queryConsultarTratamiento);\n\n }", "public function getId(){\n\t return $this->id;\n}", "public function edit($id)\n {\n $daftar_perusahaan = DaftarPerusahaan::find($id);\n echo json_encode($daftar_perusahaan);\n }", "function guardarCenso(){ \r\n $data['nombre'] = $this->input->post('nombre');\r\n $data['form_id'] = $this->input->post('form_id');\r\n log_message('DEBUG', '#censo #guardarCenso'.json_encode($data));\r\n $censo['_post_censo'] = $data;\r\n $rsp = $this->Censos->guardarCenso($censo);\r\n echo json_encode($rsp);\r\n }", "public function show($id)\n {\n dd($id);\n //\n }", "function get_id(){\n return $this -> id;\n }", "function get_id(){\n return $this -> id;\n }", "public function crud2Cliente($id){\n if(isset($_GET['Funcion'])){\n $funcion=$_GET['Funcion'];\n }else{\n $funcion=1;\n }\n if (!empty($id)) {\n\t\t\tif ($funcion==1) {\n //en esta linea validamos si existe el id y mandamos los datos a la vista para cargarlos por el formulario de ingreso\n\t\t\t\t\tif (!empty($this->mod_cli->loaddatosupdateCliente($id))) {\n\t\t\t\t\t\t\t$datos=$this->mod_cli->loaddatosupdateCliente($id);\n\t\t\t\t\t\t\t// print_r($datos);\n require_once \"views/Clientes/cliente/Frm_Clientes_Crud.php\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\techo '<script>alert(\"Error cargando datos del id['.$id.']\");</script>';\n\t\t\t\t\t\t\t$this->loadCliente();\n\t\t\t\t\t\t}\n\t\t\t}else if($funcion==2){\n\t\t\t\tif ($this->mod_cli->Insert_Update_Cliente(3,$id,'','','','','','','','','','','')) {\n\t\t\t\t\t\t\techo '<script>alert(\"eleminado el id['.$id.'] con exito\");</script>';\n\t\t\t\t\t\t\t$this->loadCliente();\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\techo '<script>alert(\"Error al eliminar el id['.$id.']\");</script>';\n\t\t\t\t\t\t\t$this->loadCliente();\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}else{\n\t\t\techo '<script>alert(\"No se enviaron datos\");</script>';\n\t\t\t$this->loadCliente();\n }\n }", "public function id(): string;", "public function id(): string;", "public function get_id()\n {\n }", "public function edit($id)\n {\n return \"123\";\n }", "function buscarPorId($id) {\r\n \r\n }", "function edit()\n { \n // check if the empresa exists before trying to edit it\n //if(isset($_POST)\n $id=$this->input->post('id');\n\n //var_dump($data);\n \n $data['db'] = $this->Tipos_libro_model->get_tipos_libro($id);\n if(isset($data['db'][$this->id_tabla]))\n {\n echo json_encode($data);\n }\n else\n show_error('The empresa you are trying to edit does not exist.');\n\n }", "public function show($id){\n return 'ok user'.$id.' '.$n1;\n }", "public function show($id_punto)\n {\n $table = DB::table('credito')\n ->where('id_punto_agua','=',$id_punto)\n ->select('*')->get();\n dd();\n\n $id_credito = $table[0]->id;\n\n $credito = Credito::find($id_credito);\n $credito->estado = 2;\n $credito->save();\n \n return redirect()->back();\n }", "public function Ativar(){\n \n $idFrota = $_GET['id'];\n \n $frota = new Frota();\n \n $frota->id = $idFrota ;\n \n $frota::Ativando($frota);\n \n }", "public function cadastrar()\r\n {\r\n //definir data copiar para instituicao\r\n $this->datacriacao = date('Y-m-d H:i:s');\r\n // inserir instituicao no banco\r\n $obDatabase = new Database('instituicao');\r\n $this->id = $obDatabase->insert([\r\n 'nome' => $this->nome,\r\n 'datacriacao' => $this->datacriacao,\r\n 'tipo' => $this->tipo\r\n ]);\r\n return true;\r\n\r\n // print_r($this);\r\n\r\n //atribuir o id de instituicao na instancia\r\n\r\n //retornar sucesso\r\n }", "public function run()\n {\n $id_est = estudiantes::where('identificacion','1112792871')->value('id');\n consulta::create([\n 'id_est'=>$id_est,\n 'dia'=>'12/11/2018',\n 'hora'=>'11:30 a.m',\n 'motivo_consulta'=>'general'\n ]);\n }", "public function edit($id)\n {\n //\n return \"ini halaman edit id:\".$id;\n }", "public function edit($id)\n {\n $id=8;\n $data = \"AT\";\n // return \"AAA\";\n // return $id;\n \n return response(\"edit\");\n }", "public function show($id)\n {\n // dd($id);\n }", "public function crud() {\n\t\t\n\t\t$this->load->model('Produttori_model','produttori');\n\t\t$data=array(\"produttore\" => \"franco\");\n\t\t$this->produttori->create($data);\n\t\t$this->produttori->update(array(),1);\n\t\t$this->produttori->delete(3);\n\t\tvar_dump ($this->produttori->read());\n\t\t$this->load->view('welcome_message');\n\t}", "public function show($id)\n {\n return 'FUNCION NO HABILITADA';\n }", "public function eventito(Request $request){\n $input = $request->all();\n $id = $input[\"id\"];\n \n $datos = Agenda::find($id);\n $descripcion = $datos->descripcion;\n $precio = $datos->precio;\n// $input = $request->all();\n\n // return view('agenda.index')->with('datos', $id);\n // return view(\"agenda.index\")->with('datos', $id);\n\n// return response()->json([\n// 'name' => 'Abigail',\n// 'state' => 'CA'\n// ]); \nreturn array(\"datoid\"=>$descripcion,\"precio\"=>$precio);\n\n // return response()->json([\"ok\"=>true ]);\n \n// return view(\"agenda.index\")->with(\"dato\",\"POR LA GRAN PUTAAAAA FUNCIONÄ MIERDA!!\" );\n }", "public function create()\n {\n echo \"create\";\n }", "public function create()\n {\n echo \"create\";\n }", "public function editar($id)\n {\n //\n }", "public function editar($id)\n {\n //\n }", "public function show($id)\n {\n //$empleado = Empleado::find($id);\n $empleado = Empleado::where('cedula', $id)->first();//->load('user');\n return response()->json(array(\n 'empleado'=> $empleado, \n 'status'=> 'success'\n ), 200);\n }", "public function show($id)\n { \n\n \n }", "public function edit($id)\n {\n print(\"OK\");\n }", "public function show($id) //Select \n {\n //Trae la informacion del id \n $ubicacion = Ubicacion::where('id','=',$id)->get();\n return response()->json($ubicacion);\n }", "public function show($id)\n {\n return 'ok';\n }" ]
[ "0.6631633", "0.6631633", "0.6631633", "0.6631633", "0.6559731", "0.6319244", "0.6294704", "0.62723756", "0.62620556", "0.6233243", "0.62038094", "0.61904967", "0.6169692", "0.6164799", "0.61336243", "0.6120743", "0.60939527", "0.6087867", "0.60790205", "0.6077868", "0.6073812", "0.6060298", "0.6059196", "0.6056385", "0.60523415", "0.6048956", "0.60390645", "0.60390645", "0.60164225", "0.60152453", "0.6002953", "0.60001695", "0.59948754", "0.59821594", "0.59821594", "0.59766227", "0.5974994", "0.5973847", "0.5965171", "0.59624064", "0.5956817", "0.59545076", "0.59486663", "0.5944976", "0.59449214", "0.5941227", "0.59399945", "0.593344", "0.59327686", "0.59327686", "0.5928055", "0.5919242", "0.5915818", "0.59130234", "0.5907048", "0.59005976", "0.589884", "0.58972865", "0.58969826", "0.589441", "0.5881089", "0.58809596", "0.58809596", "0.5878265", "0.5878006", "0.5877646", "0.5870297", "0.5862473", "0.5850893", "0.58460504", "0.5841076", "0.5839019", "0.5835519", "0.5835519", "0.5831722", "0.5830977", "0.5830977", "0.5829929", "0.58285666", "0.5821561", "0.58208686", "0.58206713", "0.58076626", "0.58022755", "0.58014727", "0.5798186", "0.5798046", "0.5791035", "0.57826084", "0.57759464", "0.5772051", "0.57640135", "0.5760209", "0.5760209", "0.57573944", "0.57573944", "0.57534826", "0.57523054", "0.5748743", "0.5747637", "0.5741836" ]
0.0
-1
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); $this->addSql('DROP TABLE organisation_client'); $this->addSql('ALTER TABLE client ADD organisation_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE client ADD CONSTRAINT FK_C74404559E6B1585 FOREIGN KEY (organisation_id) REFERENCES organisation (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); $this->addSql('CREATE INDEX IDX_C74404559E6B1585 ON client (organisation_id)'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNED NULL COMMENT 'person',\n CHANGE `tcmn_tmed_id` `tcmn_tmed_id` TINYINT(4) UNSIGNED NULL COMMENT 'medijs';\n \");\n }", "public function up()\n {\n // This migration was removed, but fails when uninstalling plugin\n }", "public function up()\n {\n $this->execute(\"\n\n ALTER TABLE `cucp_user_company_position` \n ADD COLUMN `cucp_role` CHAR(20) NULL AFTER `cucp_name`;\n\n \");\n }", "public function up()\n\t{\n\t\t$this->dbforge->add_column($this->table, $this->field);\n\t}", "public function migrateUp()\n {\n //$this->migrate('up');\n $this->artisan('migrate');\n }", "public function up()\n {\n dbexec('ALTER TABLE #__subscriptions_coupons\n ADD `created_on` datetime DEFAULT NULL AFTER `usage`,\n ADD `created_by` bigint(11) unsigned DEFAULT NULL AFTER `created_on`,\n ADD INDEX `created_by` (`created_by`),\n ADD `modified_on` datetime DEFAULT NULL AFTER `created_by`,\n ADD `modified_by` bigint(11) unsigned DEFAULT NULL AFTER `modified_on`,\n ADD INDEX `modified_by` (`modified_by`) \n ');\n \n dbexec('ALTER TABLE #__subscriptions_vats\n ADD `created_on` datetime DEFAULT NULL AFTER `data`,\n ADD `created_by` bigint(11) unsigned DEFAULT NULL AFTER `created_on`,\n ADD INDEX `created_by` (`created_by`),\n ADD `modified_on` datetime DEFAULT NULL AFTER `created_by`,\n ADD `modified_by` bigint(11) unsigned DEFAULT NULL AFTER `modified_on`,\n ADD INDEX `modified_by` (`modified_by`) \n ');\n }", "public function up()\n\t{\n\t\t$this->dbforge->modify_column($this->table, $this->field);\n\t}", "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer(). ' UNSIGNED NOT NULL' ,\n 'source' => $this->string()->notNull(),\n 'source_id' => $this->string()->notNull(),\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->addForeignKey('fk_social_auth_user_id_to_user_id', $this->tableName, 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function up()\n {\n }", "public function up()\n {\n $user = $this->table('products', ['collation' => 'utf8mb4_persian_ci', 'engine' => 'InnoDB']);\n $user\n ->addColumn('name', STRING, [LIMIT => 20])\n ->addColumn('count', STRING, [LIMIT => 75])\n ->addColumn('code', STRING, [LIMIT => 100])\n ->addColumn('buy_price', STRING, [LIMIT => 30])\n ->addColumn('sell_price', STRING, [LIMIT => 30])\n ->addColumn('aed_price', STRING, [LIMIT => 50])\n ->addTimestamps()\n ->save();\n }", "public function up()\n {\n // Drop table 'table_name' if it exists\n $this->dbforge->drop_table('lecturer', true);\n\n // Table structure for table 'table_name'\n $this->dbforge->add_field(array(\n 'nip' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => true,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'nik' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => false,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'name' => array(\n 'type' => 'VARCHAR(24)',\n 'null' => false,\n ),\n\t\t\t'id_study_program' => array(\n\t\t\t\t'type' => 'VARCHAR(24)',\n\t\t\t\t'null' => false,\n\t\t\t)\n\n ));\n $this->dbforge->add_key('nik', true);\n $this->dbforge->create_table('lecturer');\n }", "public function up()\n\t{\n\t\t// are not setting the foreign key constraint, to allow the examination module to work without the intravitreal\n\t\t// injection module being installed\n\t\t$this->addColumn('et_ophciexamination_injectionmanagementcomplex', 'left_treatment_id', 'int(10) unsigned');\n\t\t$this->addColumn('et_ophciexamination_injectionmanagementcomplex', 'right_treatment_id', 'int(10) unsigned');\n\t}", "public function safeUp()\n {\n $this->createTable('tbl_hand_made_item',\n [\n \"id\" => \"int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY\",\n \"price\" => \"integer\",\n \"discount\" => \"integer\",\n \"preview_id\" => \"integer\",\n \"name\" => \"string\",\n \"description\" => \"text\",\n \"short_description\" => \"text\",\n \"slug\" => \"string\",\n ]\n );\n }", "public function preUp()\n {\n }", "public function up()\n\t{\n\t\t// create the purchase_order_details table\n\t\tSchema::create('purchase_order_details', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\t\t \n\t\t $table->integer('purchase_order_id')->unsigned();//->foreign()->references('id')->on('orders');\n\t\t $table->integer('product_id')->unsigned();//->foreign()->references('id')->on('products');\n\t\t $table->integer('quantity');\t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \n\t\t $table->integer('updated_by')->unsigned();\n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function up()\n {\n if (!$this->isEdu()) {\n return;\n }\n \n $this->edu_up();\n }", "public function up()\n\t{\t\t\n\t\tDB::table('professor')->insert(array(\n\t\t\t'user_id'=>'2',\t\t\t\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t));\t\t\n\n\t\tDB::table('professor')->insert(array(\n\t\t\t'user_id'=>'3',\t\t\t\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t));\n\t\t//\n\t}", "public function up()\n {\n $table = $this->table('qobo_translations_translations');\n $table->renameColumn('object_foreign_key', 'foreign_key');\n $table->renameColumn('object_model', 'model');\n $table->renameColumn('object_field', 'field');\n $table->renameColumn('translation', 'content');\n\n if (!$table->hasColumn('locale')) {\n $table->addColumn('locale', 'char', [\n 'default' => null,\n 'limit' => 6,\n ]);\n }\n $table->update();\n\n $table = TableRegistry::getTableLocator()->get(\"Translations.Translations\");\n $entities = $table->find()->all();\n foreach($entities as $entity) {\n $entity->setDirty('locale', true);\n $table->save($entity);\n }\n }", "public function up()\n {\n $this->addForeignKey('tours_fk', 'tours', 'id', 'tour_to_hotel', 'tour_id');\n\n $this->addForeignKey('t2h_fkh', 'tour_to_hotel', 'hotel_id', 'hotels', 'id');\n $this->addForeignKey('t2h_fkt', 'tour_to_hotel', 'tour_id', 'tours', 'id');\n }", "public function safeUp()\r\n {\r\n $this->createTable('tbl_job_application', array(\r\n 'id' => 'pk',\r\n 'job_id' => 'integer NOT NULL',\r\n 'user_id' => 'integer NULL',\r\n 'name' => 'string NOT NULL',\r\n 'email' => 'text NOT NULL',\r\n 'phone' => 'text NOT NULL',\r\n 'resume_details' => 'text NOT NULL',\r\n 'create_date' => 'datetime NOT NULL',\r\n 'update_date' => 'datetime NULL',\r\n ));\r\n }", "public function up()\n {\n $fields = array(\n 'first_login' => array('type' => 'char', 'constraint' => '1', 'default' => '1'),\n );\n $this->dbforge->add_column('user', $fields);\n }", "public function safeUp() {\n\n $this->createTable('word', [\n 'word_id' => Schema::TYPE_PK,\n 'word_lang_id' => $this->integer(),\n 'word_name' => $this->string(500) . ' NOT NULL',\n 'word_detais' => $this->string(1000),\n ]);\n\n // Add foreign key\n $this->addForeignKey('fk_language_word_1', 'word',\n 'word_lang_id', 'language', 'lang_id', 'CASCADE', 'NO ACTION');\n \n // Create index of foreign key\n $this->createIndex('word_lang_id_idx', 'word', 'word_lang_id');\n }", "public function safeUp()\n {\n $this->alterColumn('item_keuangan', 'created_at', \"TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00'\");\n\n /* Tambah Field */\n $this->addColumn('item_keuangan', 'status', \"TINYINT(1) NOT NULL DEFAULT '1' COMMENT '0=tidak aktif; 1=aktif;' AFTER `jenis`\");\n }", "public function up()\n {\n $this->addForeignKey(\n 'fk_category_product_from_category',\n 'category_product',\n 'category_id',\n 'category',\n 'id',\n 'NO ACTION',\n 'NO ACTION'\n );\n\n $this->addForeignKey(\n 'fk_category_product_from_product',\n 'category_product',\n 'product_id',\n 'product',\n 'id',\n 'NO ACTION',\n 'NO ACTION'\n );\n }", "public function up()\n\t{\n\t\t$this->dropColumn('korzet','utca'); \n\t\t$this->addColumn('korzet','utca','string NOT NULL');\n\t}", "public function up()\n {\n Schema::table($this->table, function (Blueprint $table) {\n // $table->bigInteger('user_id')->default(0)->after('id'); // Example\n $table->dropColumn([\n // 'user_id', // Example\n ]);\n });\n }", "public function up()\n {\n // $this->fields()->create([]);\n // $this->streams()->create([]);\n // $this->assignments()->create([]);\n }", "public function up()\n {\n $table = $this->table('admins');\n $table->addColumn('name', 'string')\n ->addColumn('role', 'string')\n ->addColumn('username', 'string')\n ->addColumn('password', 'string')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true])\n ->create();\n\n\n $data = [ \n [\n 'name' => 'Pedro Santos', \n 'username' => '[email protected]',\n 'password' => '101010',\n 'role' => 'Suporte',\n 'modified' => false\n ],\n ];\n\n $adminTable = TableRegistry::get('Admins');\n foreach ($data as $value) {\n $adminTable->save($adminTable->newEntity($value));\n }\n }", "public function up(): void\n {\n try {\n // SM: We NEVER delete this table.\n if ($this->db->tableExists('prom2_pages')) {\n return;\n }\n $this->db->ForeignKeyChecks(false);\n $statement=$this->db->prepare(\"CREATE TABLE `prom2_pages` (\n `cntPageID` int(10) unsigned NOT NULL AUTO_INCREMENT,\n `txtRelativeURL` varchar(255) NOT NULL COMMENT 'Relative URL',\n `txtTitle` varchar(70) NOT NULL COMMENT 'Title',\n `txtContent` text NOT NULL COMMENT 'Content',\n `blnRobots_DoNotAllow` bit(1) NOT NULL DEFAULT b'1',\n PRIMARY KEY (`cntPageID`),\n UNIQUE KEY `txtRelativeURL` (`txtRelativeURL`),\n KEY `txtTitle` (`txtTitle`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n $statement->execute();\n $statement->close();\n $this->db->ForeignKeyChecks(true);\n } catch (\\mysqli_sql_exception $exception) {\n throw $exception;\n }\n }", "public function up()\n\t{\n\t\t// Add data to committee-members\n\t\tDB::table('committee_members')->insert(array(\n\t\t\t'name' => 'Brian O\\'Sullivan',\n\t\t\t'role' => 'Chairman',\n\t\t\t'telephone' => '087-1234567',\n\t\t\t'email' => '[email protected]'\n\t\t));\n\t\tDB::table('committee_members')->insert(array(\n\t\t\t'name' => 'Anthony Barker',\n\t\t\t'role' => 'PRO',\n\t\t\t'telephone' => '087-1234567',\n\t\t\t'email' => '[email protected]'\n\t\t));\t\t\n\t}", "public function up()\n {\n $this->query(\"UPDATE `subscription_types` SET `user_label` = `name` WHERE `user_label` = '' OR `user_label` IS NULL;\");\n\n $this->table('subscription_types')\n ->changeColumn('user_label', 'string', ['null' => false])\n ->update();\n }", "public function safeUp()\n\t{\n $sql = <<<SQL\n alter table r add R8 inte;\nSQL;\n\t\t//$this->execute($sql);\n $sql = <<<SQL\n ALTER TABLE r ADD constraint FK_r8_elgz1 FOREIGN KEY (r8) REFERENCES elgz (elgz1) ON DELETE SET DEFAULT ON UPDATE CASCADE;\nSQL;\n //$this->execute($sql);\n\t}", "public function up()\n\t{\n\t\techo $this->migration('up');\n\n\t\tci('o_role_model')->migration_add('Cookie Admin', 'Cookie Designer and Eater', $this->hash());\n\t\t\n\t\treturn true;\n\t}", "public function up()\n {\n\t\t$this->addColumn('{{%user}}', 'is_super', Schema::TYPE_SMALLINT . \"(1) NULL DEFAULT '0' AFTER `status`\");\n\t\t\n\t\t//Add new column for Option Group table\n\t\t$this->addColumn('{{%option_group}}', 'option_type', Schema::TYPE_STRING . \"(25) NULL DEFAULT 'text' AFTER `title`\");\n\t\t\n\t\t//Add new column for Order table\n\t\t$this->addColumn('{{%order}}', 'is_readed', Schema::TYPE_SMALLINT . \"(1) NULL DEFAULT '0' AFTER `shipment_method`\");\n }", "public function up()\n {\n $this->addColumn(\\backend\\models\\VodProfile::tableName(), 'language', \"char(5) not null default 'en-US'\");\n }", "public function up()\n {\n if (!Schema::hasTable($this->table))\n Schema::create($this->table, function (Blueprint $table)\n {\n $table->integer('parent_id')->unsigned()->index();\n $table->foreign('parent_id')->references('id')->on('organisations')->onDelete('restrict');\n\n $table->integer('child_id')->unsigned()->index();\n $table->foreign('child_id')->references('id')->on('organisations')->onDelete('restrict');\n\n $table->primary(['parent_id','child_id'],'organisation_relations_primary');\n\n $table->timestamps();\n $table->softDeletes();\n\n $table->engine = 'InnoDB';\n });\n }", "public function up(){\n $table = $this->table('users', array('id'=>false, 'primary_key'=>'id'));\n $table->addColumn('id', 'integer', array('identity'=>true, 'signed'=>false));\n $table->addColumn('email', 'string', array('limit'=>100));\n $table->save();\n }", "public function up() { return $this->run('up'); }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t// examples:\n\t\t\t\t'l_label' => 'VARCHAR(200) NULL DEFAULT NULL',\n\t\t\t\t'l_announce' => 'TEXT NULL DEFAULT NULL',\n\t\t\t\t//'l_content' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_principles_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_principles_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\n\t{\n\t\t// create the purchase_orders table\n\t\tSchema::create('purchase_orders', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\n\t\t $table->string('order_number', 128);\n\t\t $table->string('approved',50);\n\t\t $table->date('purchase_date');\t\t \t \t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \t\t \n\t\t $table->integer('updated_by')->unsigned();\t\t \n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'label' => 'VARCHAR(20) NULL DEFAULT NULL COMMENT \"language label\"',\n\t\t\t\t'code' => 'VARCHAR(5) NOT NULL COMMENT \"language code\"',\n\t\t\t\t'locale' => 'VARCHAR (5) NULL DEFAULT NULL',\n\n\t\t\t\t'visible' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not visible; 1 - visible\"',\n\t\t\t\t'published' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not published; 1 - published\"',\n\t\t\t\t'position' => 'INT UNSIGNED NOT NULL DEFAULT 0 COMMENT \"order by position DESC\"',\n\t\t\t\t'created' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - creation time\"',\n\t\t\t\t'modified' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - last entity modified time\"',\n\n\t\t\t\t'UNIQUE key_unique_code (code)',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\n\t\t$this->insert('{{language}}', array(\n\t\t\t'label' => 'рус',\n\t\t\t'code' => 'ru',\n\t\t\t'locale' => 'ru',\n\t\t));\n\t}", "public function up()\n {\n $this->execute('Update goods SET price_rub = price WHERE currency_id = 1');\n }", "public function up()\n\t{\n $this->dropColumn('calculo','fecha');\n\n //add column fecha in producto\n $this->addColumn('producto','fecha','date');\n\t}", "public function up(){\n Schema::table('entries', function (Blueprint $table) {\n $table->renameColumn('value', 'entry_value');\n });\n }", "public function safeUp() {\n\t$this->createTable('post', array(\n 'id' =>\"int(11) NOT NULL AUTO_INCREMENT\",\n 'created_on' =>\"int(11) NOT NULL\",\n 'title' =>\"varchar(255) NOT NULL\",\n 'context' =>\"text NOT NULL\",\n \"PRIMARY KEY (`id`)\"\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "public function getUpSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `department_summary`\n\n CHANGE `twitter_account` `positive_twitter_account` TEXT NOT NULL,\n\n ADD `negative_twitter_account` TEXT NOT NULL AFTER `positive_twitter_account`;\n\nALTER TABLE `tweets`\n\n CHANGE `positive_twitter_account` `twitter_account` TEXT NOT NULL,\n\n DROP `negative_twitter_account`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "public function safeUp()\n {\n $this->addColumn('{{%organization}}', 'legal_entity', $this->string()->null());\n $this->addColumn('{{%organization}}', 'contact_name', $this->string()->null());\n $this->addColumn('{{%organization}}', 'about', $this->text()->null());\n $this->addColumn('{{%organization}}', 'picture', $this->string()->null());\n }", "public function up()\n {\n $this->table('agent_order_consignee_address')\n ->addColumn(Column::string('order_number')->setUnique()->setComment('订单编号'))\n \t\t->addColumn(Column::integer('agent_id')->setComment('代理商ID'))\n\t ->addColumn(Column::integer('create_time')->setDefault(1)->setComment('创建时间'))\n\t \n\t ->addColumn(Column::string('consignee_name')->setComment('收货人姓名'))\n\t ->addColumn(Column::string('consignee_phone')->setComment('收货人电话'))\n\t ->addColumn(Column::string('province')->setComment('省份'))\n\t ->addColumn(Column::string('city')->setComment('城市'))\n\t ->addColumn(Column::string('area')->setComment('地区'))\n\t ->addColumn(Column::string('address')->setComment('收货人详细地址'))\n ->create(); \n }", "public function up()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t'l_value' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_configuration_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_configuration_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function safeUp()\r\n {\r\n $this->up();\r\n }", "public function up(){\n // $table->table('kelas')\n // ->addColumn('Id', 'int', \"11\", false, null, true, true)\n // ->addColumn('NamaKelas', 'varchar', \"100\")\n // ->create();\n }", "public function safeUp()\n\t{\n\t\t$this->createTable('pesquisa', array(\n\t\t\t'id' => 'serial NOT NULL primary key',\n\t\t\t'nome' => 'varchar',\n\t\t));\n\t}", "public function safeUp()\n\t{\n\t\t$this->up();\n\t}", "public function safeUp()\n {\n $this->up();\n }", "public function safeUp()\n {\n $this->up();\n }", "public function up(){\n // $table->table('kelassiswa')\n // ->addColumn('Id', 'int', \"11\", false, null, true, true)\n // ->addColumn('Kelas_Id', 'int', \"11\")\n // ->addColumn('Peserta_Id', 'int', \"11\")\n // ->addForeignKey('Peserta_Id', 'peserta', \"Id\", \"CASCADE\")\n // ->addForeignKey('Kelas_Id', 'kelas', \"Id\")\n // ->create();\n\n }", "public function up()\n\t{\n\t\tSchema::table('project_sections', function($t){\n\t\t\t$t->integer('created_by_project_id')->nullable()->unsigned();\n\t\t\t$t->boolean('public')->default(0);\n\n $t->foreign('created_by_project_id')->references('id')->on('projects')->on_delete('SET NULL');\n\t\t});\n\t}", "public function up(){\n\t\tglobal $wpdb;\n\n\t\t$wpdb->query('ALTER TABLE `btm_tasks` ADD COLUMN `last_run` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `date_created`;');\n\t}", "public function up()\n {\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_create');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_mods');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_modpacks');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->boolean('solder_keys')->default(0);\n $table->boolean('solder_clients')->default(0);\n $table->boolean('modpacks_create')->default(0);\n $table->boolean('modpacks_manage')->default(0);\n $table->boolean('modpacks_delete')->default(0);\n });\n }", "public function up()\n {\n Schema::dropIfExists('db_question_new.t_answer_type');\n Schema::create('db_question_new.t_answer_type', function (Blueprint $table){\n $table->increments('id');\n t_field($table->integer('answer_type_no'),\"答案序号\");\n t_field($table->string('name'),\"步骤名字\");\n t_field($table->integer('subject'),\"科目id\");\n t_field($table->integer('open_flag')->default(1),\"开启与否\");\n }); \n }", "public function up()\n\t{\n\t\t$sql = \"create table tbl_rights\n\t\t\t\t(\n\t\t\t\t\titemname varchar(64) not null,\n\t\t\t\t\ttype integer not null,\n\t\t\t\t\tweight integer not null,\n\t\t\t\t\tprimary key (itemname),\n\t\t\t\t\tforeign key (itemname) references tbl_auth_item (name) on delete cascade on update cascade\n\t\t\t\t)\";\n\t\t $this->execute($sql);\n\t\t \n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable( 'tbl_auth_item', array(\n\t\t \"name\" => \"varchar(64) not null\",\n\t\t \"type\" => \"integer not null\",\n\t\t \"description\" => \"text\",\n\t\t \"bizrule\" => \"text\",\n\t\t \"data\" => \"text\",\n\t\t \"primary key (name)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_item_child\", array(\n \t\t\"parent\" => \" varchar(64) not null\",\n\t\t\"child\" => \" varchar(64) not null\",\n \t\t\"primary key (parent,child)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_assignment\",array(\n \t\t\"itemname\" => \"varchar(64) not null\",\n \t\t\"userid\" => \"varchar(64) not null\",\n \t\t\"bizrule\" => \"text\",\n \t\t\"data\"\t => \"text\",\n \t\t\"primary key (itemname,userid)\",\n\t\t));\n\n\t\t$this->addForeignKey('fk_auth_item_child_parent','tbl_auth_item_child','parent','tbl_auth_item','name','CASCADE','CASCADE');\n\t\t$this->addForeignKey('fk_auth_assignment_itemname','tbl_auth_assignment','itemname','tbl_auth_item','name');\n\t\t$this->addForeignKey('fk_auth_assignment_userid','tbl_auth_assignment','userid','tbl_user','id');\n\t}", "public function up()\n {\n // add foreign key for table `articles`\n $this->addForeignKey(\n 'fk-comments-article_id',\n 'comments',\n 'article_id',\n 'article',\n 'id'\n );\n }", "public function safeUp()\r\n\t{\r\n\t\t$this->up();\r\n\t}", "public function up()\n {\n\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable($this->createTableName, [\n 'id' => $this->primaryKey(),\n 'name' => $this->string()->notNull(),\n 'type' => $this->integer(1)->notNull(),\n 'location' => $this->text()->defaultValue(null),\n 'description' => $this->text()->defaultValue(null),\n 'created_by' => $this->integer()->notNull(),\n 'start_at' => $this->integer()->defaultValue(null),\n 'active' => $this->boolean()->defaultValue(true),\n\n ],$tableOptions);\n\n\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n\n $moduleInvite = Module::findOne(['name' => 'Actioncalendar', 'slug' => 'actioncalendar']);\n if(empty($moduleInvite)) {\n $this->batchInsert('{{%module}}', ['parent_id', 'name', 'slug', 'visible', 'sorting'], [\n [null, 'Actioncalendar', 'actioncalendar', 1, 22],\n ]);\n }\n\n }", "public function up()\n\t{\n\t\tSchema::table('user_hasil', function($table)\n\t\t{\n\t\t\t$table->create();\n\t\t\t$table->integer('user_id');\n\t\t\t$table->string('grade', 2);\n\t\t\t$table->decimal('hasil', 5, 2);\n\t\t\t$table->year('tahun');\n\t\t\t$table->timestamps();\n\n\t\t\t$table->foreign('user_id')->references('id')->on('users')->on_update('cascade');\n\t\t});\n\t}", "public function safeUp()\r\n {\r\n $tableOptions = null;\r\n if ($this->db->driverName === 'mysql') {\r\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB';\r\n }\r\n\r\n $this->createTable('{{%contact_msg}}', [\r\n 'id' => Schema::TYPE_PK,\r\n 'from_email' => Schema::TYPE_STRING . \"(320) NOT NULL\",\r\n 'to_email' => Schema::TYPE_STRING . \"(320) NULL\",\r\n 'subject' => Schema::TYPE_STRING . \"(300) NOT NULL\",\r\n 'text' => Schema::TYPE_TEXT,\r\n 'viewed' => Schema::TYPE_BOOLEAN . \"(1) NOT NULL DEFAULT '0'\",\r\n 'created_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n 'updated_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n ], $tableOptions);\r\n }", "public function up()\n {\n $this->alterColumn('{{%hystorical_data}}', 'project_id', $this->integer());\n\n $this->dropForeignKey('fk-hystorical_data-project_id',\n '{{%hystorical_data}}');\n\n $this->addForeignKey(\n 'fk-hystorical_data-project_id',\n '{{%hystorical_data}}',\n 'project_id',\n '{{%projects}}',\n 'id',\n 'SET NULL'\n );\n }", "public function up()\n\t{\n\t\tSchema::create('flows_steps', function($table) {\n\n\t\t\t$table->engine = 'InnoDB';\n\n\t\t $table->increments('stepid');\n\t\t $table->integer('flowid');\n\t\t $table->string('step', 100);\n\t\t $table->integer('roleid');\n\t\t $table->integer('parentid');\n\t\t $table->integer('state');\n\t\t $table->integer('page');\n\t\t $table->integer('condition2');\n\t\t $table->timestamps();\n\n\t\t});\n\t}", "public function safeUp()\n {\n $this->createTable('site_phrase', array(\n 'site_id' => self::MYSQL_TYPE_UINT,\n 'phrase' => 'string NOT NULL',\n 'hash' => 'varchar(32)',\n 'price' => 'decimal(10,2) NOT NULL',\n 'active' => self::MYSQL_TYPE_BOOLEAN,\n ));\n\n $this->addForeignKey('site_phrase_site_id', 'site_phrase', 'site_id', 'site', 'id', 'CASCADE', 'RESTRICT');\n }", "public function up()\n\t{\n\t\tSchema::table('devices', function($table)\n\t\t{\n\t\t\t$table->string('uuid')->unique;\n\t\t\t$table->drop_column('uid');\n\t\t});\n\t}", "public function up()\n\t{\n\t\t$this->execute(\"\n INSERT INTO `authitem` VALUES('D2finv.FiitInvoiceItem.*', 0, 'Edit invoice items', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FiitInvoiceItem.View', 0, 'View invoice items', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FinvInvoice.*', 0, 'Edit invoice records', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FinvInvoice.View', 0, 'View invoice records', NULL, 'N;');\n \n INSERT INTO `authitem` VALUES('InvoiceEdit', 2, 'Edit invoice records', NULL, 'N;');\n INSERT INTO `authitem` VALUES('InvoiceView', 2, 'View invoice records', NULL, 'N;');\n \n INSERT INTO `authitemchild` VALUES('InvoiceEdit', 'D2finv.FiitInvoiceItem.*');\n INSERT INTO `authitemchild` VALUES('InvoiceView', 'D2finv.FiitInvoiceItem.View');\n INSERT INTO `authitemchild` VALUES('InvoiceEdit', 'D2finv.FinvInvoice.*');\n INSERT INTO `authitemchild` VALUES('InvoiceView', 'D2finv.FinvInvoice.View');\n \");\n\t}", "public function up()\n {\n $this->createTable('post',[\n 'id' => $this->primaryKey(),\n 'author_id' => $this->integer(),\n 'title' => $this->string(255)->notNull()->unique(),\n 'content' => $this->text(),\n 'published_at' => $this->dateTime()->defaultExpression('CURRENT_TIMESTAMP'),\n 'updated_at' => $this->dateTime()->defaultExpression('CURRENT_TIMESTAMP'),\n 'status' => \"ENUM('draft','published')\",\n 'image' => $this->string(255)\n ]); \n\n $this->addForeignKey(\n 'fk_post_author_id',\n 'post',\n 'author_id',\n 'user',\n 'id',\n 'CASCADE',\n 'NO ACTION'\n );\n }", "public function up()\n\t{\n// $import->import();\n\t}", "public function up()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{rights}}\")){\n\t\t\t$this->dropTable(\"authItem\");\n\t\t}\n\n\t\t$this->createTable(\"{{rights}}\", array(\n\t\t\t\"itemname\" => \"varchar(64) CHARACTER SET UTF8 NOT NULL\",\n\t\t\t\"type\"\t => \"int not null\",\n\t\t\t\"weight\" => \"int not null\",\n\t\t\t\"PRIMARY KEY (itemname)\"\n\t\t\t));\n\t}", "public function up() {\r\n\t\t// UP\r\n\t\t$column = parent::Column();\r\n\t\t$column->setName('id')\r\n\t\t\t\t->setType('biginteger')\r\n\t\t\t\t->setIdentity(true);\r\n\t\tif (!$this->hasTable('propertystorage')) {\r\n\t\t\t$this->table('propertystorage', [\r\n\t\t\t\t\t\t'id' => false,\r\n\t\t\t\t\t\t'primary_key' => 'id'\r\n\t\t\t\t\t])->addColumn($column)\r\n\t\t\t\t\t->addColumn('path', 'text', ['limit' => 1024])\r\n\t\t\t\t\t->addColumn('name', 'text', ['limit' => 100])\r\n\t\t\t\t\t->addColumn('valuetype', 'integer',[])\r\n\t\t\t\t\t->addColumn('value', 'text', [])\r\n\t\t\t\t\t->create();\r\n\t\t}\r\n\t}", "public function up()\n {\n $perfis = [\n [\n 'id' => 1,\n 'perfil' => 'Genérico',\n 'ativo' => 1\n ]\n ];\n\n $this->insert('singular_perfil', $perfis);\n\n $usuarios = [\n [\n 'id' => 1,\n 'nome' => 'Singular Framework',\n 'login' => 'singular',\n 'senha' => 'singular',\n 'perfil_id' => 1\n ]\n ];\n\n $this->insert('singular_usuario', $usuarios);\n }", "public function safeUp()\n {\n $this->createTable('user', array(\n 'name' => 'string',\n 'username' => 'string NOT NULL',\n 'password' => 'VARCHAR(32) NOT NULL',\n 'salt' => 'VARCHAR(32) NOT NULL',\n 'role' => \"ENUM('partner', 'admin')\"\n ));\n }", "public function up()\n\t{\n\t\t$demoUser = new User();\n\t\t$demoUser->username = \"demo\";\n\t\t$demoUser->email = '[email protected]';\n\t\t$demoUser->password = 'password';\n\t\t$demoUser->create_time = new CDbExpression('NOW()');\n\t\t$demoUser->update_time = new CDbExpression('NOW()');\n\n\t\t$demoUser->save();\n\n\t\t$adminUser = new User();\n\t\t$adminUser->username = \"admin\";\n\t\t$adminUser->email = '[email protected]';\n\t\t$adminUser->password = 'password';\n\t\t$adminUser->create_time = new CDbExpression('NOW()');\n\t\t$adminUser->update_time = new CDbExpression('NOW()');\n\n\t\t$adminUser->save();\n\n\t}", "public function safeUp()\n {\n $tables = Yii::$app->db->schema->getTableNames();\n $dbType = $this->db->driverName;\n $tableOptions_mysql = \"CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB\";\n\n /* MYSQL */\n if (!in_array('question_tag', $tables)) {\n if ($dbType == \"mysql\") {\n $this->createTable('{{%question_tag}}', [\n 'question_id' => 'INT(11) NOT NULL',\n 'tag_id' => 'INT(11) NOT NULL',\n ], $tableOptions_mysql);\n }\n }\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t'like',\n\t\t\tarray(\n\t\t\t\t'id'=>'int(11) UNSIGNED NOT NULL AUTO_INCREMENT',\n\t\t\t\t'user_id' => 'int(11) UNSIGNED NOT NULL',\n\t\t\t\t'post_id' => 'int (11) NOT NULL',\n\t\t\t\t'status' => 'TINYINT(1)',\n\t\t\t\t'created_at' => 'int(11)',\n\t\t\t\t'updated_at' => 'int(11)',\n\t\t\t\t'PRIMARY KEY (id)',\n\t\t\t\t),\n\t\t\t'ENGINE=InnoDB'\n\n\t\t\t);\n\t}", "public function up()\n\t{\n\t\tSchema::table('entries', function($table) {\n $table->create();\n $table->increments('id');\n $table->string('title', 128);\n $table->string('body');\n $table->integer('users_id')->unsigned();\n $table->index('users_id');\n $table->integer('last_edited_by');\n $table->foreign('users_id')->references('id')->on('users')->on_delete('no action');\n $table->timestamps();\n });\n\t}", "public function up()\n {\n $this->alterColumn(\\app\\models\\EmailImportLead::tableName(), 'password', $this->string()->null());\n $this->alterColumn(\\app\\models\\EmailImportLead::tableName(), 'status', $this->integer()->null());\n }", "public function up()\n {\n\t\t$tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\t\t\n\t\t$TABLE_NAME = 'HaberDeneme12';\n $this->createTable($TABLE_NAME, [\n 'HaberID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(12)->notNull(),\n 'Baslik' => $this->string(128)->notNull(),\n 'Ozet' => $this->text()->notNull(),\n 'Detay' => $this->text()->notNull(),\n 'Resim' => $this->text()->notNull(),\n 'EklenmeTarihi' => $this->date(),\n 'GuncellenmeTarihi' => $this->date()\n ], $tableOptions);\n\t\t\n\t\t\n\t\t$TABLE_NAME = 'HaberKategoriDeneme12';\n\t\t $this->createTable($TABLE_NAME, [\n 'KategoriID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(20)->notNull()\n ], $tableOptions);\n\t\t\n }", "public function up()\n\t{\n\t\t$fields = array(\n \"`piezas` DECIMAL(3,2) DEFAULT NULL\",\n\n\t\t);\n\t\t$this->dbforge->add_column('rel_monto_servicios', $fields);\n\n\t}", "public function up()\n {\n $this->insert('key_value', [\n 'key' => 'day_feed_count_dnr',\n 'value' => '15',\n ]);\n }", "public function up()\n {\n // 创建操作记录表\n $tables = $this->table('history');\n // 用户动作\n $tables->addColumn('action', 'string', ['limit' => 20])\n ->addColumn('ip', 'string', ['limit' => 129])\n // 建立用户\n ->addColumn('user_id', 'integer')\n // 登录时间\n ->addColumn('operation_time', 'datetime')\n // 操作详情\n ->addColumn('desc', 'string',['limit'=>500,'null' => true])\n ->create();\n }", "public function up()\n {\n $table = $this->table('vehicle_model_suggestions');\n\n if (!$table->exists()) {\n $table\n ->addPrimaryKey('id')\n ->addColumn('vehicle_id', 'integer', ['null' => false])\n ->addColumn('vehicle_model_id', 'integer', ['null' => false])\n ->addColumn('suggestion', 'text')\n ->addTimestamps()\n ->addColumn('deleted_at', 'datetime')\n ->create();\n }\n }", "public function safeUp()\n {\n $this->insert('category',['name'=>'Uncategorized', 'slug'=>'uncategorized', 'description'=>'Default Category', 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()')]);\n $this->insert('user',['username'=>'Administrator', 'password_hash'=>'$2y$13$6yoLjvVORp/7EO1u8phYTuWYzhMSM4LVVsebZgcqEKj/EQLvo5nJK',\n 'email'=>'[email protected]',\n 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()'),\n 'status'=>1\n ]\n );\n }", "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'post_id' => $this->bigInteger()->notNull(),\n 'category_id' => $this->bigInteger()->notNull(),\n ]);\n\n $this->addForeignKey('post_category_post_id_fk', $this->tableName, 'post_id', '{{%post}}', 'id', 'CASCADE', 'CASCADE');\n $this->addForeignKey('post_category_category_id_fk', $this->tableName, 'category_id', '{{%category}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function up()\n {\n Schema::table('categories', function(Blueprint $table)\n {\n $table->integer('parent_id', false, true)->nullable()->after('cat_order');\n });\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'application_id' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Ид приложения\"',\n\n\t\t\t\t'message' => 'TEXT NOT NULL DEFAULT \"\" COMMENT \"Оригинал\"',\n\t\t\t\t'category' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Категория\"',\n\t\t\t\t'language' => 'VARCHAR(5) NOT NULL DEFAULT \"\" COMMENT \"Язык\"',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\n\t{\n\t\t//\n\t\tSchema::create('options',function($table){\n\t\t\t$table->increments('id');\n\t\t\t$table->boolean('activate_pn');\n\t\t\t$table->string('basic_name');\n\t\t\t$table->string('basic_pass');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t$o = new Option;\n\t\t$o->activate_pn = 0;\n\t\t$o->save();\n\t}", "public function up() {\n\t\t$this->dbforge->add_field(array(\n\t\t\t'id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t\t'unsigned' => TRUE,\n\t\t\t\t'auto_increment' => TRUE\n\t\t\t),\n\t\t\t'name' => array(\n\t\t\t\t'type' => 'VARCHAR',\n\t\t\t\t'constraint' => '100',\n\t\t\t),\n\t\t\t'path' => array(\n\t\t\t\t'type' => 'VARCHAR',\n\t\t\t\t'constraint' => '100',\n\t\t\t)\n\t\t));\n\t\t$this->dbforge->add_key('id', TRUE);\n\t\t$this->dbforge->add_key('path');\n\t\t$this->dbforge->create_table('categories');\n\n\t\t// Table structure for table 'event_categories'\n\t\t$this->dbforge->add_field(array(\n\t\t\t'event_id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t),\n\t\t\t'category_id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t\t'unsigned' => TRUE,\n\t\t\t),\n\t\t));\n\t\t$this->dbforge->add_key('event_id', TRUE);\n\t\t$this->dbforge->add_key('category_id', TRUE);\n\t\t$this->dbforge->create_table('event_categories');\n\t}", "public function up()\n\t{\n Laravel\\Database\\Schema::create(\"orbs\", function($table){\n $table->increments(\"id\");\n $table->string(\"name\");\n $table->string(\"description\");\n $table->integer(\"coins\");\n $table->integer(\"points\");\n $table->integer(\"min_level\");\n $table->integer(\"max_level\");\n $table->integer(\"owner_character\");\n $table->integer(\"acquisition_time\");\n $table->integer(\"last_attacker\");\n $table->integer(\"last_attack_time\");\n $table->string(\"image\");\n });\n\t}" ]
[ "0.80062366", "0.79145443", "0.79145443", "0.79145443", "0.7572342", "0.756089", "0.75283176", "0.7498379", "0.7493237", "0.7453656", "0.74463314", "0.7433381", "0.74307704", "0.7427088", "0.741794", "0.73779047", "0.7374933", "0.7370453", "0.73637444", "0.73505706", "0.7329024", "0.7313519", "0.7298817", "0.72950184", "0.72917736", "0.7291469", "0.72913444", "0.72849613", "0.72839737", "0.7272078", "0.7271878", "0.72659117", "0.7262893", "0.7261672", "0.7256839", "0.72505474", "0.7249633", "0.72441125", "0.724062", "0.72376186", "0.7218244", "0.72177947", "0.72046006", "0.7203395", "0.7196059", "0.7191219", "0.7189963", "0.7177052", "0.71761394", "0.7167738", "0.7164105", "0.7164105", "0.7159096", "0.7147647", "0.7136521", "0.7129768", "0.7124664", "0.7123368", "0.71168584", "0.7104628", "0.7104628", "0.7104618", "0.7097006", "0.70931643", "0.70886755", "0.7087018", "0.7086326", "0.70830804", "0.70829463", "0.70780045", "0.70702124", "0.70690626", "0.7066111", "0.7062268", "0.7058938", "0.705882", "0.70556235", "0.70549136", "0.7054758", "0.70498437", "0.70483595", "0.7047308", "0.7045881", "0.70445794", "0.7043173", "0.703882", "0.7038126", "0.703674", "0.7033728", "0.7032356", "0.7031423", "0.70257956", "0.70142514", "0.70101255", "0.7006208", "0.6988486", "0.6984963", "0.69629973", "0.69612974", "0.69587934", "0.6957519" ]
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); $this->addSql('CREATE TABLE organisation_client (organisation_id INT NOT NULL, client_id INT NOT NULL, PRIMARY KEY(organisation_id, client_id))'); $this->addSql('CREATE INDEX idx_455fde4819eb6921 ON organisation_client (client_id)'); $this->addSql('CREATE INDEX idx_455fde489e6b1585 ON organisation_client (organisation_id)'); $this->addSql('ALTER TABLE organisation_client ADD CONSTRAINT fk_455fde489e6b1585 FOREIGN KEY (organisation_id) REFERENCES organisation (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); $this->addSql('ALTER TABLE organisation_client ADD CONSTRAINT fk_455fde4819eb6921 FOREIGN KEY (client_id) REFERENCES client (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); $this->addSql('ALTER TABLE client DROP CONSTRAINT FK_C74404559E6B1585'); $this->addSql('DROP INDEX IDX_C74404559E6B1585'); $this->addSql('ALTER TABLE client DROP organisation_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo','fecha','date');\n\t}", "public function down()\n {\n \t\n \t$this->createTable('os', [\n \t\t\t'id' => Schema::TYPE_PK,\n \t\t\t'name' => Schema::TYPE_STRING . ' NOT NULL',\n \t\t\t]);\n \t$this->insert('os', ['id' => 1, 'name' => 'Any']);\n \t$this->insert('os', ['id' => 2, 'name' => 'CentOS']);\n \t$this->insert('os', ['id' => 3, 'name' => 'RHEL']);\n \t$this->insert('os', ['id' => 4, 'name' => 'Fedora']);\n \t \n \t$this->createTable('os_bit', [\n \t\t\t'id' => Schema::TYPE_PK,\n \t\t\t'name' => Schema::TYPE_STRING . ' NOT NULL',\n \t\t\t]);\n\n return false;\n }", "public function down()\n {\n //Schema::dropIfExists('c');//回滚时执行\n\n }", "public function down()\n {\n $this->dbforge->drop_column('user', 'created_at');\n }", "public function down()\n {\n $this->dropForeignKey(\n 'fk-video-blog_id',\n 'video'\n );\n\n\n echo \"m160820_150846_video_create reverted.\\n\";\n\n }", "public function down()\n\t{\nDB::query(\n\"drop table haal;\");\nDB::query(\n\"drop table kandidaat;\");\nDB::query(\n\"drop table haaletaja;\");\nDB::query(\n\"drop table partei;\");\nDB::query(\n\"drop table valimisringkond;\");\n\t}", "public function down()\n\t{\n\t\t// Remove data from committee_members\n\t\tDB::table('committee_members')->where('id', '<', 3)->delete();\t\n\t}", "public function down(){\n $this->dropTable('users');\n }", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `department_summary`\n\n CHANGE `positive_twitter_account` `twitter_account` TEXT NOT NULL,\n\n DROP `negative_twitter_account`;\n\nALTER TABLE `tweets`\n\n CHANGE `twitter_account` `positive_twitter_account` TEXT NOT NULL,\n\n ADD `negative_twitter_account` INTEGER NOT NULL AFTER `quality_tweet`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down()\n {\n Schema::table('attachments', function(Blueprint $table) {\n\n $table->dropColumn('viewable_id');\n $table->dropColumn('viewable_type');\n\n\n });\n }", "public function down()\n\t{\n\t\t//Schema::drop('purchase_order_details');\n\t}", "public function getDownSQL()\r\n {\r\n return array (\n 'propel' => '\r\n# This is a fix for InnoDB in MySQL >= 4.1.x\r\n# It \"suspends judgement\" for fkey relationships until are tables are set.\r\nSET FOREIGN_KEY_CHECKS = 0;\r\n\r\nDROP TABLE IF EXISTS `movimiento`;\r\n\r\n# This restores the fkey checks, after having unset them earlier\r\nSET FOREIGN_KEY_CHECKS = 1;\r\n',\n);\r\n }", "public function down()\n\t{\n//\t\t$this->dbforge->drop_table('blog');\n\n//\t\t// Dropping a Column From a Table\n\t\t$this->dbforge->drop_column('categories', 'icon');\n\t}", "public function down()\n\t{\n\t\t// nothing to do here.\n\t}", "public function down(){\r\n $this->dbforge->drop_table('users'); //eliminacion de la tabla users\r\n }", "public function down()\n\t{\n\t\tSchema::drop('student');\n\t\t//\n\t}", "public function down()\n{\n\nSchema::drop('event_user');\nSchema::drop('events');\nSchema::drop('file');\nSchema::drop('file_ref');\nSchema::drop('groups');\nSchema::drop('project_user');\nSchema::drop('projects');\nSchema::drop('quicknote');\nSchema::drop('subtasks');\nSchema::drop('task_user');\nSchema::drop('tasks');\nSchema::drop('throttle');\nSchema::drop('timesheet');\nSchema::drop('todos');\nSchema::drop('user_profile');\nSchema::drop('users');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\n\n}", "public function down() \n {\n \n }", "public function down()\n\t{\n\t}", "public function down()\n\t{\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n {\n $this->table('contents')->drop()->save();\n }", "public function down()\n\t{\n\t\tSchema::drop('education');\n\t}", "public function down()\n\t{\n\t\tSchema::drop('l_wardrobe_table');\n\t}", "public function down()\n\t{\n\t\techo $this->migration('down');\n\n\t\tci('o_role_model')->migration_remove($this->hash());\n\t\t\n\t\treturn true;\n\t}", "public function safeDown()\n\t{\n $sql=\" ALTER TABLE `tbl_venta` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n //quitando la columna pto_venta de tbl_empleado\n $sql=\" ALTER TABLE `tbl_empleado` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n\t}", "public function down()\n {\n\tSchema::drop('quizzes');\n }", "public function down()\n {\n $this->output->writeln('Down migration is not available.');\n }", "public function down()\n {\n $this->executeSQL('SET FOREIGN_KEY_CHECKS=0');\n\n $this->executeSQL('DROP TABLE link');\n $this->executeSQL('DROP TABLE link_category');\n\n $this->executeSQL('SET FOREIGN_KEY_CHECKS=1');\n }", "public function down ()\n {\n }", "abstract public function down();", "abstract public function down();", "abstract public function down();", "public function down()\n {\n // This migration was removed, but fails when uninstalling plugin\n }", "public function down()\r\n {\r\n $this->dbforge->drop_table('users');\r\n }", "public function down() {\n\n\t}", "public function down()\n {\n $this->dbforge->drop_table('lecturer', true);\n }", "public function down()\n\t{\n\t\tSchema::drop('flows_steps');\n\t}", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE galaxiee (id INT AUTO_INCREMENT NOT NULL, idu_id INT NOT NULL, nom VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_8576D2AF376A6230 (idu_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE trou_noir (id INT AUTO_INCREMENT NOT NULL, id_g_id INT DEFAULT NULL, nom VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_AB27242D95951086 (id_g_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE galaxiee ADD CONSTRAINT FK_8576D2AF376A6230 FOREIGN KEY (idu_id) REFERENCES univers (id)');\n $this->addSql('ALTER TABLE trou_noir ADD CONSTRAINT FK_AB27242D95951086 FOREIGN KEY (id_g_id) REFERENCES galaxie (id)');\n $this->addSql('DROP TABLE trounoir');\n $this->addSql('ALTER TABLE galaxie DROP FOREIGN KEY FK_1C880711376A6230');\n $this->addSql('DROP INDEX IDX_1C880711376A6230 ON galaxie');\n $this->addSql('ALTER TABLE galaxie CHANGE idu_id id_u_id INT NOT NULL');\n $this->addSql('ALTER TABLE galaxie ADD CONSTRAINT FK_1C8807116F858F92 FOREIGN KEY (id_u_id) REFERENCES univers (id)');\n $this->addSql('CREATE INDEX IDX_1C8807116F858F92 ON galaxie (id_u_id)');\n $this->addSql('ALTER TABLE planete DROP FOREIGN KEY FK_490E3E5712013DEC');\n $this->addSql('DROP INDEX IDX_490E3E5712013DEC ON planete');\n $this->addSql('ALTER TABLE planete ADD id_s_id INT NOT NULL, ADD nb_sattelite INT NOT NULL, DROP ids_id, DROP nb_satelite');\n $this->addSql('ALTER TABLE planete ADD CONSTRAINT FK_490E3E574AEED04E FOREIGN KEY (id_s_id) REFERENCES systeme (id)');\n $this->addSql('CREATE INDEX IDX_490E3E574AEED04E ON planete (id_s_id)');\n $this->addSql('ALTER TABLE systeme DROP FOREIGN KEY FK_95796DE3CD7AFD24');\n $this->addSql('DROP INDEX IDX_95796DE3CD7AFD24 ON systeme');\n $this->addSql('ALTER TABLE systeme CHANGE idg_id id_g_id INT NOT NULL');\n $this->addSql('ALTER TABLE systeme ADD CONSTRAINT FK_95796DE395951086 FOREIGN KEY (id_g_id) REFERENCES galaxie (id)');\n $this->addSql('CREATE INDEX IDX_95796DE395951086 ON systeme (id_g_id)');\n }", "public function down() {\n $this->dbforge->drop_column('timesheets_items', 'orgID', TRUE);\n $this->dbforge->drop_column('timesheets_items', 'brandID', TRUE);\n $this->dbforge->drop_column('timesheets_items', 'reason_desc', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'orgID', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'brandID', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'reason_desc', TRUE);\n\n // change reason to note\n $fields = array(\n 'reason' => array(\n 'name' => 'note',\n 'type' => \"VARCHAR\",\n 'constraint' => 200,\n 'null' => TRUE\n )\n );\n $this->dbforge->modify_column('timesheets_items', $fields);\n $this->dbforge->modify_column('timesheets_expenses', $fields);\n }", "public function down(): void\n {\n // Remove your data\n }", "public function down()\n\t{\n\t\t//Schema::drop('purchase_orders');\n\t\t//Schema::drop('purchase_order_details');\n\t}", "public function down()\n {\n\tSchema::drop('activities');\n }", "public function down(){\n $this->dbforge->drop_table('subcategories_news'); //eliminacion de la tabla subcategories_news\n }", "public function down()\n {\n //return false;\n\t\t\n\t\t$TABLE_NAME = 'Haber';\n $this->dropTable($TABLE_NAME);\n\t\t\n\t\t$TABLE_NAME = 'HaberKategori';\n $this->dropTable($TABLE_NAME);\n }", "public function down()\n {\n }", "public function down()\n {\n }", "public function down()\n\t{\n\t\tDB::table('professor')->where('professor_id', '=', 1)->delete();\n\t\tDB::table('professor')->where('professor_id', '=', 2)->delete();\n\t\tDB::query('ALTER TABLE professor AUTO_INCREMENT = 1');\n\n\t\t//\n\t}", "public function down(): bool {\n\t\t// Remove & add logic to revert the migration here.\n\t\techo \"M230123030315BaseTables cannot be rolled back.\\n\";\n\t\treturn false;\n\t}", "public function getDownSQL()\r\n {\r\n return array (\n 'propel' => '\r\n# This is a fix for InnoDB in MySQL >= 4.1.x\r\n# It \"suspends judgement\" for fkey relationships until are tables are set.\r\nSET FOREIGN_KEY_CHECKS = 0;\r\n\r\nALTER TABLE `promocion` CHANGE `fecha_inicio` `fecha_inicio` DATE NOT NULL;\r\n\r\nALTER TABLE `promocion` CHANGE `fecha_fin` `fecha_fin` DATE NOT NULL;\r\n\r\nALTER TABLE `promocion` CHANGE `descuento` `descuento` DECIMAL;\r\n\r\nALTER TABLE `promocion`\r\n ADD `descripcion` VARCHAR(70) AFTER `id`,\r\n ADD `estado` VARCHAR(11) AFTER `fecha_fin`,\r\n ADD `promocion_global` TINYINT(1) NOT NULL AFTER `descuento`;\r\n\r\nALTER TABLE `promocion` DROP `activo`;\r\n\r\n# This restores the fkey checks, after having unset them earlier\r\nSET FOREIGN_KEY_CHECKS = 1;\r\n',\n);\r\n }", "public function down()\n\t{\n\t\t//return false;\n\t}", "public function down(): void\n {\n try {\n $this->db->ForeignKeyChecks(false);\n $statement=$this->db->prepare(\"DROP TABLE IF EXISTS prom2_pages\");\n $statement->execute();\n $statement->close();\n $this->db->ForeignKeyChecks(true);\n } catch (\\mysqli_sql_exception $exception) {\n throw $exception;\n }\n }", "public function down()\n\t{\n\t\t//\n\t\tSchema::drop('options');\n\t}", "public function change()\n {\n $this->schema->table('recurring_expenses',function($table){\n $table->date('end_repeat')->nullable();\n $table->boolean('ended')->default(false);\n $table->enum('repeat',['0','1','7','14','30','365'])->nullable();\n });\n\n $this->schema->table('expenses',function($table){\n $table->dropColumn('end_repeat');\n $table->dropColumn('repeat');\n $table->integer('parent_id')->nullable();\n $table->foreign('parent_id')->references('id')->on('expenses')->onDelete('cascade');\n });\n }", "public function down()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->dropForeign('users_id_turma_foreign');\n });\n\n Schema::table('contato', function (Blueprint $table) {\n $table->dropForeign('contato_id_usuario_foreign');\n });\n\n Schema::table('monitores', function (Blueprint $table) {\n $table->dropForeign('monitores_id_turma_foreign');\n $table->dropForeign('monitores_id_usuario_foreign');\n });\n\n Schema::table('galeria_portifolio', function (Blueprint $table) {\n $table->dropForeign('galeria_portifolio_id_portifolio_foreign');\n });\n\n Schema::table('portifolio_alunos', function (Blueprint $table) {\n $table->dropForeign('portifolio_alunos_id_portifolio_foreign');\n $table->dropForeign('portifolio_alunos_id_usuario_foreign');\n });\n\n Schema::table('cobranca', function (Blueprint $table) {\n $table->dropForeign('cobranca_id_aluno_foreign');\n });\n\n Schema::table('lista_de_presenca', function (Blueprint $table) {\n $table->dropForeign('lista_de_presenca_id_usuario_foreign');\n });\n\n Schema::table('forum_da_turma', function (Blueprint $table) {\n $table->dropForeign('forum_da_turma_id_usuario_foreign');\n });\n\n Schema::table('posts_do_site', function (Blueprint $table) {\n $table->dropForeign('posts_do_site_id_usuario_foreign');\n });\n\n Schema::table('posts_do_forum', function (Blueprint $table) {\n $table->dropForeign('posts_do_forum_id_topico_foreign');\n $table->dropForeign('posts_do_forum_id_usuario_foreign');\n });\n }", "public function down()\n\t{\n\t\t$this->dropForeignKey('FK_task_creator','tbl_task');\n\n\t\t$this->dropTable('tbl_task');\n\t}", "public function down()\n {\n $this->table('articles')->drop()->save();\n $this->table('categories')->drop()->save();\n $this->table('football_ragistrations')->drop()->save();\n $this->table('friends')->drop()->save();\n $this->table('menus')->drop()->save();\n $this->table('picnic_ragistrations')->drop()->save();\n $this->table('products')->drop()->save();\n $this->table('profiles')->drop()->save();\n $this->table('skills')->drop()->save();\n $this->table('spouses')->drop()->save();\n $this->table('students')->drop()->save();\n $this->table('submenus')->drop()->save();\n $this->table('users')->drop()->save();\n }", "public function down(){\n\t\tSchema::dropIfExists('cargo');\n\t}", "public function down()\n {\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )->save();\n\n $this->table('users')\n ->removeIndexByName('FK_users_roles')\n ->update();\n\n $this->table('users')\n ->addColumn('can_edit', 'boolean', [\n 'after' => 'enabled',\n 'default' => '0',\n 'length' => null,\n 'null' => false,\n ])\n ->removeColumn('role_id')\n ->update();\n\n $this->table('stundenplan')\n ->changeColumn('note', 'string', [\n 'default' => null,\n 'length' => 255,\n 'null' => true,\n ])\n ->removeColumn('loggedInNote')\n ->update();\n\n $this->table('roles')->drop()->save();\n }", "public function down()\n\t{\n\t\t//\n\t\tDB::query('TRUNCATE TABLE app_user_apps_publishes CASCADE');\n\t\tDB::query('TRUNCATE TABLE app_apps_fbapps CASCADE');\n\t\tDB::query('TRUNCATE TABLE app_apps_applications CASCADE');\n\t}", "public function down()\n\t{\n\t\t// Drop Table\n\t\tSchema::drop('activities_types');\n\t}", "protected abstract function do_down();", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE encherir_acheteur (encherir_id INT NOT NULL, acheteur_id INT NOT NULL, INDEX IDX_41ABAAFBB0BA17BB (encherir_id), INDEX IDX_41ABAAFB96A7BB5F (acheteur_id), PRIMARY KEY(encherir_id, acheteur_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE encherir_lot (encherir_id INT NOT NULL, lot_id INT NOT NULL, INDEX IDX_3C56919BB0BA17BB (encherir_id), INDEX IDX_3C56919BA8CBA5F7 (lot_id), PRIMARY KEY(encherir_id, lot_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFB96A7BB5F FOREIGN KEY (acheteur_id) REFERENCES acheteur (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFBB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BA8CBA5F7 FOREIGN KEY (lot_id) REFERENCES lot (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EB576A8');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EFC101A');\n $this->addSql('DROP INDEX IDX_503B7C878EB576A8 ON encherir');\n $this->addSql('DROP INDEX IDX_503B7C878EFC101A ON encherir');\n $this->addSql('ALTER TABLE encherir DROP id_acheteur_id, DROP id_lot_id');\n }", "public function down()\n {\n $this->table('accounting_entries')\n ->dropForeignKey(\n 'accounting_entry_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('associations_events')\n ->dropForeignKey(\n 'event_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('events')\n ->dropForeignKey(\n 'event_type_id'\n )->save();\n\n $this->table('members')\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics')\n ->dropForeignKey(\n 'statistics_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics_event')\n ->dropForeignKey(\n 'statistics_id'\n )\n ->dropForeignKey(\n 'event_id'\n )->save();\n\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('accounting_entries')->drop()->save();\n $this->table('accounting_entry_type')->drop()->save();\n $this->table('associations')->drop()->save();\n $this->table('associations_events')->drop()->save();\n $this->table('event_type')->drop()->save();\n $this->table('events')->drop()->save();\n $this->table('members')->drop()->save();\n $this->table('roles')->drop()->save();\n $this->table('statistics')->drop()->save();\n $this->table('statistics_event')->drop()->save();\n $this->table('statistics_type')->drop()->save();\n $this->table('users')->drop()->save();\n }", "public function down()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{user_block}}\")){\n\t\t\t$this->dropTable(\"{{user_block}}\");\n\t\t}\n\n\t}", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nDROP TABLE IF EXISTS `user_login`;\n\nALTER TABLE `user` DROP `user_mname`;\n\nALTER TABLE `user` DROP `user_user`;\n\nALTER TABLE `user` DROP `user_password`;\n\nALTER TABLE `user` DROP `user_date_lastlogin`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down()\n\t{\n\t\tSchema::table('officers', function($t){\n\t\t\t$t->drop_column('role');\n\t\t});\n\t}", "public function safeDown()\n {\n $this->down();\n }", "public function safeDown()\n {\n $this->down();\n }", "public function down()\n\t{\n\t\tSchema::drop('refs');\n\t}", "public function down () {\n\t\treturn $this->rename_column ('headline', 'title', 'string', array ('limit' => 72));\n\t}", "public function down()\n\t{\n\t\tSchema::drop('appeals');\n\t}", "public function safeDown()\r\n {\r\n $this->down();\r\n }", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nDROP TABLE IF EXISTS `user`;\n\nDROP TABLE IF EXISTS `question`;\n\nDROP TABLE IF EXISTS `answer`;\n\nDROP TABLE IF EXISTS `image`;\n\nDROP TABLE IF EXISTS `vote`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n<<<<<<< HEAD\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCF082E755');\n $this->addSql('ALTER TABLE affaire DROP FOREIGN KEY FK_9C3F18EFED813170');\n=======\n<<<<<<< HEAD:src/Migrations/Version20200418121015.php\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCF082E755');\n $this->addSql('ALTER TABLE affaire DROP FOREIGN KEY FK_9C3F18EFED813170');\n=======\n $this->addSql('ALTER TABLE liste_affaire_affaire DROP FOREIGN KEY FK_CA81ADF3F082E755');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2463CD7C3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA25D493FF4');\n $this->addSql('ALTER TABLE correspondant_administratif DROP FOREIGN KEY FK_E1E7152EBF396750');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA246135043');\n>>>>>>> e1e13eb645b79ada7517f9d2be860dc1655c42db:src/Migrations/Version20200318150734.php\n>>>>>>> 0c1c04bb7c2bbee076bc5fdb1e2456d1af817866\n $this->addSql('ALTER TABLE enfant_sejour DROP FOREIGN KEY FK_159E7E65450D2529');\n $this->addSql('ALTER TABLE enfant_sejour DROP FOREIGN KEY FK_159E7E6584CF0CF');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2463CD7C3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA25D493FF4');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2FF631228');\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCE2687AC3');\n $this->addSql('ALTER TABLE sejour DROP FOREIGN KEY FK_96F52028E2687AC3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA246135043');\n $this->addSql('ALTER TABLE correspondant_administratif DROP FOREIGN KEY FK_E1E7152E46135043');\n $this->addSql('DROP TABLE affaire');\n<<<<<<< HEAD\n $this->addSql('DROP TABLE affaire_liste_affaire');\n $this->addSql('DROP TABLE type_affaire');\n=======\n<<<<<<< HEAD:src/Migrations/Version20200418121015.php\n $this->addSql('DROP TABLE affaire_liste_affaire');\n $this->addSql('DROP TABLE type_affaire');\n=======\n $this->addSql('DROP TABLE centre');\n $this->addSql('DROP TABLE correspondant_administratif');\n $this->addSql('DROP TABLE responsable_legal');\n>>>>>>> e1e13eb645b79ada7517f9d2be860dc1655c42db:src/Migrations/Version20200318150734.php\n>>>>>>> 0c1c04bb7c2bbee076bc5fdb1e2456d1af817866\n $this->addSql('DROP TABLE enfant');\n $this->addSql('DROP TABLE enfant_sejour');\n $this->addSql('DROP TABLE sejour');\n $this->addSql('DROP TABLE centre');\n $this->addSql('DROP TABLE correspondant_administratif');\n $this->addSql('DROP TABLE etablissement');\n $this->addSql('DROP TABLE liste_affaire');\n $this->addSql('DROP TABLE responsable_legal');\n $this->addSql('DROP TABLE user');\n }", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function down()\n {\n $this->table('mail_contents')->drop()->save();\n }", "public function down() {\n\t}", "public function down() {\n\t}", "public function down() {\n\t}", "public function down()\n {\n Schema::dropIfExists('reunion');\n }", "public function down(): void\n {\n $this->table('services')\n ->dropForeignKey(\n ['currency_id','billing_period_id']\n )->save();\n $this->execute('DELETE FROM currencies');\n $this->execute('DELETE FROM billing_periods');\n $this->table('services')->drop()->save();\n $this->table('currencies')->drop()->save();\n $this->table('billing_periods')->drop()->save();\n }", "public function down()\n\t{\n\t\tSchema::drop('article_category');\n\t}", "public function down()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->renameColumn('first_name', 'name');\n $table->dropIndex('users_first_name_index');\n $table->dropIndex('users_created_at_index');\n $table->dropIndex('users_updated_at_index');\n $table->dropColumn(\"last_name\");\n $table->dropColumn(\"username\");\n $table->dropColumn(\"provider\");\n $table->dropColumn(\"provider_id\");\n $table->dropColumn(\"api_token\");\n $table->dropColumn(\"code\");\n $table->dropColumn(\"remember_token\");\n $table->dropColumn(\"role_id\");\n $table->dropColumn(\"last_login\");\n $table->dropColumn(\"status\");\n $table->dropColumn(\"root\");\n $table->dropColumn('backend');\n $table->dropColumn(\"photo_id\");\n $table->dropColumn(\"lang\");\n $table->dropColumn(\"color\");\n $table->dropColumn(\"about\");\n $table->dropColumn(\"facebook\");\n $table->dropColumn(\"twitter\");\n $table->dropColumn(\"linked_in\");\n $table->dropColumn(\"google_plus\");\n });\n }", "public function down()\n\t{\n\t\tSchema::drop('entries');\n\t}", "public function down()\n\t{\n\t\tSchema::table('precios_aterrizajes_despegues', function(Blueprint $table)\n\t\t{\n\t\t\t//\n\t\t});\n\t}", "public function down()\n{\nSchema::drop('statustype');\nSchema::drop('area');\nSchema::drop('region');\nSchema::drop('territory');\nSchema::drop('trackedevent');\nSchema::drop('zip_territory');\nSchema::drop('messagetype');\nSchema::drop('optintype');\nSchema::drop('representative');\nSchema::drop('pediatrician');\nSchema::drop('application_messagestatus');\nSchema::drop('application_optin');\nSchema::drop('application_trackedevent');\nSchema::drop('application');\n}", "public function down()\n\t{\n\t\tSchema::drop(Config::get('sentry::sentry.table.users_metadata'));\n\t}", "public function down()\n\t{\n\t\tSchema::drop('stor_mem');\n\t}", "protected function tearDown(): void {\n $migration = include __DIR__.'/../database/migrations/create_all_visitors_tables.php.stub';\n $migration->down();\n\n $migrationTest = include __DIR__.'/Support/migrations/2023_01_12_000000_create_test_models_table.php';\n $migrationTest->down();\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_350001418F5EA509');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8B8F5EA509');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA148F5EA509');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0E8F5EA509');\n $this->addSql('ALTER TABLE cours DROP FOREIGN KEY FK_FDCA8C9CF46CD258');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8BF46CD258');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14F46CD258');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7F46CD258');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9A21BD112');\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_35000141A21BD112');\n $this->addSql('ALTER TABLE contacte DROP FOREIGN KEY FK_C794A022A21BD112');\n $this->addSql('ALTER TABLE demande DROP FOREIGN KEY FK_2694D7A5A21BD112');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14A6CC7B2');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7A21BD112');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EE455FCC0');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EBDDFA3C9');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EDC304035');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9E3797A94');\n $this->addSql('ALTER TABLE personne DROP FOREIGN KEY FK_FCEC9EFA76ED395');\n $this->addSql('ALTER TABLE reset_password_request DROP FOREIGN KEY FK_7CE748AA76ED395');\n $this->addSql('DROP TABLE absence');\n $this->addSql('DROP TABLE classe');\n $this->addSql('DROP TABLE classe_personne');\n $this->addSql('DROP TABLE contacte');\n $this->addSql('DROP TABLE cours');\n $this->addSql('DROP TABLE demande');\n $this->addSql('DROP TABLE matiere');\n $this->addSql('DROP TABLE matiere_classe');\n $this->addSql('DROP TABLE news');\n $this->addSql('DROP TABLE note');\n $this->addSql('DROP TABLE personne');\n $this->addSql('DROP TABLE personne_matiere');\n $this->addSql('DROP TABLE reset_password_request');\n $this->addSql('DROP TABLE salle');\n $this->addSql('DROP TABLE seance');\n $this->addSql('DROP TABLE user');\n }", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDEA76ED395');\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDE19FCD424');\n $this->addSql('DROP TABLE booking');\n $this->addSql('DROP TABLE product_image');\n $this->addSql('DROP TABLE family_page_container');\n $this->addSql('DROP TABLE user');\n $this->addSql('DROP TABLE time_line');\n $this->addSql('ALTER TABLE family DROP FOREIGN KEY FK_A5E6215B727ACA70');\n $this->addSql('DROP INDEX IDX_A5E6215B727ACA70 ON family');\n $this->addSql('ALTER TABLE family ADD page_content_id INT NOT NULL, DROP parent_id, DROP has_uniques_prices, DROP has_seasonal_products');\n $this->addSql('ALTER TABLE family ADD CONSTRAINT FK_A5E6215B8F409273 FOREIGN KEY (page_content_id) REFERENCES page_content (id)');\n $this->addSql('CREATE INDEX IDX_A5E6215B8F409273 ON family (page_content_id)');\n $this->addSql('ALTER TABLE link ADD page_container_id INT DEFAULT NULL, DROP url');\n $this->addSql('ALTER TABLE link ADD CONSTRAINT FK_36AC99F123D5B0C FOREIGN KEY (page_container_id) REFERENCES page_container (id)');\n $this->addSql('CREATE INDEX IDX_36AC99F123D5B0C ON link (page_container_id)');\n $this->addSql('ALTER TABLE product DROP content, DROP order_by, DROP is_generic, DROP type, CHANGE title label VARCHAR(50) NOT NULL COLLATE utf8mb4_unicode_ci');\n $this->addSql('ALTER TABLE unit DROP duration');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398F5B7AF75');\n $this->addSql('ALTER TABLE suppliers DROP FOREIGN KEY FK_AC28B95C8486F9AC');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6498486F9AC');\n $this->addSql('ALTER TABLE stock DROP FOREIGN KEY FK_4B365660D629F605');\n $this->addSql('ALTER TABLE stock DROP FOREIGN KEY FK_4B365660E308AC6F');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F46CFFE9AD6');\n $this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04ADEE45BDBF');\n $this->addSql('ALTER TABLE suppliers DROP FOREIGN KEY FK_AC28B95CEE45BDBF');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649EE45BDBF');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F464584665A');\n $this->addSql('ALTER TABLE product_theme DROP FOREIGN KEY FK_36299C544584665A');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649D60322AC');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F46DCD6110');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F462ADD6D8C');\n $this->addSql('ALTER TABLE product_theme DROP FOREIGN KEY FK_36299C5459027487');\n $this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398A76ED395');\n $this->addSql('DROP TABLE address');\n $this->addSql('DROP TABLE format');\n $this->addSql('DROP TABLE material');\n $this->addSql('DROP TABLE `order`');\n $this->addSql('DROP TABLE order_detail');\n $this->addSql('DROP TABLE picture');\n $this->addSql('DROP TABLE product');\n $this->addSql('DROP TABLE product_theme');\n $this->addSql('DROP TABLE role');\n $this->addSql('DROP TABLE stock');\n $this->addSql('DROP TABLE suppliers');\n $this->addSql('DROP TABLE theme');\n $this->addSql('DROP TABLE user');\n }", "public function down()\n {\n Schema::dropIfExists('data');\n }", "public function down()\n\t{\n\t\tSchema::create('jobs',function($table){$table->increments('id');});\n\t\tSchema::create('job_location',function($table){$table->increments('id');});\n\t\tSchema::create('job_skill',function($table){$table->increments('id');});\n\t\tSchema::create('locations',function($table){$table->increments('id');});\n\t\tSchema::create('location_program',function($table){$table->increments('id');});\n\t\tSchema::create('location_scholarship',function($table){$table->increments('id');});\n\t\tSchema::create('positions',function($table){$table->increments('id');});\n\t\tSchema::create('programs',function($table){$table->increments('id');});\n\t\tSchema::create('program_subject',function($table){$table->increments('id');});\n\t\tSchema::create('scholarships',function($table){$table->increments('id');});\n\t\tSchema::create('scholarship_subject',function($table){$table->increments('id');});\n\t\tSchema::create('skills',function($table){$table->increments('id');});\n\t\tSchema::create('subjects',function($table){$table->increments('id');});\n\t}" ]
[ "0.79502094", "0.7863702", "0.7606416", "0.7492738", "0.73199725", "0.7245919", "0.7187675", "0.7153845", "0.71537775", "0.71420383", "0.71353674", "0.71216005", "0.7115856", "0.7105365", "0.70985687", "0.7080349", "0.70783705", "0.7072629", "0.7068311", "0.7065529", "0.7053633", "0.7053633", "0.70424956", "0.70424956", "0.70424956", "0.7041426", "0.703968", "0.7029248", "0.70252407", "0.7021071", "0.69888437", "0.6985933", "0.69781303", "0.69711983", "0.69435465", "0.69435465", "0.69435465", "0.69422066", "0.6941167", "0.69392043", "0.693508", "0.6934209", "0.69273883", "0.69249666", "0.6924165", "0.69139355", "0.6903021", "0.6897935", "0.6897865", "0.6897159", "0.6897159", "0.6887517", "0.68814087", "0.68738264", "0.6869671", "0.68627596", "0.6858359", "0.685274", "0.68442315", "0.68434376", "0.6836587", "0.6836147", "0.68347293", "0.68302953", "0.6829403", "0.6828893", "0.6825529", "0.6823726", "0.6818256", "0.68105906", "0.68082154", "0.6805308", "0.6805308", "0.6789928", "0.6775214", "0.6774431", "0.67646605", "0.67588997", "0.675822", "0.67556226", "0.67556226", "0.67556226", "0.6753787", "0.6753203", "0.6753203", "0.6753203", "0.67524594", "0.6745875", "0.67441654", "0.6738876", "0.67343754", "0.6733525", "0.67314184", "0.67311025", "0.67271084", "0.67268074", "0.6725997", "0.67252296", "0.6716472", "0.6713497", "0.6713106" ]
0.0
-1
/$feedback = array( 'error_string' => '', 'import_error_string' => '', 'import_message' => '' );
private function addOrders($orders, $totoitems) { $processed_invoices = array(); $wms_orders_created = 0; $oc = 1; foreach($orders as $o) { //check for errors first $this->return_array['debug'] .= "<p>Doing order Number $oc</p>"; $item_error = false; $error_string = ""; $ic = 1; foreach($totoitems[$o['invoice_UIDs'][0]] as $item) { $this->return_array['debug'] .= "<p>Checking item $ic in order Number $oc</p>"; if($item['item_error']) { $item_error = true; $error_string .= $item['item_error_string']; $this->return_array['debug'] .= "<p>Found error for item $ic in order Number $oc</p>"; } ++$ic; } if($item_error) { /**/ $message = "<p>There has been a problem with some items in invoice number(s) {$o['client_order_id']} for {$o['ship_to']}</p>"; $message .= $error_string; $message .= "<p>This has meant all invoices for {$o['ship_to']} have not been imported into the WMS</p>"; ++$this->return_array['error_count']; $this->return_array['error_string'] .= $message; //Send an email regarding the error Email::sendFreedomMYOBError($message); $this->return_array['debug'] .= $message; $this->return_array['debug'] .= "<p>Will continue from item_error in addOrders</p>"; ++$oc; continue; } if($o['import_error']) { $this->return_array['import_error_string'] .= $o['import_error_string']; Email::sendFreedomMYOBError($o['import_error_string']); $this->return_array['debug'] .= $message; $this->return_array['debug'] .= "<p>Will continue from import_error in addOrders</p>"; ++$oc; continue; } //insert the order $vals = array( 'client_order_id' => $o['client_order_id'], 'client_id' => 7, 'deliver_to' => $o['ship_to'], 'date_ordered' => $o['date_ordered'], 'tracking_email' => $o['tracking_email'], 'weight' => $o['weight'], 'delivery_instructions' => $o['instructions'], 'errors' => $o['errors'], 'error_string' => $o['error_string'], 'address' => $o['address'], 'state' => $o['state'], 'suburb' => $o['suburb'], 'postcode' => $o['postcode'], 'country' => $o['country'] ); //save the invoices $pdfs = array(); foreach($o['invoices'] as $base64_pdf) { $tmp_name = "/tmp/".Utility::generateRandString(5).".pdf"; $this_pdf = fopen ($tmp_name,'w'); fwrite ($this_pdf,base64_decode($base64_pdf)); fclose ($this_pdf); //array_push($pdfs,'../tmp/test'.$rowp['id'].'.pdf'); $pdfs[] = array( 'file' => $tmp_name, 'orientation' => 'P' ); } $upcount = 1; $filename = "invoice"; $name = "invoice.pdf"; $upload_dir = "/client_uploads/7/"; if ( ! is_dir(DOC_ROOT.$upload_dir)) mkdir(DOC_ROOT.$upload_dir); while(file_exists(DOC_ROOT.$upload_dir.$name)) { $name = $filename."_".$upcount.".pdf"; ++$upcount; } $pdf = new Mympdf(); $pdf->mergePDFFilesToServer($pdfs, $name, DOC_ROOT.$upload_dir); $uploaded_file = $name; $vals['uploaded_file'] = $uploaded_file; //create the order $itp = array($totoitems[$o['invoice_UIDs'][0]]); //echo "<pre>",print_r($itp),"</pre>"; $order_number = $this->controller->order->addOrder($vals, $itp); ++$wms_orders_created; ++$this->return_array['orders_created']; $this->return_array['import_message'] .="<p>$order_number created</p>"; //send back to MYOB foreach($o['invoice_UIDs'] as $key => $invoice_UID) { if(SITE_LIVE) $this->callTask('markInvoiceSent',array('invoiceUID' => $invoice_UID, 'companyId' => $o['company_file_ids'][$key])); $this->return_array['debug'] .= "<p>will call markInvoiceSent with $invoice_UID and ".$o['company_file_ids'][$key]."</p>"; ++$this->return_array['invoices_processed']; } $processed_invoices[] = $o['client_order_id']; ++$oc; } //die(); //Send email about what happened $s = (count($processed_invoices) > 1)? "s have" : " has"; $wmsos = ($wms_orders_created == 1)? " has": "s have"; $pi_string = implode("<br/>", $processed_invoices); $summary = " <p>The following invoice{$s} been imported into the WMS and {$this->return_array['orders_created']} order{$wmsos} been created</p> <p>$pi_string</p> <p>They have all been marked as 'Sent' in MYOB</p> "; $this->return_array['debug'] .= $summary; //echo "<pre>",print_r($this->return_array),"</pre>"; $this->output .= print_r($this->return_array, true) .PHP_EOL; Email::sendFreedomMYOBSummary($summary); return $this->return_array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_create_feedback() {\n\n $testarray = $this->csv_load($this->oktext);\n $testobject = new phpunit_gradeimport_csv_load_data();\n\n // Try to insert some feedback for an assessment.\n $feedback = $testobject->test_create_feedback($this->courseid, 1, $testarray[0][7]);\n\n // Expected result.\n $expectedfeedback = array('itemid' => 1, 'feedback' => $testarray[0][7]);\n $this->assertEquals((array)$feedback, $expectedfeedback);\n }", "function erp_importer_notices() {\n if ( ! isset( $_REQUEST['page'] ) || $_REQUEST['page'] != 'erp-tools' || ! isset( $_REQUEST['tab'] ) || $_REQUEST['tab'] != 'import' ) {\n return;\n }\n\n if ( isset( $_REQUEST['imported'] ) ) {\n if ( intval( $_REQUEST['imported'] ) == 0 ) {\n $message = __( 'Nothing to import or items are already exists.', 'erp' );\n echo \"<div class='notice error'><p>\" . esc_html( $message ) . \"</p></div>\";\n } else {\n $message = sprintf( __( '%s items successfully imported.', 'erp' ),\n number_format_i18n( sanitize_text_field( wp_unslash( $_REQUEST['imported'] ) ) )\n );\n echo \"<div class='notice updated'><p>\" . esc_html( $message ) . \"</p></div>\";\n }\n }\n}", "function import_has_errors($import_array){\r\n\t// pass client and server objects\r\n\tglobal $Client, $svc;\r\n\r\n\t$client_id_field = \"client_id\";\r\n\t$err_array = array();\r\n\r\n\r\n\r\n\tif(empty($import_array)){\r\n\t\t$err_array[0][0] = \"Nothing to import.. Please try again...\";\r\n\t}else{\r\n\t\tforeach($import_array As $import_array_sheet => $import_array_row){\r\n\t\tforeach($import_array_row As $k => $v){\r\n\t\t\t// check if CLIENT_ID EXISTS\r\n\t\t\tif(!is_numeric($v[$client_id_field])){\r\n\t\t\t\t$err_array[$import_array_sheet][$k] = \"Bad or Missing Client ID\";\r\n\t\t\t}elseif(!$Client->is_client_id($v[$client_id_field])){\r\n\t\t\t\t$err_array[$import_array_sheet][$k] = \"Client ID Does Not Exist\";\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\t\t\t\r\n\t//if(!empty($err_array)){\r\n\t\treturn $err_array;\r\n\t//}else{\r\n\t//\treturn false;\r\n\t//}\r\n}", "function feedback($array)\r\n{\r\n\r\n\tforeach ($array as $key=>$value)\r\n\t{\r\n\t\t$output.=format_feedback($value);\r\n\t}\r\n\t$output.=feedback_form();\r\n\treturn $output;\r\n}", "function HAA_saveErrorReport($form_params)\n{\n // Parsed form data.\n $parsed_form_data = HAA_parseFormData($form_params);\n\n if (is_array($parsed_form_data) && $parsed_form_data != false) {\n // Generate Complaint ID.\n $complaint_id = HAA_generateComplaintId();\n if (! $complaint_id) {\n return false;\n }\n\n // Add newly generated unique Complaint ID to $parsed_form_data.\n $parsed_form_data[':complaint_id'] = $complaint_id;\n\n // Insert complaint record.\n $result = HAA_insertComplaintRecord($parsed_form_data);\n\n // If fails to insert record.\n if (! $result) {\n HAA_gotError(\n 'Failed to save the Complaint record.'\n );\n return false;\n }\n\n // Send an email.\n $mail_id = $parsed_form_data[':email'];\n $name = $parsed_form_data[':full_name'];\n $to = array($mail_id => $name);\n $from = array(smtpFromEmail => smtpFromName);\n $subject = 'Hostel-J Complaint Registration';\n $message = 'Dear ' . $name . \",\\n\\n\"\n . \"\\tYour Complaint has been successfully received.\\n\"\n . \"\\tYour Complaint ID is : \" . $parsed_form_data[':complaint_id'] . \"\\n\\n\\n\"\n . \"Regards,\\n\"\n . smtpFromName . \", Hostel-J\\n\"\n . 'Thapar University';\n $mail = HAA_sendMail($subject, $to, $from, $message);\n $mail_notify = ($mail == false) ? ('')\n : ('<p>A confirmation email has also been sent to : <span class=\"blue\"> '\n . $parsed_form_data[':email']\n . '. </span></p>');\n\n // Send an email to help mailing list.\n $to_id = \"[email protected]\";\n $to_name = \"Support Hostel-J\";\n $mail_id = $parsed_form_data[':email'];\n $name = $parsed_form_data[':full_name'];\n $to = array($to_id => $to_name);\n $from = array($mail_id => $name);\n $subject = 'Hostel-J Complaint';\n $message = $parsed_form_data[':complaint_description'];\n $mail = HAA_sendMail($subject, $to, $from, $message);\n\n // Create a success message.\n $success_msg = '<div class=\"report_complaint gray_grad box success\">'\n . '<table>'\n . '<caption><h1>CONGRATULATIONS !</h1></caption>'\n . '</td>'\n . '</tr>'\n . '<tr>'\n . '<td colspan=\"2\">'\n . 'Successfully received the complaint!'\n . '</td>'\n . '</tr>'\n . '<tr>'\n . '<td>'\n . 'This is your Complaint ID : '\n . '</td>'\n . '<td><span class=\"blue\">'\n . $parsed_form_data[':complaint_id'] . '</span><br>'\n . '</td>'\n . '<tr>'\n . '<td colspan=\"2\">'\n . '<strong><center>Thank you.</center></strong><br>'\n . '</td>'\n . '</tr>'\n . '<tr>'\n . '<td colspan=\"2\">'\n . $mail_notify\n . '</td>'\n . '</tr>'\n . '</table>'\n . '</div>';\n $GLOBALS['message'] = $success_msg;\n\n return true;\n } else {\n return false;\n }\n}", "public function __construct($feedback)\n {\n $this->feedback = $feedback;\n }", "function user_feedback() {\n\t\t$user_email = $_POST['user_email'];\n\t\t$user_name = $_POST['user_name'];\n\t\t$user_msg = $_POST['user_msg'];\n\t\tif (!empty($user_email) && !empty($user_msg) && !empty($user_name)) {\n\t\t\t$insert = $this -> conn -> insertnewrecords('user_feedbacks', 'user_email, user_name,user_msg', '\"' . $user_email . '\",\"' . $user_name . '\",\"' . $user_msg . '\"');\n\t\t\tif (!empty($insert)) {\n\t\t\t\t$post = array('status' => \"true\", \"message\" => \"Thanks for your feedback\");\n\t\t\t}\n\t\t} else {\n\t\t\t$post = array('status' => \"false\", \"message\" => \"Missing parameter\", 'user_email' => $user_email, 'user_name' => $user_name, 'user_msg' => $user_msg);\n\t\t}\n\t\techo $this -> json($post);\n\t}", "function showError($feedback)\n{\n showFeedback(new AlertMessage(AlertMessage::STYLE_ERROR, $feedback));\n}", "function request_feedback(){\n\t\t$response = $this->InteractModal->get_task();\n\t\tif(!empty($response)){\n\t\t\tforeach($response as $response_data){\n\t\t\t\t$task_id = $response_data['task_id'];\t\t\t\t\t\n\t\t\t\t$schedule_date = $response_data['schedule_date'];\n\t\t\t\t$listingdate = date_create($schedule_date);\n\t\t\t\t$time= date_format($listingdate,\"l d - M, Y h:i A\");\n\t\t\t\t$_details = $response_data['details'];\n\t\t\t\t$details = unserialize( $_details );\n\t\t\t\t$username = $details['user_name'];\n\t\t\t\t$contact = $details['contact_number'];\n\t\t\t\t$email_id = $details['showing_email'];\n\t\t\t\t$upcoming_all_showings = $this->InteractModal->get_fedback_links( $task_id );\n\t\t\t$config = array(\n\t\t\t\t'smtp_user' => '[email protected]',\n\t\t\t\t'mailtype' => 'html',\n\t\t\t\t'charset' => 'utf-8',\n\t\t\t\t'starttls' => true,\n\t\t\t\t'newline' => \"\\r\\n\",\n\t\t\t\t\n\t\t\t);\n\t\t\t\tif(!empty($upcoming_all_showings)){\n\t\t\t\tforeach($upcoming_all_showings as $upcoming_showing){\n\t\t\t\t\t$feedback_link= $upcoming_showing['link'];\n\t\t\t\t\t$address= $upcoming_showing['property_address'];\n\t\t\t\t\t$broker_id= $upcoming_showing['broker_id'];\n\t\t\t\t\t$response = $this->InteractModal->signature_user_email($broker_id);\n\t\t\t\t\t$email_broker = $response[0]['user_email'];\n\t\t\t\t\t$concerned_person = $this->InteractModal->get_user_meta($broker_id,'concerned_person'); \n\t\t\t\t\n\t\t\t$subject = 'Please provide feedback for our recent showing';\n\t\t\t$msg = 'Hi,<br /><br />We would really appreciate your feedback, please tell us what you thought about your recent showing at \"'. $address .'\" on \"'. $time .'\". <br /><a href=\"'. $feedback_link .'\">Please click here to submit your feedback </a> <br /><br /> Thank you,<br /> <br /> '. $concerned_person .' <br /> '. $contact .' <br /> '. $email_broker .'';\n\t\t\t$this->load->library('email', $config);\n\t\t\t$this->email->from('[email protected]', 'InteractRE');\n\t\t\t$this->email->set_header('InteractACM', 'InteractACM Notifications');\n\t\t\t$this->email->to( $email_id );\n\t\t\t$this->email->subject( $subject );\n\t\t\t$this->email->message( $msg ); \n\t\t\n\t\t\tif( $this->email->send() ){\n\t\t\t\t$data= array(\n\t\t\t'request_feedback' => 0,\n\t\t\t);\n\t\t\t$response = $this->InteractModal->update_task_details($data,$task_id);\n\t\t\t}else{\n\t\t\techo'Unable to send feedback link at this time. Please try again';\n\t\t} \n\t\t\t}}\n\t\t\t}\n\t\t}\n }", "function ufclas_matlab_admin_notice_error(){\n\t?>\n <div class=\"notice notice-error\">\n <p><?php _e( 'There was an error importing. Please try again.', 'ufclas-matlab' ); ?></p>\n </div>\n <?php\n}", "protected function importValidationMessages()\n {\n return [];\n }", "function manual_import_feedback($info, $type) {\n\n\t$info = addslashes($info);\n\n\tif ($type == 'proc') {\n\t\t$type = 'p';\n\t} elseif ($type == 'current') {\n\t\t$type = 'c';\n\t} else {\n\t\t$type = 'm';\n\t}\n\n\techo \"<script type=\\\"text/javascript\\\">$type('$info');</script>\";\n}", "function ufclas_matlab_admin_notice_success(){\n\t$message = ufclas_matlab_get_success();\n\t?>\n <div class=\"notice notice-success\">\n <p><?php echo __( 'Import successful. View the imported page: ', 'ufclas-matlab' ) . $message; ?> </p>\n </div>\n <?php\n\t\n}", "function btrClient_import() {\n return 'Not implemented yet.';\n}", "function user_feedback(){\n\t\t\t$user_email=$_POST['user_email'];\n\t\t\t$user_name=$_POST['user_name'];\n\t\t\t$user_msg=$_POST['user_msg'];\n\t\t\tif(!empty($user_email) && !empty($user_msg) && !empty($user_name))\n\t\t\t{\n\t\t\t\t$insert = $this -> conn -> insertnewrecords('user_feedbacks','user_email, user_name,user_msg', '\"' . $user_email . '\",\"' . $user_name . '\",\"' . $user_msg . '\"');\n\t\t\t\tif(!empty($insert)){\n\t\t\t\t\t$post = array('status' => \"true\",\"message\" => \"Thanks for your feedback\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$post = array('status' => \"false\",\"message\" => \"Missing parameter\",'user_email'=>$user_email,'user_name'=>$user_name,'user_msg'=>$user_msg);\n\t\t}\n\t\t\techo $this -> json($post);\n\t\t}", "public static function feedback_returns() {\n return new external_single_structure(\n array(\n 'warnings' => new external_warnings()\n )\n );\n }", "public function importProvider() {\n\t\treturn array(\n\t\t\t//set #0\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tnull,\n\t\t\t\t//success\n\t\t\t\tnull,\n\t\t\t\t//message\n\t\t\t\t'Wrong or empty import file!'\n\t\t\t),\n\t\t\t//set #1\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(),\n\t\t\t\t//success\n\t\t\t\tnull,\n\t\t\t\t//message\n\t\t\t\t'Wrong or empty import file!'\n\t\t\t),\n\t\t\t//set #2\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(\n\t\t\t\t\t'Export' => array(),\n\t\t\t\t),\n\t\t\t\t//success\n\t\t\t\tnull,\n\t\t\t\t//message\n\t\t\t\t'Wrong or empty import file!'\n\t\t\t),\n\t\t\t//set #3\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(\n\t\t\t\t\t'Export' => array(),\n\t\t\t\t\t'Languages' => array(),\n\t\t\t\t),\n\t\t\t\t//success\n\t\t\t\tnull,\n\t\t\t\t//message\n\t\t\t\t'Wrong or empty import file!'\n\t\t\t),\n\t\t\t//set #4\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(\n\t\t\t\t\t'Export' => array(),\n\t\t\t\t\t'Languages' => array(),\n\t\t\t\t\t'Messages' => array(),\n\t\t\t\t),\n\t\t\t\t//success\n\t\t\t\tnull,\n\t\t\t\t//message\n\t\t\t\t'Wrong or empty import file!'\n\t\t\t),\n\t\t\t//set #5\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(\n\t\t\t\t\t'Export' => array(),\n\t\t\t\t\t'Languages' => array(),\n\t\t\t\t\t'Messages' => array(),\n\t\t\t\t\t'References' => array(),\n\t\t\t\t),\n\t\t\t\t//success\n\t\t\t\tnull,\n\t\t\t\t//message\n\t\t\t\t'Wrong or empty import file!'\n\t\t\t),\n\t\t\t//set #6\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(\n\t\t\t\t\t'Export' => array(),\n\t\t\t\t\t'Languages' => array(),\n\t\t\t\t\t'Messages' => array(),\n\t\t\t\t\t'References' => array(),\n\t\t\t\t\t'Translations' => array()\n\t\t\t\t),\n\t\t\t\t//success\n\t\t\t\tfalse,\n\t\t\t\t//message\n\t\t\t\t'Import localization error!'\n\t\t\t),\n\t\t\t//set #7\n\t\t\tarray(\n\t\t\t\t//data\n\t\t\t\tarray(\n\t\t\t\t\t'Export' => array(),\n\t\t\t\t\t'Languages' => array(),\n\t\t\t\t\t'Messages' => array(),\n\t\t\t\t\t'References' => array(),\n\t\t\t\t\t'Translations' => array()\n\t\t\t\t),\n\t\t\t\t//success\n\t\t\t\ttrue,\n\t\t\t\t//message\n\t\t\t\t'Import localization success!'\n\t\t\t),\n\t\t);\n\t}", "function error_reporting() {\n\t\t$r='';\n\t\tif (mb_strlen(self::$error)>0) {\n\t\t\t$r.=self::$error;\n\t\t}\n\t\tif (count(self::$error_arr)>0) {\n\t\t\t$r.='<h2>Произошли следующие ошибки:</h2>'.\"\\n\".'<ul>';\n\t\t\tforeach(self::$error_arr as $key=>$value) {\n\t\t\t\t$r.='<li>'.$value.'</li>';\n\t\t\t}\n\t\t\t$r.='</ul>';\n\t\t}\n\t\treturn $r;\n\t}", "function import_post() {\n\n $flag1 = true;\n $flag2 = true;\n \n $fields = $this->csvimport->get_array($_FILES['csv_file']['tmp_name']);\n $result[\"records\"] = $fields;\n $result[\"status\"] = \"1\";\n $result[\"message\"] = \"Records saved successfully\";\n\n $this->response($result, 200);\n\n exit;\n }", "function ishyoboy_ajax_demo_import()\r\n\t{\r\n\t\tcheck_ajax_referer( 'ishyoboy_demo_import_nonce' );\r\n\r\n\t\t//ob_start();\r\n\t\trequire_once( locate_template( 'assets/framework/wp/importer/config.php' ) );\r\n\t\t//$output = ob_get_contents();\r\n\t\t//ob_end_clean();\r\n\r\n\t\t/*if ( empty( $output ) ){\r\n\t\t\tdie( $output . 'demo_data_imported' );\r\n\t\t}\r\n\t\telse{\r\n\t\t\tdie( $output );\r\n\t\t}*/\r\n\r\n\t\tdie( 'demo_data_imported' );\r\n\r\n\t}", "function tw_ajax_feedback() {\n\n\t$result = [\n\t\t'text' => '',\n\t\t'errors' => []\n\t];\n\n\tif (!empty($_POST['type']) and isset($_POST['noncer']) and wp_verify_nonce($_POST['noncer'], 'ajax-nonce')) {\n\n\t\tforeach ($_POST as $k => $v) {\n\n\t\t\tif (is_array($v)) {\n\t\t\t\t$_POST[$k] = array_map('htmlspecialchars', $v);\n\t\t\t} else {\n\t\t\t\t$_POST[$k] = htmlspecialchars($v);\n\t\t\t}\n\n\t\t}\n\n\t\t$recipient = get_option('admin_email');\n\n\t\t$errors = [];\n\n\t\t$required = [\n\t\t\t'name' => '#^[a-zA-Z0-9 -.]{2,}$#ui',\n\t\t\t'subject' => '#^.{2,}$#ui',\n\t\t\t'email' => '#^[^\\@]+@.*\\.[a-z]{2,6}$#i',\n\t\t\t'phone' => '#^[0-9 . -+ ()]{7,12}$#i',\n\t\t];\n\n\t\t$fields = [\n\t\t\t'first_name' => 'First Name',\n\t\t\t'last_name' => 'Last Name',\n\t\t\t'phone' => 'Phone',\n\t\t\t'email' => 'E-mail',\n\t\t\t'subject' => 'Subject',\n\t\t\t'message' => 'Message',\n\t\t];\n\n\t\t$type = intval($_POST['type']);\n\n\t\tif ($type == 1) {\n\n\t\t\t$subject = 'Request from ' . $_POST['name'];\n\n\t\t\t$required['message'] = [\n\t\t\t\t'error' => 'Please type a message',\n\t\t\t\t'pattern' => '#^.{10,}$#ui'\n\t\t\t];\n\n\t\t} else {\n\n\t\t\t$subject = 'Request from a client';\n\n\t\t}\n\n\t\tforeach ($required as $key => $field) {\n\n\t\t\t$label = $fields[$key];\n\n\t\t\tif (!is_array($field)) {\n\t\t\t\t$field = ['pattern' => $field];\n\t\t\t}\n\n\t\t\tif (empty($field['error'])) {\n\t\t\t\t$field['error'] = $label . ' is not valid';\n\t\t\t}\n\n\t\t\tif (empty($_POST[$key])) {\n\t\t\t\t$errors[$key] = $label . ' is required';\n\t\t\t} elseif (!preg_match($field['pattern'], $_POST[$key])) {\n\t\t\t\t$errors[$key] = $field['error'];\n\t\t\t}\n\n\t\t}\n\n\t\tif (count($errors) == 0) {\n\n\t\t\t$message = [];\n\n\t\t\tforeach ($fields as $key => $field) {\n\n\t\t\t\tif (!empty($_POST[$key])) {\n\n\t\t\t\t\t$value = $_POST[$key];\n\n\t\t\t\t\t$message[] = '<p><b>' . $field . ':</b> ' . $value . '</p>';\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t$headers = [];\n\n\t\t\t$headers[] = 'Content-type: text/html; charset=utf-8';\n\n\t\t\t$files = [];\n\n\t\t\tforeach (['artwork'] as $name) {\n\n\t\t\t\t$file = tw_session_get_file($name);\n\n\t\t\t\tif ($file and file_exists($file['file'])) {\n\t\t\t\t\t$files[$name] = $file;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (wp_mail($recipient, $subject, implode(\"\\n\", $message), $headers, $files)) {\n\n\t\t\t\tif ($files) {\n\t\t\t\t\tforeach ($files as $name => $file) {\n\t\t\t\t\t\tunlink($file);\n\t\t\t\t\t\ttw_session_set_file($name, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$result['text'] = __('Thanks! We will contact you soon!', 'twee');\n\n\t\t\t} else {\n\n\t\t\t\t$result['text'] = __('Error. Please, try again a bit later', 'twee');\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t$result['errors'] = $errors;\n\n\t\t}\n\n\t}\n\n\twp_send_json($result);\n\n}", "protected function construct_response()\n {\n $this->feedback['ok'] = $this->ok;\n $this->feedback['code'] = $this->code;\n $this->feedback['resource'] = $this->resource;\n }", "public function testGetFeedback()\r\n {\r\n try {\r\n $this->assertTrue(\r\n is_array($this->clientHandler->getFeedback())\r\n );\r\n } catch (Services_Apns_Exception $e) {\r\n // Error triggered\r\n $this->assertTrue(false);\r\n }\r\n }", "function init__hooks__modules__admin_import__phpbb3()\n{\n\tglobal $TOPIC_FORUM_CACHE;\n\t$TOPIC_FORUM_CACHE=array();\n\n\tglobal $STRICT_FILE;\n\t$STRICT_FILE=false; // Disable this for a quicker import that is quite liable to go wrong if you don't have the files in the right place\n\n\tglobal $OLD_BASE_URL;\n\t$OLD_BASE_URL=NULL;\n\n\t// Profile Field Types\n\tdefine('FIELD_INT', 1);\n\tdefine('FIELD_STRING', 2);\n\tdefine('FIELD_TEXT', 3);\n\tdefine('FIELD_BOOL', 4);\n\tdefine('FIELD_DROPDOWN', 5);\n\tdefine('FIELD_DATE', 6);\n}", "public function displayImport(): array\n {\n $output = [\n 'title' => '',\n 'subtitle' => '',\n 'upload' => [\n 'show' => false,\n 'current' => false,\n 'fileInfo' => [],\n 'csv' => '',\n 'target' => '',\n 'target_disabled' => '',\n 'newFile' => '',\n 'newFileUid' => 0,\n ],\n 'conf' => [\n 'show' => false,\n 'remove_existing' => false,\n 'first_fieldname' => false,\n 'delimiter' => '',\n 'delimiterSelected' => '',\n 'encapsulation' => '',\n 'valid_email' => false,\n 'remove_dublette' => false,\n 'update_unique' => false,\n 'record_unique' => '',\n 'newFile' => '',\n 'newFileUid' => 0,\n 'disableInput' => false,\n ],\n 'mapping' => [\n 'show' => false,\n 'charset' => '',\n 'charsetSelected' => '',\n 'newFile' => '',\n 'newFileUid' => 0,\n 'storage' => '',\n 'remove_existing' => false,\n 'first_fieldname' => false,\n 'delimiter' => '',\n 'encapsulation' => '',\n 'valid_email' => false,\n 'remove_dublette' => false,\n 'update_unique' => false,\n 'record_unique' => '',\n 'all_html' => false,\n 'mapping_cats' => [],\n 'show_add_cat' => false,\n 'add_cat' => false,\n 'error' => [],\n 'table' => [],\n 'fields' => [],\n ],\n 'startImport' => [\n 'show' => false,\n 'charset' => '',\n 'charsetSelected' => '',\n 'newFile' => '',\n 'newFileUid' => 0,\n 'storage' => '',\n 'remove_existing' => false,\n 'first_fieldname' => false,\n 'delimiter' => '',\n 'encapsulation' => '',\n 'valid_email' => false,\n 'remove_dublette' => false,\n 'update_unique' => false,\n 'record_unique' => '',\n 'all_html' => false,\n 'hiddenMap' => [],\n 'hiddenCat' => [],\n 'add_cat' => false,\n 'tables' => [],\n ],\n ];\n\n $beUser = $this->getBeUser();\n $step = GeneralUtility::_GP('importStep');\n $defaultConf = [\n 'remove_existing' => 0,\n 'first_fieldname' => 0,\n 'valid_email' => 0,\n 'remove_dublette' => 0,\n 'update_unique' => 0,\n ];\n\n if (GeneralUtility::_GP('CSV_IMPORT')) {\n $importerConfig = GeneralUtility::_GP('CSV_IMPORT');\n if ($step['next'] === 'mapping') {\n $this->indata = $importerConfig + $defaultConf;\n } else {\n $this->indata = $importerConfig;\n }\n }\n\n if (empty($this->indata)) {\n $this->indata = [];\n }\n\n if (empty($this->params)) {\n $this->params = [];\n }\n // merge it with inData, but inData has priority.\n $this->indata += $this->params;\n if (empty($this->indata['csv']) && !empty($_FILES['upload_1']['name'])) {\n $tempFile = $this->checkUpload();\n $this->indata['newFile'] = $tempFile['newFile'];\n $this->indata['newFileUid'] = $tempFile['newFileUid'];\n } elseif (!empty($this->indata['csv']) && empty($_FILES['upload_1']['name'])) {\n unset($this->indata['newFile']);\n unset($this->indata['newFileUid']);\n }\n $stepCurrent = '';\n if ($this->indata['back'] ?? false) {\n $stepCurrent = $step['back'];\n } elseif ($this->indata['next'] ?? false) {\n $stepCurrent = $step['next'];\n } elseif ($this->indata['update'] ?? false) {\n $stepCurrent = 'mapping';\n }\n\n if (strlen($this->indata['csv'] ?? '') > 0) {\n $this->indata['mode'] = 'csv';\n $tempFile = $this->writeTempFile($this->indata['csv'] ?? '', $this->indata['newFile'] ?? '', $this->indata['newFileUid'] ?? 0);\n $this->indata['newFile'] = $tempFile['newFile'];\n $this->indata['newFileUid'] = $tempFile['newFileUid'];\n } elseif (!empty($this->indata['newFile'])) {\n $this->indata['mode'] = 'file';\n } else {\n unset($stepCurrent);\n }\n\n // check if \"email\" is mapped\n\t\t$error = [];\n if (isset($stepCurrent) && $stepCurrent === 'startImport') {\n $map = $this->indata['map'];\n // check noMap\n $newMap = ArrayUtility::removeArrayEntryByValue(array_unique($map), 'noMap');\n if (empty($newMap)) {\n $error[] = 'noMap';\n } elseif (!in_array('email', $map)) {\n $error[] = 'email';\n }\n if (count($error)) {\n $stepCurrent = 'mapping';\n }\n }\n\n $out = '';\n\t\tif(!isset($stepCurrent)) {\n\t\t\t$stepCurrent = '';\n\t\t}\n switch ($stepCurrent) {\n case 'conf':\n $output['conf']['show'] = true;\n $output['conf']['newFile'] = $this->indata['newFile'];\n $output['conf']['newFileUid'] = $this->indata['newFileUid'];\n\n $pagePermsClause3 = $beUser->getPagePermsClause(3);\n $pagePermsClause1 = $beUser->getPagePermsClause(1);\n // get list of sysfolder\n // TODO: maybe only subtree von this->id??\n\n $optStorage = [];\n $subfolders = GeneralUtility::makeInstance(PagesRepository::class)->selectSubfolders($pagePermsClause3);\n if ($subfolders && count($subfolders)) {\n foreach ($subfolders as $subfolder) {\n if (BackendUtility::readPageAccess($subfolder['uid'], $pagePermsClause1)) {\n $optStorage[] = [\n 'val' => $subfolder['uid'],\n 'text' => $subfolder['title'] . ' [uid:' . $subfolder['uid'] . ']',\n ];\n }\n }\n }\n\n $optDelimiter = [\n ['val' => 'comma', 'text' => $this->getLanguageService()->getLL('mailgroup_import_separator_comma')],\n ['val' => 'semicolon', 'text' => $this->getLanguageService()->getLL('mailgroup_import_separator_semicolon')],\n ['val' => 'colon', 'text' => $this->getLanguageService()->getLL('mailgroup_import_separator_colon')],\n ['val' => 'tab', 'text' => $this->getLanguageService()->getLL('mailgroup_import_separator_tab')],\n ];\n\n $optEncap = [\n ['val' => 'doubleQuote', 'text' => ' \" '],\n ['val' => 'singleQuote', 'text' => \" ' \"],\n ];\n\n // TODO: make it variable?\n $optUnique = [\n ['val' => 'email', 'text' => 'email'],\n ['val' =>'name', 'text' => 'name'],\n ];\n\n $output['conf']['disableInput'] = ($this->params['inputDisable'] ?? 0) == 1 ? true : false;\n\n // show configuration\n $output['subtitle'] = $this->getLanguageService()->getLL('mailgroup_import_header_conf');\n\n // get the all sysfolder\n $output['conf']['storage'] = $optStorage;\n $output['conf']['storageSelected'] = $this->indata['storage'] ?? '';\n\n // remove existing option\n $output['conf']['remove_existing'] = !($this->indata['remove_existing'] ?? false) ? false : true;\n\n // first line in csv is to be ignored\n $output['conf']['first_fieldname'] = !($this->indata['first_fieldname'] ?? false) ? false : true;\n\n // csv separator\n $output['conf']['delimiter'] = $optDelimiter;\n $output['conf']['delimiterSelected'] = $this->indata['delimiter'] ?? '';\n\n // csv encapsulation\n $output['conf']['encapsulation'] = $optEncap;\n $output['conf']['encapsulationSelected'] = $this->indata['encapsulation'] ?? '';\n\n // import only valid email\n $output['conf']['valid_email'] = !($this->indata['valid_email'] ?? false) ? false : true;\n\n // only import distinct records\n $output['conf']['remove_dublette'] = !($this->indata['remove_dublette'] ?? false) ? false : true;\n\n // update the record instead renaming the new one\n $output['conf']['update_unique'] = !($this->indata['update_unique'] ?? false) ? false : true;\n\n // which field should be use to show uniqueness of the records\n $output['conf']['record_unique'] = $optUnique;\n $output['conf']['record_uniqueSelected'] = $this->indata['record_unique'] ?? '';\n\n break;\n\n case 'mapping':\n $output['mapping']['show'] = true;\n $output['mapping']['newFile'] = $this->indata['newFile'];\n $output['mapping']['newFileUid'] = $this->indata['newFileUid'];\n $output['mapping']['storage'] = $this->indata['storage'];\n $output['mapping']['remove_existing'] = $this->indata['remove_existing'];\n $output['mapping']['first_fieldname'] = $this->indata['first_fieldname'];\n $output['mapping']['delimiter'] = $this->indata['delimiter'];\n $output['mapping']['encapsulation'] = $this->indata['encapsulation'];\n $output['mapping']['valid_email'] = $this->indata['valid_email'];\n $output['mapping']['remove_dublette'] = $this->indata['remove_dublette'];\n $output['mapping']['update_unique'] = $this->indata['update_unique'];\n $output['mapping']['record_unique'] = $this->indata['record_unique'];\n $output['mapping']['all_html'] = !($this->indata['all_html'] ?? false) ? false : true;\n $output['mapping']['error'] = $error;\n\n // show charset selector\n $cs = array_unique(array_values(mb_list_encodings()));\n $charSets = [];\n foreach ($cs as $charset) {\n $charSets[] = ['val' => $charset, 'text' => $charset];\n }\n\n if (!isset($this->indata['charset'])) {\n $this->indata['charset'] = 'ISO-8859-1';\n }\n $output['subtitle'] = $this->getLanguageService()->getLL('mailgroup_import_mapping_charset');\n\n $output['mapping']['charset'] = $charSets;\n $output['mapping']['charsetSelected'] = $this->indata['charset'];\n\n $csv_firstRow = [];\n // show mapping form\n if ($this->indata['first_fieldname']) {\n // read csv\n $csvData = $this->readExampleCSV(4);\n $csv_firstRow = $csvData[0];\n $csvData = array_slice($csvData, 1);\n } else {\n // read csv\n $csvData = $this->readExampleCSV(3);\n $fieldsAmount = count($csvData[0] ?? []);\n for ($i = 0; $i < $fieldsAmount; $i++) {\n $csv_firstRow[] = 'field_' . $i;\n }\n }\n\n // read tt_address TCA\n $no_map = ['image', 'sys_language_uid', 'l10n_parent', 'l10n_diffsource', 't3_origuid', 'cruser_id', 'crdate', 'tstamp'];\n $ttAddressFields = array_keys($GLOBALS['TCA']['tt_address']['columns']);\n foreach ($no_map as $v) {\n $ttAddressFields = ArrayUtility::removeArrayEntryByValue($ttAddressFields, $v);\n }\n $mapFields = [];\n foreach ($ttAddressFields as $map) {\n $mapFields[] = [\n $map,\n str_replace(':', '', $this->getLanguageService()->sL($GLOBALS['TCA']['tt_address']['columns'][$map]['label'])),\n ];\n }\n // add 'no value'\n array_unshift($mapFields, ['noMap', $this->getLanguageService()->getLL('mailgroup_import_mapping_mapTo')]);\n $mapFields[] = [\n 'cats',\n $this->getLanguageService()->getLL('mailgroup_import_mapping_categories'),\n ];\n reset($csv_firstRow);\n reset($csvData);\n\n $output['mapping']['fields'] = $mapFields;\n for ($i = 0; $i < (count($csv_firstRow)); $i++) {\n // example CSV\n $exampleLines = [];\n for ($j = 0; $j < (count($csvData)); $j++) {\n $exampleLines[] = $csvData[$j][$i];\n }\n $output['mapping']['table'][] = [\n 'mapping_description' => $csv_firstRow[$i],\n 'mapping_i' => $i,\n 'mapping_mappingSelected' => $this->indata['map'][$i] ?? '',\n 'mapping_value' => $exampleLines,\n ];\n }\n\n // get categories\n $temp['value'] = BackendUtility::getPagesTSconfig($this->parent->getId())['TCEFORM.']['sys_dmail_group.']['select_categories.']['PAGE_TSCONFIG_IDLIST'] ?? null;\n if (is_numeric($temp['value'])) {\n $rowCat = GeneralUtility::makeInstance(SysDmailCategoryRepository::class)->selectSysDmailCategoryByPid((int)$temp['value']);\n if (!empty($rowCat)) {\n // additional options\n if ($output['mapping']['update_unique']) {\n $output['mapping']['show_add_cat'] = true;\n $output['mapping']['add_cat'] = $this->indata['add_cat'] ? true : false;\n }\n foreach ($rowCat as $k => $v) {\n $output['mapping']['mapping_cats'][] = [\n 'cat' => htmlspecialchars($v['category']),\n 'k' => $k,\n 'vUid' => $v['uid'],\n 'checked' => $this->indata['cat'][$k] != $v['uid'] ? false : true,\n ];\n }\n }\n }\n break;\n case 'startImport':\n $output['startImport']['show'] = true;\n\n $output['startImport']['charsetSelected'] = $this->indata['charset'];\n $output['startImport']['newFile'] = $this->indata['newFile'];\n $output['startImport']['newFileUid'] = $this->indata['newFileUid'];\n $output['startImport']['storage'] = $this->indata['storage'];\n $output['startImport']['remove_existing'] = $this->indata['remove_existing'];\n $output['startImport']['first_fieldname'] = $this->indata['first_fieldname'];\n $output['startImport']['delimiter'] = $this->indata['delimiter'];\n $output['startImport']['encapsulation'] = $this->indata['encapsulation'];\n $output['startImport']['valid_email'] = $this->indata['valid_email'];\n $output['startImport']['remove_dublette'] = $this->indata['remove_dublette'];\n $output['startImport']['update_unique'] = $this->indata['update_unique'];\n $output['startImport']['record_unique'] = $this->indata['record_unique'];\n $output['startImport']['all_html'] = !($this->indata['all_html'] ?? false) ? false : true;\n $output['startImport']['add_cat'] = ($this->indata['add_cat'] ?? false) ? true : false;\n\n $output['startImport']['error'] = $error;\n\n // starting import & show errors\n // read csv\n $csvData = $this->readCSV();\n if ($this->indata['first_fieldname']) {\n $csvData = array_slice($csvData, 1);\n }\n\n // show not imported record and reasons,\n $result = $this->doImport($csvData);\n $output['subtitle'] = $this->getLanguageService()->getLL('mailgroup_import_done');\n\n $resultOrder = [];\n if (!empty($this->params['resultOrder'])) {\n $resultOrder = GeneralUtility::trimExplode(',', $this->params['resultOrder']);\n }\n\n $defaultOrder = ['new', 'update', 'invalid_email', 'double'];\n $diffOrder = array_diff($defaultOrder, $resultOrder);\n $endOrder = array_merge($resultOrder, $diffOrder);\n\n foreach ($endOrder as $order) {\n $rowsTable = [];\n if (is_array($result[$order] ?? false)) {\n foreach ($result[$order] as $v) {\n $mapKeys = array_keys($v);\n $rowsTable[] = [\n 'val' => $v[$mapKeys[0]],\n 'email' => $v['email'],\n ];\n }\n }\n\n $output['startImport']['tables'][] = [\n 'header' => $this->getLanguageService()->getLL('mailgroup_import_report_' . $order),\n 'rows' => $rowsTable,\n ];\n }\n\n // back button\n if (is_array($this->indata['map'] ?? false)) {\n foreach ($this->indata['map'] as $fieldNr => $fieldMapped) {\n $output['startImport']['hiddenMap'][] = ['name' => htmlspecialchars('CSV_IMPORT[map][' . $fieldNr . ']'), 'value' => htmlspecialchars($fieldMapped)];\n }\n }\n if (is_array($this->indata['cat'] ?? false)) {\n foreach ($this->indata['cat'] as $k => $catUid) {\n $output['startImport']['hiddenCat'][] = ['name' => htmlspecialchars('CSV_IMPORT[cat][' . $k . ']'), 'value' => htmlspecialchars($catUid)];\n }\n }\n break;\n\n case 'upload':\n default:\n // show upload file form\n $output['subtitle'] = $this->getLanguageService()->getLL('mailgroup_import_header_upload');\n if ((($this->indata['mode'] ?? '') === 'file') && !(((strpos($currentFileInfo['file'], 'import') === false) ? 0 : 1) && ($currentFileInfo['realFileext'] === 'txt'))) {\n $output['upload']['current'] = true;\n $file = $this->getFileById((int)$this->indata['newFileUid']);\n if (is_object($file)) {\n $output['upload']['fileInfo'] = [\n 'name' => $file->getName(),\n 'extension' => $file->getProperty('extension'),\n 'size' => GeneralUtility::formatSize($file->getProperty('size')),\n ];\n }\n }\n\n if (((strpos(($currentFileInfo['file'] ?? ''), 'import') === false) ? 0 : 1) && (($currentFileInfo['realFileext'] ?? '') === 'txt')) {\n $handleCsv = fopen($this->indata['newFile'], 'r');\n $this->indata['csv'] = fread($handleCsv, filesize($this->indata['newFile']));\n fclose($handleCsv);\n }\n\n $output['upload']['show'] = true;\n $output['upload']['csv'] = htmlspecialchars($this->indata['csv'] ?? '');\n $output['upload']['target'] = htmlspecialchars($this->userTempFolder());\n $output['upload']['target_disabled'] = GeneralUtility::_POST('importNow') ? 'disabled' : '';\n $output['upload']['newFile'] = $this->indata['newFile'] ?? '';\n $output['upload']['newFileUid'] = $this->indata['newFileUid'] ?? 0;\n }\n\n $output['title'] = $this->getLanguageService()->getLL('mailgroup_import') . BackendUtility::cshItem($this->cshTable ?? '', 'mailgroup_import');\n $theOutput = sprintf('%s', $out);\n\n /**\n * Hook for displayImport\n * use it to manipulate the steps in the import process\n */\n $hookObjectsArr = [];\n if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['direct_mail/mod3/class.tx_directmail_recipient_list.php']['displayImport']) &&\n is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['direct_mail/mod3/class.tx_directmail_recipient_list.php']['displayImport'])) {\n foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['direct_mail/mod3/class.tx_directmail_recipient_list.php']['displayImport'] as $classRef) {\n $hookObjectsArr[] = GeneralUtility::makeInstance($classRef);\n }\n }\n if (count($hookObjectsArr)) {\n foreach ($hookObjectsArr as $hookObj) {\n if (method_exists($hookObj, 'displayImport')) {\n $theOutput = $hookObj->displayImport($this);\n }\n }\n }\n\n return ['output' => $output, 'theOutput' => $theOutput];\n }", "public function addFeedback(array $feedback) {\n foreach($feedback AS $label => $text) {\n $this->feedback[$label] = trim($text);\n }\n }", "public function welcome_import_message() {\n global $OUTPUT;\n\n $a = get_string('tabutemplatepage2', 'mod_surveypro');\n $message = get_string('welcome_utemplateimport', 'mod_surveypro', $a);\n echo $OUTPUT->notification($message, 'notifymessage');\n }", "function show_common_vars()\n\t\t{\n\t\t\t$this->message[] = $this->GUI->get_error(false, _DEBUG);\n\t\t\t$this->message[] = $this->runtime->get_error(false, _DEBUG);\n\t\t\t$this->t->set_var(array(\n\t\t\t\t'wf_message'\t=> implode('<br />',array_filter($this->message)),\n\t\t\t\t)\n\t\t\t);\n\t\t}", "public function reportaproblem() {\n // Fetch the request data in JSON format and convert it into object\n $request_data = $this->request->input('json_decode');\n switch (true) {\n // When request is not made using POST method\n case!$this->request->isPost() :\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Wrong request method.';\n break;\n // Request is valid and phone no and name are present\n case!empty($request_data) && !empty($request_data->phone_no) && !empty($request_data->user_token) && !empty($request_data->problem_type):\n // && !empty($request_data->comment):\n // Check if phone no exists\n $data = $this->User->findUser($request_data->phone_no);\n\n // Check if record exists\n if (count($data) != 0) {\n // Check uuid entered is valid\n if ($data[0]['User']['verified'] === false) {\n $success = false;\n $status = UNAUTHORISED;\n $message = 'User not verified';\n } elseif ($request_data->user_token != $data[0]['User']['user_token']) { // User Token is not valid\n $success = false;\n $status = UNAUTHORISED;\n $message = 'User Token is invalid';\n } else {\n\n $dataArray = array();\n $dataArray['Feedback']['problem_type'] = $request_data->problem_type;\n if (!empty($request_data->spam_or_abuse_type))\n $dataArray['Feedback']['spam_or_abuse_type'] = $request_data->spam_or_abuse_type;\n $dataArray['Feedback']['comment'] = trim($request_data->comment);\n $dataArray['Feedback']['user_id'] = (string) $data[0]['User']['_id'];\n\n if ($this->Feedback->save($dataArray)) {\n $success = true;\n $status = SUCCESS;\n $message = 'Your problem has been saved.';\n } else {\n $success = false;\n $status = ERROR;\n $message = 'There was a problem in processing your request';\n }\n }\n }\n // Return false if record not found\n else {\n $success = false;\n $status = UNAUTHORISED;\n $message = 'Phone no. not registered.';\n }\n break;\n // User Token blank in request\n case!empty($request_data) && empty($request_data->user_token):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'User Token cannot be blank.';\n break;\n // Phone no. blank in request\n case!empty($request_data) && empty($request_data->phone_no):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Phone no. cannot be blank.';\n break;\n // Problem type blank in request\n case!empty($request_data) && empty($request_data->problem_type):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Problem type cannot be blank.';\n break;\n // Parameters not found in request\n case empty($request_data):\n $success = false;\n $status = BAD_REQUEST;\n $message = 'Request cannot be empty.';\n break;\n }\n\n $out = array(\n \"success\" => $success,\n \"message\" => $message\n );\n\n return new CakeResponse(array('status' => $status, 'body' => json_encode($out), 'type' => 'json'));\n }", "public function validate_feedback_data(){\n \n // validate step 1 data.\n \n // rating should be 1-5.\n if( ! in_array($this->post_data->get('rating'), range(1, 5)) ) $this->error_msg[] = 'Rating should be 1 to 5';\n \n // title should not be blank.\n if( trim($this->post_data->get('title')) == '' ) $this->error_msg[] = 'Title should not be blank';\n \n // feedback should not be blank.\n if( trim($this->post_data->get('feedback')) == '' ) $this->error_msg[] = 'Feedback should not be blank';\n \n // recommendation should be 1 or 0.\n if( ! in_array($this->post_data->get('recommend'), range(0, 1)) ) $this->error_msg[] = 'Invalid recommendation option';\n \n \n \n // validate step 2 data.\n \n // first name should not be blank.\n if( trim($this->post_data->get('first_name')) == '' ) $this->error_msg[] = 'First name should not be blank';\n \n // last name should not be blank.\n if( trim($this->post_data->get('last_name')) == '' ) $this->error_msg[] = 'Last name should not be blank';\n \n // email should not be blank.\n if( trim($this->post_data->get('email')) == '' ) $this->error_msg[] = 'Email should not be blank';\n \n // email should be valid.\n if( ! preg_match('/^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/', $this->post_data->get('email')) ) $this->error_msg[] = 'Email should not be valid';\n \n // city should not be blank.\n if( trim($this->post_data->get('city')) == '' ) $this->error_msg[] = 'City should not be blank';\n \n // country should be somewhere from earth.\n $country = DB::table('Country')->where('code', '=', $this->post_data->get('country'))->get();\n if( empty( $country ) ) $this->error_msg[] = 'Invalid country';\n \n // permission shoulbe be 1 or 0.\n if( ! in_array($this->post_data->get('permission'), range(0, 1)) ) $this->error_msg[] = 'Invalid permission option';\n \n \n \n // validate hidden data.\n \n $company = new \\Company\\Repositories\\DBCompany;\n $company = $company->get_company_info( Config::get('application.subdomain') );\n \n // company id should be valid.\n if( $company->companyid != $this->post_data->get('company_id') ) $this->error_msg[] = 'Invalid company id';\n \n // site id should be valid.\n if( $company->siteid != $this->post_data->get('site_id') ) $this->error_msg[] = 'Invalid site id';\n \n \n \n // return true if thre's no error, false otherwise.\n return ( empty($this->error_msg) ? true : false );\n }", "function _webform_defaults_file() {\r\n return array(\r\n 'name' => '',\r\n 'form_key' => NULL,\r\n 'email' => 1,\r\n 'mandatory' => 0,\r\n 'pid' => 0,\r\n 'weight' => 0,\r\n 'extra' => array(\r\n 'filtering' => array(\r\n 'types' => array('gif', 'jpg', 'png'),\r\n 'addextensions' => '',\r\n 'size' => 800,\r\n ),\r\n 'savelocation' => '',\r\n 'width' => '',\r\n 'description' => '',\r\n 'attributes' => array(),\r\n ),\r\n );\r\n}", "function get_errors()\n {\n }", "function import_ch8bt_bug() {\r\n if ( !current_user_can( 'manage_options' ) ) {\r\n wp_die( 'Not allowed' );\r\n }\r\n \r\n // Check if nonce field is present \r\n check_admin_referer( 'ch8bt_import' ); \r\n \r\n // Check if file has been uploaded \r\n if( array_key_exists( 'import_bugs_file', $_FILES ) ) { \r\n // If file exists, open it in read mode \r\n $handle = fopen( $_FILES['import_bugs_file']['tmp_name'], 'r' ); \r\n \r\n // If file is successfully open, extract a row of data \r\n // based on comma separator, and store in $data array \r\n if ( $handle ) { \r\n while ( ( $data = fgetcsv( $handle, 5000, ',' ) ) !== FALSE ) { \r\n $row += 1; \r\n \r\n // If row count is ok and row is not header row \r\n // Create array and insert in database \r\n if ( count( $data ) == 4 && $row != 1 ) { \r\n $new_bug = array( \r\n 'bug_title' => $data[0], \r\n 'bug_description' => $data[1], \r\n 'bug_version' => $data[2], \r\n 'bug_status' => $data[3], \r\n 'bug_report_date' => date( 'Y-m-d' ) ); \r\n \r\n global $wpdb; \r\n \r\n $wpdb->insert( $wpdb->get_blog_prefix() . \r\n 'ch8_bug_data', $new_bug ); \r\n } \r\n } \r\n } \r\n } \r\n \r\n // Redirect the page to the user submission form \r\n wp_redirect( add_query_arg( 'page', 'ch8bt-bug-tracker', \r\n admin_url( 'options-general.php' ) ) ); \r\n exit; \r\n}", "function fill_general_variables()\n\t\t{\n\t\t\t//collect error messages before\n\t\t\t$this->message[] = $this->process_monitor->get_error(false, _DEBUG);\n\t\t\t$this->fill_form_variables();\n\t\t\t$this->t->set_var(array(\n\t\t\t\t'monitor_stats'\t\t\t=> $this->fill_monitor_stats($this->stats),\n\t\t\t));\n\t\t}", "function _import()\n\t{\n\t\t$title=get_page_title('IMPORT');\n\n\t\t$xml=post_param('xml');\n\n\t\t$ops=import_from_xml($xml);\n\n\t\t$ops_nice=array();\n\t\tforeach ($ops as $op)\n\t\t{\n\t\t\t$ops_nice[]=array('OP'=>$op[0],'PARAM_A'=>$op[1],'PARAM_B'=>array_key_exists(2,$op)?$op[2]:'');\n\t\t}\n\n\t\t// Clear some cacheing\n\t\trequire_code('view_modes');\n\t\trequire_code('zones2');\n\t\trequire_code('zones3');\n\t\terase_comcode_page_cache();\n\t\trequire_code('view_modes');\n\t\terase_tempcode_cache();\n\t\tpersistant_cache_empty();\n\n\t\tbreadcrumb_set_self(do_lang_tempcode('_RESULTS'));\n\t\tbreadcrumb_set_parents(array(array('_SELF:_SELF:misc',do_lang_tempcode('XML_DATA_MANAGEMENT'))));\n\n\t\treturn do_template('XML_STORAGE_IMPORT_RESULTS_SCREEN',array('TITLE'=>$title,'OPS'=>$ops_nice));\n\t}", "function languagelesson_upload_feedback($jsondata, $attemptid, $cmid) {\n global $USER, $DB;\n \n $filearray = json_decode($jsondata, true, 5);\n $mp3Data = $filearray['mp3Data'];\n $removed = $filearray['removed'];\n \n $attempt = $DB->get_record('languagelesson_attempts', array('id'=>$attemptid));\n\n // Create an array to store all of the new fb records created.\n $feedbackrecords = array();\n \n foreach ($removed as $filepath) {\n // Do something.\n $urlarray = explode('/', $filepath);\n $filename = array_pop($urlarray);\n $feedbackrecord = $DB->get_record_sql('SELECT * FROM {languagelesson_feedback}\n WHERE '.$DB->sql_compare_text('filename', 50) . '= ' . $DB->sql_compare_text('?', 50),\n array($filename));\n\n $filerecord = $DB->get_record('files', array('id'=>$feedbackrecord->fileid));\n\n languagelesson_delete_submitted_file($filerecord);\n $DB->delete_records('languagelesson_feedback', array('id'=>$feedbackrecord->id));\n }\n \n foreach ($mp3Data as $filename => $content) { \n // Upload each feedback file and get the fileid.\n $fileid = upload_audio_file($attempt->userid, $cmid, $attempt->id, $filename, $content); \n // Insert a new record in languagelesson_feedback for each fileid.\n $newfeedback = array();\n $newfeedback['lessonid'] = $attempt->lessonid;\n $newfeedback['pageid'] = $attempt->pageid;\n $newfeedback['userid'] = $attempt->userid;\n $newfeedback['attemptid'] = $attempt->id;\n $newfeedback['teacherid'] = $USER->id;\n $newfeedback['timeseen'] = time();\n $newfeedback['fileid'] = $fileid;\n $newfeedback['filename'] = $filename;\n $feedbackrecords[$filename] = $DB->insert_record('languagelesson_feedback', $newfeedback);\n\n }\n return $feedbackrecords;\n \n }", "protected function importInstructions()\n {\n return [];\n }", "public function __construct() \n {\n $this->_errorList = array();\n }", "public function __construct() \n {\n $this->_errorList = array();\n }", "public function setFeedback($feedback)\n {\n $this->feedback = $feedback;\n }", "function feedback() {\n $title_for_layout = 'Feedback';\n $this->set(compact('title_for_layout'));\n if ($this->request->is('post')) {\n if ($this->Session->check('Auth.User')) {\n $this->request->data['Feedback']['user_id'] = $this->Session->read('Auth.User.id');\n }\n $captcha = trim($this->Captcha->getCode('User.refer_security_code'));\n $this->loadModel('Feedback');\n $this->Feedback->set($this->request->data);\n if (strcmp(trim($this->request->data['User']['refer_security_code']), $captcha) == 0) {\n unset($this->request->data['User']);\n $data = $this->request->data;\n if (is_array($data['Feedback'])) {\n foreach ($data['Feedback'] as $key => $val) {\n $data['Feedback'][$key] = trim($val);\n }\n }\n if ($this->Feedback->save($data)) {\n\n $Email = new CakeEmail(Configure::read('EMAIL_DELIVERY_MODE'));\n $Email->config(array('persistent' => true));\n\n $Email->from(array(Configure::read('COMPANY.FROM_EMAIL') => Configure::read('COMPANY.NAME')));\n $var_array = array('message' => $data['Feedback']['comment'],\n 'number' => $data['Feedback']['phone'],\n 'name' => $data['Feedback']['name'], 'email' => $data['Feedback']['email'],\n 'feedback_type' => $data['Feedback']['feedback_type']);\n if ($this->Session->check('Auth.User')) {\n $var_array['user_id'] = $this->Session->read('Auth.User.id');\n }\n $Email->viewVars($var_array);\n $Email->to(Configure::read('COMPANY.ADMIN_EMAIL'));\n $Email->subject(\"Feedback Received - \" . Configure::read('COMPANY.NAME'));\n $Email->template('feedback');\n $Email->send();\n\n //Email to user\n if (trim($data['Feedback']['email']) != '') {\n $Email->from(array(Configure::read('COMPANY.FROM_EMAIL') => Configure::read('COMPANY.NAME')));\n $var_array = array('name' => $data['Feedback']['name']);\n $Email->viewVars($var_array);\n $Email->to($data['Feedback']['email']);\n $Email->subject('Thank you for your feedback - ' . Configure::read('COMPANY.NAME'));\n $Email->template('feedback_ack');\n $Email->send();\n }\n\n /* smtp disconnect */\n if (Configure::read('EMAIL_DELIVERY_MODE') == 'smtp') {\n $Email->disconnect();\n }\n\n $this->Flash->success(\"We appreciate that you've taken the time to write us. We'll get back to you very soon.\");\n $this->redirect(array('controller' => 'content', 'action' => 'feedback'));\n } else {\n $this->Flash->error('There was a problem processing your request. Please try again.');\n }\n } else {\n $this->Flash->error(__('Incorrect captcha code! Try again.'));\n }\n }\n }", "function get_feedback_data(){\n\t\t$task_id = $this->input->post('field_id');\n\t\t$query = $this->InteractModal->feedback_status($task_id );\n\t\tif(!empty($query)){\n\t\t\tforeach($query as $queries){\n\t\t\t\t$price_opinion = $queries['price_opinion'];\n\t\t\t\t$interest_opinion = $queries['interest_opinion'];\n\t\t\t\t$property_quality = $queries['property_quality'];\n\t\t\t\t$showing_id = $queries['showing_id'];\n\t\t\t\t$details = $queries['details'];\n\t\t\t\t$feedback_detail = @unserialize( $details );\n\t\t\t\t$agent_name=$feedback_detail['user_name'];\n\t\t\t}\n\t\t\t$data['agent_name']= $agent_name;\n\t\t\t$data['price_opinion']= $price_opinion;\n\t\t\t$data['interest_opinion']= $interest_opinion;\n\t\t\t$data['property_quality']= $property_quality;\n\t\t $this->load->view('common/feedback_content',$data); \n\t\t}\n\t}", "private function import_pointer() {\n\t\treturn array(\n\t\t\t'content' => '<h3>' . __( 'Import/Export', 'formidable' ) . '</h3>'\n\t\t\t . '<p>' . __( 'Import and export forms and styles when copying from one site to another or sharing with someone else. Your entries can be exported to a CSV as well. The Premium version also includes the option to import entries to your site from a CSV.', 'formidable' ) . '</p>',\n\t\t\t'prev_page' => 'styles',\n\t\t\t'next_page' => 'settings',\n\t\t\t'selector' => '.inside.with_frm_style',\n\t\t\t'position' => array( 'edge' => 'bottom', 'align' => 'top' ),\n\t\t);\n\t}", "public function get_output()\n {\n $imported_file = basename($this->get_tmp_file());\n $current_user = wp_get_current_user();\n $author = $current_user->user_login;\n\n $message = __('imported file:', 'tainacan');\n $message .= \" <b> ${imported_file} </b><br/>\";\n $message .= __('target collections:', 'tainacan');\n $message .= \" <b>\" . implode(\", \", $this->get_collections_names()) . \"</b><br/>\";\n $message .= __('Imported by:', 'tainacan');\n $message .= \" <b> ${author} </b><br/>\";\n\n return $message;\n }", "public function import() {\n return '';\n }", "public function get_error_messages();", "function import_file_upload(){\t\t\r\r\n\t\t// file\r\r\n\t\t$file_element = 'import_file';\r\r\n\t\t// init\r\r\n\t\t$filedata = array();\r\r\n\t\t// init messages\r\r\n\t\t$status = 'error';\t\r\r\n\t\t$message = __('import file upload failed.','mgm');\r\r\n\t\t// upload check\r\r\n\t\tif (is_uploaded_file($_FILES[$file_element]['tmp_name'])) {\r\r\n\t\t\t// random filename\r\r\n\t\t\t$uniquename = substr(microtime(),2,8);\r\r\n\t\t\t// paths\r\r\n\t\t\t$oldname = strtolower($_FILES[$file_element]['name']);\r\r\n\t\t\t$newname = preg_replace('/(.*)\\.(xml)$/i', $uniquename.'.$2', $oldname);\r\r\n\t\t\t$filepath = MGM_FILES_IMPORT_DIR . $newname;\r\r\n\t\t\t// upload\r\r\n\t\t\tif(move_uploaded_file($_FILES[$file_element]['tmp_name'], $filepath)){\r\r\n\t\t\t\t// file\t\t\t\t\r\r\n\t\t\t\t$import_file = array('name' => $newname, 'path' => MGM_FILES_IMPORT_DIR . $newname);\t\r\r\n\t\t\t\t// status\r\r\n\t\t\t\t$status = 'success';\t\r\r\n\t\t\t\t$message = sprintf(__('Import file [%s] uploaded successfully, please hit the MIGRATE button to start migration.','mgm'),$newname);\r\r\n\t\t\t}\r\r\n\t\t}\t\t\r\r\n\t\t// send ouput\t\t\r\r\n\t\t@ob_end_clean();\t\r\r\n\t\t// print\r\r\n\t\techo json_encode(array('status'=>$status,'message'=>$message, 'file'=>$import_file,'post'=>$_POST));\r\r\n\t\t// end out put\t\t\t\r\r\n\t\t@ob_flush();\r\r\n\t\texit();\r\r\n\t}", "public function requirements_errors() {\n\t\t$errors = $this->errors;\n\t\trequire_once( ET_CORE_DIR . 'templates/admin/errors/requirements-error.php' );\n\t}", "function ozh_yourls_gsb_extra_info( $return ) {\n $return['message'] .= '<br/>(' . OZH_YOURLS_GSB_EXTRA_INFO . ')';\n $return['status'] = 'error';\n return $return;\n}", "public function getFeedback()\n {\n return $this->_feedback;\n }", "function import( $source, $back_url ) {\n\t\n\t}", "public static function view_feedback_returns() {\n return new external_single_structure(\n array(\n 'status' => new external_value(PARAM_BOOL, 'status: true if success'),\n 'warnings' => new external_warnings(),\n )\n );\n }", "protected function feedback()\n\t{\n\t\tif ($this->store['feedback_percent'] == 0) {\n\t\t\treturn;\n\t\t}\n\t\t$feedback = $this->store['feedback'] * $this->config->data()['feedback'];\n\t\t$feedbackPercent = ($this->store['feedback_percent'] / $this->config->data()['feedbackPercent']);\n\t\t$score = round($feedback / $feedbackPercent);\n\t\t$this->score += $score;\n\t}", "function init__hooks__modules__admin_import__smf()\n{\n global $TOPIC_FORUM_CACHE;\n $TOPIC_FORUM_CACHE = array();\n\n global $STRICT_FILE;\n $STRICT_FILE = false; // Disable this for a quicker import that is quite liable to go wrong if you don't have the files in the right place\n}", "public function __construct(){\r\n\t\t$this->errors = [];\r\n\t\t$this->general_messages = [];\r\n\t\t$this->all_messages = [];\r\n\t}", "public\n function feedbacksetup(Request $request)\n {\n //dd($request);\n $input = $request::all();\n\n $exam = Exam_instance::find($input['id']);\n\n $exam->email_template_id = $input['template_id'];\n $email_params = ['exclude_items' => $input['exclude']];\n if (isset($input['exclude_items_comments'])) {\n $email_params['exclude_items_comments'] = $input['exclude_items_comments'];\n }\n if (isset($input['exclude_overall_comments'])) {\n $email_params['exclude_overall_comments'] = $input['exclude_overall_comments'];\n }\n $exam->email_parameters = json_encode($email_params);\n $exam->save();\n return array(\n 'status' => 0,\n );\n }", "function massattach_error($error_code, $filepath = '')\n{\n\tglobal $txt, $language;\n\n\tif (!empty($filepath))\n\t\t@unlink($filepath);\n\n\tloadLanguage(array('Errors', 'Post'), $language);\n\techo json_encode(array('valid' => false, 'error' => isset($txt[$error_code]) ? $txt[$error_code] : $error_code));\n\texit;\n}", "private function initializeTemplateMessages()\n {\n if (is_null($this->templateErrors)) {\n $this->templateErrors = array();\n }\n\n if (is_null($this->templateWarnings)) {\n $this->templateWarnings = array();\n }\n\n if (is_null($this->templateConfirms)) {\n $this->templateConfirms = array();\n }\n\n if (is_null($this->templateErrors)) {\n $this->templateInfos = array();\n }\n }", "public function getFeedback()\n {\n return $this->feedback;\n }", "public function init() {\n $this->title = get_string('my_feedback', 'report_myfeedback');\n }", "function showSuccess($feedback)\n{\n showFeedback(new AlertMessage(AlertMessage::STYLE_SUCCESS, $feedback));\n}", "function setReporting() {\nif (DEVELOPMENT_ENVIRONMENT == true) {\n error_reporting(E_ALL);\n ini_set('display_errors','On');\n} else {\n error_reporting(E_ALL);\n ini_set('display_errors','Off');\n ini_set('log_errors', 'On');\n ini_set('error_log', ROOT.DS.'tmp'.DS.'logs'.DS.'error.log');\n}\n}", "public function get_expected_data()\n {\n //expect the submission of one or more files\n //return array('answer' => question_attempt::PARAM_FILES);\n return array('answer' => question_attempt::PARAM_FILES, 'answerraw' => PARAM_RAW, 'attemptid' => PARAM_INT);\n }", "public function add_feedback(){\n $task_id = $this->input->post('task_id') ;\n $text = $this->input->post('text') ;\n $type = $this->input->post('type') ;\n $wiw_id = $this->input->post('wiw_id') ;\n if(!(is_numeric($task_id) && strlen($text) > 0)) {\n $this->output->set_status_header('406'); \n return ;\n }\n $data = array(\n 'task_id' => $task_id ,\n 'text' => $text ,\n 'wiw_id' => $wiw_id ,\n 'type' => $type ,\n );\n $this->m_feedback->save($data) ;\n }", "function print_error($reason,$type = 0) {\n global $version, $header_file, $footer_file, $testing, $post_info, $key;\n global $val, $_POST, $recipient;\n// for missing required data\n // if ($type == \"missing\") {\nhtml_header(\"error\");\n?>\n<p>&nbsp;</p>\n<div align=\"center\">\n<table width=\"500\" border=\"0\" cellpadding=\"10\" cellspacing=\"0\" bgcolor=\"#CCCCCC\">\n <tr>\n <td><strong>The form was not submitted because it contained the following reasons:</strong><br>\n\t<ul>\n\t<?=$reason?>\n\t</ul>\n <p>Please use your browser's back button to return to the form and try again.</p>\n\t</td>\n </tr>\n</table></div>\n<?php\n if($testing == 1) {\n $post_info = $_POST;\n print(\"<p><strong>This script is in testing mode:</strong> <br> Here are the post variables:</p><br>\");\n foreach($post_info as $key=>$val) { print(\"$key: $val<br>\");}\n print(\"<br>And the email would have been sent to: $recipient\"); \n }\n html_footer();\n exit; \n}", "function process_file($filename)\n{\n \n $feedback = []; \n $ratings = []; \n\n $inside_feedback = 0;\n $inside_ratings = 0;\n $guide_name = \"0\";\n\n if (($h = fopen(\"{$filename}\", \"r\")) !== FALSE) \n {\n // Each line in the file is converted into an individual array that we call $data\n // The items of the array are comma separated\n while (($data = fgetcsv($h, 1000, \",\")) !== FALSE) \n {\n \n if ($inside_feedback == 2)\n {\n $inside_feedback = 1;\n }\n elseif ($inside_feedback == 1)\n {\n if ($data[0] == \"\")\n {\n $inside_feedback = 0;\n }\n else \n {\n // this is where we get the actual feedback content\n $feedback[] = [ $guide_name, $data[0], $data[1] ];\n\n }\n }\n elseif ($inside_ratings == 2)\n {\n $inside_ratings = 1;\n }\n \n elseif ($inside_ratings == 1)\n {\n if ($data[0] == \"\")\n {\n $inside_ratings = 0;\n }\n else \n {\n // this is where we get the actual ratings content\n $ratings[] = [ $guide_name, $data[0], $data[1] ];\n }\n }\n elseif ( (substr($data[0], 0, strlen(\"Guide Name: \")) == \"Guide Name: \") )\n {\n $guide_name = substr($data[0], strlen(\"Guide Name: \"));\n }\n\n elseif ( (substr($data[0], 0, strlen(\"Anything you'd like to share?\")) == \"Anything you'd like to share?\") )\n {\n $inside_feedback = 2;\n }\t\t\n elseif ( (substr($data[0], 0, strlen(\"This course was useful and met my expectations.\")) == \"This course was useful and met my expectations.\")\n || (substr($data[0], 0, strlen(\"This course was helpful to me.\")) == \"This course was helpful to me.\") )\n {\n $inside_ratings = 2;\n }\t\t\n }\n\n fclose($h);\n\n return [$feedback, $ratings];\n }\n\n\n}", "public function saveFeedback($feedback){\n $feedback[\"time\"] = time();\n $this->ins(\"feedback\", $feedback);\n }", "public function restore_settings_feedback() {\n\t\t\trequire( ABSPATH . 'wp-admin/options-head.php' );\n\t\t}", "function create_extension_feedback_form($data)\n{\n if(isset($data['cid']) && !empty($data['cid']))\n {\n $companyId = $data['cid'];\n }\n else\n {\n $company_data = get_company_data();\n $companyId = $company_data['cid'];\n }\n \n\t $approval_data = array();\n if(isset($data['approval_id']) && !empty($data['approval_id']))\n {\n $approval_id = $data['approval_id'];\n $approval_data['id'] = $approval_id;\n unset($data['approval_id']);\n }\n if(isset($data['action_ts']))\n {\n $approval_data['action_ts'] = $data['action_ts'];\n }\n if(isset($data['action_by']))\n {\n $approval_data['update_by'] = $data['action_by'];\n }\n if(isset($data['action_comment']))\n {\n $approval_data['comment'] = $data['action_comment'];\n }\n if(isset($data['action_ts']))\n {\n $approval_data['action_ts'] = $data['action_ts'];\n }\n if(isset($data['action_by']))\n {\n $approval_data['update_by'] = $data['action_by'];\n }\n if(isset($data['action']))\n {\n $fa_action = $data['action'];\n // unset($data['action']);\n }\n $data['approval_data'] = $approval_data;\n\n $result_job = curl_post('/create_form_job',$data);\n \n if(($result_job['success']=='true') && count($result_job['data']['data']))\n {\n \t $result_job = $result_job['data']['data'];\n return array(\"data\"=>$result_job,\"success\"=>\"true\",\"error_code\"=>\"50311\");\n }\n else\n {\n \t return array(\"data\"=>$result_job,\"success\"=>\"false\",\"error_code\"=>\"50311\");\n }\n \n}", "function validate_presences_non_post($required_fields, $record,$warning_me=false) {\n global $errors;\n global $warnings;\n\n $msg_presence=array();\n foreach($required_fields as $field) {\n $value = trim($record[$field]);\n if (!has_presence($value)) {\n\n if ($warning_me) {\n $warnings[$field] = fieldname_as_text($field) . \" n'est pas rempli\";\n\n $msg_presence[$field]=$warnings[$field];\n // $msg_presence[$field]=get_warning_error($warnings[$field],$warning_me);\n\n // var_dump($warnings[$field]);\n }else{\n $errors[$field] = fieldname_as_text($field) . \" n'est pas rempli \";\n $msg_presence[$field]=$errors[$field];\n // $msg_presence[$field]=get_warning_error($errors[$field],$warning_me);;\n\n\n }\n // var_dump(debug_backtrace());\n\n }\n }\n\n return $msg_presence;\n}", "function cc_import_error($msg, $oggetto = \"\"){\n\t\n\tif(empty($oggetto)) $oggetto = \"Errore durante importazione dati xml\";\n\twp_mail( '[email protected]', $oggetto, $msg);\t\n\t\n}", "public function getErrors():array;", "public function reset_errors() /*void*/\n {\n $_SESSION[self::ERRORS] = array();\n }", "public function getWarnings(): array;", "public function getErrorMessages(){\n return $this->arr_msg; \n }", "public static function launch_feedback_returns() {\n return new external_single_structure(\n array(\n 'gopage' => new external_value(PARAM_INT, 'The next page to go (-1 if we were already in the last page). 0 for first page.'),\n 'warnings' => new external_warnings(),\n )\n );\n }", "public function getErrorList() {\n\t\treturn array();\n\n\t}", "function getErrors();", "function _initial_import()\n {\n global $_CONF, $_TABLES, $LANG_SX00, $_SPX_CONF;\n\n if (ini_get('allow_url_fopen')) {\n $blacklist = file($_SPX_CONF['mtblacklist_url']);\n $count = $this->_do_import($blacklist);\n\n if ($count > 0) {\n $display = sprintf($LANG_SX00['import_success'], $count);\n SPAMX_log($LANG_SX00['uMTlist'] . $LANG_SX00['uMTlist2']\n . $count . $LANG_SX00['uMTlist3'] . '0'\n . $LANG_SX00['entries']);\n } else {\n $display = $LANG_SX00['import_failure'];\n }\n } else { // read blacklist from local file\n $fromfile = $_CONF['path_data'] . 'blacklist.txt';\n\n if (file_exists($fromfile)) {\n $blacklist = file($fromfile);\n $count = $this->_do_import($blacklist);\n\n if ($count > 0) {\n $display = sprintf($LANG_SX00['import_success'], $count);\n SPAMX_log($LANG_SX00['uMTlist'] . $LANG_SX00['uMTlist2']\n . $count . $LANG_SX00['uMTlist3'] . '0'\n . $LANG_SX00['entries']);\n } else {\n $display = $LANG_SX00['import_failure'];\n }\n } else {\n $display = sprintf($LANG_SX00['allow_url_fopen'],\n $_CONF['path_data']);\n $display .= '<p>'. COM_createLink($_SPX_CONF['mtblacklist_url'],\n $_SPX_CONF['mtblacklist_url']);\n }\n }\n\n // Import Personal Blacklist for existing users.\n $fromfile = $_CONF['path_html'] . 'spamx/blacklist.php';\n if (file_exists($fromfile)) {\n require_once $fromfile;\n $count = $this->_do_importp($SPAMX_BLACKLIST);\n $display .= $LANG_SX00['initial_Pimport'];\n if ($count > 0) {\n $display .= sprintf($LANG_SX00['import_success'], $count);\n SPAMX_log($LANG_SX00['uPlist'] . $LANG_SX00['uMTlist2']\n . $count . $LANG_SX00['uMTlist3'] . '0'\n . $LANG_SX00['entries']);\n } else {\n $display .= $LANG_SX00['import_failure'];\n }\n }\n\n return $display;\n }", "public function getErrors(): array;", "public function getErrors(): array;", "public function getErrors(): array;", "function _setErrorVariables()\n\t{\n\t\tif(!empty($this->m_link_id))\n\t\t{\n\t\t\t$this->m_errno = mysqli_errno($this->m_link_id);\n\t\t\t$this->m_error = mysqli_error($this->m_link_id);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->m_errno = mysqli_connect_errno();\n\t\t\t$this->m_error = mysqli_connect_error();\n\t\t}\n\t}", "private function _sendErrors( ){\n\n\t\tglobal $mqRecurly;\n\n\t\t$site = strtoupper( strtok( $mqRecurly->getSetting('plan_id_prefix'), '-' ) );\n\n\t\t$message = print_r( $this->_errors, 1 );\n\n\t\twp_mail( '[email protected]', 'Reculry Error - ' . $site, $message );\n\n\t}", "public function get_portfolio_feedback();", "function errorMSGControll() {\n $this->errorMSG = $this->model->getErrorMSG();\n $this->view->errorMSGHandler($this->errorMSG);\n }", "function init_errArr ($function_name) {\n\treturn(array(ERR_CODE=>0, ERR_FUNCTION_NAME=>$function_name, ERR_DESCR=>\"\",\n\t\tERR_LONG_DESCR=>\"\", ERR_SQLSTATE=>\"\", ERR_SQLSTATE_MSG=>\"\", ERR_AFFECTED_ROWS=>0, ERR_INSERT_ID=>0));\n}", "public function displayImport()\n {\n if(true === $error = $this->handleImport()){\n $result = $this->ImportForm();\n\n if($result['error'] == true)\n $error = $result['message'];\n else\n $success = $result['message'];\n }\n\n include __DIR__ . '/templates/import.php';\n }", "function capture_fields (){\n if ($this->display_template_output) {\n\t $fields_arr= explode(';', $this->script->capture_fields ());\n\t}\n\treturn $fields_arr;\t\n }", "function errorInfo($p_full = \\false)\n {\n }", "public function feedback()\n {\n $feedback_positive = Session::get('feedback_positive');\n $feedback_negative = Session::get('feedback_negative');\n Session::set('feedback_positive',null); \n Session::set('feedback_negative',null); \n \n //echo 'hi';\n // echo out positive messages\n if (isset($feedback_positive)) {\n foreach ($feedback_positive as $feedback) {\n echo '<div class=\"feedback success\">'.$feedback.'</div>';\n }\n }\n \n // echo out negative messages\n if (isset($feedback_negative)) {\n foreach ($feedback_negative as $feedback) {\n echo '<div class=\"feedback error\">'.$feedback.'</div>';\n }\n }\n }", "public function errors();", "public function errors();", "public static function feedback_parameters() {\n return new external_function_parameters([\n 'swipeid' => new external_value(PARAM_INT, 'swipeid', VALUE_DEFAULT, 0),\n 'feedback' => new external_value(PARAM_RAW, 'The feedback text')\n ]);\n }", "function send_audio_config($lessonid, $user, $fileurl = NULL, $feedback = NULL) {\n global $CFG;\n \n $moodleData = array();\n $moodleData['userid'] = $user->id;\n \n $config = array();\n $config['lessonid'] = $lessonid;\n if ($fileurl) {\n $config['lessonaudio'] = $fileurl;\n } else {\n $config['lessonaudio'] = '';\n }\n\n $config['feedback'] = array();\n $config['moodleData'] = $moodleData;\n \n $config = json_encode($config);\n \n return $config;\n }", "function imports($files = array(), &$data = array())\r\n\t{\r\n\t\t\r\n\t}", "function get_error() {\r\n $error = array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_ERROR,\r\n 'error' => stripslashes(urldecode($_GET['error'])));\r\n return $error;\r\n }", "public function _create_feedback() {\n if($this->debug == True) {\n $this->contact_details->bypass_profilephoto = True; \n }\n \n $contact_data = $this->contact_details->generate_data(); \n \n if($new_contact_id = $this->dbcontact->insert_new_contact($contact_data)) {\n\n $feedback_data = $this->feedback_details->generate_data();\n $feedback_data['contactId'] = $new_contact_id; \n\n $new_feedback_id = $this->dbfeedback->insert_new_feedback($feedback_data);\n\n $post = (object) Array(\n 'feedback_text' => $feedback_data['text']\n , 'feed_id' => $new_feedback_id\n );\n \n //we check if there is any profanity in the feedback...if so we flip the hasProfanity column to true\n $feedbackservice = new FeedbackService(new DBFeedback, new DBBadWords);\n $feedbackservice->save_feedback($post);\n \n //We determine the origin of this feedback and its from the Feedback Form\n DB::Table('FeedbackContactOrigin', 'master')->insert(Array(\n 'contactId' => $new_contact_id\n , 'feedbackId' => $new_feedback_id\n , 'origin' => 's36'\n , 'socialId' => $new_feedback_id\n ));\n\n $result_obj = new StdClass;\n $result_obj->feedback_id = $new_feedback_id;\n $result_obj->contact_id = $new_contact_id;\n\n return $result_obj;\n }\n\n return Null;\n }", "function clients_doImport() {\n\tglobal $gSession;\n\t\n\t## import the data files. the import process is divided in steps and segments\n\t$current_step = intval($_GET['step']);\n\t$current_group = intval($_GET['group']);\n\t## let's see what the current step is\n\n\tswitch($current_step) {\n\t\tcase 0:\n\t\t\t## first ask the user for the file to import\n\t\t\tclients_importDisplaySelectFile();\n\t\t\t## in order to show the screen right away we do nothing \n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t## we need to store the settings \n\t\t\t$update = intval($_POST['update']);\n\t\t\n\t\t\t## okay test out the uploading of the file\n\t\t\t$userfile\t= $_FILES['upload']['tmp_name'];\n\t\t\t$file_name\t= $_FILES['upload']['name'];\n\t\t\t$file_size\t= $_FILES['upload']['size'];\n\t\t\t$file_type\t= $_FILES['upload']['type'];\n\n\t\t\t## okay we first create an upload object\n\t\t\t$f = new file_object(); \n\t\t\tif ($userfile != \"none\" && $userfile!='') { \n\t\t\t\t##then we upload the file\n\t\t\t\t$filename = $f->upload($userfile, 'import.csv',$file_size,$file_type, MATRIX_BASEDIR.\"settings/modules/\".$GLOBALS['_MODULE_DATAOBJECTS_NAME'].\"/import/\",1);\n\t\t\t\t## check if the file was successfully uploaded\n\t\t\t\tif($filename != -1) {\n\t\t\t\t\toutput_progress('Import','Please wait while the file is beeing processed',\"module.php?cmd=import&step=2&group=\".$current_group.'&update='.$update);\n\t\t\t\t} else {\n\t\t\t\t\t## there was an error processing the file\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$targetURL = $gSession->url('module.php?cmd=import');\n\t\t\t\toutput_confirm_refresh('Please select a file','Please select a file before proceeding',$targetURL);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t## convert the file\n\t\t\t$update = intval($_GET['update']);\n\t\t\t\n\t\t\tdbobject_importConvertDataFile(MATRIX_BASEDIR.'settings/modules/'.$GLOBALS['_MODULE_DATAOBJECTS_NAME'].'/import/import.csv',MATRIX_BASEDIR.'settings/modules/'.$GLOBALS['_MODULE_DATAOBJECTS_NAME'].'/import/tmp.csv');\n\t\t\toutput_progress('Import','prepareing default values',\"module.php?cmd=import&step=3&group=\".$current_group.'&update='.$update);\n\t\t\t\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\t## in this step we will inform the user about the fields we found- and let the user\n\t\t\t## specify which elements he wants to assign to what fields from the db\n\t\t\t##exit;\n\t\t\t## okay we have a file- now we need to ask them what default values they want to set\n\t\t\t## let#s get the availaable options\n\t\t\t\n\t\t\t##fetch the field names form the file\n\t\t\t$data = clients_importGetSegementOfFile(MATRIX_BASEDIR.'settings/modules/'.$GLOBALS['_MODULE_DATAOBJECTS_NAME'].'/import/tmp.csv',0,1);\t\t\n\t\t\t$data = $data['data'][0];\n\n\t\t\t\n\t\t\tclients_importDisplaySelectValues($data);\t\t\t\n\t\t\tbreak;\n\n\t\tcase 4:\n\t\t\t## the user has selected the desired mapping- we need to prepare it and \n\t\t\t## store the mapping for the next importing steps...\n\t\t\t\n\t\t\t$column_counter = intval($_POST['column_count']);\n\t\t\t$update = intval($_GET['update']);\n\t\t\t\n\t\t\t## prepare the fields\n\t\t\t$mapping = array();\n\t\t\tfor($i = 0; $i <= $column_counter; $i++) {\n\t\t\t\tif($_POST['COLUMN_'.$i] != -1) {\n\t\t\t\t\t## okay we found a field\n\t\t\t\t\t$mapping[$i] = $_POST['COLUMN_'.$i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t## now we will store the mapping using the session identifier\n\t\t\t$filename = MATRIX_BASEDIR.'settings/modules/'.$GLOBALS['_MODULE_DATAOBJECTS_NAME'].'/import/'.$gSession->id.'.mapping';\n\t\t\t$content = serialize($mapping);\n\n\t\t\t## store the mapping file\n\t\t\t$fp = fopen($filename,'w');\n\t\t\tif($fp) {\n\t\t\t\t## write the data\n\t\t\t\tfwrite($fp,$content);\n\t\t\t\tfclose($fp);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t## finally jump to the next step\n\t\t\toutput_progress('Import','starting import',\"module.php?cmd=import&step=5&update=\".$update);\t\n\t\t\tbreak;\n\n\t\tcase 5:\n\t\t\t## first load the mapping file\n\t\t\t$filename = MATRIX_BASEDIR.'settings/modules/'.$GLOBALS['_MODULE_DATAOBJECTS_NAME'].'/import/'.$gSession->id.'.mapping';\n\t\t\t\n\t\t\t$update = intval($_GET['update']);\n\t\t\t\n\t\t\t## load the file\n\t\t\t$content = file_get_contents($filename);\t\n\t\t\t$mapping = unserialize($content);\n\t\t\n\t\t\t## this step is divided in substeps\n\t\t\t$current_substeps = isset($_GET['substeps']) ? $_GET['substeps'] : 1;\n\t\t\t$current_pos = intval($_GET['pos']) ? $_GET['pos'] : 1;\n\n\t\t\t## process the products\n\t\t\t$dataInfo = clients_importGetSegementOfFile(MATRIX_BASEDIR.'settings/modules/'.$GLOBALS['_MODULE_DATAOBJECTS_NAME'].'/import/tmp.csv',$current_substeps,$current_substeps+100,$mapping);\n\t\t\t$data = $dataInfo['data'];\n\t\t\t\n\t\t\t## okay now we will prepare the \n\t\t\tif(isset($data[0])) {\n\t\t\t\t_clientsDoImport($data,$_POST['default_values'],$update);\n\t\t\t\toutput_progress('Import','processing data:'.($current_substeps+99),\"module.php?cmd=import&step=5&values=\".$values.\"&pos=\".$dataInfo['pos'].\"&substeps=\".($current_substeps+100).\"&group=\".$current_group.\"&update=\".$update);\t\n\t\t\t} else {\n\t\t\t\t## reload and display the next step\n\t\t\t\toutput_progress('Import','finishing',\"module.php?cmd=import&step=6\");\t\n\t\t\t}\n\t\t\tbreak;\t\t\t\n\t\tdefault:\n\t\t\t## okay we are done... so for now just quit\n\t\t\toutput_confirm('Import','The data was sucessfully imported','module.php');\n\n\t\t\tbreak;\n\t\t}\n\t\n}", "public function get_errors() { return $this->errortext; }", "public function feedback_api_post()\n {\n $data=($_POST);\n $result = $this->Post_project_model->save_feedback_freelancer($data);\n return $this->response($result);\n }" ]
[ "0.6011609", "0.56758916", "0.56024283", "0.5568711", "0.5565254", "0.5564773", "0.5528523", "0.5522762", "0.55080163", "0.54678404", "0.5425131", "0.54142237", "0.5407703", "0.5336138", "0.53295547", "0.5312894", "0.52978855", "0.5262979", "0.52549815", "0.52546734", "0.5253329", "0.5220758", "0.5218392", "0.521672", "0.52108574", "0.520814", "0.515234", "0.5150605", "0.5139335", "0.513208", "0.5123527", "0.51229924", "0.5117966", "0.5116922", "0.50944704", "0.5064278", "0.5058719", "0.50586355", "0.50586355", "0.50574034", "0.5051296", "0.50475603", "0.5034723", "0.501671", "0.500929", "0.50014853", "0.4991502", "0.49910575", "0.49848986", "0.49712133", "0.49621937", "0.4961363", "0.4953397", "0.49476314", "0.4945642", "0.4944083", "0.49371952", "0.49371392", "0.492678", "0.4923403", "0.49137574", "0.4900982", "0.48995152", "0.48951215", "0.48879054", "0.48863682", "0.4882052", "0.48757952", "0.48701212", "0.48675904", "0.4863878", "0.4859933", "0.48532552", "0.4851529", "0.4851137", "0.48441428", "0.48414594", "0.4837624", "0.4833488", "0.48328006", "0.48328006", "0.48328006", "0.48263946", "0.4821653", "0.48176008", "0.481722", "0.48146504", "0.48136857", "0.48117954", "0.4811239", "0.480946", "0.48053226", "0.48053226", "0.4802954", "0.48024523", "0.4794996", "0.47867718", "0.4784042", "0.47833517", "0.4781439", "0.47729278" ]
0.0
-1
Display a listing of the resource.
public function index() { $surat = Surat::all(); // menampilkan data return view('index')->with('surats', $surat); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $request->validate([ 'nomor' => 'required', 'kategori' => 'required', 'judul' => 'required', 'file_path' => 'required|file|mimes:csv,txt,xlx,xls,pdf|max:2048', ]); $input = $request->all(); if ($file = $request->file('file_path ')) { $nama_file = $file->getClientOriginalName(); $extension = $file->getClientOriginalExtension(); $ukuran_file = $file->getSize(); $destinationPath = 'pdf/ '; $profileFile = date('YmdHis') . "." . $file->getClientOriginalExtension(); $file->move($destinationPath, $profileFile); $input['file_path '] = "$profileFile "; } Surat::create($input); return redirect()->route('surats.index') ->with('success', 'Surat created successfully.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676" ]
0.0
-1
Display the specified resource.
public function show(Surat $surat) { return view('show', compact('surat')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show(Resena $resena)\n {\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function get_resource();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "public function display() {\n echo $this->render();\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n {\n //\n $this->_show($id);\n }", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public abstract function display();", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "abstract public function resource($resource);", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047151", "0.60409963", "0.6021287", "0.5989136", "0.5964405", "0.5962407", "0.59518087", "0.59309924", "0.5921466", "0.5908002", "0.5908002", "0.5908002", "0.59051657", "0.5894554", "0.5871459", "0.5870088", "0.586883", "0.5851384", "0.58168566", "0.58166975", "0.5815869", "0.58056176", "0.5799148", "0.5795126", "0.5791158", "0.57857597", "0.5783371", "0.5761351", "0.57592535", "0.57587147", "0.5746491", "0.57460666", "0.574066", "0.5739448", "0.5739448", "0.57295275", "0.57293373", "0.5729069", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57214445", "0.57149816", "0.5712036", "0.5710076", "0.57073003", "0.5707059", "0.5705454", "0.5705454", "0.5700382", "0.56997055", "0.5693362", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Surat $surat) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Surat $surat) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(Surat $surat) { $surat->delete(); return redirect()->route('surats.index') ->with('success', 'Surat deleted successfully'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "public function remove($id);", "public function remove($id);", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853", "0.58968836", "0.58958197", "0.58958197", "0.58958197", "0.58958197", "0.58800334", "0.5869308", "0.5861188", "0.5811069", "0.5774596", "0.5763277", "0.5755447", "0.5747713", "0.5742094", "0.573578", "0.5727048", "0.57164854", "0.5712422", "0.57092893", "0.57080173", "0.5707143", "0.5704078", "0.5696418", "0.5684556", "0.5684556", "0.56790006", "0.5678463", "0.5658492", "0.564975", "0.5648406", "0.56480885", "0.5641393", "0.5638992", "0.56302536", "0.56228197", "0.5616424", "0.5607389", "0.56033397", "0.5602035", "0.55991143", "0.55988586", "0.5590501", "0.5581284", "0.55681103", "0.5566215", "0.55644745", "0.5563726", "0.55593926", "0.55583876", "0.5548547", "0.5542015", "0.5541403", "0.5541403", "0.55397224", "0.55390894", "0.55376494", "0.5531044", "0.5529739", "0.55279493", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527671", "0.5527155", "0.5526666", "0.55245256", "0.552101", "0.55183184" ]
0.0
-1
The XFlickr Constructor. This method is used to create a new XFlickr object.
function __construct(modX &$modx,array $config = array()) { $this->modx =& $modx; $core = $this->modx->getOption('core_path').'components/xflickr/'; $assets_url = $this->modx->getOption('assets_url').'components/xflickr/'; $assets_path = $this->modx->getOption('assets_path').'components/xflickr/'; $this->api_key = $this->modx->getOption('xflickr.api_key'); $this->api_secret = $this->modx->getOption('xflickr.api_secret'); $this->token = $this->modx->getOption('xflickr.token'); $this->config = array_merge(array( 'core_path' => $core, 'model_path' => $core.'model/', 'processors_path' => $core.'processors/', 'controllers_path' => $core.'controllers/', 'chunks_path' => $core.'chunks/', 'base_url' => $assets_url, 'css_url' => $assets_url.'css/', 'js_url' => $assets_url.'js/', 'connector_url' => $assets_url.'connector.php', ),$config); $this->modx->addPackage('xflickr',$this->config['model_path']); if ($this->modx->lexicon) { $this->modx->lexicon->load('xflickr:default'); } /* load debugging settings */ if ($this->modx->getOption('debug',$this->config,false)) { error_reporting(E_ALL); ini_set('display_errors',true); $this->modx->setLogTarget('HTML'); $this->modx->setLogLevel(MODX_LOG_LEVEL_ERROR); $debugUser = $this->config['debugUser'] == '' ? $this->modx->user->get('username') : 'anonymous'; $user = $this->modx->getObject('modUser',array('username' => $debugUser)); if ($user == null) { $this->modx->user->set('id',$this->modx->getOption('debugUserId',$this->config,1)); $this->modx->user->set('username',$debugUser); } else { $this->modx->user = $user; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n parent::__construct();\n $this->flickrApi = new PhpFlickr(env('FLICKR_KEY'));\n }", "function __construct() {\n parent::__construct();\n $params = array('api_key' => FLICKR_API_KEY, 'secret' => FLICKR_API_SECRET, 'die_on_error' => FALSE);\n $this->load->library('phpflickr', $params);\n $CI = & get_instance();\n $path = $CI->config->item('cache_path');\n $cache_path = ($path == '') ? APPPATH . 'cache/' : $path;\n $this->phpflickr->enableCache('fs', $cache_path, 7200);\n }", "public function __construct()\n\t\t{\n\n\t\t\tparent::__construct( 'themeists-flickr-widget', 'Themeists Flickr Widget', array(\n\t\t\t\t'description' => 'Display up to 20 of your latest Flickr submissions in your sidebar.',\n\t\t\t) );\n\n\t\t}", "public function init(){\n if( !isset($this->access_token) && !StileroFlickrFrob::hasFrobInGetRequest() ){\n $Url = new StileroFlickrUrl($this->Api);\n $Url->redirectToUrl($this->perms);\n }else if( StileroFlickrFrob::hasFrobInGetRequest() ){\n $this->Frob->fetchFrob();\n $Authtoken = new StileroFlickrAuthtoken($this->Api, $this->Frob);\n $Authtoken->requestToken();\n $this->access_token = $Authtoken->token;\n }if(isset($this->access_token)){\n $this->_endpoints();\n }\n return $this;\n }", "function __construct() {\n\n // Declare objects\n $this->photo = new suxPhoto(); // Photos\n $this->r = new photosRenderer($this->module); // Renderer\n parent::__construct(); // Let the parent do the rest\n\n // Declare properties\n $this->r->bool['analytics'] = true; // Turn on analytics\n $this->per_page = $this->tpl->getConfigVars('perPage');\n\n }", "public function __construct(FlickrCrawler $fc)\n {\n $this->fc = $fc;\n parent::__construct();\n }", "public function __construct() {\n XRef::setConfigFileName(\"default\");\n XRef::setConfigValue(\"xref.data-dir\", \"tmp\");\n $this->xref = new XRef();\n }", "public function __construct()\n {\n include(ANAX_INSTALL_PATH . '/config/vars.php');\n $this->apikey = $apiKeyIp;\n $this->baseUrl = \"http://api.ipstack.com/\";\n $this->baseUrlMap = \"https://www.openstreetmap.org/\";\n $this->curl = new Curl();\n }", "public function test__construct()\n {\n $urlResult = new \\MphpFlickrPhotosGetInfo\\Result\\UrlResult($this->getAdapter());\n }", "function __construct() {\n\t\t$this->_foursquare = new FoursquareAPI(self::$client_key, self::$client_secret);\n\t}", "public function __construct() {\n parent::__construct();\n\n $this -> radiusX;\n $this -> radiusY;\n\n\t}", "function __construct()\n {\n // vars\n $this->name = 'sirna_hotspot';\n $this->label = 'Sirna Hotspot';\n $this->category = 'Sirna'; // Basic, Content, Choice, etc\n $this->defaults = array(\n 'save_format' => 'object',\n 'preview_size' => 'full',\n 'library' => 'all'\n );\n \n // do not delete!\n parent::__construct();\n \n // settings\n $this->settings = array(\n 'path' => apply_filters('acf/helpers/get_path', __FILE__),\n 'dir' => apply_filters('acf/helpers/get_dir', __FILE__),\n 'version' => '0.0.1'\n );\n\n // filters\n add_filter('get_media_item_args', array($this, 'get_media_item_args'));\n add_filter('wp_prepare_attachment_for_js', array($this, 'wp_prepare_attachment_for_js'), 10, 3);\n\n // JSON\n add_action('wp_ajax_acf/fields/image/get_images', array($this, 'ajax_get_images'), 10, 1);\n add_action('wp_ajax_nopriv_acf/fields/image/get_images', array($this, 'ajax_get_images'), 10, 1);\n\n // Hotspot\n add_action('wp_ajax_test_response', array($this, 'ajax_test_request'), 10, 5);\n }", "function __construct() {\n\t\t// vars\n\t\t$this->name = 'autosuggest_box';\n\t\t$this->label = __('Autosuggest Box');\n\t\t$this->category = __(\"jQuery\", $this->domain); // Basic, Content, Choice, etc\n\t\t$this->domain = 'acf-field-autosuggest-box';\n\t\t$this->defaults = array();\n\n\n\n\t\t// do not delete!\n \tparent::__construct();\n\n\n \t// settings\n\t\t$this->settings = array(\n\t\t\t'path' => apply_filters('acf/helpers/get_path', __FILE__),\n\t\t\t'dir' => apply_filters('acf/helpers/get_dir', __FILE__),\n\t\t\t'version' => '2.0.9'\n\t\t);\n\n\t}", "public function __construct(FlickrApi $api, $photo) {\n\t\t$this->api = $api;\n\t\t$this->photo = $photo;\n\t}", "public function flickrImageSearch() {\n return $this;\n }", "public function __construct()\n {\n $this->apiKey = Config::i()->getSXApiKey();\n }", "function __construct()\n {\n parent::__construct();\n\n // Set our page category and name\n $this->pageCategory('default');\n $this->pageName('The object you called did not properly extend the fRESTApplication Object');\n\n // We're going to output XML\n $this->fOutput->setMimeType('text/xml');\n\n // No caching output\n //$this->fOutput->noCache = true;\n\n // Don't use the theme or try and merge them\n $this->fTheme->useTheme(false);\n\n // Setup our default DOM document\n $this->dom = new DOMDocument('1.0', 'UTF-8');\n $this->dom->formatOutput = true;\n\n // Create the root node and result subnode\n $this->parentNode = $this->dom->createElement(get_class($this));\n $this->dom->appendChild($this->parentNode);\n $this->result = $this->dom->createElement('result');\n $this->parentNode->appendChild($this->result);\n\n // Append the hostname for debugging\n $hostname = new tHostname();\n $this->parentNode->appendChild($this->dom->createElement('host', $hostname->get()));\n\n // Append the request time\n $this->parentNode->appendChild($this->dom->createElement('requestTime', strftime('%x %X')));\n }", "protected function _construct()\n {\n $this->_init('magebees_finder', 'finder_id');\n }", "public function __construct()\n {\n $this->setActive( TRUE );\n $this->setAllowGif( FALSE );\n $this->setAllowPng( FALSE );\n $this->setApplyWatermark( TRUE );\n $this->setCreatedAt( new \\DateTime() );\n $this->setFilename( NULL );\n $this->setGif( FALSE );\n $this->setPng( FALSE );\n $this->setPosition( 0 );\n $this->setRating( 3 );\n $this->setRatingsCount( 1 );\n $this->setTitle( NULL );\n $this->setType( 'pin' );\n $this->setViews( 0 );\n }", "public function __construct( ){\n parent::__construct();\n // Get and set search options.\n $this->searchOptions = new stdClass();\n $this->searchOptions->searchDescription = \"false\"; // Should we search in the description? [true,false]\n $this->searchOptions->entriesPerPage = 10; // [Min: 1. Max: 100. Default: 100.]\n $this->searchOptions->pageToGet = 1; // [Min: 1. Max: 100. Default: 1.]\n $this->searchOptions->filters = array(); // Filter our search - Array(array('name' => 'filtername','value' => 'filtervalue','paramName' => 'name','paramValue' => 'value'));\n $this->searchOptions->aspects = array(); // Aspect filter - Array(\"aspectName1\" => array(\"value1\", \"value2\", \"value3\"...),\"aspectName2\" => array(\"value1\", \"value2\", \"value3\"...)...)\n $this->searchOptions->categories = array(); // Categories for the search - Array(\"categoryID1\", \"categoryID2\", \"categoryID3\"...)\n $this->searchOptions->sortOrder = \"BestMatch\"; // Search results sorting order. [BestMatch, PricePlusShippingHighest, PricePlusShippingLowest]\n $this->searchOptions->searchQuery = \"\"; // Our search query.\n\n // Default comms header.\n $this->headers = array();\n $this->_setDefaultHeaders();\n }", "public function __construct() {\n $this->content = new Search();\n $this->contentdb = new Content();\n $this->managerStat = new ManagerStat('dsn_stat');\n $this->redisClient = new RedisClient(Configuration::get('redis_db_search'));\n $this->redisClientF = new RedisClient(Configuration::get('redis_db_user'));\n $this->filter = new Filter();\n $this->analyser = new AnalyseRequest();\n $this->urlService = Configuration::get('middleware_json_rpc', null);\n }", "public function __construct() {\n if (!$this->api) {\n $this->api = new Wrapper();\n }\n }", "public function __construct() {\n\t $this->metadata = new \\OpenCloud\\Metadata();\n\t}", "public function __construct()\n\t{\n\t\t$this->instance =& get_instance();\n\n\t\t$this->options = array();\n\n\t\t$this->ch = curl_init();\n\n\t\t$this->header_info = array();\n\n $this->result = \"\";\n\t}", "public function __construct()\n\t\t{\n\t\t\t$this->_username = \"lenykoskey\";\n\t\t\t$this->_apiKey = \"abbfa09e621a6ece272a254e3fcd910657ff46e88f82db205499603d06dda908\";\n\n\t\t}", "function __construct() {\n\t\t$this->m_serverURLs = array();\n\t\t$this->m_proxyHost = null;\n\t\t$this->m_proxyPassword = null;\n\t\t$this->m_proxyPort = 80;\n\t\t$this->m_proxyUserName = null;\n\t\t$this->m_request = new CardEaseXML_Request();\n\t\t$this->m_response = null;\n\t\t$this->m_xmlEncoding = XMLEncoding_UTF_8;\n\t}", "public function __construct()\n {\n parent::__construct();\n\n $siteConfig = SiteConfig::current_site_config();\n $clientID = $siteConfig->VimeoFeed_ClientID;\n $clientSecret = $siteConfig->VimeoFeed_ClientSecret;\n\n $this->lib;\n\n $this->lib = new \\Vimeo\\Vimeo($this->appID, $this->appSecret);\n $this->lib->setToken($siteConfig->VimeoFeed_AppToken);\n\n if ($clientID && $clientSecret) {\n if ($accessToken = $this->getConfigToken()) {\n $this->lib->setToken($accessToken);\n }\n }\n }", "public function __construct()\r\n {\r\n if(10 == func_num_args())\r\n {\r\n $this->nbTypos = func_get_arg(0);\r\n $this->firstMatchedWord = func_get_arg(1);\r\n $this->proximityDistance = func_get_arg(2);\r\n $this->userScore = func_get_arg(3);\r\n $this->geoDistance = func_get_arg(4);\r\n $this->geoPrecision = func_get_arg(5);\r\n $this->nbExactWords = func_get_arg(6);\r\n $this->words = func_get_arg(7);\r\n $this->filters = func_get_arg(8);\r\n $this->matchedGeoLocation = func_get_arg(9);\r\n }\r\n }", "public function __construct()\n {\n if (7 == func_num_args()) {\n $this->apiKey = func_get_arg(0);\n $this->emailDetails = func_get_arg(1);\n $this->xAPIHEADER = func_get_arg(2);\n $this->settings = func_get_arg(3);\n $this->recipients = func_get_arg(4);\n $this->attributes = func_get_arg(5);\n $this->files = func_get_arg(6);\n }\n }", "public function __construct()\n {\n $this->reelsFeed = new ReelsFeed();\n }", "public function __construct()\n\t{\n\t\t$this->curl = curl_init();\n\t}", "public function __construct() {\n\n\t\t// parent constructor must be called first\n\t\tparent::__construct();\n\n\t\t// override thumbnail dimensions of you want to\n\t\t$this->set('thumbWidth', 100);\n\t\t$this->set('thumbHeight', 100);\n\n\t\t// class substitutions for Zurb foundation styles\n\t\t$this->setClassAttr(array(\n\t\t\t'num-posts' => 'white label num-posts',\n\t\t\t'page-num' => 'white label page-num',\n\t\t\t'date' => 'white label date',\n\t\t\t'alert-success' => 'alert-box success',\n\t\t\t'alert-error' => 'alert-box error',\n\t\t\t'link-next-prev' => 'link-next-prev block-grid two-up',\n\t\t\t'pagination' => 'pagination',\n\t\t\t));\n\t\t\n\t}", "protected function _construct()\n {\n $this->_init(\n \\Bayonet\\BayonetAntiFraud\\Model\\BayonetFingerprint::class,\n \\Bayonet\\BayonetAntiFraud\\Model\\ResourceModel\\BayonetFingerprint::class\n );\n }", "public function __construct()\n {\n $config = ConfigHolder::getConfig();\n $context = array();\n if(!empty($config->proxy))\n {\n $context['http'] = array('proxy' => filter_var($config->proxy, FILTER_SANITIZE_STRING));\n }\n $default_context = stream_context_get_default ($context); \n libxml_set_streams_context($default_context); \n }", "public static function init(): self\n {\n return new self(new ListGiftCardsRequest());\n }", "function __construct(Phlickr_Api $api, $method, $xmlToReturn) {\n parent::__construct($api, $method);\n $this->xmlToReturn = (string) $xmlToReturn;\n }", "public function __construct()\n {\n $this->endpoint = config('foodcloud.endpoint');\n if ($this->endpoint[strlen($this->endpoint) - 1] == '/') {\n $this->endpoint = substr($this->endpoint, 0, strlen($this->endpoint) - 1);\n }\n $this->clientId = config('foodcloud.client_id');\n $this->clientSecret = config('foodcloud.client_secret');\n $this->grantType = config('foodcloud.grant_type');\n\n $this->curl = new cURL;\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->initVar('lid', XOBJ_DTYPE_INT, null, false);\n $this->initVar('uid', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('mid', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('p1', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('p2', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('p3', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, true, 255);\n $this->initVar('url', XOBJ_DTYPE_URL_AREA);\n $this->initVar('ltype', XOBJ_DTYPE_INT, RSSC_C_LINK_LTYPE_NORMAL, false);\n $this->initVar('refresh', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('headline', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('mode', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('rdf_url', XOBJ_DTYPE_URL_AREA);\n $this->initVar('rss_url', XOBJ_DTYPE_URL_AREA);\n $this->initVar('atom_url', XOBJ_DTYPE_URL_AREA);\n $this->initVar('encoding', XOBJ_DTYPE_TXTBOX, null, false);\n $this->initVar('updated_unix', XOBJ_DTYPE_INT, 0, false);\n $this->initVar('channel', XOBJ_DTYPE_TXTAREA);\n $this->initVar('xml', XOBJ_DTYPE_TXTAREA);\n $this->initVar('enclosure', XOBJ_DTYPE_INT, 1);\n $this->initVar('censor', XOBJ_DTYPE_TXTAREA);\n $this->initVar('plugin', XOBJ_DTYPE_TXTAREA);\n $this->initVar('post_plugin', XOBJ_DTYPE_TXTAREA);\n $this->initVar('icon', XOBJ_DTYPE_TXTBOX, null, false);\n $this->initVar('gicon_id', XOBJ_DTYPE_INT, 0);\n $this->initVar('aux_int_1', XOBJ_DTYPE_INT, 0);\n $this->initVar('aux_int_2', XOBJ_DTYPE_INT, 0);\n $this->initVar('aux_text_1', XOBJ_DTYPE_TXTBOX, null, false, 255);\n $this->initVar('aux_text_2', XOBJ_DTYPE_TXTBOX, null, false, 255);\n\n $this->_link_basic = LinkBasic::getInstance();\n }", "protected function _construct()\n {\n $this->_init('boleto_returns_file', 'returns_file_id');\n }", "public function __construct()\n {\n parent::__construct();\n // Only index live items.\n // The old FTS module also indexed Draft items. This is unnecessary\n // If versioned is needed, a separate Versioned Search module is required\n Versioned::set_reading_mode(Versioned::DEFAULT_MODE);\n $this->setService(Injector::inst()->get(SolrCoreService::class));\n $this->setLogger(Injector::inst()->get(LoggerInterface::class));\n $this->setDebug(Director::isDev() || Director::is_cli());\n $this->setBatchLength(DocumentFactory::config()->get('batchLength'));\n $cores = SolrCoreService::config()->get('cpucores') ?: 1;\n $this->setCores($cores);\n $currentStates = SiteState::currentStates();\n SiteState::setDefaultStates($currentStates);\n }", "function __construct() {\n\t\t\t$this->inicializar($_GET, $_POST, $_FILES, $_COOKIE, $_SERVER, array());\n\t\t}", "public function __construct(array $config = array()) \n\t{\n\t\t// Make sure $config is fine.\n\t\tif ( array_keys(array_intersect_key($config, $this->defaults)) !== array_keys($this->defaults)) {\n\t\t\t$this->config = $this->defaults;\t\t\n\t\t} else {\n\t\t\t$this->config = $config;\n\t\t}\n\t\t// Instantiate classes\n\t\t$this->scraper = new CurlScraper($this->config);\n\t\t$this->parser = new DOMDocumentParser();\n\t}", "private function __construct() {\n\t\t}", "final private function __construct() {\n\t\t\t}", "public function __construct()\n {\n $this->photos = Photo::all();\n \\View::share('photos', $this->photos);\n }", "function __construct( ) {\n $this->initialize( );\n }", "function __construct() {\r\n\t\tforeach ($_POST as $field => $value) {\r\n\t\t\t$this->{$field} = $value;\r\n\t\t}\r\n\t\t$this->setMode();\r\n\t\t$this->setImageUpload();\r\n\t\tif($this->logo['size'] > 0) {\r\n\t\t\t$this->setFile();\r\n\t\t}\r\n\t}", "public function __construct()\n {\n $this->setApiKey();\n $this->setRequestOptions();\n }", "public function __construct()\n {\n $this->curl = curl_init();\n\n curl_setopt_array(\n $this->curl,\n array(\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_TIMEOUT => 60,\n CURLOPT_CONNECTTIMEOUT => 10,\n CURLOPT_VERBOSE => true,\n CURLOPT_HEADERFUNCTION => array($this, 'header'),\n CURLOPT_ENCODING => 'gzip,deflate',\n CURLOPT_USERAGENT => 'doi-index/0.1 (+http://goo.gl/AejefJ)',\n CURLOPT_COOKIEFILE => '/tmp/cookies.txt',\n CURLOPT_COOKIEJAR => '/tmp/cookies.txt',\n )\n );\n }", "public function __construct()\r\n {\r\n if(13 == func_num_args())\r\n {\r\n $this->id = func_get_arg(0);\r\n $this->userPhotoAlbumId = func_get_arg(1);\r\n $this->filename = func_get_arg(2);\r\n $this->originalFilename = func_get_arg(3);\r\n $this->text = func_get_arg(4);\r\n $this->displayFormat = func_get_arg(5);\r\n $this->counter = func_get_arg(6);\r\n $this->doNotFeature = func_get_arg(7);\r\n $this->approved = func_get_arg(8);\r\n $this->categoryMask = func_get_arg(9);\r\n $this->blessedId = func_get_arg(10);\r\n $this->hash = func_get_arg(11);\r\n $this->albumId = func_get_arg(12);\r\n }\r\n }", "public function __construct($xmlResult)\n {\n $this->_result = $xmlResult;\n }", "function __construct() {\n\n\t\t}", "public function __construct()\n\t{\t\t\n\t\terror_reporting(E_ALL);\n\t\t$this->api = new ApiDirect('data');\n\t}", "public function __construct(SimpleXMLElement $xml)\n\t {\n\t\tparent::__construct($xml);\n\n\t\t$this->_db = SQL::get(\"MySQL\");\n\t\t$this->_slicer = new AddressSlicer($this->city . \", \" . $this->address);\n\t\t$this->_gis = new GisInfo($this->city, $this->city . \", \" . $this->address);\n\n\t\t$this->defineDistrict();\n\t\t$this->createXML();\n\t }", "public function __construct(){\n\t\t$solariumClient = new SolariumClient();\n\t\t$this->_solariumClient = $solariumClient->getSolrClient();\n\t}", "public function __construct()\r\n\t{\r\n\t\t// Use the default template... by default :-)\r\n\t\t$this->template = \"mini_thumbs\";\r\n\r\n\t\t// Also initialize all options (for all templates) with a default value\r\n\t\t$this->options = array(\r\n\t\t\t'align' => 'center',\r\n\t\t\t'question' => 'And you?',\r\n\t\t\t'up' => 'Yes',\r\n\t\t\t'down' => 'No',\r\n\t\t\t'color_up' => '#ccc',\r\n\t\t\t'color_down' => '#ccc',\r\n\t\t);\r\n\t}", "public function __construct()\n {\n $this->_inflect = new SolarLite_Inflect();\n }", "final private function __construct()\n {\n }", "private function __construct()\t{}", "public function __construct() {\n\n $this->_queries = new queries();\n $this->_pagination = new PagePagination();\n }", "public function __construct() {\n\n\t\t}", "public function __construct()\n {\n $this->_client = Mage::helper('tooso')->getClient();\n\n $this->_logger = Mage::helper('tooso/log');\n\n $this->_maxResults = (int)Mage::getStoreConfig('tooso/suggest/max_results');\n }", "public function __construct()\n {\n $this->name = \"Files:Pull\";\n $this->description = \"Pull remote files locally\";\n $this->help = \"Pull remote site's file locally to your /files dir\";\n }", "function __construct()\n {\n parent::__construct();\n\n // Configure limits on our controller methods\n // Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php\n \n\t\t$this->methods['slip_post']['limit'] = 100; // 500 requests per hour per user/key\n $this->load->model(array('news_model'));\n $this->load->helper('path');\n $this->load->database();\n\t\n }", "private function __construct() {\r\n\t\r\n\t}", "public function __construct() {\n\t\trequire_once 'fs.php';\n\t\t$this->a = new Advertikon\\Fs();\n\t}", "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t\t$this->Twitter = Twitter::getInstance();\n\t}", "function __construct()\n {\n parent::__construct();\n\n // Configure limits on our controller methods\n // Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php\n $this->methods['feed_get']['limit'] = 1000; // 500 requests per hour per user/key\n $this->methods['categoria_get']['limit'] = 500; // 500 requests per hour per user/key\n $this->methods['recent_posts_get']['limit'] = 1000; // 500 requests per hour per user/key\n }", "public function __construct() {\n\t\t$this->page \t= new Page;\n\t\t$this->url \t\t= new Url;\n\t\t$this->session \t= new Session;\n\t\t$this->paging \t= new Paging;\n\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "public function __construct()\n {\n $this->ch = curl_init();\n $this->initialize();\n }", "function __construct() {\n\n\t\t$this->defaults = array(\n\t\t\t'title'\t\t\t\t => '',\n\t\t\t'openResultInTarget' => '_blank',\n\t\t\t'affiliateId' => '',\n\t\t\t'description' => '',\n\t\t\t'showPlaceholderText' => 'false',\n\t\t\t'placeholderText' => '',\n\t\t\t'disableEnterKey' => 'false',\n\t\t\t'hideSearchButton' => 'false',\n\t\t\t'searchButtonLabel' => __( 'Search', 'domainers-delight-search' ),\n\t\t\t'targetSite'\t\t\t=> 'sedo',\n\t\t\t'sedoWebsiteLanguage' => '',\n\t\t\t'sedoWebsiteSearchTLDs' => '',\n\t\t\t'sedoWebsiteSafeSearch' => 'false',\n\t\t\t'sedoWebsiteSearchVariations' => 'true'\n\t\t);\n\t\t\n\t\t$widget_ops = array(\n\t\t\t'classname' => 'user-profile',\n\t\t\t'description' => __( 'Domainers Delight: Search Sedo, Uniregistry or GoDaddy to find your domain name.', 'domainers-delight-search' ),\n\t\t);\n\n\t\t$control_ops = array(\n\t\t\t'id_base' => 'user-profile',\n\t\t\t'width' => 200,\n\t\t\t'height' => 250,\n\t\t);\n\n\t\tparent::__construct( 'user-profile', __( 'Domainers Delight - Search Widget', 'domainers-delight-search' ), $widget_ops, $control_ops );\n\n\t}", "public function __construct()\n\t{\n\t $this->CI = &get_instance();\n\t $this->idclass = 1;\n\t\t //mt_srand((double)microtime()*1000000);\n\t\t $APPID = 'QievnEMnPVePl5IuiEkbK47iUNHaORE98a2tlgcx';\n $RESTKEY = '5nhxBdaWoobBSJETssRZkybUO0nMW3dcO47VsAgI';\n $MASTERKEY = '75zTvvoVsxwWHebxWavyX7xX2uHJ92tuR5BHBE6D';\n ParseClient::initialize( $APPID, $RESTKEY, $MASTERKEY );\n\t}", "public function __construct ( )\n\t{\n\t\tglobal $xmlrpc_defencoding, $xmlrpc_internalencoding,$output_options;\n\t\t$xmlrpc_defencoding = \"UTF8\";\n\t\t$xmlrpc_internalencoding = \"UTF8\";\n\t\t$output_options = array(\n \"output_type\" => \"php\",\n \"verbosity\" => \"pretty\",\n \"escaping\" => array(\"markup\", \"non-ascii\", \"non-print\"),\n \"version\" => \"xmlrpc\",\n \"encoding\" => \"utf-8\"\n );\n\t\t$this->sh = xmlrpc_server_create( );\n\t\t$this->ft = array( );\n\t\t$this->pdo = n7_globals::getInstance( )->get( n7_globals::PDO );\n\t\tCoreXrsDec::bind( $this );\n\t}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct()\n\t{\n\n\t}", "private function __construct()\r\n\t{\r\n\t}", "private function __construct() {\r\n\t}", "private function __construct() {\r\n\t}", "public function __construct()\n {\n $this->client = new Client();\n $this->apiKey = Api::platform('TikApi')->first()->api_key;\n }", "public function __construct()\n {\n if (2 == func_num_args()) {\n $this->apiVersion = func_get_arg(0);\n $this->kind = func_get_arg(1);\n }\n }", "public function __construct($xIdPerfil, $xNombre, $xValores, $xPerfiles = null){\n\t\t$this->idPerfil = $xIdPerfil;\n\t\t$this->nombre = $xNombre;\n\t\t$this->valores = $xValores;\n\t\t$this->perfiles = $xPerfiles;\n\t}", "public function __construct()\n {\n if(7 == func_num_args())\n {\n $this->request = func_get_arg(0);\n $this->response = func_get_arg(1);\n $this->sessionToken = func_get_arg(2);\n $this->tags = func_get_arg(3);\n $this->userId = func_get_arg(4);\n $this->companyId = func_get_arg(5);\n $this->metadata = func_get_arg(6);\n }\n }", "public function __construct()\r\n {\r\n global $IP;\r\n $this->url = \"http://\" . $IP . \"/user/info/update/\";\r\n $this->http = new HttpClass();\r\n $this->InfoGet = new TestUserInfoGet();\r\n }" ]
[ "0.71806526", "0.6607335", "0.65383977", "0.63083553", "0.61423564", "0.59835494", "0.5948731", "0.5912711", "0.5886852", "0.5837859", "0.5786096", "0.5778074", "0.5747876", "0.5714575", "0.5665428", "0.5655477", "0.56364685", "0.56341755", "0.56280804", "0.5624372", "0.5547261", "0.55389255", "0.55313236", "0.5509717", "0.55018795", "0.54990494", "0.5494775", "0.54831344", "0.5480871", "0.54782754", "0.5465286", "0.5457911", "0.54302347", "0.5414084", "0.5401474", "0.5395196", "0.5363245", "0.5361721", "0.5353562", "0.5351884", "0.534371", "0.5330681", "0.53266853", "0.53180754", "0.5314238", "0.52947164", "0.5286637", "0.5284833", "0.5283251", "0.5273649", "0.5259277", "0.52557325", "0.52555305", "0.5253962", "0.5249065", "0.52444607", "0.5244077", "0.52378184", "0.523712", "0.5235578", "0.5232703", "0.521952", "0.5214806", "0.52090096", "0.5208287", "0.5201201", "0.51999974", "0.51884305", "0.51867443", "0.5182781", "0.51818675", "0.51788163", "0.517621", "0.5175805", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.51726514", "0.5172497", "0.5169078", "0.5166823", "0.5166823", "0.51664615", "0.51632774", "0.516191", "0.5161287", "0.5161235" ]
0.6642562
1
Initializes XFlickr based on a specific context.
public function initialize($ctx = 'mgr', $mode = NULL) { $output = ''; switch ($ctx) { case 'mgr': if (!$this->modx->loadClass('xflickr.request.XFlickrControllerRequest',$this->config['model_path'],true,true)) { return 'Could not load controller request handler.'; } $this->request = new XFlickrControllerRequest($this); $output = $this->request->handleRequest(); break; default: if ($mode == 'gallery') { if (!$this->modx->loadClass('xflickr.request.XFlickrGalleryRequest',$this->config['model_path'],true,true)) { return 'Could not load gallery request handler.'; } $this->request = new XFlickrGalleryRequest($this); $output = $this->request->handle(); } elseif ($mode == 'photo') { if (!$this->modx->loadClass('xflickr.request.XFlickrPhotoRequest',$this->config['model_path'],true,true)) { return 'Could not load photo request handler.'; } $this->request = new XFlickrPhotoRequest($this); $output = $this->request->handle(); } break; } return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init(&$context){}", "public function init(){\n if( !isset($this->access_token) && !StileroFlickrFrob::hasFrobInGetRequest() ){\n $Url = new StileroFlickrUrl($this->Api);\n $Url->redirectToUrl($this->perms);\n }else if( StileroFlickrFrob::hasFrobInGetRequest() ){\n $this->Frob->fetchFrob();\n $Authtoken = new StileroFlickrAuthtoken($this->Api, $this->Frob);\n $Authtoken->requestToken();\n $this->access_token = $Authtoken->token;\n }if(isset($this->access_token)){\n $this->_endpoints();\n }\n return $this;\n }", "abstract protected function initializeContext();", "public function initialize ($context)\n {\n\n $this->request = $context->getRequest();\n\n }", "private function init()\n {\n if (!is_null($this->apiContext)) {\n return;\n }\n\n $this->apiContext = new ApiContext(\n new OAuthTokenCredential(\n $this->payPalCountryConfigurator->getPayPalId(),\n $this->payPalCountryConfigurator->getPayPalSecret()\n ),\n \\uniqid()\n );\n $this->apiContext->setConfig(\n array(\n 'mode' => (string)$this->payPalCountryConfigurator->getPayPalMode(),\n )\n );\n\n /**\n * При переполнении списка хранимых web-профилей\n * новые не создаются и страницы оплаты не локализуются\n */\n $this->cleanUpWebProfiles();\n }", "public function initContext($ctx);", "public function __construct()\n {\n parent::__construct();\n $this->flickrApi = new PhpFlickr(env('FLICKR_KEY'));\n }", "public function init() {\t\t\n \tif($this->_request->isXmlHttpRequest()) \n \t\t$this->_request->setParam(\"format\",\"json\");\n\n $contextSwitch = $this->_helper->contextSwitch();\n $contextSwitch->initContext();\n }", "private function _initContext( )\n {\n if( empty($this->_application) )\n {\n $this->_application = self::getDefaultApplicationName();\n }\n\n if( ! sfContext::hasInstance() )\n {\n sfContext::createInstance($this->getApplicationConfiguration());\n }\n\n sfContext::switchTo($this->_application);\n }", "protected function init()\n {\n $config = $this->getConfig();\n $this->service = new \\Vimeo\\Vimeo(\n $config->vimeo->client_id, $config->vimeo->client_secret\n );\n\n $token = $this->service->clientCredentials();\n $this->service->setToken($token['body']['access_token']);\n }", "public function __Init_Context() {\r\n $this->_Load_Context();\r\n // Fire the shortcode init action\r\n do_action('vcff_supports_init_context',$this);\r\n }", "function __construct() {\n parent::__construct();\n $params = array('api_key' => FLICKR_API_KEY, 'secret' => FLICKR_API_SECRET, 'die_on_error' => FALSE);\n $this->load->library('phpflickr', $params);\n $CI = & get_instance();\n $path = $CI->config->item('cache_path');\n $cache_path = ($path == '') ? APPPATH . 'cache/' : $path;\n $this->phpflickr->enableCache('fs', $cache_path, 7200);\n }", "public function init() {\n\t\t// try initialization of oAuth user token\n\t\ttry {\n\t\t\t$this->http = $this->httpInit($this->definition->oauth);\t\t\n\t\t\t$this->session_start();\n\t\t\t$this->userInit($this->definition);\n\t\t\t$this->initToken();\n\t\t} catch (Exception $e) {\n\t\t\t// fail silently\n\t\t}\n\t}", "public function init() {\n \t$this->_helper->_acl->allow(null);\n\t$this->_helper->contextSwitch()->setAutoJsonSerialization(true);\n\t$this->_helper->contextSwitch()\n\t\t\t ->setAutoDisableLayout(true)\n \t\t\t ->addContext('rss',array('suffix' => 'rss','header' => 'application/rss+xml'))\n\t\t\t ->addContext('atom',array('suffix' => 'atom','header' => 'application/atom+xml'))\n\t\t\t ->addActionContext('index', array('xml','json','rss','atom'))\n ->initContext();\n }", "public function init() {\n\n\t\t\t// Set up localisation\n\t\t\t$this->load_plugin_textdomain();\n\n\t\t\t// Variables\n\t\t\t$this->template_url = apply_filters( 'wolf_photos_url', 'wolf-photos/' );\n\n\t\t\t// Classes/actions loaded for the frontend and for ajax requests\n\t\t\tif ( ! is_admin() || defined( 'DOING_AJAX' ) ) {\n\n\t\t\t\t// Hooks\n\t\t\t\tadd_filter( 'template_include', array( $this, 'template_loader' ) );\n\t\t\t}\n\n\t\t\t$this->register_taxonomy();\n\t\t\t$this->add_rewrite_rule();\n\t\t\t$this->flush_rewrite_rules();\n\n\t\t\t// Init action\n\t\t\tdo_action( 'wolf_photos_init' );\n\t\t}", "private function initializeWidgetContext() {}", "public function init()\n\t{\n\t\t$this->_app = classes_like_registry::getApp();\n\t\t$this->_area = classes_like_registry::getArea();\n\t\t\n\t\tif ( empty( $this->_app ) OR empty( $this->_area ) )\n\t\t{\n\t\t\ttrigger_error( \"Missing area or app variable in \" . __CLASS__ . '::' . __FUNCTION__, E_USER_WARNING );\n\t\t}\n\t\t\n\t\t/* Fetch cache class */\n\t\t$this->likeCache = classes_like_cache::getInstance();\n\t\t\n\t\t/* Set a default cache expiration of 24 hours */\n\t\t$this->likeCache->setExpiration( 86400 );\n\t}", "public function init() {\n\t$this->_helper->_acl->allow(null);\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('type', array('xml','json'))\n\t\t->initContext();\n }", "public function __construct()\n {\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "public function init(){\r\n\t$this->_helper->_acl->allow('public',NULL);\r\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\r\n\t$this->_contexts = array('xml','json');\r\n\t$this->_helper->contextSwitch()\r\n\t\t->setAutoDisableLayout(true)\r\n\t\t->addActionContext('oneto50k',$this->_contexts)\r\n\t\t->addActionContext('index',$this->_contexts)\r\n\t\t->initContext();\r\n\t}", "public function __construct()\r\n {\r\n $paypal_conf = Config::get('paypal');\r\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\r\n $this->_api_context->setConfig($paypal_conf['settings']);\r\n }", "public function init()\n {\n $this->_helper->getHelper('contextSwitch')\n ->addActionContext($this->_getParam('action'), 'xml')\n ->initContext();\n \n $req = $this->getRequest();\n $a_params = $req->getParams();\n \n if(isset($a_params['ajax'])) {\n $this->view->layout()->disableLayout();\n }\n }", "public function setUpContext()\n {\n return $this->context = (new \\NetLicensing\\Context())\n ->setBaseUrl(self::BASE_URL)\n ->setSecurityMode(self::SECURITY_MODE)\n ->setUsername(self::USERNAME)\n ->setPassword(self::PASSWORD);\n }", "public function init()\n {\n $this\n ->instantiateNewCacher()\n ->instantiateNewClient()\n ->authenticateClient()\n ->getUsers(\n $this->getAppParam('s.github.api.organization')\n )\n ->getRepositories(\n $this->getAppParam('s.github.api.organization')\n )\n ;\n }", "protected function _initialize()\n\t{\n\t\t$this->_do = Kiwi_Object_Manager::load\n\t\t(\n\t\t\t'Kiwi_Slide'\n\t\t); // allows caching\n\n\t\tparent::_initialize();\n\t}", "public function init()\n {\n $this->rootPageUid = $this->filterConfig->getSettings('rootPageUid');\n $this->respectEnableFields = $this->filterConfig->getSettings('respectEnableFields');\n $this->respectDeletedField = $this->filterConfig->getSettings('respectDeletedField');\n }", "protected function _init() {\n\n parent::_init();\n\n $libs = print_r(Libraries::get(), true);\n\n $this->openId = new LightOpenID($this->_domain);\n }", "public function __construct(){\n\t\t$paypal_conf = config('paypal');\n\t\t$this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n\t\t$this->_api_context->setConfig($paypal_conf['settings']);\n\t}", "public function init() {\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t$this->_helper->acl->allow('public',null);\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('mint', array('xml','json'))\n\t\t->initContext();\n }", "public function init()\n {\n \t$this->auth=Zend_Auth::getInstance();\n\n\t\tif($this->auth->hasIdentity()){\n\n\t\t\t$this->authIdentity=$this->auth->getIdentity();\n\n\t\t}\n\n\t\t$this->registry=Zend_Registry::getInstance();\n }", "public function initialize() {\n // set the default properties for the sekugManageAlbumItemsController class\n $loadjquery = $this->modx->getOption('sekusergalleries.load_jquery');\n $this->setDefaultProperties(array(\n 'gallery' => '',\n 'tplGallery' => 'users.gallery.view',\n 'tplAlbumList' => 'users.gallery.albumlist',\n 'customcss' => '',\n 'loadjquery' => $loadjquery,\n ));\n // if the gallery id is in the request, set it in the properties\n //if (!empty($_REQUEST['gallery'])) {\n $this->setProperty('gallery', ($_REQUEST['gallery']>'') ? $_REQUEST['gallery'] : $this->modx->user->get('id') );\n //}\n }", "function __construct(modX &$modx,array $config = array()) {\n\t\t$this->modx =& $modx;\n\n\t\t$core = $this->modx->getOption('core_path').'components/xflickr/';\n\t\t$assets_url = $this->modx->getOption('assets_url').'components/xflickr/';\n\t\t$assets_path = $this->modx->getOption('assets_path').'components/xflickr/';\n\t\t$this->api_key = $this->modx->getOption('xflickr.api_key');\n\t\t$this->api_secret = $this->modx->getOption('xflickr.api_secret');\n\t\t$this->token = $this->modx->getOption('xflickr.token');\n\t\t$this->config = array_merge(array(\n 'core_path' => $core,\n 'model_path' => $core.'model/',\n 'processors_path' => $core.'processors/',\n 'controllers_path' => $core.'controllers/',\n 'chunks_path' => $core.'chunks/',\n 'base_url' => $assets_url,\n 'css_url' => $assets_url.'css/',\n 'js_url' => $assets_url.'js/',\n 'connector_url' => $assets_url.'connector.php',\n\n\t\t),$config);\n\n\t\t$this->modx->addPackage('xflickr',$this->config['model_path']);\n\t\tif ($this->modx->lexicon) {\n\t\t\t$this->modx->lexicon->load('xflickr:default');\n\t\t}\n\n\t\t/* load debugging settings */\n\t\tif ($this->modx->getOption('debug',$this->config,false)) {\n\t\t\terror_reporting(E_ALL); ini_set('display_errors',true);\n\t\t\t$this->modx->setLogTarget('HTML');\n\t\t\t$this->modx->setLogLevel(MODX_LOG_LEVEL_ERROR);\n\n\t\t\t$debugUser = $this->config['debugUser'] == '' ? $this->modx->user->get('username') : 'anonymous';\n\t\t\t$user = $this->modx->getObject('modUser',array('username' => $debugUser));\n\t\t\tif ($user == null) {\n\t\t\t\t$this->modx->user->set('id',$this->modx->getOption('debugUserId',$this->config,1));\n\t\t\t\t$this->modx->user->set('username',$debugUser);\n\t\t\t} else {\n\t\t\t\t$this->modx->user = $user;\n\t\t\t}\n\t\t}\n\t}", "public function init()\n {\n $ajaxContext = $this->_helper->getHelper('AjaxContext');\n $ajaxContext\n ->addActionContext('checkLimits', 'json')\n ->initContext();\n }", "public function __construct()\n {\n\n /** PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential(\n $paypal_conf['client_id'],\n $paypal_conf['secret'])\n );\n $this->_api_context->setConfig($paypal_conf['settings']);\n\n }", "public function init()\n {\n $this->config = Yii::app()->params['CaseSearch'];\n $dependencies = array(\n 'OECaseSearch.models.*',\n 'OECaseSearch.components.*',\n );\n foreach ($this->config['parameters'] as $module => $paramList)\n {\n if ($module !== 'core')\n {\n $dependencies = array_merge($dependencies, array(\n \"$module.models.*\",\n ));\n }\n }\n $this->setImport($dependencies);\n\n // Initialise the search provider/s.\n foreach ($this->config['providers'] as $providerID => $searchProvider)\n {\n $this->searchProviders[$providerID] = new $searchProvider($providerID);\n }\n }", "function initialize() {\n $this->_configure = $this->config->item('biz_listing_configure');\n $this->_pagination = $this->config->item('pagination');\n $this->_validation = $this->config->item('biz_listing_validation');\n }", "public function init() {\n\n // register plugin controller under /gallery/\n DatawrapperHooks::register(DatawrapperHooks::GET_PLUGIN_CONTROLLER, array($this, 'process'));\n\n DatawrapperHooks::register(DatawrapperHooks::ALTERNATIVE_SIGNIN, array($this, 'showTwitterSignInButton'));\n\n $this->checkLogin();\n }", "public function __construct()\n {\n if (class_exists('Context')) {\n $this->context = Context::getContext();\n } else {\n global $smarty, $cookie;\n $this->context = new StdClass();\n $this->context->smarty = $smarty;\n $this->context->cookie = $cookie;\n }\n }", "public function __construct()\n {\n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "function rest_api_init()\n {\n }", "public function init()\n {\n $this->curl = (new Curl())->setOption(\n CURLOPT_HTTPHEADER, [\n 'Authorization: Basic ' . $this->apiKey,\n 'Content-Type: application/json'\n ]\n );\n }", "public function init()\n {\n $currentUser = new Zend_Session_Namespace('currentUser');\n $requestParameters = $this->getRequest()->getParams();\n\n if ($requestParameters['controller'] != 'user' && $requestParameters['action'] != 'login') {\n if ($currentUser->username == null) {\n $this->_helper->_redirector->goToRouteAndExit(array('controller' => 'user', 'action' => 'login'));\n } else {\n $this->view->currentUser = $currentUser;\n SoftLayer_SoapClient::setAuthenticationUser($currentUser->username, $currentUser->apiKey);\n }\n }\n\n /*\n * Set common view elements.\n */\n $this->view->translate = Zend_Registry::get('Zend_Translate');\n $this->view->baseUrl = $this->getRequest()->getBaseUrl();\n }", "public function initialize()\n {\n if (!self::$_isInitialized) {\n\n // load all base contexts ONCE\n $contextRegistry = Zend_Tool_Project_Context_Repository::getInstance();\n $contextRegistry->addContextsFromDirectory(\n dirname(dirname(__FILE__)) . '/Context/Zf/', 'Zend_Tool_Project_Context_Zf_'\n );\n $contextRegistry->addContextsFromDirectory(\n dirname(dirname(__FILE__)) . '/Context/Filesystem/', 'Zend_Tool_Project_Context_Filesystem_'\n );\n\n // determine if there are project specfic providers ONCE\n $profilePath = $this->_findProfileDirectory();\n if ($this->_hasProjectProviderDirectory($profilePath . DIRECTORY_SEPARATOR . '.zfproject.xml')) {\n $profile = $this->_loadProfile();\n // project providers directory resource\n $ppd = $profile->search('ProjectProvidersDirectory');\n $ppd->loadProviders($this->_registry);\n }\n\n self::$_isInitialized = true;\n }\n\n // load up the extending providers required context classes\n if ($contextClasses = $this->getContextClasses()) {\n $this->_loadContextClassesIntoRegistry($contextClasses);\n }\n }", "protected function _construct()\n {\n $this->_init('review/review', 'review_id');\n }", "public function __construct() {\n $paypal_conf = Config::get('paypal_payment');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "public function init() {\n\t\t$this->template->set('menu', $this->model->getMenu());\n\t\t$this->template->set('route', $this->route);\n\n\t\t$this->template->setInfo($this->model->getInfo());\n\n\t\t$user = $this->model->getUser();\n\t\t$this->template->set('auth_username', $user?$user->username:0);\n\t\t$this->template->set('auth_is_admin', $user?$user->is_admin:0);\n\t}", "private function init()\n {\n $this->curl = curl_init();\n }", "public function init() {\r\n //AUTHORIZATION CHECK\r\n if (!$this->_helper->requireAuth()->setAuthParams('sitestore_store', null, \"view\")->isValid())\r\n return;\r\n\r\n if (!$this->_helper->requireAuth()->setAuthParams('sitestoreproduct_product', null, \"view\")->isValid())\r\n return;\r\n\r\n $product_id = $this->_getParam('product_id');\r\n if (!empty($product_id)) {\r\n\r\n //AUTHORIZATION CHECK\r\n if (!$this->_helper->requireAuth()->setAuthParams('sitestore_store', null, \"view\")->isValid())\r\n return;\r\n\r\n if (!$this->_helper->requireAuth()->setAuthParams('sitestoreproduct_product', null, \"view\")->isValid())\r\n return;\r\n }\r\n\r\n $sitestoreproductWishlistView = Zend_Registry::isRegistered('sitestoreproductWishlistView') ? Zend_Registry::get('sitestoreproductWishlistView') : null;\r\n if (empty($sitestoreproductWishlistView))\r\n $this->_setParam('product_id', 0);\r\n\r\n //AUTHORIZATION CHECK\r\n if (!$this->_helper->requireAuth()->setAuthParams('sitestoreproduct_wishlist', null, \"view\")->isValid())\r\n return;\r\n }", "protected function _init()\n {\n }", "public function initialize()\n {\n // load configures\n $this->_config = $this->di->get('config');\n\n if ($this->_config->logger->enable)\n $this->_logger = $this->di->get('logger');\n\n // set default page title\n $this->tag->setTitle('Authenticate');\n }", "protected function initContextAware()\n {\n return;\n }", "public function init() {\n\t\tparent::init();\n\n\t\t// use the search layout\n\t\t$this->setLayout('search');\n\n\t\t// load models\n\t\t$this->Search = new Search();\n\t\t$this->Location = new Location();\n\t\t$this->Category = new Category();\n\t\t$this->Ats_Job = new Ats_Job();\n\n // ajax context switching\n $this->_helper->ajaxContext()\n ->addActionContext('job', 'json')\n ->addActionContext('category', 'json')\n ->addActionContext('location', 'json')\n ->initContext();\n\t}", "public function action_init( )\n\t{\n\t\t$this->load_text_domain( 'flickrfeed' );\n\t\t$this->add_template( 'block.flickrfeed', dirname( __FILE__ ) . '/block.flickrfeed.php' );\n\t}", "public function init() {\n $this->_helper->acl->allow('public',null);\n $this->_helper->contextSwitch()->setAutoJsonSerialization(false);\n $this->_helper->contextSwitch()->setAutoDisableLayout(true)\n ->addContext('rss',array('suffix' => 'rss'))\n ->addContext('atom',array('suffix' => 'atom'))\n ->addActionContext('index', array('xml','json','rss','atom'))\n ->addActionContext('archives', array('xml','json'))\n ->addActionContext('vacancy', array('xml','json'))\n ->initContext();\n $this->_vacancies = new Vacancies();\n \n }", "public function __construct()\n {\n \n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "public function __construct()\n {\n \n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "public function __construct()\n {\n $paypal_conf = config('paypal');\n \n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n \n }", "protected function initializeConnection() {\n GatherContent\\Configuration::configure($this->email, $this->api_key);\n\n if (!$this->project_id) {\n $project = $this->retrieveProject($this->account_slug, $this->project_name);\n $this->project_id = $project->id;\n }\n\n if (!$this->template) {\n if ($this->template_id) {\n $this->template = $this->retrieveTemplate($this->template_id);\n }\n elseif ($this->template_name) {\n $this->template = $this->retrieveTemplateByName($this->project_id, $this->template_name);\n $this->template_id = $this->template->id;\n }\n }\n\n if ($this->template_id) {\n $this->include_filters['template_id'] = $this->template_id;\n }\n }", "public function init()\n {\n $this->modelClass = $this->module->categoryModelClass;\n $this->modelSearchClass = $this->module->categoryModelSearchClass;\n $this->indexView = $this->module->categoryIndexView;\n $this->viewView = $this->module->categoryViewView;\n $this->createView = $this->module->categoryCreateView;\n $this->updateView = $this->module->categoryUpdateView;\n parent::init();\n }", "public function __construct()\n {\n// $paypal_conf = \\Config::get('paypal');\n// $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n// $this->_api_context->setConfig($paypal_conf['settings']);\n }", "protected function _construct()\n {\n $this->_init('magebees_finder', 'finder_id');\n }", "public function init()\n {\n $this->curl = curl_init();\n }", "public function init() {\n $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t\t$this->_helper->acl->allow('public',null);\n\t\t$this->_helper->contextSwitch()\n\t\t\t ->setAutoDisableLayout(true)\n\t\t\t ->addActionContext('index', array('xml','json'))\n ->initContext();\n\t}", "public function __construct(Context $context);", "public function init() {\n\t$this->_helper->_acl->allow(null);\n\t$contexts = array('xml','json');\n\t$this->_helper->contextSwitch()->setAutoJsonSerialization(false);\n\t$this->_helper->contextSwitch()->setAutoDisableLayout(true)\n\t\t->addActionContext('index',$contexts)\n\t\t->addActionContext('period',$contexts)\n\t\t->initContext();\n\t$this->_reeces = new Reeces();\n \n }", "function __initObjects() {\n\t\t$settings = $this->settings[$this->model->alias];\n\t\t$this->time = new TimeHelper();\n\t\t$this->solr = new Apache_Solr_Service($settings['host'], $settings['port'], $settings['path']);\n\t}", "protected function _init()\r\n\t{\r\n\t}", "private function init() {\n $apiParts = $this->request->getApiParts();\n $this->requestedId = array_shift($apiParts);\n $this->apiParts = $apiParts;\n \n $this->siteDriver = Datastore::getSiteDriver();\n }", "public function __construct()\n {\n // parent::__construct();\n \n /** setup PayPal api context **/\n $paypal_conf = \\Config::get('paypal');\n\t\t//print_r($paypal_conf);exit;\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->setConfig($paypal_conf['settings']);\n }", "public function __construct($rootDir, $context = null)\n {\n parent::__construct();\n\n $this->services['provider'] = new ProviderRegistry($this);\n\n $this->services['path'] = new Path($rootDir);\n\n $this->setUp();\n\n if ($context)\n $this->factory('runtime.context', $context);\n }", "public function _init() {}", "public function init()\n {\n // Default user search for all users\n if ($this->userSearchUrl == \"\") {\n // provide the space id if the widget is calling from a space\n if (Yii::$app->controller->id == 'space') {\n $spaceId = Yii::$app->controller->getSpace()->id;\n $this->userSearchUrl = Url::toRoute(['/teams/search/json', 'keyword' => '-keywordPlaceholder-', 'space_id' => $spaceId]);\n } else {\n $this->userSearchUrl = Url::toRoute(['/teams/search/json', 'keyword' => '-keywordPlaceholder-']);\n }\n }\n }", "public function init()\n {\n global $domain_info;\n\n $this->appliedLocation();\n\n $this->geo_filter_data['clean_url'] = $this->cleanUrl();\n\n $clean_url = $this->cleanUrl($domain_info['scheme'] . '://' . $domain_info['host'], $domain_info['path']);\n $clean_url = str_replace('[geo_url]/', '', $clean_url);\n $this->geo_filter_data['base_url_with_subdomain'] = $this->buildGeoLink($this->geo_filter_data['applied_location'], $clean_url, true);\n \n $this->appliedLocation2();\n\n // Workaround for old version conditions\n $GLOBALS['geo_filter_data'] = $this->geo_filter_data;\n $GLOBALS['geo_filter_data']['geo_url'] = $this->geo_filter_data['applied_location']['Path'];\n\n $GLOBALS['rlSmarty']->assign_by_ref('geo_filter_data', $this->geo_filter_data);\n }", "public function __construct( ContextManager $context ) {\n $this->context= $context;\n $this->routes= array();\n }", "protected function _init()\n {\n }", "public function init()\n {\n \t$auth = Zend_Auth::getInstance();\n \tif($auth->hasIdentity()){\n \t\t$this->identity = $auth->getIdentity();\n \t}\n }", "public function init() {\n $this->_helper->_acl->allow(\n array('fa', 'flos'), \n array('add', 'edit', 'delete', 'index')\n );\n $this->_helper->_acl->allow('admin', null);\n $this->_geocoder = new Pas_Service_Geo_Coder();\n $this->_events = new Events();\n \n }", "public function init() {\n $this->initContent(\"Product\");\n $this->loadSession();\n }", "protected function _Load_Context() {\r\n $dir = untrailingslashit( plugin_dir_path(__FILE__ ) );\r\n // Recurssively load the directory\r\n $this->_Recusive_Load_Dir($dir.'/context');\r\n // Fire the shortcode init action\r\n do_action('vcff_supports_context_init',$this);\r\n }", "public function init() {\n\t\tparent::init();\n // Disable the main layout renderer\n $this->_helper->layout->disableLayout();\n // Do not even attempt to render a view\n $this->_helper->viewRenderer->setNoRender(true);\n if ($this->getRequest()->getParam('type')) {\n $this->_type = $this->getRequest()->getParam('type');\n\n $this->_auth = Zend_Auth::getInstance();\n\n $this->_adapter = Josh_Auth_Adapter_Factory::factory($this->_type, $this->getRequest()->getParams());\n }\n }", "public function init() {\n \t$plugin_updater = new X_Plugin_Updater;\n \t$theme_updater = new X_Theme_Updater;\n }", "public function initialize() {\n $loadjquery = $this->modx->getOption('sekusergalleries.load_jquery');\n $this->setDefaultProperties(array(\n 'tplDirContainer' => 'directory.container',\n 'tplDirGraph' => 'directory.bargraph',\n 'graphcss' => '',\n 'customcss' => '',\n 'loadjquery' => $loadjquery,\n ));\n\n $this->directory_name = $this->modx->user->get('id');\n }", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "public function init()\n {\n $this->loadMeta();\n }", "public function init() {\n\n // Set required classes for import.\n $this->setImport(array(\n $this->id . '.components.*',\n $this->id . '.components.behaviors.*',\n $this->id . '.components.dataproviders.*',\n $this->id . '.controllers.*',\n $this->id . '.models.*',\n ));\n\n // Set the required components.\n $this->setComponents(array(\n 'authorizer' => array(\n 'class' => 'RAuthorizer',\n 'superuserName' => $this->superuserName,\n ),\n 'generator' => array(\n 'class' => 'RGenerator',\n ),\n ));\n }", "public function init()\n {\n // Prestashop does not support json responses in case of authentication error so I must check it here.\n if (!$this->checkAccess()) {\n http_response_code(401);\n $this->ajaxRenderJson(['error' => 'Invalid Token']);\n }\n\n // This is necessary to avoid rendering html templates, as we want a json response\n $this->ajax = true;\n $this->content_only = true;\n\n // Prestashop does not support custom urls with slash\n // This trick allows Prestashop to handle requests with slash in \"action\" parameter\n // /module/marmiads/endpoint?action=/feed/products will call displayAjaxFeedProducts()\n $_GET['action'] = str_replace('/', '_', $_GET['action']);\n\n parent::init();\n }", "public function init() {\n\n\t\t$token = $this->get_token();\n\n\t\tif ( ! $token || ! $this->is_valid_token( $token ) ) {\n\n\t\t\treturn;\n\n\t\t}\n\n\t\tforeach ( $this->routes as $route => $class ) {\n\n\t\t\tif ( class_exists( $class ) ) {\n\n\t\t\t\tnew $class( $route );\n\n\t\t\t}\n\n\t\t}\n\n\t\tadd_filter( 'rest_index', [ $this, 'hide_from_rest_index' ], PHP_INT_MAX );\n\t\tadd_filter( 'rest_pre_serve_request', [ $this, 'send_headers' ], PHP_INT_MAX, 4 );\n\t\tadd_filter( 'rest_send_nocache_headers', '__return_true', PHP_INT_MAX );\n\n\t}", "protected function init()\n {\n $this->urlParams = array();\n $this->methodArguments = array();\n $this->lang = self::LANG_POLISH;\n $this->basePath = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.self::BASE_FOLDER.DIRECTORY_SEPARATOR;\n $this->loadConfig();\n }", "public function init() {\n\t\t$this->_helper->layout->setLayout('default');\n\t\t$this->_helper->AjaxContext()->addActionContext('registration', 'json')->initContext('json');\n\t\t$this->_helper->AjaxContext()->addActionContext('login', 'json')->initContext('json');\n }" ]
[ "0.70779985", "0.66616976", "0.6583089", "0.64863724", "0.63623714", "0.6323823", "0.61805415", "0.6180371", "0.61304164", "0.6074767", "0.60057557", "0.59212685", "0.584857", "0.5836375", "0.5836082", "0.58287656", "0.57978916", "0.57814884", "0.5759632", "0.57563806", "0.5745351", "0.57387584", "0.57367516", "0.57142526", "0.5708938", "0.5700624", "0.56818104", "0.5665454", "0.56447303", "0.5638635", "0.5618235", "0.5602606", "0.5601363", "0.56010884", "0.55998385", "0.55962765", "0.55908364", "0.55855495", "0.55835044", "0.5583199", "0.5580939", "0.5579095", "0.5570123", "0.554039", "0.55269015", "0.55148196", "0.5507506", "0.54987943", "0.5497196", "0.54761696", "0.5469229", "0.54610795", "0.54595304", "0.54569536", "0.54485977", "0.54485977", "0.54454106", "0.54453564", "0.54449", "0.5442236", "0.54388154", "0.5437648", "0.543195", "0.54282486", "0.5419441", "0.5418501", "0.54163617", "0.54111725", "0.5408966", "0.54087275", "0.53984684", "0.5394929", "0.5394469", "0.53926617", "0.53923464", "0.53837466", "0.5375894", "0.5370104", "0.5362431", "0.5361134", "0.53553027", "0.5351459", "0.53460014", "0.53460014", "0.5345938", "0.5345938", "0.5345938", "0.5345938", "0.5345463", "0.5345463", "0.5345463", "0.5345463", "0.5345463", "0.5345463", "0.53359336", "0.53309053", "0.53302675", "0.53255874", "0.5322297", "0.53222007" ]
0.59428114
11
Return a flickr API key
public function getKey() { if (!empty($this->api_key)) { return $this->api_key; } else { return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function key(){\n\t\t$api_key = '42b85431eba6a84d17266021e817d2a6';\n\t\treturn $api_key;\n\t}", "public function apiKey(): string;", "function auth_apikey($key){\n\t\n}", "public function getApiKey();", "public function getApiKey(): string;", "public function getAuthKey()\n {\n return $this->apiKey;\n }", "function api_key() {\n\tif(check_value(chevereto_config('api_key'))) return chevereto_config('api_key');\n}", "public function getKnackRestApiKey();", "function get_api_key()\n{\n return get_global_value('api-key');\n}", "public function getAPIKey()\n\t{\n\t\treturn $this->getGMapClient()->getAPIKey();\n\t}", "private function getApiKey()\n\t{\n\t\treturn Mage::helper('core')->decrypt(Mage::getStoreConfig('whitePages_configuration/options/api_key'));\n\t}", "public function getApiKey () {\n syslog( LOG_INFO, 'Get an api key \\n' );\n\n $url = '/api_key';\n\n return $this->runRequest($url, 'GET', null);\n }", "function placester_get_api_key() { return PL_Option_Helper::api_key(); }", "public function get_search_api_key() {\n\t\tif ( ! $this->is_search_api_key_in_config() ) {\n\n\t\t\treturn (string) get_option( 'algolia_search_api_key', '' );\n\t\t}\n\n\t\t$this->assert_constant_is_non_empty_string( ALGOLIA_SEARCH_API_KEY, 'ALGOLIA_SEARCH_API_KEY' );\n\n\t\treturn ALGOLIA_SEARCH_API_KEY;\n\t}", "function get_user_api_key() {\n $currentUser = current_user();\n if ($currentUser) {\n $db = get_db();\n $res = $db->getTable('Key')->findBy(array('user_id' => $currentUser->id));\n if (sizeof($res) > 0) {\n return $res[0]->key;\n }\n }\n}", "private function getApikey() {\n\t\treturn $this->_apikey;\n\t}", "public function getAPIKey()\n\t{\n\t\treturn $this->api_key;\n\t}", "public function getApiKey()\n {\n return $this->getParameter('appid');\n }", "public function get_api_key(){\n\t\t$apikey = array_key_exists( 'apikey', $this->bvars) ? $this->bvars['apikey'] : false;\n\t\tif (!$apikey) {\t\t\t\n\t\t\t$this->get_errors()->add( new \\gcalc\\error( 10100 ) );\n\t\t\treturn 'anonymous';\n\t\t}\n\t\treturn $apikey;\n\t}", "public function getApiKey()\n {\n return Mage::getStoreConfig('magebridge/settings/api_key');\n }", "public function getApiKey(): string\n {\n return $this->apiKey;\n }", "function flickr($args) {\n\t$endpoint = isset($args['endpoint']) ? $args['endpoint'] : 'http://api.flickr.com/services/rest/';\n\t$secret = isset($args['api_secret']) ? $args['api_secret'] : null;\n\tunset($args['endpoint'], $args['api_secret']);\n\tif ($secret != null) {\n\t\tksort($args);\n\t\t$api_sig = $secret;\n\t\tforeach($args as $k => $v) $api_sig .= $k . $v;\n\t\t$api_sig = md5($api_sig);\n\t\t$args['api_sig'] = $api_sig;\n\t}\n\t$url = $endpoint . '?' . http_build_query($args);\n\tif (substr($endpoint, -15) === '/services/auth/') return $url;\n\t$response = file_get_contents($url);\n\treturn isset($args['format']) && $args['format'] === 'php_serial' ? unserialize($response) : $response;\n}", "public function getApiKey()\n {\n return $this->getParameter('apiKey');\n }", "public function getApiKey()\n {\n return $this->getParameter('apiKey');\n }", "public function getAPIKey()\n {\n return (string)Mage::getStoreConfig(self::CONFIG_API_KEY);\n }", "public function getApi_Key()\n\t{\n\t\treturn $this->api_key;\n\t}", "public function get_api_key()\n {\n if ( ! isset($this->api_key) ) return 'No API Key is set.';\n return $this->api_key;\n }", "function update_flickr_api ($old_key, $new_key) {\n\t$rsp_obj = call_flickr_api_method(array(\n\t\t'api_key'\t=> $new_key,\n\t\t'method'\t=> 'flickr.test.echo'\n\t));\n\t_log($rsp_obj['stat']);\n\t// check if flickr saw the api key as valid and update if so\n\tif ($rsp_obj['stat'] == 'ok') {\n\t\t$_GLOBALS['flickr'] = new phpFlickr($new_key);\n\t\treturn $new_key;\n\t} else {\n\t\treturn $old_key;\n\t}\n}", "public function getAuthKey()\n {}", "public function public_api_key()\n {\n $paypal = $this->CI->Payment_model->getPaypalGateway();\n return $paypal->pg_api_public_key;\n }", "public function getApiKey()\n {\n return $this->getGeneralSetting('ApiKey');\n }", "public function getApiKey()\n {\n return $this->settings->get('google.maps.api_key');\n }", "private function generateApiKey(){\n\n return md5(uniqid(rand(), true));\n\n }", "private function get_key() {\n\t\t$key = get_option( 'github_oembed_key' );\n\t\tif ( ! $key ) {\n\t\t\t$key = md5( time() . rand( 0, 65535 ) );\n\t\t\tadd_option( 'github_oembed_key', $key, '', 'yes' );\n\t\t}\n\t\treturn $key;\n\t}", "private function generateApiKey()\n {\n return md5(uniqid(rand(), true));\n }", "private function generateApiKey()\n {\n return md5(uniqid(rand(), true));\n }", "private function generateAPIAuth()\n {\n $ts = time();\n return '&ts='.$ts.'&apikey='.getenv('PUBLIC_KEY').'&hash='.md5($ts.getenv('PRIVATE_KEY').getenv('PUBLIC_KEY'));\n }", "protected function getFinalApiKey(): string\n {\n if (isset($this->settings['ff']) && is_array($this->settings['ff']) && $this->settings['ff']['apiKey']) {\n $apiKeyRecord = $this->keyRepository->findByUid((int)$this->settings['ff']['apiKey']);\n if ($apiKeyRecord) {\n return $apiKeyRecord->getApiKey();\n }\n }\n\n return $this->settings['apiKey'] ?: '';\n }", "public function get_api_key() {\n\t\tif ( ! $this->is_api_key_in_config() ) {\n\n\t\t\treturn (string) get_option( 'algolia_api_key', '' );\n\t\t}\n\n\t\t$this->assert_constant_is_non_empty_string( ALGOLIA_API_KEY, 'ALGOLIA_API_KEY' );\n\n\t\treturn ALGOLIA_API_KEY;\n\t}", "private function generateApiKey() {\n return md5(uniqid(rand(), true));\n }", "private function generateApiKey() {\n return md5(uniqid(rand(), true));\n }", "public function getAPIKey() {\n\t\tif (is_null($this->userData['APIKey']) || $this->userData['APIKey'] == \"\" || intval($this->userData['APIKey']) < 0) {\n\t\t\t$key = new APIKey($this->userData['userId'], $this->userData['teamNumber'], $this->userData['uniqId']);\n\t\t\t$this->__set(\"APIKey\", $key->getKey());\n\t\t\t$this->APIKey = $key->getKey();\n\t\t} else {\n\t\t\t$this->APIKey = $this->userData['APIKey'];\n\t\t}\n\n\t\treturn $this->APIKey;\n\t}", "public function getApiKey()\n {\n return $this->api_key;\n }", "public function getAuthKey()\n {\n }", "public function getAuthKey()\n {\n }", "public function getAuthKey()\n {\n }", "public function getAuthKey()\n {\n }", "public function getApiKey()\n {\n return $this->apiKey;\n }", "private function getApiKey()\n {\n return $this->apiKey;\n }", "public function getApiKey() {\n\n return $this->apiKey;\n }", "private function getApiKey()\n {\n if ($this->options['api-version'] == 0) {\n if (!empty($this->options['secret'])) {\n return $this->options['secret'];\n }\n } elseif ($this->options['api-version'] >= 1) {\n if (!empty($this->options['api-key'])) {\n return $this->options['api-key'];\n }\n }\n if (!empty(getenv('WPC_API_KEY'))) {\n return getenv('WPC_API_KEY');\n }\n return '';\n }", "public function getApiKey()\n {\n $cfg = $this->di->get(\"configuration\");\n $config = $cfg->load(\"apikeys.php\");\n return $config[\"config\"][\"darksky\"];\n }", "public function getApiKey()\n {\n switch ($this->getApiMode()) {\n case Carrier::MODE_PRODUCTION:\n return $this->scopeConfig->getValue(self::XML_PATH_PRODUCTION_API_KEY, ScopeInterface::SCOPE_WEBSITES);\n default:\n return $this->scopeConfig->getValue(self::XML_PATH_TESTING_API_KEY, ScopeInterface::SCOPE_WEBSITES);\n\n }\n }", "public function getApiKey(){\n\t\treturn $this->apiKey;\n\t}", "public function getAppKey();", "public function display_api_key() {\r\n\t\t$key = 'inf_key';\r\n\r\n\t\tif ( isset( $this->existing_options[$key] ) && $this->existing_options[$key] )\r\n\t\t\t$existing_value = $this->existing_options[$key];\r\n\t\telse\r\n\t\t\t$existing_value = '';\r\n\r\n\t\t$id = $key;\r\n\t\tsettings_errors( $id );\r\n\t\techo '<input type=\"password\" name=\"' . self::OPTION_NAME . '[' . $key . ']\" id=\"' . $id . '\"';\r\n\t\tif ( $existing_value )\r\n\t\t\techo ' value=\"' . esc_attr( $existing_value ) . '\"';\r\n\t\techo ' size=\"40\" autocomplete=\"off\" pattern=\"[a-zA-Z0-9-_]+\" />';\r\n\r\n\t\techo '<p class=\"description\">' . __( 'Not sure what the API key is or where to get it? <a target=\"_blank\" href=\"http://kb.infusionsoft.com/index.php?/article/AA-00442/0/How-do-I-enable-the-Infusionsoft-API.html\">Click here</a>', 'fb-eventpresso' ) . '</p>';\r\n\t}", "public function getApiKey() {\n\t\treturn $this->apiKey;\n\t}", "public function getApiKey()\n {\n return $this->_apiKey;\n }", "public static function createApiKey()\n\t{\n\t\treturn Str::random(32);\n\t}", "private function getKey()\n {\n if (!empty($this->options['api-key'])) {\n return $this->options['api-key'];\n }\n if (!empty(getenv('EWWW_API_KEY'))) {\n return getenv('EWWW_API_KEY');\n }\n return false;\n }", "protected function getApiKey()\n {\n return $this->_apiKey;\n }", "public function getApiKey(): ?string;", "public function getApiKey()\n {\n return $this->apiKey;\n }", "public function getApiKey()\n {\n return $this->apiKey;\n }", "public function getApiKey()\n {\n return $this->apiKey;\n }", "public function getApiKey()\n {\n return $this->apiKey;\n }", "public function getApiKeyPublic()\n {\n return $this->getParameter('apiKeyPublic');\n }", "public function getAppKey(): string;", "public function generateApiKey() {\n return md5(uniqid(rand(), true));\n }", "function getPackageKey() ;", "public function getApiKey()\n\t\t\t{\n\t\t\t\treturn $this->apiKey;\n\t\t\t}", "public function getApiKey() {\n return $this->apiKey;\n }", "public static function getApiKey()\n {\n if (static::$key) {\n return static::$key;\n }\n\n if ($key = getenv('FIRST_PROMOTER_KEY')) {\n return $key;\n }\n\n return config('services.first_promoter.key');\n }", "public function getDeveloperKey();", "public function getAuthenticationKey();", "function buildAuthUrl($frob ='', $key = '', $secret = '', $perms = 'delete') {\n\t\t$params = array();\n if ($frob != '') {\n $params['frob'] = $frob;\n }\n\t\tif ($key == '') {\n\t\t\t$key = $this->modx->getOption('xflickr.api_key');\n\t\t}\n\t\tif ($secret == '') {\n\t\t\t$secret = $this->modx->getOption('xflickr.api_secret');\n\t\t}\n\t\t$params['api_key'] = $key;\n\t\t$params['perms'] = $perms;\n //return 'http://flickr.com/services/auth/?'.$this->signParams($params);\n $signing = '';\n $values = array();\n ksort($params);\n foreach($params as $key => $value) {\n\t\t\t$signing .= $key . $value;\n\t\t\t$values[] = $key . '=' . urlencode($value);\n }\n $values[] = 'api_sig=' . md5($secret . $signing);\n return 'http://flickr.com/services/auth/?'.implode('&', $values);\n }", "public function getApiKey(){\n if (empty($this->apiKey)){\n throw new InvalidArgumentException(\"Missing API KEY!\");\n }\n return $this->apiKey;\n }", "public function getApiKeySettings();", "public function getApiKey()\n {\n return $this->config['api_key'];\n }", "protected function getApiKey()\n {\n return $this->config['api_key'];\n }", "function aurum_get_google_api() {\n\treturn apply_filters( 'aurum_google_api_key', get_data( 'google_maps_api' ) );\n}", "public function getApiTokenKey()\n {\n return $this->apiTokenKey;\n }", "function showspace_api_key() {\n $options = get_option('showspace_options');\n return $options['showspace_api_key'];\n}", "public function getWebHookKey()\n {\n return md5($this->id.sha1(Pluf::f('secret_key')).$this->shortname);\n }", "public function getRestApiKey($store = null) {\n if ($this->isTestModeEnabled($store)) {\n return Mage::getStoreConfig(static::XML_PATH_TEST_REST_API_KEY, $store);\n } else {\n return Mage::getStoreConfig(static::XML_PATH_REST_API_KEY, $store);\n }\n }", "function aurum_google_api_key_acf() {\n\t$api = array(\n\t\t'libraries' => 'places',\n\t\t'key' => aurum_get_google_api(),\n\t);\n\n\treturn $api;\n}", "public static function CDN_KEY() {\n return Config::get_env(\"CDN_KEY\", \"CLXDZS24AL6KDVDGCG33\");\n }", "public function getAuthKey()\n {\n // TODO: Implement getAuthKey() method.\n }", "public function getAuthKey()\n {\n // TODO: Implement getAuthKey() method.\n }", "public function getAuthKey()\n {\n // TODO: Implement getAuthKey() method.\n }", "function otomoto_api()\n{\n $api = '329:20db09f3e99a6fba22abdf2c756fe70b';\n return $api;\n}", "private function generateApiKey()\n {\n try {\n $rawXMLResponse = $this->soapClient->GenerateApiKey(\n array(\n 'environmentNameOrURL' => $this->config->getEnvironment(),\n 'userName' => $this->config->getUsername(),\n 'password' => $this->config->getPassword()\n ),\n array(\n 'wsdl_cache' => 1\n )\n );\n $xmlString = $this->getResponse($rawXMLResponse, 'GenerateApiKey');\n $domXml = XmlUtils::stringToDomDocument($xmlString);\n return $domXml->getElementsByTagName('apiKey')->item(0)->getAttribute('key');\n\n } catch (\\Exception $e) {\n throw new ChiliSoapCallException($e->getMessage(), $e->getCode());\n }\n }", "public function uriKey(): string;", "function get_google_api_key(){\n if( function_exists( 'get_field' ) ){\n $google_api_key = get_field('google_api_key','option');\n\n return $google_api_key;\n }\n\n}", "public function getAuthKey()\n {\n return sha1($this->hash_password . $this->email . 'sfjds9IFJdke323');\n }", "public function getAuthKey()\n {\n return $this->auth_key;\n }", "public function getAuthKey()\n {\n return $this->auth_key;\n }", "public function key();", "public function key();", "public function key();" ]
[ "0.7157288", "0.68194026", "0.67024386", "0.66979676", "0.6663468", "0.6628972", "0.6603128", "0.6539387", "0.65088016", "0.65013236", "0.64814174", "0.6473108", "0.6407471", "0.6398454", "0.6385424", "0.6373185", "0.63520604", "0.63328654", "0.63153696", "0.629497", "0.62946594", "0.62857765", "0.624812", "0.624812", "0.6241641", "0.6237713", "0.62303483", "0.62209105", "0.6197938", "0.6195488", "0.6141463", "0.6103207", "0.60857683", "0.6065993", "0.6065201", "0.6065201", "0.606067", "0.6059759", "0.6058773", "0.6047593", "0.6047593", "0.60398394", "0.6036874", "0.60246986", "0.60246986", "0.60246986", "0.60246986", "0.6002511", "0.6001826", "0.60010755", "0.5993384", "0.59918886", "0.5984962", "0.5984205", "0.5982529", "0.597287", "0.5972097", "0.5968354", "0.59578073", "0.59577996", "0.59302145", "0.59289914", "0.59260863", "0.59260863", "0.59260863", "0.59260863", "0.59223646", "0.59095985", "0.59063184", "0.5892284", "0.58689725", "0.58620435", "0.58369327", "0.581773", "0.5793313", "0.5770383", "0.57630134", "0.5750735", "0.5750216", "0.5730916", "0.5711667", "0.5693613", "0.56882346", "0.5675309", "0.5639414", "0.5586857", "0.5586235", "0.5577821", "0.5577821", "0.5577821", "0.55238986", "0.54954815", "0.5480867", "0.5479469", "0.54737246", "0.54648846", "0.54648846", "0.545082", "0.545082", "0.545082" ]
0.62144476
28
Set a flickr API key
public function setKey($key) { if (!empty($key)) { $this->api_key = $key; return TRUE; } else { return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAPIKey($key){\r\n\t\t$this->apiKey = $key;\r\n\t}", "public function setApikey()\n {\n $this->apiKey = Config::get('leanpub.API_KEY');\n }", "function update_flickr_api ($old_key, $new_key) {\n\t$rsp_obj = call_flickr_api_method(array(\n\t\t'api_key'\t=> $new_key,\n\t\t'method'\t=> 'flickr.test.echo'\n\t));\n\t_log($rsp_obj['stat']);\n\t// check if flickr saw the api key as valid and update if so\n\tif ($rsp_obj['stat'] == 'ok') {\n\t\t$_GLOBALS['flickr'] = new phpFlickr($new_key);\n\t\treturn $new_key;\n\t} else {\n\t\treturn $old_key;\n\t}\n}", "function set_api_key($api_key)\n\t{\n\t\t$this->api_key = $api_key;\n\t}", "function setApiKey($key){\n $this->key = $key;\n }", "public function setKey($key) {\n\t\t\tif(!empty($key)) $this->apiKey = $key;\n\t\t}", "public function setApiKey(string $api_key): void\n {\n $this->api_key = $api_key;\n }", "public function set_api_key($api_key)\n {\n $this->api_key = $api_key;\n }", "public static function setApiKey($key)\n {\n static::$key = $key;\n }", "private function set_key($sApiKey) {\r\n $this->key = $sApiKey;\r\n }", "public static function setApiKey($key)\n {\n self::$apiKey = (string) $key;\n }", "public function registerAPIKey()\n {\n acf_update_setting('google_api_key', $this->apiKey);\n }", "private function set_key($sApiKey) {\n $this->key = $sApiKey;\n }", "function auth_apikey($key){\n\t\n}", "public function setApiKey($apiKey);", "public function setApiKey($apiKey);", "public function setApiKey($api_key)\n {\n $this->api_key = $api_key;\n }", "private function setApikey($apikey) {\n\t\t$this->_apikey = (string) $apikey;\n\t}", "public function setAPIKey($domain, $key)\n\t{\n\t\t$this->getGMapClient()->setAPIKey($domain, $key, true);\n\t}", "public function setKey($apiKey)\n {\n $this->key = $apiKey;\n }", "public function setApiKey(string $apiKey): void\n {\n $this->apiKey = strval($apiKey);\n }", "public function setApiKey($apiKey){\n $this->apiKey=$apiKey;\n }", "private function setApiKey( $apiKey ) {\n\n $this->apiKey = $apiKey;\n }", "public function setApiKey($apiKey){\n\t\t$this->apiKey = $apiKey;\n\t}", "function it_gets_and_sets_the_key()\n {\n $this->getKey()->shouldReturn('apikey');\n\n // Set the api key\n $this->setKey('keyapi');\n\n // Get the current key\n $this->getKey()->shouldReturn('keyapi');\n }", "public function setKey(string $key);", "public static function setRandomApiKey()\n {\n if (!empty(self::getSetting('API_KEY'))) {\n return;\n }\n\n $randomKey = bin2hex(openssl_random_pseudo_bytes(16));\n\n Registry::getConfig()->saveShopConfVar('str', 'AVSHOPGUARDIANS_API_KEY', $randomKey, null, 'module:AvShopguardians');\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "public function setApiKey($api)\n {\n $this->api_key = $api;\n }", "public function applyNewApiKey()\n {\n $this->attributes['api_key'] = KeyGenerator::generateRandomKey();\n }", "final public function setApi($keys)\n {\n $keys = (array) $keys;\n\n $this->apiKey = $keys[array_rand($keys, 1)];\n }", "public function setKey($key);", "public function SetKey($key = ''){\n \tself::$userKey = $key;\n }", "public function setApiKey($apiKey) {\n\t\t$this->apiKey = $apiKey;\n\t}", "function __construct($api_key)\n {\n \\Tinify\\setKey($api_key);\n }", "public function setKey( $key )\r\n {\r\n $this->key = $key;\r\n }", "public function setAuth($key, $secret)\n {\n $this->apiKey = $key;\n $this->apiSecret = $secret;\n }", "function my_acf_init() {\t\n\tacf_update_setting('google_api_key', 'YOURAPIKEY');\n}", "public function setApiKey($apiKey)\n {\n $this->apiKey = $apiKey;\n }", "public function setApiKey($apiKey)\n {\n $this->apiKey = $apiKey;\n }", "public function setApiKey($value)\n {\n return $this->setParameter('apiKey', $value);\n }", "public function setApiKey($value)\n {\n return $this->setParameter('apiKey', $value);\n }", "public function setKey(?string $key): void\n {\n $this->key = $key;\n }", "public static function setKey($key){\n\t\tself::$_key = $key;\n\t}", "public function setKey($key)\n {\n $this->_key = $key;\n }", "public function setKey(?string $key): void\n {\n }", "public function setKey(string $key) : void {\n\t\t$this->key = $key;\n\t}", "public function setAPIKey($api_key)\n\t{\n\t\t$this->api_key = $api_key;\n\t\treturn $this;\n\t}" ]
[ "0.68618506", "0.6772253", "0.6711389", "0.66141117", "0.65912133", "0.6342721", "0.6261626", "0.6247305", "0.62391657", "0.62362385", "0.62163323", "0.6140565", "0.61288416", "0.6105529", "0.6091902", "0.6091902", "0.60725665", "0.6005807", "0.597735", "0.59685093", "0.5939092", "0.5930966", "0.58977044", "0.5881772", "0.58734703", "0.5832374", "0.58118343", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.57949764", "0.5745945", "0.57264525", "0.5703898", "0.57002497", "0.56866056", "0.56808", "0.56722915", "0.5656719", "0.563608", "0.55897266", "0.5567578", "0.5567578", "0.5560857", "0.5560857", "0.5552667", "0.5544422", "0.5539047", "0.55347514", "0.55300754", "0.55140996" ]
0.0
-1
Return a flickr API shared secret
public function getSecret() { if (!empty($this->api_secret)) { return $this->api_secret; } else { return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSharedSecret(): string;", "public function getSecret();", "public function getSecret();", "public function getSecret();", "public function getSecret();", "public function getSecret();", "public function getSecret(): string;", "public function getAppSecret(): string;", "public function getClientSecret();", "public function getClientSecret();", "public function getSecret() {\n\t\treturn (string) $this->photo['secret'];\n\t}", "public function getSharedSecret()\n {\n return isset($this->shared_secret) ? $this->shared_secret : '';\n }", "function get_site_secret()\n {\n \t$secret = datalist_get('__site_secret__');\n \tif (!$secret) $secret = init_site_secret();\n \t\n \treturn $secret;\n }", "protected function getClientSecret()\n {\n return $this->sharedSecret;\n }", "private function define_secret() {\n\t\t$secret = '';\n\t\treturn $secret;\n\t}", "public function getSecret()\n {\n return $this->getParameter('secret');\n }", "public function getSecret() {\n return $this->accessSecret;\n }", "public function getSecret()\n {\n return $this->getConfig('secret');\n }", "public function getSecret()\n {\n // echo \"Secret is: \" . $this->secret;\n return $this->secret;\n }", "public function get_secret() {\r\n return $this->secret;\r\n }", "public function get_access_secret()\n\t{\n return self::get_value( 'access_secret' );\n\t}", "public function getClientSecret(): string\n {\n return (string) data_get($this->args, 'credentials.secret');\n }", "public function getSharedSecret()\n {\n if (array_key_exists(\"sharedSecret\", $this->_propDict)) {\n return $this->_propDict[\"sharedSecret\"];\n } else {\n return null;\n }\n }", "public function getSecret() : string\n {\n return $this->secret;\n }", "public function getSecret()\n {\n return $this->secret;\n }", "public function getSecret()\n {\n return $this->secret;\n }", "public function getSecret()\n {\n return $this->secret;\n }", "public function getSecret()\n {\n return $this->secret;\n }", "public function get_api_secret(){\n\t\t$apisecret = array_key_exists( 'apisecret', $this->bvars) ? $this->bvars['apisecret'] : false;\n\t\tif (!$apisecret) {\n\t\t\t$this->get_errors()->add( new \\gcalc\\error( 10101 ) );\n\t\t\treturn 'anonymous-secret';\n\t\t}\n\t\treturn $apisecret;\n\t}", "public function getSecret()\n {\n return $this->_secret;\n }", "public function getSecret()\n {\n return $this->_secret;\n }", "public function getAppSecret()\n {\n return $this->appSecret;\n }", "public function getSecret()\n\t{\n\t\treturn $this->secret;\n\t}", "function secret_key_1(){\n return \"secret_key_1_password\";\n}", "public function getSharedSecret($url) {\n\t\treturn $this->dbHandler->getSharedSecret($url);\n\t}", "public function getSecret() {\n return $this->secret;\n }", "public function get_oauth_token_secret() {\n\t\treturn $this->_oauth_token_secret;\n\t}", "public function getApiSecret(){\n\t\treturn $this->apiSecret;\n\t}", "public function get_client_secret() {\n return $this->get_option( 'client-secret', '' );\n }", "public function generateTwoFactorSecret()\n {\n return $this->start()->uri(\"/api/two-factor/secret\")\n ->get()\n ->go();\n }", "public function getSecret(): string {\n\n if ($this->secret) {\n return $this->secret;\n }\n\n // Get the secret from the databae\n if ($r = $this->user->secret2FA()) {\n return $r;\n }\n\n // Get the secret from file cache\n if ($r = $this->cache->get($this->user->id())) {\n return $this->secret = $r;\n }\n\n // Create a secret of 160 bits as a\n $this->secret = $this->tfa->createSecret(160);\n\n // Save the secret for 2 min that lets the user to scan the code\n $this->cache->set($this->user->id(), $this->secret, 2);\n\n return $this->secret;\n }", "public function getAuthSecret()\n {\n return $this->apiSecret;\n }", "public function facebookAppSecret()\r\n\t{\r\n\t\treturn Mage::getStoreConfig('ezfacebook/facebook/appsec');\r\n\t}", "public function getTokenSecret(): string\n {\n return $this->getParam($this->tokenSecretParamKey);\n }", "public function regenerateSharedSecret()\n {\n $request = $this->createRequest('POST', '/settings/secret', ['json' => []]);\n $response = $this->send($request);\n return $response->json();\n }", "public function get_clientsecret() {\n return $this->clientsecret;\n }", "public function getApiKeySecret()\n {\n return $this->getParameter('apiKeySecret');\n }", "public function createSecret()\n\t{\n\t\treturn $this->secret = (new GoogleAuthenticator())->generateSecret();\n\t}", "public function getSecretKey();", "public function getClientSecret(): string\n {\n return $this->configuration[ConfigurationInterface::CLIENT_SECRET];\n }", "function init_site_secret()\n {\n \t$secret = md5(rand().microtime());\n \tif (datalist_set('__site_secret__', $secret))\n \t\treturn $secret;\n \t\t\n \treturn false;\n }", "public function getClientSecret() : string\n {\n return $this->clientSecret;\n }", "public function getClientSecret() : string\n {\n return $this->clientSecret;\n }", "private function _getSecretKey() {\n return \"hfd&*9997678g__vd45%%$3)(*kshdak\";\n }", "public function getSecret($tid){}", "public function getSharedSecretHash()\n {\n return isset($this->shared_secret_hash) ? $this->shared_secret_hash : '';\n }", "public function getWebhookSecret();", "public function get_app_secret() {\n\n\t\t// Get plugin settings.\n\t\t$settings = $this->get_plugin_settings();\n\n\t\treturn rgar( $settings, 'customAppSecret' ) ? rgar( $settings, 'customAppSecret' ) : null;\n\n\t}", "function fj_workflow_api_client_secret_field() {\n echo '<input type=\"text\" name=\"workflow_api[client_secret]\" value=\"' . get_option( 'workflow_api' )['client_secret'] . '\" size=\"80\" /><br />';\n}", "public function getClientSecret()\n {\n return $this->client_secret;\n }", "public function getClientSecret()\n {\n return $this->client_secret;\n }", "public function getMoipSecret() {\n return $this->getChaveValor('MOIP_APP_SECRET');\n }", "public function generateKeyAndSecret() {\n $user = user_load($this->uid);\n\n $this->app_key = str_replace(array(' ', '', '-'), '_', strtolower($this->title));\n $this->app_secret = md5($user->name . $this->time);\n }", "public function getClientSecret()\n\t{\n\t\treturn $this->_clientSecret;\n\t}", "public function getSecretId()\n {\n return $this->secret_id;\n }", "public function secret() {\n\t\tif(is_null($this->secret))\n\t\t\tthrow new DataAuthenticatorException('Unable to find the secret key');\n\t\treturn $this->secret;\n\t}", "public function getBoxSecretKey() : string;", "function regolith_get_cache_page_secret() {\n\t\tif ( defined( 'REGOLITH_WP_SUPER_CACHE_SECRET' ) ) {\n\t\t\t$cache_page_secret = REGOLITH_WP_SUPER_CACHE_SECRET;\n\t\t} else {\n\t\t\ttry {\n\t\t\t\t$cache_page_secret = bin2hex( random_bytes( 32 ) );\n\t\t\t} catch ( Exception $exception ) {\n\t\t\t\t$cache_page_secret = sha1( uniqid( microtime() . mt_rand(), true ) );\n\t\t\t}\n\t\t}\n\n\t\treturn $cache_page_secret;\n\t}", "public function getClientSecret()\n {\n return $this->clientSecret;\n }", "public function getClientSecret()\n {\n return $this->clientSecret;\n }", "public function getClientSecret()\n {\n return $this->clientSecret;\n }", "public function getClientSecret()\n {\n return $this->clientSecret;\n }", "public function getClientSecret() {\n return $this->clientSecret;\n }", "public static function secret_key()\n {\n if(Director::isDev()) {\n if (defined(\"STRIPE_TEST_SK\")) {\n return STRIPE_TEST_SK;\n } else {\n return self::config()->test_secret_key;\n }\n } else {\n if (defined(\"STRIPE_LIVE_SK\")) {\n return STRIPE_LIVE_SK;\n } else {\n return self::config()->live_secret_key;\n }\n }\n }", "public function getSecretKey()\n {\n return $this->secret_key;\n }", "public function get_consumer_secret()\n\t{\n\t\treturn $this->tokens['consumer_secret'];\n\t}", "protected function getConsumerSecret()\n {\n\treturn $this->consumerSecret;\n }", "public function getConsumerSecret() {\n return $this->secret; \n }", "public function getSecretID()\n {\n return $this->secretID;\n }", "public function getOAuthTokenSecret()\n {\n return $this->oauthToken->getTokenSecret();\n }", "public function getSecretKey(): string\n {\n return $this->secretKey;\n }", "protected abstract function getSecretKey();", "public function getSharedKey(): string;", "private function generateAPIAuth()\n {\n $ts = time();\n return '&ts='.$ts.'&apikey='.getenv('PUBLIC_KEY').'&hash='.md5($ts.getenv('PRIVATE_KEY').getenv('PUBLIC_KEY'));\n }", "function get_secret_key($link, $data) // Colorize: green\n { // Colorize: green\n return get_property_value($link, $data, \"secret_key\"); // Colorize: green\n }", "protected function key()\n {\n return \"CLIENT_SECRET\";\n }", "public function getSecretKey()\n {\n return $this->getParameter('secretKey');\n }", "function getPhoto($photo_id, $secret){\n\n\t\t/* Get Photo */\n\t\t$photo = $this->askFlickr('photos.getInfo','&photo_id='.$photo_id.'&secret='.$secret);\n\n\t\t/* Return Photo */\n\t\treturn $photo;\n\t}", "public function getSignSecretKey() : string;", "public function getSecretKey()\n {\n return $this->secret_key;\n }", "public function getSecretKey()\n {\n return $this->secret_key;\n }", "protected function _getSecret()\n {\n if (!isset($this->_config['secret'])) {\n throw new RuntimeException('Parameter \"secret\" not exists in config.');\n }\n\n return $this->_config['secret'];\n }", "public function setSharedSecret($val)\n {\n $this->_propDict[\"sharedSecret\"] = $val;\n return $this;\n }", "public function getSecretKey()\n\t{\n\t\treturn $this->secret_key;\n\t}", "public function getToken($secret, $frob = null, array $options = array())\n {\n static $method = 'flickr.auth.getToken';\n $defaultOptions = array(\n \t'frob' => (null !== $frob) ? $frob : ($frob = $this->getFrob($secret))\n );\n\n $options = $this->_prepareOptions($method, $options, $defaultOptions);\n $options = $this->signOptions($secret, $options);\n\n // now search for photos\n $restClient = $this->getRestClient();\n $restClient->getHttpClient()->resetParameters();\n $response = $restClient->restGet('/services/rest/', $options);\n\n if ($response->isError()) {\n /**\n * @see Zend_Service_Exception\n */\n require_once 'Zend/Service/Exception.php';\n throw new Zend_Service_Exception('An error occurred sending request. Status code: '\n . $response->getStatus());\n }\n\n $dom = new DOMDocument();\n $dom->loadXML($response->getBody());\n\n self::_checkErrors($dom);\n \n return new Gtwebdev_Service_Flickr_Auth($dom, $this);\n }", "public function setSharedSecret($var)\n {\n GPBUtil::checkString($var, True);\n $this->shared_secret = $var;\n\n return $this;\n }", "function facebook_app_token()\r\n{\r\n\tglobal $settings;\r\n\r\n\treturn $settings['facebook_app_id'] . '|' . $settings['facebook_app_secret'];\r\n}", "public function getSecret()\n {\n if (! isset($this->secret)) {\n $this->secret = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getSecretQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->secret;\n }", "public function getTrackSecretToken($filters = null) {\r\n \t$this->_response = SoundCloud::sendRequest(\"{$this->getUrl()}/secret_token/?client_id={$this->_soundcloud->getClientId()}{$filters}\");\r\n }", "public function getMoipAccountSecret() {\n return $this->getChaveValor('MOIP_ACCOUNT_SECRET');\n }" ]
[ "0.78256476", "0.7628049", "0.7628049", "0.7628049", "0.7628049", "0.7628049", "0.7483445", "0.7331967", "0.7280122", "0.7280122", "0.7237774", "0.72218317", "0.7036234", "0.6925005", "0.69088495", "0.6892411", "0.6881109", "0.6861281", "0.67965543", "0.67825866", "0.67769206", "0.67728955", "0.6754146", "0.674416", "0.6726992", "0.6726992", "0.6726992", "0.6726992", "0.6722569", "0.67066306", "0.67066306", "0.6687921", "0.66848433", "0.667265", "0.6657448", "0.6640701", "0.66288257", "0.6602345", "0.65976316", "0.65840596", "0.65837663", "0.65629536", "0.6520818", "0.6495866", "0.646397", "0.64601934", "0.6451545", "0.64274687", "0.6379143", "0.63760555", "0.63721997", "0.63659567", "0.63659567", "0.6352857", "0.634699", "0.63454854", "0.6336466", "0.63317484", "0.62666285", "0.62633884", "0.62633884", "0.6260688", "0.62324244", "0.622725", "0.6224494", "0.6212363", "0.620357", "0.61902773", "0.6184418", "0.6184418", "0.6184418", "0.6184418", "0.6150038", "0.6105822", "0.6104826", "0.60719067", "0.6040665", "0.60395676", "0.60357887", "0.601251", "0.60058236", "0.5989224", "0.59886044", "0.5979734", "0.5963982", "0.5957543", "0.5952488", "0.5939963", "0.5936204", "0.59333056", "0.59333056", "0.592644", "0.58993727", "0.58956635", "0.588064", "0.5879724", "0.58765537", "0.5873721", "0.5842929", "0.58276623" ]
0.6621045
37