本文整理匯總了PHP中lesson::open方法的典型用法代碼示例。如果您正苦於以下問題:PHP lesson::open方法的具體用法?PHP lesson::open怎麽用?PHP lesson::open使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類lesson
的用法示例。
在下文中一共展示了lesson::open方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getApprLessByIdMonth
function getApprLessByIdMonth($idUser, $month)
{
$query = $this->con->genericQuery("select l._id,fk_mobile, l.fk_client, DATE_FORMAT( l.date, '%d/%m/%Y' ) as date, c.name as client, d.description as discipline, l.hours, l.currency, l.value_wo_discount, l.value_discount, l.value_total_user from " . $this->table . " l inner join disciplines d on l.fk_discipline = d._id inner join clients c on l.fk_client = c._id where fk_user = " . $idUser . " and MONTH(date)='" . $month . "' and fk_less_stat = 2");
$objReturn = array();
foreach ($query as $value) {
$less = new lesson();
$less->open($value);
$objReturn[] = $less;
}
return $objReturn;
}