NYCPHP Meetup

NYPHP.org

[nycphp-talk] Oh no, beans again!

Tim Gales tgales at tgaconnect.com
Sun Apr 17 14:22:53 EDT 2005



<?php

class Bean_Test extends PHP_Bean {
    var $values = array ();

    function Bean_Test (&$server) {
        $this->init ($server);
        $this->namespace = 'test';
        $this->addMethods (__FILE__);
    }

    /**
     * Sets a named value.
     * @access public
     * @param string
     * @param string
     */
    function set ($name, $value) {
        $this->values[$name] = $value;
    }

    /**
     * Gets a named value.
     * @access public
     * @param string
     * @return string
     */
    function get ($name) {
        return $this->values[$name];
    }
}

from: 

http://www.phpbeans.com/index/news-app/story.3 


T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com




More information about the talk mailing list