本文整理汇总了PHP中DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete方法的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete方法的具体用法?PHP DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete怎么用?PHP DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DatabaseOperation
的用法示例。
在下文中一共展示了DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getValidationDateByIdFtaChapitreAndIdFta
/**
* On récupère la date de validation pour une id fta et un chapitre donnée
* @param int $paramIdFta
* @param int $paramIdFtaChapitre
* @return string
*/
public static function getValidationDateByIdFtaChapitreAndIdFta($paramIdFta, $paramIdFtaChapitre)
{
$arrayDateDeValidation = DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete("SELECT " . self::FIELDNAME_DATE_VALIDATION_SUIVI_PROJET . " FROM " . self::TABLENAME . " WHERE " . self::FIELDNAME_ID_FTA_CHAPITRE . "=" . $paramIdFtaChapitre . " AND " . self::FIELDNAME_ID_FTA . "=" . $paramIdFta);
/**
* Changment de format de date
*/
$date = FtaController::changementDuFormatDeDateFR($arrayDateDeValidation["0"]);
return $date;
}
示例2: getIdFtaVerrouillageChamps
/**
* On récupère l'id du champs et du dossier primaire en cours
* @param int $paramIdFtaDossierPriamaire
* @param string $paramFieldName
* @return int
*/
public static function getIdFtaVerrouillageChamps($paramIdFtaDossierPriamaire, $paramFieldName)
{
$arrayId = DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete("SELECT " . self::KEYNAME . " FROM " . self::TABLENAME . " WHERE " . self::FIELDNAME_DOSSIER_FTA_PRIMAIRE . "=" . $paramIdFtaDossierPriamaire . " AND " . self::FIELDNAME_FIELD_NAME . "=\"" . $paramFieldName . "\"");
if ($arrayId) {
foreach ($arrayId as $rowsId) {
$keyValue = $rowsId;
}
} else {
$titre = UserInterfaceMessage::FR_WARNING_DATA_VERROUILLAGE_TITLE;
$message = UserInterfaceMessage::FR_WARNING_DATA_VERROUILLAGE;
Lib::showMessage($titre, $message, $redirection);
}
return $keyValue;
}
示例3: getArrayIdIntranetActionWithAccesRightsToFtaByUser
/**
* On récupère le tableau la liste des id intranet Action ayant accès aux module FTA par utilsateur
* @return array
*/
public static function getArrayIdIntranetActionWithAccesRightsToFtaByUser($paramIdUser)
{
$arrayAction = DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete("SELECT DISTINCT " . IntranetDroitsAccesModel::FIELDNAME_ID_INTRANET_ACTIONS . " FROM " . IntranetDroitsAccesModel::TABLENAME . " WHERE " . IntranetDroitsAccesModel::TABLENAME . "." . IntranetDroitsAccesModel::FIELDNAME_ID_USER . " = " . $paramIdUser . " AND " . IntranetDroitsAccesModel::TABLENAME . "." . IntranetDroitsAccesModel::FIELDNAME_ID_INTRANET_MODULES . " = '" . IntranetModulesModel::ID_MODULES_FTA . "' " . " AND " . IntranetDroitsAccesModel::TABLENAME . "." . IntranetDroitsAccesModel::FIELDNAME_NIVEAU_INTRANET_DROITS_ACCES . " <>'" . IntranetNiveauAccesModel::NIVEAU_GENERIC_FALSE . "'");
return $arrayAction;
}
示例4: getIdFtaChapitreBetweenArrayByWorkflowAndArrayByColumn
public static function getIdFtaChapitreBetweenArrayByWorkflowAndArrayByColumn($paramIdFtaWorkflow, $paramArrayByColumn)
{
$arrayByWorkflow = DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete("SELECT " . self::FIELDNAME_ID_FTA_CHAPITRE . " FROM " . self::TABLENAME . " WHERE " . self::FIELDNAME_ID_FTA_WORKFLOW . "=" . $paramIdFtaWorkflow);
$value = FtaController::getFirstValueArrayInterset($paramArrayByColumn, $arrayByWorkflow);
return $value;
}
示例5: cancelIdArcadiaTransaction
/**
* On désactive pour l'id Fta en cours son id Transaction
* @param int $paramIdFta
*/
public static function cancelIdArcadiaTransaction($paramIdFta)
{
$arrayCheck = DatabaseOperation::convertSqlStatementWithoutKeyToArrayComplete("SELECT " . self::KEYNAME . " FROM " . self::TABLENAME . " WHERE " . self::FIELDNAME_ID_FTA . "=" . $paramIdFta . " AND " . self::FIELDNAME_ACTIF . "=" . self::OUI . " ORDER BY " . self::KEYNAME . " DESC ");
if ($arrayCheck) {
$key = $arrayCheck["0"];
DatabaseOperation::execute("UPDATE " . self::TABLENAME . " SET " . self::FIELDNAME_ACTIF . "=" . self::NON . " WHERE " . self::KEYNAME . "=" . $key);
}
}