[Solar-svn] Revision 2863
pmjones at solarphp.com
pmjones at solarphp.com
Fri Oct 12 14:00:34 CDT 2007
Solar_View_Helper_Js(Scriptaculous|Prototype): [DEL] Per long-ago discussions with Clay et. al., removing these helpers from disuse.
Deleted: trunk/Solar/View/Helper/JsPrototype.php
===================================================================
--- trunk/Solar/View/Helper/JsPrototype.php 2007-10-12 16:47:27 UTC (rev 2862)
+++ trunk/Solar/View/Helper/JsPrototype.php 2007-10-12 19:00:33 UTC (rev 2863)
@@ -1,90 +0,0 @@
-<?php
-/**
- *
- * Helper for [Prototype][] JavaScript library
- *
- * [Prototype]: http://prototype.conio.net
- *
- * @category Solar
- *
- * @package Solar_View_Helper_Js
- *
- * @author Clay Loveless <clay at killersoft.com>
- *
- * @license http://opensource.org/licenses/bsd-license.php BSD
- *
- * @version $Id$
- *
- */
-
-/**
- *
- * Helper for [Prototype][] JavaScript library
- *
- * [Prototype]: http://prototype.conio.net
- *
- * @category Solar
- *
- * @package Solar_View_Helper_Js
- *
- * @author Clay Loveless <clay at killersoft.com>
- *
- */
-class Solar_View_Helper_JsPrototype extends Solar_View_Helper_JsLibrary {
-
- /**
- *
- * User-provided configuration values.
- *
- * @var array
- *
- */
- protected $_Solar_View_Helper_JsPrototype = array(
- 'path' => 'Solar/scripts/prototype/'
- );
-
- /**
- *
- * Constructor.
- *
- * @param array $config User-provided configuration values.
- *
- */
- public function __construct($config = null)
- {
- parent::__construct($config);
-
- // JsPrototype always needs the prototype.js file
- $this->_needsFile('prototype.js');
-
- }
-
- /**
- *
- * Method interface.
- *
- * @return object Solar_View_Helper_JsPrototype
- *
- */
- public function jsPrototype()
- {
- return $this;
- }
-
- /**
- *
- * Returns a JsPrototype helper object; creates it as needed.
- *
- * @param string $helper Name of JsPrototype class
- *
- * @return object A new standalone helper object.
- *
- */
- protected function __get($helper)
- {
- // Because Solar_View_Helpers typically are *not* in sub-dirs
- $helper = 'JsPrototype_' . ucfirst(strtolower($helper));
- return $this->_view->getHelper($helper);
- }
-
-}
Deleted: trunk/Solar/View/Helper/JsScriptaculous.php
===================================================================
--- trunk/Solar/View/Helper/JsScriptaculous.php 2007-10-12 16:47:27 UTC (rev 2862)
+++ trunk/Solar/View/Helper/JsScriptaculous.php 2007-10-12 19:00:33 UTC (rev 2863)
@@ -1,89 +0,0 @@
-<?php
-/**
- *
- * Helper for [script.aculo.us][] JavaScript library
- *
- * [script.aculo.us]: http://script.aculo.us
- *
- * @category Solar
- *
- * @package Solar_View_Helper_Js
- *
- * @author Clay Loveless <clay at killersoft.com>
- *
- * @license http://opensource.org/licenses/bsd-license.php BSD
- *
- * @version $Id$
- *
- */
-
-/**
- *
- * Helper for [script.aculo.us][] JavaScript library
- *
- * [script.aculo.us]: http://script.aculo.us
- *
- * @category Solar
- *
- * @package Solar_View_Helper_Js
- *
- * @author Clay Loveless <clay at killersoft.com>
- *
- */
-class Solar_View_Helper_JsScriptaculous extends Solar_View_Helper_JsLibrary {
-
- /**
- *
- * User-provided configuration values.
- *
- * @var array
- *
- */
- protected $_Solar_View_Helper_JsScriptaculous = array(
- 'path' => 'Solar/scripts/scriptaculous/'
- );
-
- /**
- *
- * Constructor.
- *
- * @param array $config User-provided configuration values.
- *
- */
- public function __construct($config = null)
- {
- parent::__construct($config);
-
- // We need Prototype to be loaded
- $this->_view->getHelper('JsPrototype');
- }
-
- /**
- *
- * Method interface.
- *
- * @return Solar_View_Helper_JsScriptaculous
- *
- */
- public function jsScriptaculous()
- {
- return $this;
- }
-
- /**
- *
- * Returns a JsScriptaculous helper object; creates it as needed.
- *
- * @param string $helper Name of JsScriptaculous class
- *
- * @return object A new standalone helper object.
- *
- */
- protected function __get($helper)
- {
- // Because Solar_View_Helpers typically are *not* in sub-dirs
- $helper = 'JsScriptaculous_' . ucfirst(strtolower($helper));
- return $this->_view->getHelper($helper);
- }
-
-}
More information about the Solar-svn
mailing list