List Info

Thread: Geeklog_BaseAutoCompleteCommand.php




Geeklog_BaseAutoCompleteCommand.php
user name
2006-06-14 20:41:11
Update of /var/cvs/Geeklog-2.x/Geeklog-2.x/commands
In directory iowaoutdoors:/tmp/cvs-serv25950/commands

Added Files:
	Geeklog_BaseAutoCompleteCommand.php 
Log Message:
Initial Import

--- NEW FILE: Geeklog_BaseAutoCompleteCommand.php ---
<?php

/* Reminder: always indent with 4 spaces (no tabs). */

/**
 * Geeklog 2
 *
 * License details are yet to be determined.  
 *
 */

/**
 * Base command to extend
 */
require_once 'commands/Geeklog_BaseCommandUser.php';

/**
 * PEAR::Cache_Lite to cache results
 */
require_once 'Cache/Lite.php';

/**
 * Saves a link
 *
 * author Tony Bibbs <tonygeeklog.net>
 * copyright Geeklog 2 Development Team 2005-2006
 * version $Id: Geeklog_BaseAutoCompleteCommand.php,v
1.1 2006/06/14 20:41:09 tony Exp $
 * package net.geeklog.plugins.link.commands
 *
 */
abstract class Geeklog_BaseAutoCompleteCommand extends
Geeklog_BaseCommandUser {
    /**
     * Cache Lite instance
     * access protected
     * var PEAR::Cache_Lite
     */
    protected $cacher = null;
    
    /**
     * Constructor
     *
     * author Tony Bibbs <tonygeeklog.net>
     * access public
     * param array $urlArgs Key/Value pairs
     * 
     */
    public function __construct($urlArgs)
    {
        parent::__construct();
       
$this->createCacheLiteInstance(Geeklog_Config::getValue(
'cache'));
    }
    
    /**
     * Creates a cache lite instance
     *
     * author Tony Bibbs <tonygeeklog.net>
     * access protected
     * param unknown_type $options
     * todo May want to add singleton/factory methods for
getting cache
     * lite instance
     * 
     */
    protected function createCacheLiteInstance($options)
    {
        $this->cacher = new Cache_Lite($options);
    }
    
    /**
     * For debug purposes only.
     *
     * param string $message Message to output.
     * 
     */
    protected function putMessageInDiv($message)
    {
       echo
"<ul><li>$message</li></ul>&q
uot;;
    }
}

?>
_______________________________________________
geeklog2-cvs mailing list
geeklog2-cvslists.geeklog.net
http://lists.geeklog.net/mailman/listinfo/geeklog2-cvs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )