当前位置: 首页>>代码示例>>PHP>>正文


PHP getDebugBacktrace函数代码示例

本文整理汇总了PHP中getDebugBacktrace函数的典型用法代码示例。如果您正苦于以下问题:PHP getDebugBacktrace函数的具体用法?PHP getDebugBacktrace怎么用?PHP getDebugBacktrace使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getDebugBacktrace函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor JavaScript
  * @param string $code_javascript 
  * @param boolean $add_js_to_page [default value: false]
  */
 function __construct($code_javascript, $add_js_to_page = false)
 {
     parent::__construct();
     if (!isset($code_javascript)) {
         throw new NewException("1 argument for " . get_class($this) . "::__construct() is mandatory", 0, getDebugBacktrace(1));
     }
     $this->code_javascript = $code_javascript;
     $this->is_javascript_object = true;
     if ($add_js_to_page) {
         $page_object = Page::getInstance($_GET['p']);
         if (gettype($code_javascript) != "object") {
             // search in javascript if begin by $(document).ready(
             // then put javascript to the end (for AJAX because doc is already loaded)
             $tmp_code_javascript = trim(str_replace("\t", "", $code_javascript));
             $pos_doc_ready = find($tmp_code_javascript, "\$(document).ready(", 1);
             $pos_jquery_ready = find($tmp_code_javascript, "jQuery(document).ready(", 1);
             if ($pos_doc_ready >= 18 && $pos_doc_ready <= 30 || $pos_jquery_ready >= 23 && $pos_jquery_ready <= 35) {
                 // 30|35: beacause of tag //<![CDATA[
                 $page_object->addObject($this, false, true);
             } else {
                 $page_object->addObject($this);
             }
         } else {
             $page_object->addObject($this);
         }
     }
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:32,代码来源:JavaScript.class.php

示例2: __construct

 /**
  * Constructor Hidden
  * @param mixed $page_or_form_object 
  * @param string $name 
  * @param string $id 
  * @param string $value 
  */
 function __construct($page_or_form_object, $name = '', $id = '', $value = '')
 {
     parent::__construct();
     if (!isset($page_or_form_object) || gettype($page_or_form_object) != "object" || !is_subclass_of($page_or_form_object, "Page") && get_class($page_or_form_object) != "Form") {
         throw new NewException("Argument page_or_form_object for " . get_class($this) . "::__construct() error", 0, getDebugBacktrace(1));
     }
     if (is_subclass_of($page_or_form_object, "Page")) {
         $this->class_name = get_class($page_or_form_object);
         $this->page_object = $page_or_form_object;
         $this->form_object = null;
     } else {
         $this->page_object = $page_or_form_object->getPageObject();
         $this->class_name = get_class($this->page_object) . "_" . $page_or_form_object->getName();
         $this->form_object = $page_or_form_object;
     }
     if ($name == "") {
         $name = $this->page_object->createObjectName($this);
         $this->name = $name;
     } else {
         $exist_object = $this->page_object->existsObjectName($name);
         $this->name = $name;
         if ($exist_object != false) {
             throw new NewException("Tag name \"" . $name . "\" for object " . get_class($this) . " already use for other object " . get_class($exist_object), 0, getDebugBacktrace(1));
         }
         $this->page_object->addEventObject($this, $this->form_object);
     }
     if ($id == "") {
         $this->id = $name;
     } else {
         $this->id = $id;
     }
     $this->value = $value;
     $this->default_value = $value;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:41,代码来源:Hidden.class.php

示例3: decryptMessage

function decryptMessage($crypttext, $priv_key, $passphrase = 'passphrase')
{
    $crypttext = base64_decode($crypttext);
    $res = openssl_pkey_get_private($priv_key, $passphrase);
    if ($res != false) {
        if (openssl_private_decrypt($crypttext, $text, $res)) {
            return $text;
        } else {
            $error = "";
            while ($msg = openssl_error_string()) {
                $error .= $msg . "<br />\n";
            }
            $error = __(DECRYPT_ERROR) . (DEBUG && $error != "" ? " : " . $error : "");
            throw new NewException($error, 0, false);
        }
    } else {
        $error = "";
        while ($msg = openssl_error_string()) {
            $error .= $msg . "<br />\n";
        }
        $error = "Error parsing private key" . ($error != "" ? " : " . $error : "");
        throw new NewException($error, 0, getDebugBacktrace(1));
    }
    return "";
}
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:25,代码来源:utils_openssl.inc.php

示例4: __construct

 /**
  * Constructor DataRowIterator
  * @param mixed $db_table_object 
  */
 function __construct($db_table_object)
 {
     if (!isset($db_table_object)) {
         throw new NewException("1 argument for " . get_class($this) . "::__construct() is mandatory", 0, getDebugBacktrace(1));
     }
     $this->db_table_object = $db_table_object;
     $this->rows_num = 0;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:12,代码来源:DataRowIterator.class.php

示例5: __construct

 /**
  * Constructor Url
  * @param mixed $url 
  */
 function __construct($url)
 {
     parent::__construct();
     if (!isset($url)) {
         throw new NewException("1 argument for " . get_class($this) . "::__construct() is mandatory", 0, getDebugBacktrace(1));
     }
     $this->url = $url;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:12,代码来源:Url.class.php

示例6: __construct

 /**
  * Constructor Criteo
  * @param mixed $criteo_zone_id 
  * @param string $width 
  * @param string $height 
  */
 function __construct($criteo_zone_id, $width = '', $height = '')
 {
     parent::__construct();
     if (!isset($criteo_zone_id)) {
         throw new NewException("1 argument for " . get_class($this) . "::__construct() is mandatory", 0, getDebugBacktrace(1));
     }
     $this->criteo_zone_id = $criteo_zone_id;
     $this->width = $width;
     $this->height = $height;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:16,代码来源:Criteo.class.php

示例7: __construct

 /**
  * Constructor DockMenuItem
  * @param mixed $img 
  * @param mixed $value 
  * @param string $link 
  */
 function __construct($img, $value, $link = '')
 {
     parent::__construct();
     if (!isset($img) && !isset($value)) {
         throw new NewException("2 arguments for " . get_class($this) . "::__construct() are mandatory", 0, getDebugBacktrace(1));
     }
     $this->img = $img;
     $this->value = $value;
     $this->link = $link;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:16,代码来源:DockMenuItem.class.php

示例8: __construct

 /**
  * Constructor VideoYoutube
  * @param mixed $youtube_video_key 
  * @param integer $width 
  * @param integer $height 
  */
 function __construct($youtube_video_key, $width, $height)
 {
     parent::__construct();
     if (!isset($youtube_video_key) && !isset($width) && !isset($height)) {
         throw new NewException("3 arguments for " . get_class($this) . "::__construct() are mandatory", 0, getDebugBacktrace(1));
     }
     $this->youtube_video_key = $youtube_video_key;
     $this->width = $width;
     $this->height = $height;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:16,代码来源:VideoYoutube.class.php

示例9: setMenuItems

 /**
  * Method setMenuItems
  * @access public
  * @param mixed $menu_items_object 
  * @return MenuItem
  * @since 1.0.35
  */
 public function setMenuItems($menu_items_object)
 {
     if (get_class($menu_items_object) != "MenuItems") {
         throw new NewException("Error MenuItem->setMenuItems(): {$menu_items_object} is not a MenuItems object", 0, getDebugBacktrace(1));
     }
     $this->menu_items = $menu_items_object;
     if ($GLOBALS['__PAGE_IS_INIT__']) {
         $this->object_change = true;
     }
     return $this;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:18,代码来源:MenuItem.class.php

示例10: __construct

 /**
  * Constructor Adsense
  * @param mixed $google_ad_client 
  * @param mixed $google_ad_slot 
  * @param mixed $google_ad_width 
  * @param mixed $google_ad_height 
  */
 function __construct($google_ad_client, $google_ad_slot, $google_ad_width, $google_ad_height)
 {
     parent::__construct();
     if (!isset($google_ad_client) && !isset($google_ad_slot) && !isset($google_ad_width) && !isset($google_ad_height)) {
         throw new NewException("4 arguments for " . get_class($this) . "::__construct() are mandatory", 0, getDebugBacktrace(1));
     }
     $this->google_ad_client = $google_ad_client;
     $this->google_ad_slot = $google_ad_slot;
     $this->google_ad_width = $google_ad_width;
     $this->google_ad_height = $google_ad_height;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:18,代码来源:Adsense.class.php

示例11: __construct

 /**
  * Constructor Font
  * @param object $content_object 
  * @param string $font_size 
  * @param string $font_family 
  * @param string $font_weight 
  */
 function __construct($content_object, $font_size = '', $font_family = '', $font_weight = '')
 {
     parent::__construct();
     if (!isset($content_object)) {
         throw new NewException("1 argument for " . get_class($this) . "::__construct() is mandatory", 0, getDebugBacktrace(1));
     }
     $this->content_object = $content_object;
     $this->font_size = $font_size;
     $this->font_family = $font_family;
     $this->font_weight = $font_weight;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:18,代码来源:Font.class.php

示例12: askUserToSharePosition

 /**
  * Method askUserToSharePosition
  * @access public
  * @param boolean $refresh_page [default value: false]
  * @param string $js_onsuccess 
  * @return GeoLocalisation
  * @since 1.0.98
  */
 public function askUserToSharePosition($refresh_page = false, $js_onsuccess = '')
 {
     $GLOBALS['__GEOLOC_ASK_USER_SHARE_POSITION__'] = true;
     if (gettype($js_onsuccess) != "string" && get_class($js_onsuccess) != "JavaScript") {
         throw new NewException(get_class($this) . "->askUserToSharePosition(): \$js_onsuccess must be a string or JavaScript object.", 0, getDebugBacktrace(1));
     }
     if (get_class($js_onsuccess) == "JavaScript") {
         $js_onsuccess = $js_onsuccess->render();
     }
     $_SESSION['geolocalisation_user_share_js'] = $js_onsuccess . ($refresh_page ? "refreshPage();" : "");
     return $this;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:20,代码来源:GeoLocalisation.class.php

示例13: __construct

 /**
  * Constructor SwfObject
  * @param string $id 
  * @param string $swf_file 
  * @param integer $width 
  * @param integer $height 
  * @param string $optional_text 
  */
 function __construct($id, $swf_file, $width, $height, $optional_text = '')
 {
     parent::__construct();
     if (!isset($id) || !isset($swf_file) || !isset($width) || !isset($height)) {
         throw new NewException("4 arguments for " . get_class($this) . "::__construct() are mandatory", 0, getDebugBacktrace(1));
     }
     $this->id = $id;
     $this->swf_file = $swf_file;
     $this->width = $width;
     $this->height = $height;
     $this->text = $optional_text;
     $this->addJavaScript(BASE_URL . "wsp/js/swfobject.js", "", true);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:21,代码来源:SwfObject.class.php

示例14: _open

 /**
  * Method _open
  * @access static
  * @return mixed
  * @since 1.1.0
  */
 private static function _open()
 {
     $file = "wsp/wsp_banned_visitors";
     $mode = 'a+';
     $option_perms = 0666 & ~umask();
     $mask = 0666 & ~$option_perms;
     $old_mask = umask($mask);
     $result = fopen($file, $mode);
     umask($old_mask);
     if (!$result) {
         throw new NewException("The WSP framework needs to create the file " . $file . ". Please give write rights on the folder or create manually the file (with write rights).", 0, getDebugBacktrace(1));
     }
     return $result;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:20,代码来源:WspBannedVisitors.class.php

示例15: __construct

 /**
  * Constructor PaypalBuyCheck
  * @param mixed $amount 
  * @param mixed $business_paypal_account 
  */
 function __construct($amount, $business_paypal_account)
 {
     if (!isset($amount) || !isset($business_paypal_account)) {
         throw new NewException("2 arguments for " . get_class($this) . "::__construct() are mandatories", 0, getDebugBacktrace(1));
     }
     if (!is_numeric($amount)) {
         throw new NewException(get_class($this) . " error: \$amount need to be numeric.", 0, getDebugBacktrace(1));
     }
     $this->amount = $amount;
     $this->business_paypal_account = $business_paypal_account;
     if (!extension_loaded("curl")) {
         throw new NewException("PaypalBuyCheck: You need to install PHP lib CURL.", 0, getDebugBacktrace(1));
     }
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:19,代码来源:PaypalBuyCheck.class.php


注:本文中的getDebugBacktrace函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。