本文整理汇总了PHP中Tracking::save方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::save方法的具体用法?PHP Tracking::save怎么用?PHP Tracking::save使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracking
的用法示例。
在下文中一共展示了Tracking::save方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionGroupSaveTracktiles
public function actionGroupSaveTracktiles()
{
$tileid = $_REQUEST['tileid'];
$frndid = $_REQUEST['frndid'];
$tileform = new Tracking();
$tileform->tracker_userid = Yii::app()->session['login']['id'];
$tileform->tracked_userid = $frndid;
$tileform->tracked_tileid = $tileid;
$tileform->tracked_type = 61;
$tileform->createddate = new CDbExpression('NOW()');
$tileform->status = 1;
//0
$userid = Yii::app()->session['login']['id'];
$inc = $_REQUEST['inc'];
$class = "unfollow-finao";
if (empty($inc)) {
$inc = 0;
$class = "orange-button";
}
if (empty($tileform->tracker_userid)) {
echo "<div id = 'trackid-'" . $frndid . " > <input class='" . $class . "' type='button' value='Please Login To Follow FINAO'></div>";
} else {
if ($tileform->save()) {
echo '<a onclick="unfollow_groups(' . $userid . ',' . $tileid . ')" class="white-link font-12px" href="javascript:void(0)" >Unfollow Group</a>';
}
}
}