本文整理汇总了PHP中Crud::run方法的典型用法代码示例。如果您正苦于以下问题:PHP Crud::run方法的具体用法?PHP Crud::run怎么用?PHP Crud::run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Crud
的用法示例。
在下文中一共展示了Crud::run方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page
public function page()
{
//create the model object
$cal = new Page();
//send the webclass
$webClass = __CLASS__;
//by pass the form
$cmd = isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'read';
if ($cmd == "edit") {
//Crud::createForm($obj,$webClass);
//die('edit');
$id = isset($_GET['id']) ? addslashes($_GET['id']) : 0;
if ($id) {
$cal->getByID($id);
}
$mps['id'] = $id;
$mps['obj'] = $cal;
Mold::plugin("Page", "pageForm", $mps);
exit;
}
$cid = addslashes($_GET['cid']);
if ($cid != "") {
$_SESSION['pageConID'] = $cid;
} else {
//unset($_SESSION['pageConID']);
}
$cal->read_filter_array = array("post_gallery_id" => $_SESSION['pageConID']);
//echo $cid;
//pr($cal);
//run the crud utility
Crud::run($cal, $webClass);
//pr($mps);
}
示例2: qRRequestModel
public function qRRequestModel()
{
//create the model object
$cal = new QRRequestModel();
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例3: masterReceiptModel
public function masterReceiptModel()
{
//create the model object
$cal = new MasterReceiptModel();
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例4: MTranDetail
function MTranDetail()
{
$cal = new MTranDetail();
// $cal->printColumlistAsAttributes();
//send the webclass
$webClass = __CLASS__;
Crud::run($cal, $webClass);
}
示例5: PushLogger
function PushLogger()
{
$cal = new PushLogger();
// $cal->printColumlistAsAttributes();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例6: masterRestaurantTagModel
public function masterRestaurantTagModel()
{
//create the model object
$cal = new MasterRestaurantTagModel();
//send the webclass
$webClass = __CLASS__;
//run the crud utileity
Crud::run($cal, $webClass);
}
示例7: DeviceModel
function DeviceModel()
{
$cal = new DeviceModel();
// $cal->printColumlistAsAttributes();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例8: QuizIklan
public function QuizIklan()
{
//create the model object
$cal = new QuizIklan();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例9: topicmap
public function topicmap()
{
//create the model object
$gr = new Topicmap();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($gr, $webClass);
}
示例10: BlogCategory
function BlogCategory()
{
$cal = new BlogCategory();
// $cal->printColumlistAsAttributes();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例11: CampaignModel
public function CampaignModel()
{
//create the model object
$cal = new CampaignModel();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例12: Testing
function Testing()
{
//create the model object
$cal = new Testing();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例13: SocmedPortal
public function SocmedPortal()
{
//create the model object
$cal = new SocmedPortal();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
}
示例14: homesettingModel
public function homesettingModel()
{
//create the model object
$cal = new HomeSettingModel();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
//pr($mps);
}
示例15: masterDishTagModel
public function masterDishTagModel()
{
//create the model object
$cal = new MasterDishTagModel();
//send the webclass
$webClass = __CLASS__;
//run the crud utility
Crud::run($cal, $webClass);
// pr($mps);
}