本文整理汇总了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);
}