Changeset 73
- Timestamp:
- 05/23/06 13:11:38 (2 years ago)
- Files:
-
- branches/2.2/classes/phing/system/io/FileSystem.php (modified) (1 diff)
- branches/2.2/classes/phing/types/selectors/SelectorUtils.php (modified) (2 diffs)
- trunk/classes/phing/parser/ProjectConfigurator.php (modified) (3 diffs)
- trunk/classes/phing/system/io/FileSystem.php (modified) (1 diff)
- trunk/classes/phing/system/lang/Character.php (modified) (1 diff)
- trunk/classes/phing/types/selectors/SelectorUtils.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/classes/phing/system/io/FileSystem.php
r70 r73 54 54 * this platform's local filesystem driver. 55 55 */ 56 static function getFileSystem() {56 public static function getFileSystem() { 57 57 if (self::$fs === null) { 58 58 switch(Phing::getProperty('host.fstype')) { branches/2.2/classes/phing/types/selectors/SelectorUtils.php
r70 r73 44 44 * Retrieves the instance of the Singleton. 45 45 */ 46 public function getInstance() {46 public static function getInstance() { 47 47 if (!isset(self::$instance)) { 48 48 self::$instance = new SelectorUtils(); … … 424 424 * @return whether the target is out of date 425 425 */ 426 public function isOutOfDate(PhingFile $src, PhingFile $target, $granularity) {426 public static function isOutOfDate(PhingFile $src, PhingFile $target, $granularity) { 427 427 if (!$src->exists()) { 428 428 return false; trunk/classes/phing/parser/ProjectConfigurator.php
r1 r73 107 107 * @access public 108 108 */ 109 function configure($target, $attrs, Project $project) {109 public static function configure($target, $attrs, Project $project) { 110 110 111 111 if ($target instanceof TaskAdapter) { … … 152 152 * @access public 153 153 */ 154 function addText($project, $target, $text = null) {154 public static function addText($project, $target, $text = null) { 155 155 if ($text === null || strlen(trim($text)) === 0) { 156 156 return; … … 170 170 * @access public 171 171 */ 172 function storeChild($project, $parent, $child, $tag) {172 public static function storeChild($project, $parent, $child, $tag) { 173 173 $ih = IntrospectionHelper::getHelper(get_class($parent)); 174 174 $ih->storeElement($project, $parent, $child, $tag); trunk/classes/phing/system/io/FileSystem.php
r1 r73 54 54 * this platform's local filesystem driver. 55 55 */ 56 function getFileSystem() {56 public static function getFileSystem() { 57 57 if (self::$fs === null) { 58 58 switch(Phing::getProperty('host.fstype')) { trunk/classes/phing/system/lang/Character.php
r1 r73 30 30 // anyway just a thought 31 31 32 function isLetter($char) {32 public static function isLetter($char) { 33 33 34 34 if (strlen($char) !== 1) trunk/classes/phing/types/selectors/SelectorUtils.php
r1 r73 44 44 * Retrieves the instance of the Singleton. 45 45 */ 46 public function getInstance() {46 public static function getInstance() { 47 47 if (!isset(self::$instance)) { 48 48 self::$instance = new SelectorUtils(); … … 69 69 * pattern up to the first "**". 70 70 */ 71 public function matchPatternStart($pattern, $str, $isCaseSensitive = true) {71 public static function matchPatternStart($pattern, $str, $isCaseSensitive = true) { 72 72 73 73 // When str starts with a DIRECTORY_SEPARATOR, pattern has to start with a … … 127 127 * or <code>false</code> otherwise. 128 128 */ 129 public function matchPath($pattern, $str, $isCaseSensitive = true) {129 public static function matchPath($pattern, $str, $isCaseSensitive = true) { 130 130 131 131 // When str starts with a DIRECTORY_SEPARATOR, pattern has to start with a … … 260 260 * or <code>false</code> otherwise. 261 261 */ 262 public function match($pattern, $str, $isCaseSensitive = true) {262 public static function match($pattern, $str, $isCaseSensitive = true) { 263 263 264 264 $patArr = StringHelper::toCharArray($pattern); … … 424 424 * @return whether the target is out of date 425 425 */ 426 public function isOutOfDate(PhingFile $src, PhingFile $target, $granularity) {426 public static function isOutOfDate(PhingFile $src, PhingFile $target, $granularity) { 427 427 if (!$src->exists()) { 428 428 return false;
