Friend.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • tests/
  • phpunit/
  • P4Cms/
  • Categorization/
  • Friend.php
  • View
  • Commits
  • Open Download .zip Download (1 KB)
<?php
/**
 * Provides an implementation of a non-hierarchical category for testing.
 *
 * @copyright   2011 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class P4Cms_Categorization_Friend extends P4Cms_Categorization_CategoryAbstract
{
    /**
     * Specifies the root path for tag category entries.
     */
    protected static $_storageSubPath   = 'friends';

    /**
     * Specifies whether this category allows child categories.
     */
    protected static $_nestingAllowed = false;

    /**
     * This function provides the tests access to any protected static functions.
     *
     * @param   string  $function   Name of function to be called on this object
     * @param   array|string    $params     Paramater(s) to pass, optional
     * @return  mixed   Return result of called function, False on error
     */
    public static function callProtectedStaticFunc($function, $params = array())
    {
        if (!is_array($params)) {
            $params = array($params);
        }
        return call_user_func_array('static::'.$function, $params);
    }
}
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/tests/phpunit/P4Cms/Categorization/Friend.php
#1 8972 Matt Attaway Initial add of the Chronicle source code