diff --git a/api/Spyc.php b/api/Spyc.php
index 4e6a41b4f..03f6050de 100644
--- a/api/Spyc.php
+++ b/api/Spyc.php
@@ -23,7 +23,7 @@ class YAMLNode {
*/
public $parent;
public $id;
- /**#@+*/
+ /**#@-*/
/**
* @access public
* @var mixed
@@ -349,7 +349,7 @@ class Spyc {
private $_isInline;
private $_dumpIndent;
private $_dumpWordWrap;
- /**#@+*/
+ /**#@-*/
/**** Public Properties ****/
@@ -358,7 +358,7 @@ class Spyc {
* @var mixed
*/
public $_nodeId;
- /**#@+*/
+ /**#@-*/
/**** Private Methods ****/
diff --git a/cli-script.php b/cli-script.php
index 8f4644166..1cb51d6e6 100755
--- a/cli-script.php
+++ b/cli-script.php
@@ -16,6 +16,9 @@ $_SERVER['HTTP_HOST'] = $_SERVER['argv'][2];
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
chdir(dirname($_SERVER['SCRIPT_FILENAME']));
+/**
+ * Include Sapphire's core code
+ */
require_once("core/Core.php");
header("Content-type: text/html; charset=\"utf-8\"");
diff --git a/core/Email.php b/core/Email.php
index d1c41f43c..781dd29ba 100755
--- a/core/Email.php
+++ b/core/Email.php
@@ -368,6 +368,11 @@ class Email extends ViewableData {
}
}
+/**
+ * Implements an email template that can be populated.
+ * @package sapphire
+ * @subpackage email
+ */
class Email_Template extends Email {
public function __construct() {
}
diff --git a/core/ManifestBuilder.php b/core/ManifestBuilder.php
index 7463c7775..655f0bc1e 100644
--- a/core/ManifestBuilder.php
+++ b/core/ManifestBuilder.php
@@ -205,7 +205,7 @@ class ManifestBuilder {
* application
*
* @param string $folder The folder to traverse (recursively)
- * @pram array $classMap The already built class map
+ * @param array $classMap The already built class map
*/
private static function getClassManifest($folder, &$classMap) {
$items = scandir($folder);
diff --git a/core/control/Director.php b/core/control/Director.php
index d9071cb00..f5ad9f755 100644
--- a/core/control/Director.php
+++ b/core/control/Director.php
@@ -86,8 +86,8 @@ class Director {
* - output the response to the browser, using {@link HTTPResponse::output()}.
*
* @param $url String, the URL the user is visiting, without the querystring.
- * @uses getControllerForURL() The rule-lookup logic is handled by this.
- * @uses Controller::run() The actual page logic is handled by this.
+ * @uses getControllerForURL() rule-lookup logic is handled by this.
+ * @uses Controller::run() Controller::run() handles the page logic for a Director::direct() call.
*/
function direct($url) {
if(isset($_GET['debug_profile'])) Profiler::mark("Director","direct");
@@ -125,7 +125,7 @@ class Director {
* calls of Director::test(), you can simulate a peristed session.
*
* @uses getControllerForURL() The rule-lookup logic is handled by this.
- * @uses Controller::run() The actual page logic is handled by this.
+ * @uses Controller::run() Controller::run() handles the page logic for a Director::direct() call.
*/
function test($url, $post = null, $session = null) {
$getVars = array();
diff --git a/core/model/Database.php b/core/model/Database.php
index cc211dff0..2f53dc6aa 100755
--- a/core/model/Database.php
+++ b/core/model/Database.php
@@ -445,6 +445,8 @@ abstract class Database extends Object {
* Primarily, the Query class takes care of the iterator plumbing, letting the subclasses focusing
* on providing the specific data-access methods that are required: {@link nextRecord()}, {@link numRecords()}
* and {@link seek()}
+ * @package sapphire
+ * @subpackage model
*/
abstract class Query extends Object implements Iterator {
/**
diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php
index 3fa087894..11afad36b 100755
--- a/core/model/ErrorPage.php
+++ b/core/model/ErrorPage.php
@@ -104,6 +104,7 @@ class ErrorPage extends Page {
/**
* Controller for ErrorPages.
+ * @package cms
*/
class ErrorPage_Controller extends Page_Controller {
public function init() {
diff --git a/core/model/GhostPage.php b/core/model/GhostPage.php
index 2717880e7..f9f74b307 100755
--- a/core/model/GhostPage.php
+++ b/core/model/GhostPage.php
@@ -96,6 +96,7 @@ class GhostPage extends SiteTree implements HiddenClass {
/**
* Controller for GhostPages
+ * @package cms
*/
class GhostPage_Controller extends Page_Controller {
function getViewer($action) {
@@ -105,6 +106,7 @@ class GhostPage_Controller extends Page_Controller {
/**
* Special type of ComponentSet just for GhostPages
+ * @package cms
*/
class GhostPage_ComponentSet extends ComponentSet {
function setOwner($ownerObj) {
diff --git a/core/model/Image.php b/core/model/Image.php
index f0fe927b7..6daef47a7 100755
--- a/core/model/Image.php
+++ b/core/model/Image.php
@@ -264,9 +264,9 @@ class Image extends File {
* Generate an image on the specified format. It will save the image
* at the location specified by cacheFilename(). The image will be generated
* using the specific 'generate' method for the specified format.
- * @var string $format Name of the format to generate.
- * @var string $arg1 Argument to pass to the generate method.
- * @var string $arg2 A second argument to pass to the generate method.
+ * @param string $format Name of the format to generate.
+ * @param string $arg1 Argument to pass to the generate method.
+ * @param string $arg2 A second argument to pass to the generate method.
*/
function generateFormattedImage($format, $arg1 = null, $arg2 = null) {
$cacheFile = $this->cacheFilename($format, $arg1, $arg2);
@@ -367,7 +367,11 @@ class Image extends File {
}
/**
- * Image not stored in the database, that is just a cached resampled image
+ * A resized / processed {@link Image} object.
+ * When Image object are processed or resized, a suitable Image_Cached object is returned, pointing to the
+ * cached copy of the processed image.
+ * @package sapphire
+ * @subpackage filesystem
*/
class Image_Cached extends Image {
/**
@@ -395,6 +399,12 @@ class Image_Cached extends Image {
}
}
+/**
+ * A db field type designed to help save images.
+ * @deprecated Use a has_one relationship pointing to the file table instead.
+ * @package sapphire
+ * @subpackage filesystem
+ */
class Image_Saver extends DBField {
function saveInto($record) {
$image = $record->getComponent($this->name);
@@ -414,8 +424,9 @@ class Image_Saver extends DBField {
}
/**
- * Uploader support for the uploading anything which is a File or subclass of
- * File, eg Image.
+ * Uploader support for the uploading anything which is a File or subclass of File, eg Image.
+ * @package sapphire
+ * @subpackage filesystem
*/
class Image_Uploader extends Controller {
/**
diff --git a/core/model/MySQLDatabase.php b/core/model/MySQLDatabase.php
index 23f36bee1..3468d1a0b 100644
--- a/core/model/MySQLDatabase.php
+++ b/core/model/MySQLDatabase.php
@@ -32,10 +32,10 @@ class MySQLDatabase extends Database {
/**
* Connect to a MySQL database.
* @param array $parameters An map of parameters, which should include:
- *
server: The server, eg, localhost
- *
username: The username to log on with
- *
password: The password to log on with
- *
database: The database to connect to
+ * - server: The server, eg, localhost
+ * - username: The username to log on with
+ * - password: The password to log on with
+ * - database: The database to connect to
*/
public function __construct($parameters) {
$this->dbConn = mysql_connect($parameters['server'], $parameters['username'], $parameters['password']);
@@ -392,6 +392,8 @@ class MySQLDatabase extends Database {
/**
* A result-set from a MySQL database.
+ * @package sapphire
+ * @subpackage model
*/
class MySQLQuery extends Query {
/**
diff --git a/core/model/PDODatabase.php b/core/model/PDODatabase.php
index 49919d457..4cfe24e30 100644
--- a/core/model/PDODatabase.php
+++ b/core/model/PDODatabase.php
@@ -313,11 +313,11 @@ class PDODatabase extends Database {
/**
* Alter fields and indexes in existing table.
- * @var string $tableName The name of the table.
- * @var string $newFields Fields to add.
- * @var string $newIndexes Indexes to add.
- * @var string $alteredFields Fields to change.
- * @var string $alteredIndexes Indexes to change.
+ * @param string $tableName The name of the table.
+ * @param string $newFields Fields to add.
+ * @param string $newIndexes Indexes to add.
+ * @param string $alteredFields Fields to change.
+ * @param string $alteredIndexes Indexes to change.
* @return void.
*/
public function alterTable($table, $newFields = null, $newIndexes = null, $alteredFields = null, $alteredIndexes = null) {
@@ -353,8 +353,8 @@ class PDODatabase extends Database {
/**
* Rename an existing table, the TO is necessary for PostgreSQL and MS SQL.
- * @var string $oldTableName The name of the existing table.
- * @var string $newTableName How the table should be named from now on.
+ * @param string $oldTableName The name of the existing table.
+ * @param string $newTableName How the table should be named from now on.
* @return void.
*/
public function renameTable($oldTableName, $newTableName) {
@@ -656,6 +656,8 @@ class PDODatabase extends Database {
/**
* A result-set from a database query (array).
+ * @package sapphire
+ * @subpackage model
*/
class PDOQuery extends Query {
private $database;
diff --git a/core/model/RedirectorPage.php b/core/model/RedirectorPage.php
index 5e8f267e4..a38b88079 100755
--- a/core/model/RedirectorPage.php
+++ b/core/model/RedirectorPage.php
@@ -2,11 +2,13 @@
/**
* @package cms
+ * @subpackage content
*/
/**
* A redirector page redirects when the page is visited.
* @package cms
+ * @subpackage content
*/
class RedirectorPage extends Page {
static $add_action = "Redirector to another page";
@@ -94,6 +96,11 @@ class RedirectorPage extends Page {
}
}
+/**
+ * Controller for the {@link RedirectorPage}.
+ * @package cms
+ * @subpackage content
+ */
class RedirectorPage_Controller extends Page_Controller {
function init() {
if($this->RedirectionType == 'External') {
diff --git a/forms/CheckboxField.php b/forms/CheckboxField.php
index 760b8fd96..c3eb79300 100755
--- a/forms/CheckboxField.php
+++ b/forms/CheckboxField.php
@@ -84,6 +84,11 @@ HTML;
}
}
+/**
+ * Readonly version of a checkbox field - "Yes" or "No".
+ * @package forms
+ * @subpackage fields-basic
+ */
class CheckboxField_Readonly extends ReadonlyField {
function performReadonlyTransformation() {
return $this;
diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php
index b7a0213e8..f0b517290 100755
--- a/forms/ComplexTableField.php
+++ b/forms/ComplexTableField.php
@@ -645,6 +645,11 @@ JS;
}
+/**
+ * Single row of a {@link ComplexTableField}.
+ * @package forms
+ * @subpackage fields-relational
+ */
class ComplexTableField_Item extends TableListField_Item {
/**
* Needed to transfer pagination-status from overview.
@@ -680,6 +685,8 @@ class ComplexTableField_Item extends TableListField_Item {
* detailed view of the source class your presenting.
* You can customise the fields and requirements as well as any
* permissions you might need.
+ * @package forms
+ * @subpackage fields-relational
*/
class ComplexTableField_Popup extends Form {
protected $sourceClass;
diff --git a/forms/CompositeDateField.php b/forms/CompositeDateField.php
index 227a415d0..989d354cc 100755
--- a/forms/CompositeDateField.php
+++ b/forms/CompositeDateField.php
@@ -143,6 +143,8 @@ JS;
/**
* Allows dates to be represented in a form, by
* showing in a user friendly format, eg, dd/mm/yyyy.
+ * @package forms
+ * @subpackage fields-datetime
*/
class CompositeDateField_Disabled extends DateField {
function setValue($val) {
diff --git a/forms/CurrencyField.php b/forms/CurrencyField.php
index 90b086c8a..669b556a3 100755
--- a/forms/CurrencyField.php
+++ b/forms/CurrencyField.php
@@ -79,7 +79,9 @@ JS;
}
/**
- * Creates the appropriate readonly field for this class.
+ * Readonly version of a {@link CurrencyField}.
+ * @package forms
+ * @subpackage fields-formattedinput
*/
class CurrencyField_Readonly extends ReadonlyField{
diff --git a/forms/CustomRequiredFields.php b/forms/CustomRequiredFields.php
index 7c3130ea3..aefbcee3c 100755
--- a/forms/CustomRequiredFields.php
+++ b/forms/CustomRequiredFields.php
@@ -15,8 +15,7 @@ class CustomRequiredFields extends RequiredFields{
/**
* Pass each field to be validated as a seperate argument
- * __construct()'s arguments needs to be an array
- * @mpeel Unfortunately the line 'function __construct(array $required)' breaks older versions of PHP 5, so remove the forcing of array
+ * @param $required array The list of required fields
*/
function __construct($required) {
$this->required = $required;
diff --git a/forms/DataReport.php b/forms/DataReport.php
index 18b8645ee..0a3af2758 100755
--- a/forms/DataReport.php
+++ b/forms/DataReport.php
@@ -201,8 +201,8 @@ HTML
/**
*Todo: Returns the HTML for the body of the reported table, excluding table header
- *@Param rowCallBack: the function name for how the rows are formated
- *@Param cellCallBack: the function name for how the cells are formated
+ * @param rowCallBack: the function name for how the rows are formated
+ * @param cellCallBack: the function name for how the cells are formated
*/
protected function datacells($rowCallBack = 'htmlTableRow', $cellCallBack = 'htmlTableDataCell' ) {
$records = $this->getRecords();
@@ -555,6 +555,9 @@ HTML
/**
* A controller class work for exporting reported table to CSV format.
+ * @package forms
+ * @subpackage fields-reports
+ * @deprecated This should be considered alpha code; reporting needs a clean-up.
*/
class DataReport_Controller extends Controller{
diff --git a/forms/DateField.php b/forms/DateField.php
index 00a0fdbcf..8675bcc70 100755
--- a/forms/DateField.php
+++ b/forms/DateField.php
@@ -89,8 +89,10 @@ JS;
}
/**
- * Allows dates to be represented in a form, by
- * showing in a user friendly format, eg, dd/mm/yyyy.
+ * Disabled version of {@link DateField}.
+ * Allows dates to be represented in a form, by showing in a user friendly format, eg, dd/mm/yyyy.
+ * @package forms
+ * @subpackage fields-datetime
*/
class DateField_Disabled extends DateField {
diff --git a/forms/DropdownField.php b/forms/DropdownField.php
index 5007ba9ec..727f09081 100755
--- a/forms/DropdownField.php
+++ b/forms/DropdownField.php
@@ -85,9 +85,12 @@ class DropdownField extends FormField {
}
/**
- * The class is originally designed to be used by RelatedDataEditor
- * However, it can potentially be used as a normal dropdown field with add links in a normal form
- */
+ * Dropdown field with an add button to the right.
+ * The class is originally designed to be used by RelatedDataEditor
+ * However, it can potentially be used as a normal dropdown field with add links in a normal form
+ * @package forms
+ * @subpackage fields-basic
+ */
class DropdownField_WithAdd extends DropdownField {
protected $addText, $useExistingText, $addLink, $useExistingLink;
diff --git a/forms/EditableButton.php b/forms/EditableButton.php
index b46fa8ea6..27af96cc6 100755
--- a/forms/EditableButton.php
+++ b/forms/EditableButton.php
@@ -8,6 +8,8 @@
/**
* EditableButton
* Allows a user to modify the text on the button
+ * @package forms
+ * @subpackage fieldeditor
*/
class EditableButton extends FormField {
diff --git a/forms/Form.php b/forms/Form.php
index 67b89ae10..39807bc25 100644
--- a/forms/Form.php
+++ b/forms/Form.php
@@ -18,7 +18,6 @@
* recreate the form object upon form submission, without the use of a session, which would be too
* resource-intensive.
*
- * @example forms/Form.php See how you can create a form on your controller.
* @package forms
* @subpackage core
*/
diff --git a/forms/FormAction.php b/forms/FormAction.php
index 710f3cb2d..56b7e8e0b 100755
--- a/forms/FormAction.php
+++ b/forms/FormAction.php
@@ -58,6 +58,10 @@ class FormAction extends FormField {
}
}
+/**
+ * @package forms
+ * @subpackage actions
+ */
class FormAction_WithoutLabel extends FormAction {
function Title(){
return null;
diff --git a/forms/HasManyComplexTableField.php b/forms/HasManyComplexTableField.php
index 0659503f2..9ad5b8038 100644
--- a/forms/HasManyComplexTableField.php
+++ b/forms/HasManyComplexTableField.php
@@ -134,6 +134,11 @@ HTML;
}
}
+/**
+ * Single record of a {@link HasManyComplexTableField} field.
+ * @package forms
+ * @subpackage fields-relational
+ */
class HasManyComplexTableField_Item extends ComplexTableField_Item {
function MarkingCheckbox() {
diff --git a/forms/HasOneComplexTableField.php b/forms/HasOneComplexTableField.php
index 5ec93423d..3a94a69fa 100644
--- a/forms/HasOneComplexTableField.php
+++ b/forms/HasOneComplexTableField.php
@@ -16,8 +16,8 @@ class HasOneComplexTableField extends HasManyComplexTableField {
public $isOneToOne = false;
- function getParentIdName($parentClass, $childClass) {
- return $this->getParentIdNameRelation($parentClass, $childClass, 'has_one');
+ function getParentIdName($parentClass, $childClass) {
+ return $this->getParentIdNameRelation($parentClass, $childClass, 'has_one');
}
function getControllerJoinID() {
@@ -54,6 +54,11 @@ HTML;
}
}
+/**
+ * Single record of a {@link HasOneComplexTableField} field.
+ * @package forms
+ * @subpackage fields-relational
+ */
class HasOneComplexTableField_Item extends ComplexTableField_Item {
function MarkingCheckbox() {
diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php
index b81446a57..e80300085 100755
--- a/forms/HtmlEditorField.php
+++ b/forms/HtmlEditorField.php
@@ -183,6 +183,11 @@ class HtmlEditorField extends TextareaField {
}
}
+/**
+ * Readonly version of an {@link HTMLEditorField}.
+ * @package forms
+ * @subpackage fields-formattedinput
+ */
class HtmlEditorField_readonly extends ReadonlyField {
function Field() {
$valforInput = $this->value ? Convert::raw2att($this->value) : "";
@@ -231,7 +236,12 @@ function HtmlEditorField_dataValue_processImage($parts) {
return $result;
}
-
+/**
+ * External toolbar for the HtmlEditorField.
+ * This is used by the CMS
+ * @package forms
+ * @subpackage fields-formattedinput
+ */
class HtmlEditorField_Toolbar extends ViewableData {
protected $controller, $name;
@@ -414,7 +424,10 @@ class HtmlEditorField_Toolbar extends ViewableData {
/**
- * These controls are used when manually constructing a toolbar, as we do in the CMS
+ * Base class for HTML editor toolbar buttons.
+ * These controls are used when manually constructing a toolbar, as we do in the CMS.
+ * @package forms
+ * @subpackage fields-formattedinput
*/
class HtmlEditorField_control extends ViewableData {
protected $command;
@@ -423,6 +436,11 @@ class HtmlEditorField_control extends ViewableData {
function Command() { return $this->command; }
}
+/**
+ * Button on the HTML edityor toolbar.
+ * @package forms
+ * @subpackage fields-formattedinput
+ */
class HtmlEditorField_button extends HtmlEditorField_control {
function __construct($command, $icon, $title = null) {
$this->title = $title ? $title : $command;
@@ -452,8 +470,20 @@ class HtmlEditorField_button extends HtmlEditorField_control {
return $this->icon;
}
}
+
+/**
+ * Separator on the HTML edityor toolbar.
+ * @package forms
+ * @subpackage fields-formattedinput
+ */
class HtmlEditorField_separator extends HtmlEditorField_control {
}
+
+/**
+ * Dropdown field on the HTML editor toolbar.
+ * @package forms
+ * @subpackage fields-formattedinput
+ */
class HtmlEditorField_dropdown extends HtmlEditorField_control {
protected $options, $idSegment;
@@ -477,6 +507,12 @@ class HtmlEditorField_dropdown extends HtmlEditorField_control {
return $this->idSegment;
}
}
+
+/**
+ * Line break on the HTML editor toolbar.
+ * @package forms
+ * @subpackage fields-formattedinput
+ */
class HtmlEditorField_break extends HtmlEditorField_control {
}
diff --git a/forms/InlineFormAction.php b/forms/InlineFormAction.php
index 1e34126aa..2ed1bae95 100755
--- a/forms/InlineFormAction.php
+++ b/forms/InlineFormAction.php
@@ -53,6 +53,11 @@ class InlineFormAction extends FormField {
}
}
+/**
+ * Readonly version of {@link InlineFormAction}.
+ * @package forms
+ * @subpackage actions
+ */
class InlineFormAction_ReadOnly extends FormField {
function Field() {
return "name}\" value=\"{$this->title}\" id=\"{$this->id()}\" disabled=\"disabled\" class=\"action$extraClass\" />";
diff --git a/forms/LookupField.php b/forms/LookupField.php
index fd4ae3fc5..0e344d105 100755
--- a/forms/LookupField.php
+++ b/forms/LookupField.php
@@ -5,7 +5,6 @@
* @subpackage fields-basic
*/
-
/**
* Read-only complement of {@link DropdownField}.
* Shows the "human value" of the dropdown field for the currently selected value.
diff --git a/forms/SimpleImageField.php b/forms/SimpleImageField.php
index 01c2c2880..275f78103 100755
--- a/forms/SimpleImageField.php
+++ b/forms/SimpleImageField.php
@@ -54,6 +54,11 @@ class SimpleImageField extends FileField {
}
}
+/**
+ * Disabled version of {@link SimpleImageField}.
+ * @package forms
+ * @subpackage fields-files
+ */
class SimpleImageField_Disabled extends FormField {
function Field() {
diff --git a/forms/SubmittedFileField.php b/forms/SubmittedFileField.php
index ad304175a..ea4231cc8 100755
--- a/forms/SubmittedFileField.php
+++ b/forms/SubmittedFileField.php
@@ -6,6 +6,7 @@
/**
* A file uploaded on a UserDefinedForm field
+ * @package cms
*/
class SubmittedFileField extends SubmittedFormField {
diff --git a/forms/SubmittedForm.php b/forms/SubmittedForm.php
index 4761d5ed1..3c29ece29 100755
--- a/forms/SubmittedForm.php
+++ b/forms/SubmittedForm.php
@@ -5,8 +5,8 @@
*/
/**
- * SubmittedForm
* Contents of an UserDefinedForm submission
+ * @package cms
*/
class SubmittedForm extends DataObject {
static $has_one = array(
diff --git a/forms/SubmittedFormField.php b/forms/SubmittedFormField.php
index 9b834abb4..0d8c383c7 100755
--- a/forms/SubmittedFormField.php
+++ b/forms/SubmittedFormField.php
@@ -5,10 +5,9 @@
*/
/**
- * SubmittedFormField
* Data received from a UserDefinedForm submission
+ * @package cms
*/
-
class SubmittedFormField extends DataObject {
static $db = array(
diff --git a/forms/SubmittedFormReportField.php b/forms/SubmittedFormReportField.php
index def9bb08d..a0648c337 100755
--- a/forms/SubmittedFormReportField.php
+++ b/forms/SubmittedFormReportField.php
@@ -5,10 +5,9 @@
*/
/**
- * SubmittedFormReportField
* Displays a summary of instances of a form submitted to the website
+ * @package cms
*/
-
class SubmittedFormReportField extends FormField {
/**
diff --git a/forms/TimeField.php b/forms/TimeField.php
index 347b5c770..f8bc9c941 100755
--- a/forms/TimeField.php
+++ b/forms/TimeField.php
@@ -6,7 +6,7 @@
*/
/**
- * Date field.
+ * Time field.
* Default Value represented in the format passed as constructor.
*
* @package forms
@@ -62,7 +62,9 @@ class TimeField extends TextField {
}
/**
- * The readonly class for our TimeField
+ * The readonly class for our {@link TimeField}.
+ * @package forms
+ * @subpackage fields-datetime
*/
class TimeField_Readonly extends TimeField {
diff --git a/forms/Validator.php b/forms/Validator.php
index dce526c58..73b19da19 100755
--- a/forms/Validator.php
+++ b/forms/Validator.php
@@ -13,7 +13,6 @@
* TODO Automatically mark fields after serverside validation and replace the form through
* FormResponse if the request was made by ajax.
*
- * @example forms/Form.php See how you can create a form on your controller.
* @package forms
* @subpackage validators
*/
diff --git a/misc/Browscap.php b/misc/Browscap.php
index a338d79b6..bf57cdadb 100644
--- a/misc/Browscap.php
+++ b/misc/Browscap.php
@@ -666,6 +666,8 @@ class Browscap
* @copyright Copyright (c) 2006 Jonathan Stoppani
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
* @link http://garetjax.info/projects/browscap/
+ * @package sapphire
+ * @subpackage misc
*/
class Browscap_Exception extends Exception
{}
diff --git a/parsers/HTML/BBCodeParser/Filter.php b/parsers/HTML/BBCodeParser/Filter.php
index afac5e4c7..cd61813f1 100644
--- a/parsers/HTML/BBCodeParser/Filter.php
+++ b/parsers/HTML/BBCodeParser/Filter.php
@@ -4,11 +4,15 @@
* @subpackage misc
*/
+/**
+ */
require_once 'HTML/HTMLBBCodeParser.php';
/**
-* Dummy class that filters need to extend from.
-*/
+ * Dummy class that filters need to extend from.
+ * @package sapphire
+ * @subpackage misc
+ */
class SSHTMLBBCodeParser_Filter extends SSHTMLBBCodeParser
{
}
diff --git a/parsers/HTML/BBCodeParser/Filter/Basic.php b/parsers/HTML/BBCodeParser/Filter/Basic.php
index 74cf52637..b3d4e9004 100644
--- a/parsers/HTML/BBCodeParser/Filter/Basic.php
+++ b/parsers/HTML/BBCodeParser/Filter/Basic.php
@@ -26,11 +26,15 @@
*/
+/**
+ */
require_once 'HTML/BBCodeParser/Filter.php';
-
-
+/**
+ * @package sapphire
+ * @subpackage misc
+ */
class SSHTMLBBCodeParser_Filter_Basic extends SSHTMLBBCodeParser_Filter
{
diff --git a/parsers/HTML/BBCodeParser/Filter/EmailLinks.php b/parsers/HTML/BBCodeParser/Filter/EmailLinks.php
index c0fc404fd..c46cb1e21 100644
--- a/parsers/HTML/BBCodeParser/Filter/EmailLinks.php
+++ b/parsers/HTML/BBCodeParser/Filter/EmailLinks.php
@@ -26,11 +26,17 @@
*/
+/**
+ */
require_once 'HTML/BBCodeParser/Filter.php';
+/**
+ * @package sapphire
+ * @subpackage misc
+ */
class SSHTMLBBCodeParser_Filter_EmailLinks extends SSHTMLBBCodeParser_Filter
{
diff --git a/parsers/HTML/BBCodeParser/Filter/Extended.php b/parsers/HTML/BBCodeParser/Filter/Extended.php
index d2e65ee81..67786bf84 100644
--- a/parsers/HTML/BBCodeParser/Filter/Extended.php
+++ b/parsers/HTML/BBCodeParser/Filter/Extended.php
@@ -25,12 +25,16 @@
* @author Stijn de Reede
*/
-
+/**
+ */
require_once 'HTML/BBCodeParser/Filter.php';
-
+/**
+ * @package sapphire
+ * @subpackage misc
+ */
class SSHTMLBBCodeParser_Filter_Extended extends SSHTMLBBCodeParser_Filter
{
diff --git a/parsers/HTML/BBCodeParser/Filter/Images.php b/parsers/HTML/BBCodeParser/Filter/Images.php
index daa58a44a..fd354c1c3 100644
--- a/parsers/HTML/BBCodeParser/Filter/Images.php
+++ b/parsers/HTML/BBCodeParser/Filter/Images.php
@@ -24,8 +24,15 @@
* @subpackage misc
* @author Stijn de Reede
*/
+
+/**
+ */
require_once 'HTML/BBCodeParser/Filter.php';
+/**
+ * @package sapphire
+ * @subpackage misc
+ */
class SSHTMLBBCodeParser_Filter_Images extends SSHTMLBBCodeParser_Filter
{
diff --git a/parsers/HTML/BBCodeParser/Filter/Links.php b/parsers/HTML/BBCodeParser/Filter/Links.php
index 1685aee2e..d88a9557f 100644
--- a/parsers/HTML/BBCodeParser/Filter/Links.php
+++ b/parsers/HTML/BBCodeParser/Filter/Links.php
@@ -24,10 +24,14 @@
* @subpackage misc
* @author Stijn de Reede
*/
+
+/**
+ */
require_once 'HTML/BBCodeParser/Filter.php';
/**
- *
+ * @package sapphire
+ * @subpackage misc
*/
class SSHTMLBBCodeParser_Filter_Links extends SSHTMLBBCodeParser_Filter
{
diff --git a/parsers/HTML/BBCodeParser/Filter/Lists.php b/parsers/HTML/BBCodeParser/Filter/Lists.php
index c35bd05c5..8f567f67d 100644
--- a/parsers/HTML/BBCodeParser/Filter/Lists.php
+++ b/parsers/HTML/BBCodeParser/Filter/Lists.php
@@ -26,10 +26,13 @@
* @author Stijn de Reede
*/
+/**
+ */
require_once 'HTML/BBCodeParser/Filter.php';
/**
- *
+ * @package sapphire
+ * @subpackage misc
*/
class SSHTMLBBCodeParser_Filter_Lists extends SSHTMLBBCodeParser_Filter
{
diff --git a/parsers/HTML/HTMLBBCodeParser.php b/parsers/HTML/HTMLBBCodeParser.php
index 1ec19fac7..373296c90 100644
--- a/parsers/HTML/HTMLBBCodeParser.php
+++ b/parsers/HTML/HTMLBBCodeParser.php
@@ -1,4 +1,10 @@
, SilverStripe
-*
-*
-* This is a parser to replace UBB style tags with their html equivalents. It
-* does not simply do some regex calls, but is complete stack based
-* parse engine. This ensures that all tags are properly nested, if not,
-* extra tags are added to maintain the nesting. This parser should only produce
-* xhtml 1.0 compliant code. All tags are validated and so are all their attributes.
-* It should be easy to extend this parser with your own tags, see the _definedTags
-* format description below.
-*
-*
-* Usage:
-* $parser = new SSHTMLBBCodeParser();
-* $parser->setText('normal [b]bold[/b] and normal again');
-* $parser->parse();
-* echo $parser->getParsed();
-* or:
-* $parser = new SSHTMLBBCodeParser();
-* echo $parser->qparse('normal [b]bold[/b] and normal again');
-* or:
-* echo SSHTMLBBCodeParser::staticQparse('normal [b]bold[/b] and normal again');
-*
-*
-* Setting the options from the ini file:
-* $config = parse_ini_file('BBCodeParser.ini', true);
-* $options = &PEAR::getStaticProperty('SSHTMLBBCodeParser', '_options');
-* $options = $config['SSHTMLBBCodeParser'];
-* unset($options);
-*
-*
-*/
-
+ * @package sapphire
+ * @subpackage misc
+ * @author Stijn de Reede , SilverStripe
+ *
+ *
+ * This is a parser to replace UBB style tags with their html equivalents. It
+ * does not simply do some regex calls, but is complete stack based
+ * parse engine. This ensures that all tags are properly nested, if not,
+ * extra tags are added to maintain the nesting. This parser should only produce
+ * xhtml 1.0 compliant code. All tags are validated and so are all their attributes.
+ * It should be easy to extend this parser with your own tags, see the _definedTags
+ * format description below.
+ *
+ *
+ * Usage:
+ * $parser = new SSHTMLBBCodeParser();
+ * $parser->setText('normal [b]bold[/b] and normal again');
+ * $parser->parse();
+ * echo $parser->getParsed();
+ * or:
+ * $parser = new SSHTMLBBCodeParser();
+ * echo $parser->qparse('normal [b]bold[/b] and normal again');
+ * or:
+ * echo SSHTMLBBCodeParser::staticQparse('normal [b]bold[/b] and normal again');
+ *
+ *
+ * Setting the options from the ini file:
+ * $config = parse_ini_file('BBCodeParser.ini', true);
+ * $options = &PEAR::getStaticProperty('SSHTMLBBCodeParser', '_options');
+ * $options = $config['SSHTMLBBCodeParser'];
+ * unset($options);
+ */
class SSHTMLBBCodeParser
{
/**
diff --git a/security/Group.php b/security/Group.php
index a5dc73959..c9227121f 100644
--- a/security/Group.php
+++ b/security/Group.php
@@ -178,6 +178,12 @@ class Group extends DataObject {
}
}
}
+
+/**
+ * A group representing everyone, including users not logged in.
+ * @package sapphire
+ * @subpackage security
+ */
class Group_Unsecure extends Group {
}
?>
diff --git a/security/Member.php b/security/Member.php
index 66746cb38..a0b47ab92 100644
--- a/security/Member.php
+++ b/security/Member.php
@@ -815,6 +815,8 @@ class Member extends DataObject {
/**
* Special kind of {@link ComponentSet} that has special methods for
* manipulating a user's membership
+ * @package sapphire
+ * @subpackage security
*/
class Member_GroupSet extends ComponentSet {
/**
@@ -1019,6 +1021,11 @@ class Member_GroupSet extends ComponentSet {
+/**
+ * Form for editing a member profile.
+ * @package sapphire
+ * @subpackage security
+ */
class Member_ProfileForm extends Form {
function __construct($controller, $name, $member) {
@@ -1073,6 +1080,8 @@ class Member_ProfileForm extends Form {
/**
* Class used as template to send an email to new members
+ * @package sapphire
+ * @subpackage security
*/
class Member_SignupEmail extends Email_Template {
protected $from = ''; // setting a blank from address uses the site's default administrator email
@@ -1129,6 +1138,8 @@ class Member_SignupEmail extends Email_Template {
/**
* Class used as template to send an email saying that the password has been
* changed
+ * @package sapphire
+ * @subpackage security
*/
class Member_ChangePasswordEmail extends Email_Template {
protected $from = ''; // setting a blank from address uses the site's default administrator email
@@ -1145,6 +1156,8 @@ class Member_ChangePasswordEmail extends Email_Template {
/**
* Class used as template to send the forgot password email
+ * @package sapphire
+ * @subpackage security
*/
class Member_ForgotPasswordEmail extends Email_Template {
protected $from = ''; // setting a blank from address uses the site's default administrator email
@@ -1160,9 +1173,9 @@ class Member_ForgotPasswordEmail extends Email_Template {
/**
- * Record to keep track of which records a member has unsubscribed from and
- * when
- *
+ * Record to keep track of which records a member has unsubscribed from and when.
+ * @package sapphire
+ * @subpackage security
* @todo Check if that email stuff ($from, $to, $subject, $body) is needed
* here! (Markus)
*/
@@ -1219,6 +1232,8 @@ class Member_UnsubscribeRecord extends DataObject {
/**
* Member Validator
+ * @package sapphire
+ * @subpackage security
*/
class Member_Validator extends RequiredFields {
diff --git a/security/Permission.php b/security/Permission.php
index cd369354b..82ad51cef 100755
--- a/security/Permission.php
+++ b/security/Permission.php
@@ -542,6 +542,8 @@ class Permission extends DataObject {
*
* This class is used to group permissions together for showing on an
* interface.
+ * @package sapphire
+ * @subpackage security
*/
class Permission_Group {
diff --git a/tools/importer.php b/tools/importer.php
index 6e0146672..bf974b32c 100755
--- a/tools/importer.php
+++ b/tools/importer.php
@@ -6,10 +6,10 @@
*/
/**
- ** Contains heaps of tools that you can use when importing database information
- **/
-
-
+ * Contains heaps of tools that you can use when importing database information
+ * @package sapphire
+ * @subpackage misc
+ */
class importer_Controller extends Page_Controller {
// Generates the URLsegment for every page that doesn't have one.