Changeset 282 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Oct 14, 2007 7:19:17 AM (17 years ago)
Author:
quinn
Message:

Added length arg to *Signature functions; added App::setQuery() method; FormValidator? msg rewording.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r260 r282  
    616616
    617617    /**
    618      * Sets which query arguments will be carried persistently between requests.
     618     * Forcefully set a query argument even if one currently exists in the reqeust.
     619     * Values in the _carry_queries array will be copied to URLs (via $app->url()) and
     620     * to hidden input values (via printHiddenSession()).
     621     *
     622     * @access  public
     623     * @param   mixed   $query_key  The key (or keys, as an array) of the query argument to save.
     624     * @param   mixed   $val        The new value of the argument key.
     625     * @author  Quinn Comendant <quinn@strangecode.com>
     626     * @since   13 Oct 2007 11:34:51
     627     */
     628    function setQuery($query_key, $val)
     629    {
     630        if (!is_array($query_key)) {
     631            $query_key = array($query_key);
     632        }
     633        foreach ($query_key as $k) {
     634            // Set the value of the specified query argument into the _carry_queries array.
     635            $this->_carry_queries[$k] = $val;
     636        }
     637    }
     638
     639    /**
     640     * Specify which query arguments will be carried persistently between requests.
    619641     * Values in the _carry_queries array will be copied to URLs (via $app->url()) and
    620642     * to hidden input values (via printHiddenSession()).
Note: See TracChangeset for help on using the changeset viewer.