All pastes #939869 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-12 17:07 UTC
rendered paste body
<?php

class MY_Class extends Zend_Class
{
    protected static $_instance = null;

    public static function getInstance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
            self::$_instance->_initialize();
        }

        return self::$_instance;
    }

}