Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?php // +---------------------------------------------------------------------------+ // | This file is part of the Agavi package. | // | Copyright (c) 2003-2006 the Agavi Project. | // | Based on the Mojavi3 MVC Framework, Copyright (c) 2003-2005 Sean Kerr. | // | | // | For the full copyright and license information, please view the LICENSE | // | file that was distributed with this source code. You can also view the | // | LICENSE file online at http://www.agavi.org/LICENSE.txt | // | vi: set noexpandtab: | // | Local Variables: | // | indent-tabs-mode: t | // | End: | // +---------------------------------------------------------------------------+ /** * AgaviModel provides a convention for separating business logic from * application logic. When using a model you're providing a globally accessible * API for other modules to access, which will boost interoperability among * modules in your web application. * * @package agavi * @subpackage model * * @author Sean Kerr <skerr@mojavi.org> * @copyright (c) Authors * @since 0.9.0 * * @version $Id$ */ abstract class Agavi_Doctrine_Record extends Doctrine_Record implements AgaviIModel { /** * @var AgaviContext An AgaviContext instance. */ private $context = null; /** * Retrieve the current application context. * * @return AgaviContext The current AgaviContext instance. * * @author Sean Kerr <skerr@mojavi.org> * @since 0.9.0 */ public final function getContext() { return $this->context; } /** * Initialize this model. * * @param AgaviContext The current application context. * * @author Sean Kerr <skerr@mojavi.org> * @since 0.9.0 */ public function initialize(AgaviContext $context, array $parameters = array()) { $this->context = $context; } } ?>
This paste will be private.
From the Design Piracy series on my blog: