Subversion Repositories Applications.papyrus

Rev

Rev 848 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 848 Rev 1713
Line 163... Line 163...
163
     * @param  array $options Optional parameters for the storage class
163
     * @param  array $options Optional parameters for the storage class
164
     * @return object Object   Storage object
164
     * @return object Object   Storage object
165
     * @static
165
     * @static
166
     * @access public
166
     * @access public
167
     */
167
     */
168
    function &factory($options = array())
168
    static function &factory($options = array())
169
    {
169
    {
170
        $mode = (isset($options['mode']) ? ucfirst($options['mode']) : 'Jumping');
170
        $mode = (isset($options['mode']) ? ucfirst($options['mode']) : 'Jumping');
171
        $classname = 'Pager_' . $mode;
171
        $classname = 'Pager_' . $mode;
172
        $classfile = 'Pager' . DIRECTORY_SEPARATOR . $mode . '.php';
172
        $classfile = 'Pager' . DIRECTORY_SEPARATOR . $mode . '.php';