本文整理匯總了PHP中ContentPeer::doSelectOne方法的典型用法代碼示例。如果您正苦於以下問題:PHP ContentPeer::doSelectOne方法的具體用法?PHP ContentPeer::doSelectOne怎麽用?PHP ContentPeer::doSelectOne使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ContentPeer
的用法示例。
在下文中一共展示了ContentPeer::doSelectOne方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: executeChangeGradeItem
public function executeChangeGradeItem(sfWebRequest $request)
{
if ($request->isXmlHttpRequest()) {
if ($request->getParameter('idgradeunit') != '') {
try {
updateGradeImte($request->getParameter('idgradeunit'), $request->getParameter('idhorario'), $request->getParameter('iddisciplina'), $request->getParameter('idprofessor'), $request->getParameter('idlocal'), $request->getParameter('idweekday'));
} catch (Exception $e) {
}
$c = new Criteria();
$c->add(GradeunitPeer::ID, intval($request->getParameter('idgradeunit')));
$this->content = ContentPeer::doSelectOne($c);
if ($this->content) {
$this->user = sfGuardUserPeer::retrieveByPK($this->content->getUserId());
}
return $this->content ? sfView::SUCCESS : sfView::ERROR;
}
}
$this->forward404();
}
示例2: Criteria
</tbody>
</table>
</td>
</tr>
</table>
<?php
}
if ($actionAjax == "showDynaformHistoryGetNomDynaform_JXP") {
require_once 'classes/model/ContentPeer.php';
//!dataInput
$idDin = $_REQUEST['idDin'];
$dynDate = $_REQUEST["dynDate"];
//!dataOuput
$md5Hash = "";
$dynTitle = '';
$c = new Criteria();
$c0 = $c->getNewCriterion(ContentPeer::CON_ID, $idDin);
$c1 = $c->getNewCriterion(ContentPeer::CON_CATEGORY, 'DYN_TITLE');
$c0->addAnd($c1);
$c->add($c0);
$contentObjeto = ContentPeer::doSelectOne($c);
if (is_object($contentObjeto)) {
$dynTitle = $contentObjeto->getConValue();
}
$md5Hash = G::encryptOld($idDin . $dynDate);
//assign task
$result = new stdClass();
$result->dynTitle = $dynTitle;
$result->md5Hash = $md5Hash;
echo G::json_encode($result);
}