Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/classes.php on line 1127

Strict Standards: Redefining already defined constructor for class bbdb in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/db-mysql.php on line 12
New customization methods - custom::set_...() « Support Forums

Support Forums » Release Notes

New customization methods - custom::set_...()

(1 post)
  • Started 9 years ago by richard

  1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /webroot/s/2/s2admin/synapp2.org/www/forum/bb-includes/kses.php on line 512
    richard

    Administrator

    These customization methods are new for SynApp2 1.8.0 (Beta 4), and provide a convenient alternative to array notation for setting customization elements in custom.inc.php files. Use the get_custom() function to return a reference to the global $g_custom [master] instance of class custom.

    Invoke any of these methods, from <application_dir>/custom.inc.php, using the following form:

        get_custom()->set_...();

    ////

    custom::set_username_password_mgr($qid = UPW_STD_QID)

    custom::set_validator($qid, $col, $func, $context_key = VALIDATOR_PRIMARY)

    custom::bind_process($qid, $func, $context_key = PROCESS_MAIN)

    custom::set_col_media_type($qid, $col, $media_type) // especially to identify report columns as: TYPE_IMAGE

    custom::set_rpt_row_size($qid, $row_size) // especially when there is column set to media TYPE_IMAGE

    custom::set_export_type($export_type, $qid = null)

    custom::set_media_loc($media_loc, $media_type = TYPE_ANY, $qid = null)
    custom::set_temp_loc($temp_loc, $qid = null)

    ////

    The SynApp2 Wiki examples show all of these functions in action: http://www.synapp2.org/wiki/index.php?title=Examples

    The SynApp2 Customization document has detailed explanations of configuration elements: http://www.synapp2.org/documentation/SynApp2_Customization.pdf

    Posted 9 years ago #

RSS feed for this topic

Reply

You must log in to post.