當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BindEvents函數代碼示例

本文整理匯總了PHP中BindEvents函數的典型用法代碼示例。如果您正苦於以下問題:PHP BindEvents函數的具體用法?PHP BindEvents怎麽用?PHP BindEvents使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了BindEvents函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CCGetEvent

//Include events file @1-770683A3
include_once "./t_order_log_kronologis_form_events.php";
//End Include events file
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-F3F60688
$DBConnSIKP = new clsDBConnSIKP();
$MainPage->Connections["ConnSIKP"] =& $DBConnSIKP;
$Attributes = new clsAttributes("page:");
$MainPage->Attributes =& $Attributes;
// Controls
$t_order_log_kronologisForm =& new clsRecordt_order_log_kronologisForm("", $MainPage);
$MainPage->t_order_log_kronologisForm =& $t_order_log_kronologisForm;
$t_order_log_kronologisForm->Initialize();
BindEvents();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage);
if ($Charset) {
    header("Content-Type: " . $ContentType . "; charset=" . $Charset);
} else {
    header("Content-Type: " . $ContentType);
}
//End Initialize Objects
//Initialize HTML Template @1-52F9C312
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage);
$Tpl = new clsTemplate($FileEncoding, $TemplateEncoding);
$Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252");
$Tpl->block_path = "/{$BlockToParse}";
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage);
$Attributes->SetValue("pathToRoot", "../");
$Attributes->Show();
開發者ID:rayminami,項目名稱:mpd-online,代碼行數:31,代碼來源:t_order_log_kronologis_form.php

示例2: CCInitializeDetails

function CCInitializeDetails(&$Component, $ComponentType)
{
    global $MainPage;
    $json = $_POST["CCSDetailControls"];
    $JsonParser = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
    $controls = $JsonParser->decode(stripslashes($json));
    $_POST = array_merge($_POST, $controls);
    $_GET["ccsForm"] = $Component->ComponentName;
    $ComponentClassName = get_class($Component);
    $parent_page =& CCGetParentPage($Component);
    if ($parent_page->ComponentType == "IncludablePage") {
        $Component = new $ComponentClassName("", $parent_page);
        $Component->Initialize();
        $parent_page->BindEvents();
    } else {
        $Component = new $ComponentClassName("", $MainPage);
        $Component->Initialize();
        BindEvents();
    }
    if ($ComponentType == "EditableGrid") {
        $Component->GetFormParameters();
    }
    return $Component->Validate();
}
開發者ID:santo-s,項目名稱:do_sql.js,代碼行數:24,代碼來源:Common.php


注:本文中的BindEvents函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。