本文整理汇总了PHP中Record::setParam方法的典型用法代码示例。如果您正苦于以下问题:PHP Record::setParam方法的具体用法?PHP Record::setParam怎么用?PHP Record::setParam使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Record
的用法示例。
在下文中一共展示了Record::setParam方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setRecord
public function setRecord()
{
$nCoolType = isset($_GET['type']) ? $_GET['type'] : '';
$this->setCoolType($nCoolType);
parent::setParam();
$this->checkParam();
}
示例2: setRecord
public function setRecord()
{
$this->width = isset($_GET['width']) ? $_GET['width'] : 720;
$this->height = isset($_GET['height']) ? $_GET['height'] : 1280;
$this->type = isset($_GET['type']) ? $_GET['type'] : 0;
$this->subtype = (int) (isset($_GET['subtype']) ? $_GET['subtype'] : 0);
$this->keyword = isset($_GET['keyword']) ? $_GET['keyword'] : '';
parent::setParam();
}
示例3: setRecord
public function setRecord()
{
$this->product = trim(isset($_GET['product']) ? $_GET['product'] : '');
// $this->width = isset($_GET['width'])?$_GET['width']:720;
// $this->height = isset($_GET['height'])?$_GET['height']:1280;
$this->vercode = (int) (isset($_GET['versionCode']) ? $_GET['versionCode'] : 0);
parent::setParam();
$this->checkParam();
}
示例4: setRecord
public function setRecord()
{
$this->product = trim(isset($_GET['product']) ? $_GET['product'] : '');
$this->width = (int) (isset($_GET['width']) ? $_GET['width'] : 720);
$this->height = (int) (isset($_GET['height']) ? $_GET['height'] : 1280);
$this->channel = (int) (isset($_GET['channel']) ? $_GET['channel'] : 5);
$this->cpid = isset($_GET['id']) ? $_GET['id'] : '';
$nCoolType = (int) (isset($_GET['type']) ? $_GET['type'] : 0);
$this->setCoolType($nCoolType);
parent::setParam();
$this->checkParam();
}
示例5: setRecord
public function setRecord()
{
if (isset($_POST['statis'])) {
$json_param = isset($_POST['statis']) ? $_POST['statis'] : '';
$json_param = stripslashes($json_param);
$arr_param = json_decode($json_param, true);
$this->item = isset($arr_param['settingItem']) ? $arr_param['settingItem'] : '';
$this->state = isset($arr_param['state']) ? $arr_param['state'] : 0;
$this->cid = isset($arr_param['cid']) ? $arr_param['cid'] : 0;
}
parent::setParam();
$this->checkParam();
}
示例6: setRecord
public function setRecord()
{
$this->product = trim(isset($_GET['product']) ? $_GET['product'] : '');
$this->width = (int) (isset($_GET['width']) ? $_GET['width'] : 720);
$this->height = (int) (isset($_GET['height']) ? $_GET['height'] : 1280);
$this->type = (int) (isset($_GET['reqType']) ? $_GET['reqType'] : 0);
$this->type = (int) (isset($_GET['code']) ? $_GET['code'] : $this->type);
//兼容旧版本未做动态分类的代码,新版本实际类型为code字段值
$this->channel = (int) (isset($_GET['channel']) ? $_GET['channel'] : 5);
$this->vercode = (int) (isset($_GET['versionCode']) ? $_GET['versionCode'] : 0);
$nCoolType = (int) (isset($_GET['type']) ? $_GET['type'] : 4);
$this->setCoolType($nCoolType);
parent::setParam();
$this->checkParam();
}
示例7: setRecord
public function setRecord()
{
$this->id = isset($_GET['id']) ? $_GET['id'] : '';
$this->cpid = isset($_GET['cpid']) ? $_GET['cpid'] : '';
if (empty($this->cpid)) {
$this->cpid = $this->id;
}
$this->url = '';
//isset($_GET['url'])?$_GET['url']:'';
$this->type = (int) (isset($_GET['type']) ? $_GET['type'] : 0);
$this->channel = (int) (isset($_GET['channel']) ? $_GET['channel'] : 0);
$this->page = (int) (isset($_GET['pageno']) ? $_GET['pageno'] : 0);
$this->position = (int) (isset($_GET['position']) ? $_GET['position'] : 0);
$nCoolType = isset($_GET['moduletype']) ? $_GET['moduletype'] : '';
$this->setCoolType($nCoolType);
parent::setParam();
$this->checkParam();
}
示例8: setRecord
public function setRecord()
{
$this->id = isset($_GET['id']) ? $_GET['id'] : '';
$this->cpid = isset($_GET['cpid']) ? $_GET['cpid'] : '';
$this->applytype = (int) (isset($_GET['applytype']) ? $_GET['applytype'] : 0);
$nCoolType = isset($_GET['moduletype']) ? $_GET['moduletype'] : '';
$this->setCoolType($nCoolType);
if ($nCoolType == COOLXIU_TYPE_THEMES_CONTACT) {
$this->applytype = REQUEST_CHANNEL_CONTACT;
}
if ($nCoolType == COOLXIU_TYPE_THEMES_ICON) {
$this->applytype = REQUEST_CHANNEL_ICON;
}
if ($nCoolType == COOLXIU_TYPE_LIVE_WALLPAPER) {
$this->applytype = REQUEST_CHANNEL_LIVEWP;
}
parent::setParam();
$this->checkParam();
}
示例9: setRecord
public function setRecord()
{
$this->product = trim(isset($_GET['product']) ? $_GET['product'] : '');
$this->width = (int) (isset($_GET['width']) ? $_GET['width'] : 720);
$this->height = (int) (isset($_GET['height']) ? $_GET['height'] : 1280);
$this->type = (int) (isset($_GET['reqType']) ? $_GET['reqType'] : 0);
$this->type = (int) (isset($_GET['type']) ? $_GET['type'] : $this->type);
$this->subtype = (int) (isset($_GET['code']) ? $_GET['code'] : $this->type);
//兼容旧版本未做动态分类的代码,新版本实际类型为code字段值
$this->subtype = (int) (isset($_GET['subtype']) ? $_GET['subtype'] : $this->subtype);
$this->channel = (int) (isset($_GET['chanel']) ? $_GET['chanel'] : 0);
$this->vercode = (int) (isset($_GET['versionCode']) ? $_GET['versionCode'] : 0);
$nSort = (int) (isset($_GET['sort']) ? $_GET['sort'] : 0);
$nCharge = (int) (isset($_GET['charge']) ? $_GET['charge'] : 2);
if ($nSort == COOLXIU_SEARCH_CHOICE) {
$this->channel = REQUEST_CHANNEL_CHOICE;
}
if ($nCharge == 0) {
$this->channel = REQUEST_CHANNEL_CHARGE_NO;
}
if ($nCharge == 1) {
$this->channel = REQUEST_CHANNEL_CHARGE_YES;
}
$nCoolType = (int) (isset($_GET['moduletype']) ? $_GET['moduletype'] : '');
if ($nCoolType == COOLXIU_TYPE_THEMES_CONTACT) {
$this->channel = REQUEST_CHANNEL_CONTACT;
}
if ($nCoolType == COOLXIU_TYPE_THEMES_ICON) {
$this->channel = REQUEST_CHANNEL_ICON;
}
if ($nCoolType == COOLXIU_TYPE_LIVE_WALLPAPER) {
$this->channel = REQUEST_CHANNEL_LIVEWP;
}
$this->setCoolType($nCoolType);
parent::setParam();
$this->checkParam();
}