当前位置: 首页>>代码示例>>PHP>>正文


PHP Lead::unsetAttributes方法代码示例

本文整理汇总了PHP中Lead::unsetAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Lead::unsetAttributes方法的具体用法?PHP Lead::unsetAttributes怎么用?PHP Lead::unsetAttributes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Lead的用法示例。


在下文中一共展示了Lead::unsetAttributes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: actionUseradmin

    public function actionUseradmin()
    {
        $user_id = Yii::app()->user->id;
        $model = new Lead('search');
        $model->unsetAttributes();
        if (isset($_POST['property_exists'])) {
            echo "hello";
            $user_id = Yii::app()->user->id;
            $sta = 1;
            $sts = 2;
            $stt = 3;
            $stf = 4;
            $p_id = $_POST['property_exists'];
            Yii::app()->SESSION['p_id'] = $_POST['property_exists'];
            $data = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $sta . '" and s.property_id="' . $p_id . '"')->queryAll();
            $inst = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $sts . '" and s.property_id="' . $p_id . '"')->queryAll();
            $instbn = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $stt . '" and s.property_id="' . $p_id . '"')->queryAll();
            $sad = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $stf . '" and s.property_id="' . $p_id . '"')->queryAll();
        } else {
            $user_id = Yii::app()->user->id;
            $sta = 1;
            $sts = 2;
            $stt = 3;
            $stf = 4;
            $data = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $sta . '"')->queryAll();
            $inst = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $sts . '"')->queryAll();
            $instbn = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $stt . '"')->queryAll();
            $sad = Yii::app()->db->createCommand('select  m.propert_name, 							s.organisation_name,s.phone_1,s.email_id,s.message,s.id,s.enquiry_source,s.status,s.first_name from tbl_lead_fields s
		join tbl_lead_users mr on mr.leads_id=s.id
		join tbl_propery_details m on m.id=s.property_id
		where mr.user_id="' . $user_id . '" and s.status="' . $stf . '"')->queryAll();
        }
        // clear any default values
        if (isset($_GET['Lead'])) {
            $model->attributes = $_GET['Lead'];
        }
        $this->render('admin', array('model' => $model, 'datamodel' => $data, 'insts' => $inst, 'instt' => $instbn, 'sads' => $sad));
    }
开发者ID:aftavwani,项目名称:Master,代码行数:59,代码来源:LeadController.php


注:本文中的Lead::unsetAttributes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。