Browse Source

Fixing more @link annotations

Jose Lorenzo Rodriguez 14 years ago
parent
commit
f23d62d411
2 changed files with 16 additions and 16 deletions
  1. 6 6
      lib/Cake/Utility/Debugger.php
  2. 10 10
      lib/Cake/Utility/Inflector.php

+ 6 - 6
lib/Cake/Utility/Debugger.php

@@ -32,7 +32,7 @@ App::uses('String', 'Utility');
  * Debugger overrides PHP's default error handling to provide stack traces and enhanced logging
  *
  * @package       Cake.Utility
- * @link          http://book.cakephp.org/view/1191/Using-the-Debugger-Class
+ * @link          http://book.cakephp.org/2.0/en/development/debugging.html#debugger-class
  */
 class Debugger {
 
@@ -175,7 +175,7 @@ class Debugger {
  * @param mixed $var the variable to dump
  * @return void
  * @see Debugger::exportVar()
- * @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
+ * @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::dump
  */
 	public static function dump($var) {
 		pr(self::exportVar($var));
@@ -188,7 +188,7 @@ class Debugger {
  * @param mixed $var Variable or content to log
  * @param integer $level type of log to use. Defaults to LOG_DEBUG
  * @return void
- * @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
+ * @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::log
  */
 	public static function log($var, $level = LOG_DEBUG) {
 		$source = self::trace(array('start' => 1)) . "\n";
@@ -275,7 +275,7 @@ class Debugger {
  *
  * @param array $options Format for outputting stack trace
  * @return mixed Formatted stack trace
- * @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
+ * @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::trace
  */
 	public static function trace($options = array()) {
 		$_this = Debugger::getInstance();
@@ -390,7 +390,7 @@ class Debugger {
  * @param integer $context Number of lines of context to extract above and below $line
  * @return array Set of lines highlighted
  * @see http://php.net/highlight_string
- * @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
+ * @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::excerpt
  */
 	public static function excerpt($file, $line, $context = 2) {
 		$lines = array();
@@ -436,7 +436,7 @@ class Debugger {
  * @param string $var Variable to convert
  * @param integer $recursion
  * @return string Variable as a formatted string
- * @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
+ * @link http://book.cakephp.org/2.0/en/development/debugging.html#Debugger::exportVar
  */
 	public static function exportVar($var, $recursion = 0) {
 		switch (strtolower(gettype($var))) {

+ 10 - 10
lib/Cake/Utility/Inflector.php

@@ -26,7 +26,7 @@
  * Used by Cake's naming conventions throughout the framework.
  *
  * @package       Cake.Utility
- * @link          http://book.cakephp.org/view/1478/Inflector
+ * @link          http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html
  */
 class Inflector {
 
@@ -346,7 +346,7 @@ class Inflector {
  *
  * @param string $word Word in singular
  * @return string Word in plural
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::pluralize
  */
 	public static function pluralize($word) {
 
@@ -390,7 +390,7 @@ class Inflector {
  *
  * @param string $word Word in plural
  * @return string Word in singular
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::singularize
  */
 	public static function singularize($word) {
 
@@ -442,7 +442,7 @@ class Inflector {
  *
  * @param string $lowerCaseAndUnderscoredWord Word to camelize
  * @return string Camelized word. LikeThis.
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::camelize
  */
 	public static function camelize($lowerCaseAndUnderscoredWord) {
 		if (!($result = self::_cache(__FUNCTION__, $lowerCaseAndUnderscoredWord))) {
@@ -457,7 +457,7 @@ class Inflector {
  *
  * @param string $camelCasedWord Camel-cased word to be "underscorized"
  * @return string Underscore-syntaxed version of the $camelCasedWord
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::underscore
  */
 	public static function underscore($camelCasedWord) {
 		if (!($result = self::_cache(__FUNCTION__, $camelCasedWord))) {
@@ -473,7 +473,7 @@ class Inflector {
  *
  * @param string $lowerCaseAndUnderscoredWord String to be made more readable
  * @return string Human-readable string
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::humanize
  */
 	public static function humanize($lowerCaseAndUnderscoredWord) {
 		if (!($result = self::_cache(__FUNCTION__, $lowerCaseAndUnderscoredWord))) {
@@ -488,7 +488,7 @@ class Inflector {
  *
  * @param string $className Name of class to get database table name for
  * @return string Name of the database table for given class
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::tableize
  */
 	public static function tableize($className) {
 		if (!($result = self::_cache(__FUNCTION__, $className))) {
@@ -503,7 +503,7 @@ class Inflector {
  *
  * @param string $tableName Name of database table to get class name for
  * @return string Class name
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::classify
  */
 	public static function classify($tableName) {
 		if (!($result = self::_cache(__FUNCTION__, $tableName))) {
@@ -518,7 +518,7 @@ class Inflector {
  *
  * @param string $string
  * @return string in variable form
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::variable
  */
 	public static function variable($string) {
 		if (!($result = self::_cache(__FUNCTION__, $string))) {
@@ -537,7 +537,7 @@ class Inflector {
  * @param string $string the string you want to slug
  * @param string $replacement will replace keys in map
  * @return string
- * @link http://book.cakephp.org/view/1479/Class-methods
+ * @link http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html#Inflector::slug
  */
 	public static function slug($string, $replacement = '_') {
 		$quotedReplacement = preg_quote($replacement, '/');