PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Access Object Properties & Methods from Hooks?

  1. Jive Software
    Member

    I am looking through the core gf forms code and I see all these handy properties and methods... Is there a way to access the public ones, and manipluate the from the hooks?

    Examples:
    - public static function get_form_meta($form_id)
    - self::get_meta_table_name();

    Posted 12 years ago on Wednesday November 7, 2012 | Permalink
  2. To access get_form_meta, you can use RGFormsModel::get_form_meta. Regarding the self:: one, I'm not sure but I will ask the development team about that one.

    Posted 12 years ago on Thursday November 8, 2012 | Permalink
  3. Regarding get_meta_table_name, you can use that as RGFormsModel::get_meta_table_name in your function as well.

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  4. Jive Software
    Member

    Ah ha. I have to assign it to a variable... =O)

    $test = RGFormsModel::get_form_meta(1);
    echo '<pre>';
    print_r($test);
    echo '</pre>';

    I was trying.........................................................

    echo '<pre>';
    print_r($RGFormsModel);
    echo '</pre>';
    Posted 12 years ago on Sunday November 11, 2012 | Permalink
  5. Sounds like you have it working. Let us know if you need any more help.

    Posted 12 years ago on Monday November 12, 2012 | Permalink