本文整理汇总了PHP中Model::overwriteForm方法的典型用法代码示例。如果您正苦于以下问题:PHP Model::overwriteForm方法的具体用法?PHP Model::overwriteForm怎么用?PHP Model::overwriteForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Model
的用法示例。
在下文中一共展示了Model::overwriteForm方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['camp_begin'] = new Leap\View\InputText("date", "camp_begin", "camp_begin", $this->camp_begin);
$return['camp_end'] = new Leap\View\InputText("date", "camp_end", "camp_end", $this->camp_end);
$return['camp_descr'] = new Leap\View\InputTextArea("camp_descr", "camp_descr", $this->camp_descr);
$return['camp_active'] = new Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
$return['camp_type'] = new Leap\View\InputSelect($this->type, "camp_type", "camp_type", $this->camp_type);
$return['camp_foto_panjang'] = new Leap\View\InputFoto("camp_foto_panjang", "camp_foto_panjang", $this->camp_foto_panjang);
$return['camp_foto_medium'] = new Leap\View\InputFoto("camp_foto_medium", "camp_foto_medium", $this->camp_foto_medium);
$return['camp_foto_small'] = new Leap\View\InputFoto("camp_foto_small", "camp_foto_small", $this->camp_foto_small);
$return['camp_welcome_pic'] = new Leap\View\InputFoto("camp_welcome_pic", "camp_welcome_pic", $this->camp_welcome_pic);
/*
* get max row
*
*/
$app = $this->getWhere("camp_pos_x>0 ORDER BY camp_pos_x DESC LIMIT 0,1");
$max = $app[0]->camp_pos_x + 1;
for ($x = 1; $x <= $max; $x++) {
$arrx[$x] = "row nr. : " . $x;
}
// if($this->camp_pos_x<1||$this->camp_pos_x=="")$this->camp_pos_x = 1;
$return['camp_pos_x'] = new Leap\View\InputSelect($arrx, "camp_pos_x", "camp_pos_x", $this->camp_pos_x);
$return['camp_pos_y'] = new Leap\View\InputText("hidden", "camp_pos_y", "camp_pos_y", $this->camp_pos_y);
$return['camp_size'] = new Leap\View\InputSelect($this->arrsize, "camp_size", "camp_size", $this->camp_size);
return $return;
}
示例2: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$resto = new MasterRestaurantModel();
$res = $resto->getAll();
foreach ($res as $value) {
$arrHelp[$value->id_restaurant] = $value->name;
}
$return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
$bank = new BankModel();
$arrBank = $bank->getAll();
foreach ($arrBank as $value) {
$arrHelpBank[$value->id_bank] = $value->bank_name;
}
$return['id_bank'] = new Leap\View\InputSelect($arrHelpBank, "id_bank", "id_bank", $this->id_bank);
if (!isset($this->start)) {
$dt = leap_mysqldate();
} else {
$dt = $this->start;
}
$return['start'] = new \Leap\View\InputText("date", "start", "start", $dt);
if (!isset($this->end)) {
$dt = leap_mysqldate();
} else {
$dt = $this->end;
}
$return['end'] = new \Leap\View\InputText("date", "end", "end", $dt);
return $return;
}
示例3: overwriteForm
public function overwriteForm($return, $returnfull)
{
$t = time();
$return = parent::overwriteForm($return, $returnfull);
$return['prod_attribute_array'] = new Leap\View\InputAttribute("prod_stock_" . $t, "prod_attribute_array", "prod_attribute_array", $this->prod_attribute_array);
$return['prod_pic'] = new Leap\View\InputGallery("prod_pic", "prod_pic", $this->prod_pic);
$return['prod_active'] = new Leap\View\InputSelect($this->arrayYesNO, "prod_active", "prod_active", $this->prod_active);
// $return['news_text'] = new Leap\View\InputTextArea("news_text", "news_text", $this->news_text);
$return['prod_des'] = new Leap\View\InputTextArea("prod_des", "prod_des", $this->prod_des);
$return['prod_stock'] = new Leap\View\InputText("hidden", "prod_stock_" . $t, "prod_stock", $this->prod_stock);
$return['prod_app_id'] = new Leap\View\InputText("hidden", "prod_app_id" . $t, "prod_app_id", $this->prod_app_id);
$return['prod_price'] = new Leap\View\InputPrice("prod_price", "prod_price", $this->prod_price);
$return['prod_price_diskon'] = new Leap\View\InputPrice("prod_price_diskon", "prod_price_diskon", $this->prod_price_diskon);
$p = new MProdCat();
if (count($p->tree_multi_user_constraint) > 0) {
$where = array();
foreach ($p->tree_multi_user_constraint as $attr => $val) {
$where[] = $attr . " = '" . $val . "'";
}
$impWhere = implode(" AND ", $where);
$arrPage = $p->getWhere($impWhere);
} else {
$arrPage = $p->getAll();
}
// $arrPage = $p->getAll();
//category harus sesuai tree structurenya.....
$arrNe = array();
foreach ($arrPage as $pp) {
$arrNe[$pp->cat_id] = $pp->cat_name;
}
$return['prod_cat_id'] = new Leap\View\InputSelect($arrNe, "prod_cat_id", "prod_cat_id", $this->prod_cat_id);
return $return;
}
示例4: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['topic_author'] = new Leap\View\InputText("hidden", "topic_author", "topic_author", Account::getMyID());
if ($_GET['load']) {
$return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", $this->topic_date);
} else {
$return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", leap_mysqldate());
}
$return['topic_msg'] = new Leap\View\InputTextRTE("topic_msg", "topic_msg", $this->topic_msg);
$return['topic_status'] = new Leap\View\InputSelect(array("draft" => "Draft", "publish" => "Publish"), "topic_status", "topic_status", $this->topic_status);
$return['topic_modified'] = new Leap\View\InputText("hidden", "topic_modified", "topic_modified", leap_mysqldate());
$return['topic_image'] = new \Leap\View\InputFoto("topic_image", "topic_image", $this->topic_image);
$return['topic_fb_og_image'] = new \Leap\View\InputFoto("topic_fb_og_image", "topic_fb_og_image", $this->topic_fb_og_image);
$return['topic_category'] = new \Leap\View\InputTag("BlogBE/prefetchBlogCat", "topic_category", "topic_category", $this->topic_category);
// $return['spdivider']['post_image'] = "Content";
$return['spdivider']['topic_meta_title'] = "SEO";
$return['spdivider']['topic_fb_og_title'] = "FB OpenGraph";
$return['spdivider']['topic_attachments'] = "Attachments";
$return['topic_attachments'] = new Leap\View\InputPageAttachment("topic_attachments", "topic_attachments", $this->topic_attachments);
if ($this->topic_attachment_order == "") {
$this->topic_attachment_order = Efiwebsetting::getData('PageAttachment');
}
$return['topic_attachment_order'] = new Leap\View\InputOrdering("topic_attachment_order", "topic_attachment_order", $this->topic_attachment_order);
return $return;
}
示例5: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['cal_type_color'] = new Leap\View\InputText("color", "cal_type_color", "cal_type_color", $this->cal_type_color);
$return['cal_type_active'] = new Leap\View\InputSelect($this->arrayYesNO, "cal_type_active", "cal_type_active", $this->cal_type_active);
return $return;
}
示例6: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['level_tingkatan'] = new \Leap\View\InputText("number", "level_tingkatan", "level_tingkatan", $this->level_tingkatan);
$return['level_active'] = new Leap\View\InputSelect($this->arrayYesNO, "level_active", "level_active", $this->level_active);
return $return;
}
示例7: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['camp_client_id'] = new \Leap\View\InputTextArea("camp_client_id", "camp_client_id", $this->camp_client_id);
$return['camp_start'] = new \Leap\View\InputText("date", "camp_start", "camp_start", $this->camp_start);
for ($x = 0; $x < 24; $x++) {
if ($x < 10) {
$arrs[$x] = "0" . $x . ".00";
} else {
$arrs[$x] = $x . ".00";
}
}
$return['camp_hour'] = new \Leap\View\InputSelect($arrs, "camp_hour", "camp_hour", $this->camp_hour);
$return['camp_active'] = new \Leap\View\InputSelect($this->arrayYesNO, "camp_active", "camp_active", $this->camp_active);
$return['camp_msg'] = new \Leap\View\InputTextRTE("camp_msg", "camp_msg", $this->camp_msg);
$return['camp_msg'] = new \Leap\View\InputTextArea("camp_msg", "camp_msg", $this->camp_msg);
$return['camp_url'] = new \Leap\View\InputText("text", "camp_url", "camp_url", $this->camp_url);
$return['camp_img'] = new \Leap\View\InputFoto("camp_img", "camp_img", $this->camp_img);
$return['camp_create_by'] = new \Leap\View\InputText("hidden", "camp_create_by", "camp_create_by", Account::getMyID());
$return['camp_status'] = new \Leap\View\InputSelect($this->arrStatus, "camp_status", "camp_status", $this->camp_status);
$return['spdivider']['camp_client_id'] = "Filter";
$return['spdivider']['camp_start'] = "Campaign";
$return['spdivider']['camp_client_id'] = "Accounts";
return $return;
}
示例8: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['brand_pic'] = new \Leap\View\InputFoto("brand_pic", "brand_pic", $this->brand_pic);
$return['brand_des'] = new Leap\View\InputTextArea("brand_des", "brand_des", $this->brand_des);
return $return;
}
示例9: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$resto = new MasterRestaurantModel();
$res = $resto->getAll();
foreach ($res as $value) {
$arrHelp[$value->id_restaurant] = $value->name;
}
$return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
$bank = new BankModel();
$return['end_mr_fee'] = new \Leap\View\InputText("date", "end_mr_fee", "end_mr_fee", $dt);
$return['fee'] = new Leap\View\InputTextRightAddOn("text", "fee", "fee", " % ", $this->fee);
$return['mr_fee_select'] = new Leap\View\InputRadioButtonHideWhen(array(1 => "Yes", 0 => "No"), "mr_fee_select", "mr_fee_select", $this->mr_fee_select, array(1 => "formgroup_start_mr_fee,formgroup_end_mr_fee", 0 => "formgroup_start_mr_fee,formgroup_end_mr_fee"));
if ($this->mr_fee_select == 0) {
if (!isset($this->start_mr_fee)) {
$dt = leap_mysqldate();
} else {
$dt = $this->start_mr_fee;
}
$return['start_mr_fee'] = new \Leap\View\InputText("date", "start_mr_fee", "start_mr_fee", $dt);
if (!isset($this->end_mr_fee)) {
$dta = leap_mysqldate();
} else {
$dta = $this->end_mr_fee;
}
$return['end_mr_fee'] = new \Leap\View\InputText("date", "end_mr_fee", "end_mr_fee", $dta);
} else {
}
return $return;
}
示例10: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
//comment di set di page
$return['test_files'] = new Leap\View\InputFileMultiple("test_files", "test_files", $this->test_files);
return $return;
}
示例11: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['type_order'] = new Leap\View\InputText("text", "type_order", "type_order", $this->arrOrderType[$this->type_order]);
$return['type_order']->setReadOnly(1);
$return['order_now'] = new Leap\View\InputText("text", "type_order", "type_order", $this->arrOrderNow[$this->order_now]);
$return['order_now']->setReadOnly(1);
$return['status_progress'] = new Leap\View\InputText("text", "status_progress", "status_progress", $this->arrStatusProgress[$this->status_progress]);
$return['status_progress']->setReadOnly(1);
$return['voided'] = new Leap\View\InputSelect($this->arrYesNo, "voided", "voided", $this->arrYesNo[$this->voided]);
$return['status'] = new Leap\View\InputText("text", "status", "status", $this->arrStatusOrder[$this->status]);
$return['status']->setReadOnly(1);
$resto = new MasterRestaurantModel();
$resto->getByID($this->id_restaurant);
$return['id_restaurant'] = new \Leap\View\InputText("text", "id_restaurant", "id_restaurant", $resto->name);
$return['id_restaurant']->setReadOnly(1);
if ($this->id_table == "0") {
$return['id_table'] = new \Leap\View\InputText("text", "id_table", "id_table", "Take Away");
} else {
$tab = new MasterTableModel();
$tab->getByID($this->id_table);
$return['id_table'] = new \Leap\View\InputText("text", "id_table", "id_table", "Table ID " . $this->id_table . " - Table No. " . $tab->table_number);
}
$return['id_table']->setReadOnly(1);
foreach ($return as $key => $val) {
$return[$key]->setReadOnly();
}
return $return;
}
示例12: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['tnc_text'] = new \Leap\View\InputTextRTE("tnc_text", "tnc_text", $this->tnc_text);
$return['tnc_rank'] = new \Leap\View\InputText("number", "tnc_rank", "tnc_rank", $this->tnc_rank);
$return['tnc_aktif'] = new Leap\View\InputSelect($this->arrayYesNO, "tnc_aktif", "tnc_aktif", $this->tnc_aktif);
return $return;
}
示例13: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['banner_active'] = new Leap\View\InputSelect($this->arrayYesNO, "banner_active", "banner_active", $this->banner_active);
$return['banner_img'] = new Leap\View\InputFoto("banner_img", "banner_img", $this->banner_img);
// $return['app_contract_end'] = new Leap\View\InputText("date","app_contract_end","app_contract_end",$this->app_contract_end);
return $return;
}
示例14: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['ads_pic'] = new \Leap\View\InputFoto("ads_pic", "ads_pic", $this->ads_pic);
$return['ads_active'] = new Leap\View\InputSelect($this->arrayYesNO, "ads_active", "ads_active", $this->ads_active);
$return['ads_type'] = new Leap\View\InputSelect($this->arrType, "ads_type", "ads_type", $this->ads_type);
$return['ads_urutan'] = new Leap\View\InputText("number", "ads_urutan", "ads_urutan", $this->ads_urutan);
return $return;
}
示例15: overwriteForm
public function overwriteForm($return, $returnfull)
{
$return = parent::overwriteForm($return, $returnfull);
$return['related_active'] = new Leap\View\InputSelect($this->arrayYesNO, "related_active", "related_active", $this->related_active);
$return['related_group'] = new \Leap\View\InputConditionTBS("related_group", "related_group", $this->related_group);
$return['related_target_group'] = new \Leap\View\InputConditionTBS("related_target_group", "related_target_group", $this->related_target_group);
$return['related_priority'] = new \Leap\View\InputText("number", "related_priority", "related_priority", $this->related_priority);
return $return;
}