Skip to content

Commit

Permalink
MINOR Unified @Package PHPdoc (added where missing, removed duplicates)
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56212 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Jun 15, 2008
1 parent 4312a4a commit 60860cc
Show file tree
Hide file tree
Showing 255 changed files with 125 additions and 1,330 deletions.
6 changes: 0 additions & 6 deletions api/RSSFeed.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage integration
*/

/**
* RSSFeed class
*
Expand Down
3 changes: 3 additions & 0 deletions api/RestfulServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
* - DELETE /api/v1/(ClassName)/(ID)/(Relation)/(ForeignID) - remove the relationship between two database records, but don't actually delete the foreign object (NOT IMPLEMENTED YET)
*
* - POST /api/v1/(ClassName)/(ID)/(MethodName) - executes a method on the given object (e.g, publish)
*
* @package sapphire
* @subpackage api
*/
class RestfulServer extends Controller {
protected static $api_base = "api/v1/";
Expand Down
6 changes: 0 additions & 6 deletions api/RestfulService.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage integration
*/

/**
* RestfulService class allows you to consume various RESTful APIs.
* Through this you could connect and aggregate data of various web services.
Expand Down
6 changes: 0 additions & 6 deletions api/SapphireSoapServer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage integration
*/

/**
* Soap server class
* @todo Improve documentation
Expand Down
6 changes: 0 additions & 6 deletions api/SimplePie.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage integration
*/

/**
* A PHP-Based RSS and Atom Feed Framework
* Takes the hard work out of managing a complete RSS/Atom solution.
Expand Down
2 changes: 0 additions & 2 deletions api/Spyc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* @link http://spyc.sourceforge.net/
* @copyright Copyright 2005-2006 Chris Wanstrath
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @package sapphire
* @subpackage misc
*/

/**
Expand Down
6 changes: 0 additions & 6 deletions cli/CliController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage cron
*/

/**
* Base class invoked from CLI rather than the webserver (Cron jobs, handling email bounces)
* @package sapphire
Expand Down
6 changes: 0 additions & 6 deletions cli/DailyTask.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage cron
*/

/**
* Classes that must be run daily extend this class
* @todo Improve documentation
Expand Down
6 changes: 0 additions & 6 deletions cli/MonthlyTask.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage cron
*/

/**
* Classes that must be run monthly extend this class
* @package sapphire
Expand Down
6 changes: 0 additions & 6 deletions cli/ScheduledTask.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage cron
*/

/**
* Abstract task representing scheudled tasks
* @todo Improve documentation
Expand Down
6 changes: 0 additions & 6 deletions cli/WeeklyTask.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage cron
*/

/**
* Classes that must be run weekly extend this class
* @package sapphire
Expand Down
6 changes: 0 additions & 6 deletions cli/YearlyTask.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage cron
*/

/**
* Classes that must be run yearly extend this class
* @package sapphire
Expand Down
6 changes: 0 additions & 6 deletions core/ArrayData.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage view
*/

/**
* Lets you wrap a bunch of array data into a {@link ViewableData} object.
*
Expand Down
6 changes: 0 additions & 6 deletions core/ArrayLib.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage misc
*/

/**
* Library of static methods for manipulating arrays.
* @package sapphire
Expand Down
6 changes: 0 additions & 6 deletions core/ClassInfo.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage core
*/

/**
* Provides introspection information about the class tree.
* It's a cached wrapper around the built-in class functions. Sapphire uses class introspection heavily
Expand Down
6 changes: 0 additions & 6 deletions core/Convert.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage misc
*/

/**
* Library of conversion functions, implemented as static methods.
*
Expand Down
6 changes: 0 additions & 6 deletions core/Cookie.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage misc
*/

/**
* A set of static methods for manipulating cookies.
* @package sapphire
Expand Down
6 changes: 0 additions & 6 deletions core/Extension.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage core
*/

/**
* Add extension that can be added to an object with Object::add_extension().
* For DataObject extensions, use DataObjectDecorator
Expand Down
6 changes: 0 additions & 6 deletions core/HTTP.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage misc
*/

/**
* A class with HTTP-related helpers.
* Like Debug, this is more a bundle of methods than a class ;-)
Expand Down
4 changes: 4 additions & 0 deletions core/Mailer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
/**
* @package sapphire
* @subpackage email
*/

/**
* Mailer objects are responsible for actually sending emails.
Expand Down
10 changes: 1 addition & 9 deletions core/ManifestBuilder.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
<?php

/**
* @package sapphire
* @subpackage core
*/

/**
* Name of the manifest file
*/
// Name of the manifest file
define("MANIFEST_FILE", TEMP_FOLDER . "/manifest" . str_replace(array("/",":", "\\"),"_", $_SERVER['SCRIPT_FILENAME']));

/**
Expand Down
6 changes: 0 additions & 6 deletions core/Requirements.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage view
*/

/**
* Requirements tracker, for javascript and css.
* @todo Document the requirements tracker, and discuss it with the others.
Expand Down
6 changes: 0 additions & 6 deletions core/SSViewer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage view
*/

/**
* The SSViewer executes a .ss template file.
* The SSViewer class handles rendering of .ss templates. In addition to a full template in
Expand Down
6 changes: 0 additions & 6 deletions core/Session.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* Handles all manipulation of the session.
*
Expand Down
2 changes: 2 additions & 0 deletions core/TokenisedRegularExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/**
* A tokenised regular expression is a parser, similar to a regular expression, that acts on tokens rather than characters.
* This is a crucial component of the ManifestBuilder.
* @package sapphire
* @subpackage core
*/
class TokenisedRegularExpression extends Object {
/**
Expand Down
2 changes: 2 additions & 0 deletions core/ValidationResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/**
* A class that combined as a boolean result with an optional list of error messages.
* This is used for returning validation results from validators
* @package sapphire
* @subpackage core
*/
class ValidationResult extends Object {
/**
Expand Down
6 changes: 0 additions & 6 deletions core/ViewableData.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage view
*/

/**
* Generic class for all data that will be accessed from a view.
*
Expand Down
6 changes: 0 additions & 6 deletions core/control/ContentController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* The most common kind of controller; effectively a controller linked to a {@link DataObject}.
*
Expand Down
5 changes: 0 additions & 5 deletions core/control/ContentNegotiator.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<?php
/**
* @package sapphire
* @subpackage control
*/

/**
* The content negotiator performs text/html or application/xhtml+xml switching.
* It does this through the static function ContentNegotiator::process()
Expand Down
6 changes: 0 additions & 6 deletions core/control/Controller.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* Base controller class.
* Controllers are the cornerstone of all site functionality in Sapphire. The {@link Director}
Expand Down
6 changes: 0 additions & 6 deletions core/control/Director.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* Director is responsible for processing URLs, and providing environment information.
*
Expand Down
6 changes: 0 additions & 6 deletions core/control/FormResponse.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package forms
* @subpackage core
*/

/**
* This class collects all output that needs to be returned after an Form-Request to the client. It automatically determines
* if it needs to send back javascript after an Ajax-Request or just redirect to another page (on a normal request).
Expand Down
6 changes: 0 additions & 6 deletions core/control/HTTPResponse.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* Represenets an HTTPResponse returned by a controller.
*
Expand Down
6 changes: 0 additions & 6 deletions core/control/ModelAsController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* ModelAsController will hand over all control to the appopriate model object
* It uses URLSegment to determine the right object. Also, if (ModelClass)_Controller exists,
Expand Down
6 changes: 0 additions & 6 deletions core/control/NestedController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* Interface that is implemented by controllers that are designed to hand control over to another controller.
* ModelAsController, which selects up a SiteTree object and passes control over to a suitable subclass of ContentController, is a good
Expand Down
6 changes: 0 additions & 6 deletions core/control/RootURLController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php

/**
* @package sapphire
* @subpackage control
*/

/**
* This controller handles what happens when you visit the root URL.
*
Expand Down
3 changes: 2 additions & 1 deletion core/control/SapphireInfo.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

/**
* Returns information about the current site instance.
* @package sapphire
* @subpackage control
*/
class SapphireInfo extends Controller {
function Version() {
Expand Down
Loading

0 comments on commit 60860cc

Please sign in to comment.