本文整理汇总了PHP中Listing::GetModelByListId方法的典型用法代码示例。如果您正苦于以下问题:PHP Listing::GetModelByListId方法的具体用法?PHP Listing::GetModelByListId怎么用?PHP Listing::GetModelByListId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Listing
的用法示例。
在下文中一共展示了Listing::GetModelByListId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionCompanyEditContact
/**
* @Author: ANH DUNG Aug 05, 2014
* @Todo: CompanyEditContact at grid
* @Param: $id list id 1,2,3 ...
*/
public function actionCompanyEditContact($id)
{
try {
$model = new Listing();
$id = $this->FormatListId($id);
$aModelListing = Listing::GetModelByListId($id);
if (isset($_POST['Listing']) && is_array($_POST['Listing']['contact_name_no'])) {
Listing::UpdateModelByListId();
die('<script type="text/javascript">parent.$.fn.colorbox.close(); parent.$.fn.yiiGridView.update("listing-company-grid");</script>');
}
$this->render('CompanyEditContact', array('model' => $model, 'aModelListing' => $aModelListing, 'actions' => $this->listActionsCanAccess));
} catch (Exception $exc) {
echo $exc->getMessage();
die;
}
}
示例2: actionUpdateTelemarketer
/**
* Render popup dialog to change Telemarketer of listings
*
* @author Lam Huynh
*/
public function actionUpdateTelemarketer($id)
{
$model = new Listing();
$id = explode('-', trim($id, '-'));
$aModelListing = Listing::GetModelByListId($id);
if (isset($_POST['Listing'])) {
Listing::massUpdateTelemarketer($_POST['Listing']);
die('<script type="text/javascript">parent.$.fn.colorbox.close(); parent.$.fn.yiiGridView.update("listing-company-grid");</script>');
}
$this->renderPartial('update-telemarketer', array('model' => $model, 'aModelListing' => $aModelListing, 'actions' => $this->listActionsCanAccess));
}