本文整理匯總了PHP中Crypt::setCol方法的典型用法代碼示例。如果您正苦於以下問題:PHP Crypt::setCol方法的具體用法?PHP Crypt::setCol怎麽用?PHP Crypt::setCol使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Crypt
的用法示例。
在下文中一共展示了Crypt::setCol方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Defuntion
}
$child->setId($_POST["idChild"]);
$child->setNames($_POST["nameChild"]);
$child->setLastname1($_POST["lastname1Child"]);
$child->setLastname2($_POST["lastname2Child"]);
$defuntion = new Defuntion();
$defuntion->setId($_POST["idDefuntion"]);
$defuntion->setDeadDate(DatabaseManager::singleDateToDatabaseDate($_POST["celebrationDate"]));
$defuntion->setIdChurch($church->getId());
$defuntion->setIdOwner($child->getId());
//Get the defuntion Crypt
if ($_POST["idCrypt"] == '0') {
if ($_POST["inCrypt"] == "true") {
$myCrypt = new Crypt();
$myCrypt->setIdNiche($church->getIdNiche());
$myCrypt->setCol($_POST["cryptColumn"]);
$myCrypt->setRow($_POST["cryptRow"]);
$myCrypt->setNumber($_POST["cryptNumber"]);
DefuntionManager::addCrypt($myCrypt);
$singleCrypt = DefuntionManager::getSingleCrypt('col', $myCrypt->getCol(), 'row', $myCrypt->getRow(), 'idNiche', $myCrypt->getIdNiche(), 'number', $myCrypt->getNumber());
$defuntion->setIdCrypt($singleCrypt->getId());
} else {
$defuntion->setIdCrypt(NULL);
}
} else {
if ($_POST["inCrypt"] == "true") {
$myCrypt = DefuntionManager::getSingleCrypt('id', $_POST["idCrypt"]);
$myCrypt->setIdNiche($church->getIdNiche());
$myCrypt->setCol($_POST["cryptColumn"]);
$myCrypt->setRow($_POST["cryptRow"]);
$myCrypt->setNumber($_POST["cryptNumber"]);