本文整理汇总了PHP中x2base::actionView方法的典型用法代码示例。如果您正苦于以下问题:PHP x2base::actionView方法的具体用法?PHP x2base::actionView怎么用?PHP x2base::actionView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类x2base
的用法示例。
在下文中一共展示了x2base::actionView方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionView
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id) {
$model=$this->loadModel($id);
$model->assignedTo=UserChild::getUserLinks($model->assignedTo);
$type='project';
parent::actionView($model,$type);
}
示例2: actionView
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id) {
$type = 'sales';
$model = $this->loadModel($id);
$model->assignedTo = UserChild::getUserLinks($model->assignedTo);
$model->associatedContacts = ContactChild::getContactLinks($model->associatedContacts);
parent::actionView($model, $type);
}
示例3: actionView
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id) {
$model=$this->loadModel($id);
$model->assignedTo=UserChild::getUserLinks($model->assignedTo);
$str = '';
$contacts=ContactChild::model()->findAllByAttributes(array('company'=>$model->name));
foreach($contacts as $contact){
$str.=$contact->id.' ';
}
$model->associatedContacts=$str;
$model->associatedContacts=ContactChild::getContactLinks($model->associatedContacts);
$type='accounts';
parent::actionView($model, $type);
}
示例4: actionView
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id) {
$type='templates';
$model=$this->loadModel($id);
parent::actionView($model, $type);
}
示例5: actionView
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id) {
$contact = $this->loadModel($id);
if ($contact->assignedTo == Yii::app()->user->getName()
|| $contact->visibility == 1
|| Yii::app()->user->getName() == 'admin') {
UserChild::addRecentItem('c',$id,Yii::app()->user->getId()); ////add contact to user's recent item list
parent::actionView($contact, 'contacts');
} else
$this->redirect('index');
}