本文整理汇总了PHP中DatabaseOperation::executeComplete方法的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseOperation::executeComplete方法的具体用法?PHP DatabaseOperation::executeComplete怎么用?PHP DatabaseOperation::executeComplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DatabaseOperation
的用法示例。
在下文中一共展示了DatabaseOperation::executeComplete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deleteClassificationElements
function deleteClassificationElements()
{
$this->checkClassificationUsed();
DatabaseOperation::executeComplete('DELETE FROM ' . self::TABLENAME . ' WHERE ' . self::KEYNAME . '=' . $this->getKeyValue());
}
开发者ID:SalokineTerata,项目名称:intranet,代码行数:5,代码来源:ClassificationArborescenceArticleCategorieContenuModel.php
示例2: deleteClassificationRaccourcisAssociation
function deleteClassificationRaccourcisAssociation()
{
DatabaseOperation::executeComplete('DELETE FROM ' . self::TABLENAME . ' WHERE ' . self::KEYNAME . '=' . $this->getKeyValue());
}
示例3: createNewRecordset
/**
* Valeurs par défaut en cas de création
* d'un nouvel enregistrement
* @return mixed
*/
public static function createNewRecordset($paramForeignKeysValuesArray = NULL)
{
$pdo = DatabaseOperation::executeComplete('INSERT INTO ' . AnnexeEmballageModel::TABLENAME . '(' . AnnexeEmballageModel::FIELDNAME_ID_FTE_FOURNISSEUR . ')' . 'VALUES (' . $paramForeignKeysValuesArray[AnnexeEmballageModel::FIELDNAME_ID_FTE_FOURNISSEUR] . ')');
$key = $pdo->lastInsertId();
return $key;
}
示例4: deleteClassificationActiviteSousFamilleArcadia
function deleteClassificationActiviteSousFamilleArcadia()
{
DatabaseOperation::executeComplete('DELETE FROM ' . self::TABLENAME . ' WHERE ' . self::KEYNAME . '=' . $this->getKeyValue());
}
示例5: reserveKeyDatabase
/**
* Réserve une clef dans la base de données<br>
* Pour ce faire, un enregsitrement vide est créé.
* @param string $paramTableName Nom de la table
* @return mixed Valeur de la clef réservée
*/
public static function reserveKeyDatabase($paramTableName)
{
$sqlReq = 'INSERT ' . $paramTableName . ' VALUES()';
$sqlResult = DatabaseOperation::executeComplete($sqlReq);
$return = $sqlResult->lastInsertId();
return $return;
}
示例6: InsertClassification
/**
* Création d'une nouvelle classification et retourn sont identifiant
* @return int
*/
public static function InsertClassification()
{
$pdo = DatabaseOperation::executeComplete('INSERT INTO ' . ClassificationFta2Model::TABLENAME . ' VALUES (NULL , \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\')');
$key = $pdo->lastInsertId();
return $key;
}
示例7: duplicateRowsByIdReplaceLast
/**
* Duplique la table résultat de la clé étrangère
* @param string $paramTable
* @param string $paramId
* @return int
*/
public static function duplicateRowsByIdReplaceLast($paramTable, $paramIdOLD, $paramIdNew)
{
/**
* On récupère le nom du champ primaire de la table
*/
$primaryFieldName = self::getPrimaryFieldName($paramTable);
$arrayField = DatabaseOperation::getArrayFiledsNamesTable($paramTable);
$separation = "";
$separation2 = "";
foreach ($arrayField as $nomColumn) {
if ($nomColumn != $primaryFieldName) {
$tableListeInsert .= $separation . $nomColumn;
$separation = ",";
}
if (stripos($nomColumn, self::LAST) === self::FALSE) {
if ($nomColumn == FtaModel::KEYNAME) {
$nomColumn = $paramIdNew;
}
$tableListeSelect .= $separation2 . $nomColumn;
$separation2 = ",";
}
}
$req = " INSERT INTO " . $paramTable . " (" . $tableListeInsert . ") " . " SELECT " . $tableListeSelect . " FROM " . $paramTable . " WHERE " . FtaModel::KEYNAME . "=" . $paramIdOLD;
DatabaseOperation::executeComplete($req);
}
示例8: createFta
/**
* Fonction d"insertion d'une Fta
* @param int $paramIdCreateur
* @param int $paramIdFtaEtat
* @param int $paramIdFtaWorkflow
* @param string $paramDesignationCommerciale
* @param date $paramDateCreation
* @param int $paramSiteDeProduction
* @return int
*/
public static function createFta($paramIdCreateur, $paramIdFtaEtat, $paramIdFtaWorkflow, $paramDesignationCommerciale, $paramDateCreation, $paramSiteDeProduction)
{
$Id = DatabaseOperation::executeComplete("INSERT INTO " . FtaModel::TABLENAME . " ( " . FtaModel::FIELDNAME_CREATEUR . "," . FtaModel::FIELDNAME_ID_FTA_ETAT . "," . FtaModel::FIELDNAME_DESIGNATION_COMMERCIALE . "," . FtaModel::FIELDNAME_DATE_CREATION . "," . FtaModel::FIELDNAME_SITE_PRODUCTION . "," . FtaModel::FIELDNAME_WORKFLOW . ")" . " VALUES (" . $paramIdCreateur . ", " . $paramIdFtaEtat . ", '" . addslashes($paramDesignationCommerciale) . "', " . $paramDateCreation . ", " . $paramSiteDeProduction . ", " . $paramIdFtaWorkflow . ")");
$key = $Id->lastInsertId();
return $key;
}
示例9: insertIntranetDescription
/**
* Ajout d'une Description
* @param string $paramNameTable
* @param string $paramNameVariable
* @return int
*/
public static function insertIntranetDescription($paramNameTable, $paramNameVariable)
{
$pdo = DatabaseOperation::executeComplete("INSERT INTO " . self::TABLENAME . "(" . self::FIELDNAME_TABLE_NAME_INTRANET_COLUMN_INFO . "," . self::FIELDNAME_COLUMN_NAME_INTRANET_COLUMN_INFO . "," . self::FIELDNAME_EXPLICATION_INTRANET_COLUMN_INFO . ")" . "VALUES ('" . $paramNameTable . "','" . $paramNameVariable . "','" . self::DEFAULT_MESSAGE . "')");
$key = $pdo->lastInsertId();
return $key;
}
示例10: deleteAllergeneElements
/**
* Suppression d'un allergene
*/
function deleteAllergeneElements()
{
DatabaseOperation::executeComplete('DELETE FROM ' . self::TABLENAME . ' WHERE ' . self::KEYNAME . '=' . $this->getKeyValue());
}
示例11: createNewRecordset
/**
* Valeurs par défaut en cas de création
* d'un nouvel enregistrement
* @return mixed
*/
public static function createNewRecordset($paramForeignKeysValuesArray = NULL)
{
$pdo = DatabaseOperation::executeComplete('INSERT INTO ' . self::TABLENAME . '(' . self::FIELDNAME_ID_FTA . ')' . 'VALUES (' . $paramForeignKeysValuesArray[self::FIELDNAME_ID_FTA] . ')');
$key = $pdo->lastInsertId();
return $key;
}
示例12: deleteAnnexeEmballageGroupe
function deleteAnnexeEmballageGroupe()
{
DatabaseOperation::executeComplete('DELETE FROM ' . self::TABLENAME . ' WHERE ' . self::KEYNAME . '=' . $this->getKeyValue());
}
示例13: insertFtaComposition
public static function insertFtaComposition($paramIdFta)
{
$pdo = DatabaseOperation::executeComplete('INSERT INTO ' . self::TABLENAME . '(' . self::FIELDNAME_ID_FTA . ',' . self::FIELDNAME_IS_COMPOSITION_FTA_COMPOSANT . ',' . self::FIELDNAME_IS_NOMENCLATURE_FTA_COMPOSANT . ')' . 'VALUES (' . $paramIdFta . ',' . '1' . ',' . '0' . ')');
$key = $pdo->lastInsertId();
return $key;
}
示例14: deleteFteFournisseurs
/**
* Suppression d'un fournisseur
*/
function deleteFteFournisseurs()
{
$this->checkFteFournisseurUsed();
DatabaseOperation::executeComplete('DELETE FROM ' . self::TABLENAME . ' WHERE ' . self::KEYNAME . '=' . $this->getKeyValue());
}
示例15: createNewRecordset
/**
* Valeurs par défaut en cas de création
* d'un nouvel enregistrement
* @param array $paramForeignKeysValuesArray
* @return int
*/
public static function createNewRecordset($paramForeignKeysValuesArray = NULL)
{
$pdo = DatabaseOperation::executeComplete('INSERT INTO ' . self::TABLENAME . '(' . self::KEYNAME . ',' . self::FIELDNAME_ID_FTA . ',' . self::FIELDNAME_CODE_ARTICLE_LDC . ',' . self::FIELDNAME_TAG_TYPE_TRANSACTION . ',' . self::FIELDNAME_ACTIF . ',' . self::FIELDNAME_DATE_ENVOI . ',' . self::FIELDNAME_ID_USER . ')' . 'VALUES (' . "\"NULL\"" . ',' . "\"" . $paramForeignKeysValuesArray[self::FIELDNAME_ID_FTA] . "\"" . ',' . "\"" . $paramForeignKeysValuesArray[self::FIELDNAME_CODE_ARTICLE_LDC] . "\"" . ',' . "\"" . "\"" . ',' . "\"" . self::OUI . "\"" . ',' . "\"" . $paramForeignKeysValuesArray[self::FIELDNAME_DATE_ENVOI] . "\"" . ',' . "\"" . $paramForeignKeysValuesArray[self::FIELDNAME_ID_USER] . "\"" . ')');
$key = $pdo->lastInsertId();
return $key;
}