FileFriend.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • tests/
  • phpunit/
  • P4Cms/
  • Cache/
  • Backend/
  • FileFriend.php
  • View
  • Commits
  • Open Download .zip Download (818 B)
<?php
/**
 * Provide a friend class to get options off of the file cache backend.
 *
 * @copyright   2011 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class P4Cms_Cache_Backend_FileFriend extends Zend_Cache_Backend_File
{
    /**
     * Returns the requested options value or null.
     * 
     * @param   Zend_Cache_Backend  $instance   the instance to read options from
     * @param   string              $name       the options name
     * @return  mixed               the options value or null
     */
    public static function getOption($instance, $name)
    {
        if (!isset($instance->_options[$name])) {
            return null;
        }

        return $instance->_options[$name];
    }
}
# 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/Cache/Backend/FileFriend.php
#1 8972 Matt Attaway Initial add of the Chronicle source code