php BindEvents类(方法)实例源码

下面列出了php BindEvents 类(方法)源码代码实例,从而了解它的用法。

作者:rayminam    项目:mpd-onlin   
//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();

作者:santo-    项目:do_sql.j   
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();
}


问题


面经


文章

微信
公众号

扫码关注公众号