• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getDebugBacktrace函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: __construct

 /**
  * Constructor ContactForm
  * @param Page $page_object 
  * @param string $send_method 
  * @param string $table_style 
  */
 function __construct($page_object, $send_method, $table_style = '')
 {
     parent::__construct();
     if (!isset($page_object) || !isset($send_method)) {
         throw new NewException("2 arguments for " . get_class($this) . "::__construct() are mandatory", 0, getDebugBacktrace(1));
     }
     if (gettype($page_object) != "object" || !is_subclass_of($page_object, "Page")) {
         throw new NewException("Argument page_object for " . get_class($this) . "::__construct() error", 0, getDebugBacktrace(1));
     }
     $this->page_object = $page_object;
     $this->mail_to = SMTP_MAIL;
     $this->mail_to_name = SMTP_NAME;
     $table_main = new Table();
     $table_main->setClass($table_style);
     $form = new Form($this->page_object);
     $name = new TextBox($form, "contact_name");
     $name_validation = new LiveValidation();
     $name->setLiveValidation($name_validation->addValidatePresence()->setFieldName(__(CONTACTFORM_NAME)));
     $table_main->addRowColumns(__(CONTACTFORM_NAME) . ":&nbsp;", $name->setFocus())->setColumnWidth(2, "100%");
     $email = new TextBox($form, "contact_email");
     $email_validation = new LiveValidation();
     $email->setLiveValidation($email_validation->addValidateEmail()->addValidatePresence()->setFieldName(__(CONTACTFORM_EMAIL)));
     $table_main->addRowColumns(__(CONTACTFORM_EMAIL) . ":&nbsp;", $email);
     $subject = new TextBox($form, "contact_subject");
     $subject_validation = new LiveValidation();
     $subject->setLiveValidation($subject_validation->addValidatePresence()->setFieldName(__(CONTACTFORM_SUBJECT)));
     $table_main->addRowColumns(__(CONTACTFORM_SUBJECT) . ":&nbsp;", $subject);
     $table_main->addRow();
     $editor = new Editor($form, "contact_message");
     $editor_validation = new LiveValidation();
     $editor->setLiveValidation($editor_validation->addValidatePresence()->setFieldName(__(CONTACTFORM_MESSAGE)));
     $editor->setToolbar(Editor::TOOLBAR_SIMPLE);
     $table_main->addRow(new Object(__(CONTACTFORM_MESSAGE) . ": ", "<br/>", $editor))->setColspan(3)->setAlign(RowTable::ALIGN_LEFT);
     $table_main->addRow();
     $this->captcha = new Captcha($form, "contact_captcha");
     $table_main->addRow($this->captcha)->setColspan(3);
     $table_main->addRow();
     $this->send_button = new Button($form, "contact_send", "", __(CONTACTFORM_SEND));
     $this->send_button->assignEnterKey()->onClick($send_method)->setAjaxEvent();
     $table_main->addRow($this->send_button)->setColspan(3);
     $table_main->addRow();
     $form->setContent($table_main);
     $this->render = $form;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:50,代码来源:ContactForm.class.php


示例17: __construct

 /**
  * Constructor PhotoGallery
  * @param mixed $path 
  * @param string $picture_ext [default value: jpg,jpeg,png,gif]
  * @param string $folder_pic [default value: wsp/img/folder_image_128x128.png]
  */
 function __construct($path, $picture_ext = 'jpg,jpeg,png,gif', $folder_pic = 'wsp/img/folder_image_128x128.png')
 {
     parent::__construct();
     if (!isset($path)) {
         throw new NewException("1 argument for " . get_class($this) . "::__construct() is mandatory", 0, getDebugBacktrace(1));
     }
     $this->original_path = $path;
     if (isset($_GET['gallery_event'])) {
         $path = $path . $_GET['gallery_event'];
     }
     if (!is_dir($path)) {
         throw new NewException("Unable to find the path " . $path, 0, getDebugBacktrace(1));
     }
     $this->path = $path;
     $this->picture_ext = explode(',', $picture_ext);
     $this->folder_pic = $folder_pic;
     $this->addCss(BASE_URL . "wsp/css/jquery.lightbox-0.5.css", "", true);
     $this->addCss(BASE_URL . "wsp/css/jquery.dataTables.css", "", true);
     $this->addJavaScript(BASE_URL . "wsp/js/jquery.lightbox-0.5.min.js", "", true);
     $this->addJavaScript(BASE_URL . "wsp/js/jquery.dataTables.min.js", "", true);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:27,代码来源:PhotoGallery.class.php


示例18: setAjaxWaitMessage

 /**
  * Method setAjaxWaitMessage
  * @access public
  * @param mixed $message_or_object 
  * @return Authentication
  * @since 1.2.1
  */
 public function setAjaxWaitMessage($message_or_object)
 {
     if (gettype($message_or_object) == "object") {
         if (get_class($message_or_object) != "Object") {
             throw new NewException("Error " . get_class($this) . "->setAjaxWaitMessage(): \$message_or_object must be an Object and not " . get_class($message_or_object) . ".", 0, getDebugBacktrace(1));
         }
         $message_or_object->hide();
     }
     $this->ajax_wait_message = $message_or_object;
     $this->createRender(false);
     return $this;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:19,代码来源:Authentication.class.php


示例19: add

 /**
  * Method add
  * @access public
  * @param string $js_url 
  * @param string $conditional_comment 
  * @param boolean $combine [default value: false]
  * @param string $js_script 
  * @param boolean $async [default value: false]
  * @since 1.0.59
  */
 public function add($js_url, $conditional_comment = '', $combine = false, $js_script = '', $async = false)
 {
     if (!in_array($js_url, $this->js_scripts)) {
         $this->js_scripts[] = $js_url;
         $this->conditional_comment[] = $conditional_comment;
         $this->combine[] = $combine;
         if ($GLOBALS['__AJAX_PAGE__'] == true && $GLOBALS['__AJAX_LOAD_PAGE__'] == false && $GLOBALS['__PAGE_IS_INIT__'] == true) {
             $this->is_for_ajax[] = true;
         } else {
             $this->is_for_ajax[] = false;
         }
         if ($combine && $js_script != "") {
             throw new NewException(get_class($this) . "->add() error: you can't add script with combine mode", 0, getDebugBacktrace(1));
         }
         $this->script[] = $js_script;
         $this->is_async[] = $async;
     }
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:28,代码来源:JavaScriptInclude.class.php


示例20: getAjaxRender

 /**
  * Method getAjaxRender
  * @access public
  * @return string javascript code to update initial html of object RowTable (call with AJAX)
  * @since 1.0.85
  */
 public function getAjaxRender()
 {
     $html = "";
     if ($this->object_change && !$this->is_new_object_after_init) {
         if ($this->id == "") {
             throw new NewException(get_class($this) . "->getAjaxRender() error: To update this object with Ajax event you must define an id (" . get_class($this) . "->setId())", 0, getDebugBacktrace(1));
         }
         $html .= "\$('#wsp_rowtable_" . $this->id . "').html(\"" . str_replace("\n", "", str_replace("\r", "", addslashes($this->render(true)))) . "\");\n";
     }
     return $html;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:17,代码来源:RowTable.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getDef函数代码示例发布时间:2022-05-15
下一篇:
PHP getDbUpdate函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap