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