Permalink
Browse files

Whoops

  • Loading branch information...
1 parent 20a657d commit f71644142a3ee6c2fca301780360037152ebef74 @stefanoverna stefanoverna committed Nov 8, 2011
Showing 516 changed files with 0 additions and 32,094 deletions.
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 27
-/svn/!svn/ver/93/trunk/Cake
-END
-Installation.txt
-K 25
-svn:wc:ra_dav:version-url
-V 44
-/svn/!svn/ver/51/trunk/Cake/Installation.txt
-END
-license.txt
-K 25
-svn:wc:ra_dav:version-url
-V 39
-/svn/!svn/ver/61/trunk/Cake/license.txt
-END
@@ -1,102 +0,0 @@
-10
-
-dir
-121
-http://phamlp.googlecode.com/svn/trunk/Cake
-http://phamlp.googlecode.com/svn
-
-
-
-2010-05-20T17:43:41.668482Z
-93
-chris.l.yates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-e4c289d2-a523-e733-2695-a8574230554f
-
-Installation.txt
-file
-
-
-
-
-2011-11-07T22:06:02.000000Z
-92b29db405bf2b5702b6ffe897db1229
-2010-04-14T12:05:03.804912Z
-51
-chris.l.yates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1660
-
-license.txt
-file
-
-
-
-
-2011-11-07T22:06:02.000000Z
-761de279f3c03afc6f2f8185409c4001
-2010-04-16T10:19:59.191319Z
-61
-chris.l.yates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-5274
-
-webroot
-dir
-
-views
-dir
-
@@ -1,42 +0,0 @@
-Installation of Cake wrapper for PHamlP
-=======================================
-
-The Cake wrapper for PHamlP consists of a Haml view render (haml.php), a Sass
-Asset filter (sass.php),and Cake specific implementations of the Markdown and
-Textile Haml filters.
-
-Haml
-====
-* Put PHamlP in your vendors directory
-* Put haml.php in your views directory
-* Configure the view and HamlParser using
- Configure::write('Haml.<optionName>', <optionValue>);
- See haml.php and the PHamlP Wiki (http://code.google.com/p/phamlp/w/list)
- for a description of options
-* Add the following line in your app_controller.php
- var $view = 'Haml';
-* Create .haml views in your view folders
-
-By default the parsed views (.ctp files) are cached under APP.tmp.haml
-
-Haml Filters
-============
-* Put Markdown into the APP.vendors.markdown directory
- and/or Textile into the APP.vendors.textile directory
- NOTE: if you change the directory you will need to edit the filters
-* Put the filters into a directory, e.g. VIEWS.hamlFilters
-* Configure HamlParser to search this directory for filters
- Configure::write('Haml.filterDir', VIEWS.'hamlFilters');
-
-Sass
-====
-* Put PHamlP in your vendors directory
-* Put this file in your webroot directory
-* Configure the SassParser using
- Configure::write('Sass.<optionName>', <optionValue>);
- See below for a description of options
-* Add the following line in your core.php
- Configure::write('Asset.filter.css', 'sass.php');
-* Create .sass stylesheets in your webroot/css directory
- NOTE: The generated links are to the webroot/ccss directory, so URLs in
- your stylesheets must be relative this.
@@ -1,146 +0,0 @@
-<?php
-/**
- * PBMAssetManager class file.
- * @author Chris Yates <chris.l.yates@gmail.com>
- * @copyright Copyright &copy; 2010 PBM Web Development
- * @license http://phamlp.googlecode.com/files/license.txt
- * @version $Id: PBMAssetManager.php 9 2010-03-21 12:54:48Z Chris $
- */
-/**
- * PBMAssetManager class.
- * PBMAssetManager overrides CAssetManager::publish to provide parsing of assets
- * when required.
- *
- * Configuration
- * -------------
- * Import the component.
- * Yii::import('path.to.component.PBMAssetManager');
- *
- * Declare the use of this component as the asset manager component. This
- * example declares a Sass {@link } parser; multiple parsers may be declared.
- * <pre>
- * // application components
- * 'components'=>array(
- * 'assetManager' => array(
- * 'class' => 'PBMAssetManager',
- * 'parsers' => array(
- * 'sass' => array( // key == the type of file to parse
- * 'class' => 'ext.haml.Sass', // path alias to the parser
- * 'output' => 'css', // the file type it is parsed to
- * 'options' => array(<Parser specific options>)
- * ),
- * )
- * )
- * )
- * </pre>
- *
- * You can also declare the "force" parameter to be true. This forces assets to
- * be published whether newer than the published asset or not; this is for
- * development so that changes to deep files get published without having to
- * flush the asset directory. Make sure this parameter is removed or declared
- * false in production.
- *
- * Usage
- * -----
- * Usage is exactly the same as publishing an asset with CAssetManager, i.e.
- *
- * $publishedAsset = Yii::app()->getAssetMananger()->publish(Yii::getPathOfAlias('allias.to.asset.directory'). DIRECTORY_SEPARATOR . 'asset.sass');
- *
- * The only difference is that parsing of files will take place during the
- * publish. Files that do not require parsing are handled exactly as before.
- */
-class PBMAssetManager extends CAssetManager {
- /**
- * @var array asset parsers
- */
- public $parsers;
- /**
- * @var boolean if true the asset will always be published
- */
- public $force = false;
- /**
- * @var string base web accessible path for storing private files
- */
- private $_basePath;
- /**
- * @var string base URL for accessing the publishing directory.
- */
- private $_baseUrl;
- /**
- * @var array published assets
- */
- private $_published=array();
-
- /**
- * Publishes a file or a directory.
- * This method will copy the specified asset to a web accessible directory
- * and return the URL for accessing the published asset.
- * <ul>
- * <li>If the asset is a file, its file modification time will be checked
- * to avoid unnecessary file copying;</li>
- * <li>If the asset is a directory, all files and subdirectories under it will
- * be published recursively. Note, in this case the method only checks the
- * existence of the target directory to avoid repetitive copying.</li>
- * </ul>
- * @param string the asset (file or directory) to be published
- * @param boolean whether the published directory should be named as the hashed basename.
- * If false, the name will be the hashed dirname of the path being published.
- * Defaults to false. Set true if the path being published is shared among
- * different suffixs.
- * @param integer level of recursive copying when the asset is a directory.
- * Level -1 means publishing all subdirectories and files;
- * Level 0 means publishing only the files DIRECTLY under the directory;
- * level N means copying those directories that are within N levels.
- * @return string an absolute URL to the published asset
- * @throws CException if the asset to be published does not exist.
- */
- public function publish($path,$hashByName=false,$level=-1) {
- if(isset($this->_published[$path])) {
- return $this->_published[$path];
- }
- else if(($src=realpath($path))!==false) {
- if(is_file($src)) {
- $dir=$this->hash($hashByName ? basename($src) : dirname($src));
- $fileName=basename($src);
- $suffix=substr(strrchr($fileName, '.'), 1);
- $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir;
-
- if (array_key_exists($suffix, $this->parsers)) {
- $fileName=basename($src, $suffix);
- $fileName=basename($src, $suffix).$this->parsers[$suffix]['output'];
- }
- $dstFile=$dstDir.DIRECTORY_SEPARATOR.$fileName;
-
- if($this->force || @filemtime($dstFile)<@filemtime($src)) {
- if(!is_dir($dstDir)) {
- mkdir($dstDir);
- @chmod($dstDir,0777);
- }
-
- if (array_key_exists($suffix, $this->parsers)) {
- $parserClass = Yii::import($this->parsers[$suffix]['class']);
- $parser = new $parserClass($this->parsers[$suffix]['options']);
- file_put_contents($dstFile, $parser->parse($src));
- }
- else {
- copy($src,$dstFile);
- }
- }
-
- return $this->_published[$path]=$this->getBaseUrl()."/$dir/$fileName";
- }
- else if(is_dir($src)) {
- $dir=$this->hash($hashByName ? basename($src) : $src);
- $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir;
-
- if(!is_dir($dstDir)) {
- CFileHelper::copyDirectory($src,$dstDir,array('exclude'=>array('.svn'),'level'=>$level));
- }
-
- return $this->_published[$path]=$this->getBaseUrl().'/'.$dir;
- }
- }
- throw new CException(Yii::t('yii','The asset "{asset}" to be published does not exist.',
- array('{asset}'=>$path)));
- }
-}
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 33
-/svn/!svn/ver/93/trunk/Cake/views
-END
-haml.php
-K 25
-svn:wc:ra_dav:version-url
-V 42
-/svn/!svn/ver/93/trunk/Cake/views/haml.php
-END
@@ -1,65 +0,0 @@
-10
-
-dir
-121
-http://phamlp.googlecode.com/svn/trunk/Cake/views
-http://phamlp.googlecode.com/svn
-
-
-
-2010-05-20T17:43:41.668482Z
-93
-chris.l.yates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-e4c289d2-a523-e733-2695-a8574230554f
-
-haml.php
-file
-
-
-
-
-2011-11-07T22:06:02.000000Z
-7334b384b6564abe4554e333ba1d31f5
-2010-05-20T17:43:41.668482Z
-93
-chris.l.yates
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-9919
-
-filters
-dir
-
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 30
-Id Revision Date LastChangedBy
-END
Oops, something went wrong.

0 comments on commit f716441

Please sign in to comment.