Updated API documentation package tags

Fixed some whitespace

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47725 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-01-08 06:37:50 +00:00
parent 5ffeb1a4be
commit d27937f448
157 changed files with 1662 additions and 961 deletions

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage integration
*/
/** /**
* RSSFeed class * RSSFeed class
* *

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage integration
*/
/** /**
* RestfulService class allows you to consume various RESTful APIs. * RestfulService class allows you to consume various RESTful APIs.
* Through this you could connect and aggregate data of various web services. * Through this you could connect and aggregate data of various web services.

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage integration
*/
/**
* Soap server class
*/
class SapphireSoapServer extends Controller { class SapphireSoapServer extends Controller {
static $methods = array(); static $methods = array();
static $xsd_types = array( static $xsd_types = array(

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage integration
*/
/**************************************************** /****************************************************
SIMPLEPIE SIMPLEPIE
A PHP-Based RSS and Atom Feed Framework A PHP-Based RSS and Atom Feed Framework

View File

@ -7,12 +7,12 @@
* @link http://spyc.sourceforge.net/ * @link http://spyc.sourceforge.net/
* @copyright Copyright 2005-2006 Chris Wanstrath * @copyright Copyright 2005-2006 Chris Wanstrath
* @license http://www.opensource.org/licenses/mit-license.php MIT License * @license http://www.opensource.org/licenses/mit-license.php MIT License
* @package Spyc * @package sapphire
* @subpackage misc
*/ */
/** /**
* A node, used by Spyc for parsing YAML. * A node, used by Spyc for parsing YAML.
* @package Spyc
*/ */
class YAMLNode { class YAMLNode {
/**#@+ /**#@+
@ -60,7 +60,6 @@
* $parser = new Spyc; * $parser = new Spyc;
* $array = $parser->load($file); * $array = $parser->load($file);
* </code> * </code>
* @package Spyc
*/ */
class Spyc { class Spyc {

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage cron
*/
/** /**
* Base class invoked from CLI rather than the webserver (Cron jobs, handling email bounces) * Base class invoked from CLI rather than the webserver (Cron jobs, handling email bounces)
*/ */

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage cron
*/
/** /**
* Classes that must be run daily extend this class * Classes that must be run daily extend this class
*/ */

View File

@ -1,6 +1,12 @@
<?php <?php
/** /**
* Executed a task monthly * @package sapphire
* @subpackage cron
*/
/**
* Classes that must be run monthly extend this class
*/ */
class MonthlyTask extends ScheduledTask { class MonthlyTask extends ScheduledTask {

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage cron
*/
/**
* Abstract task representing scheudled tasks
*/
abstract class ScheduledTask extends CliController { abstract class ScheduledTask extends CliController {
// this class exists as a logical extension // this class exists as a logical extension
} }

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage cron
*/
/**
* Classes that must be run weekly extend this class
*/
class WeeklyTask extends ScheduledTask { class WeeklyTask extends ScheduledTask {
} }

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage view
*/
/** /**
* Lets you wrap a bunch of array data into a ViewableData object. * Lets you wrap a bunch of array data into a ViewableData object.
* This is useful when you want to pass data to a template in the "SilverStripe 1" way of giving a * This is useful when you want to pass data to a template in the "SilverStripe 1" way of giving a

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/**
* Library of static methods for manipulating arrays.
*/
class ArrayLib extends Object { class ArrayLib extends Object {
static function invert($arr) { static function invert($arr) {
if (! $arr) return false; if (! $arr) return false;

View File

@ -3,6 +3,9 @@
* Provides introspection information about the class tree. * Provides introspection information about the class tree.
* It's a cached wrapper around the built-in class functions. Sapphire uses class introspection heavily * It's a cached wrapper around the built-in class functions. Sapphire uses class introspection heavily
* and without the caching it creates an unfortunate performance hit. * and without the caching it creates an unfortunate performance hit.
*
* @package sapphire
* @subpackage core
*/ */
class ClassInfo { class ClassInfo {
/** /**

View File

@ -14,6 +14,9 @@
* *
* html: HTML source suitable for use in a page or email * html: HTML source suitable for use in a page or email
* text: Plain-text content, suitable for display to a user as-is, or insertion in a plaintext email. * text: Plain-text content, suitable for display to a user as-is, or insertion in a plaintext email.
*
* @package sapphire
* @subpackage misc
*/ */
class Convert extends Object { class Convert extends Object {
// Convert raw to other formats // Convert raw to other formats

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/**
* A set of static methods for manipulating cookies.
*/
class Cookie extends Object { class Cookie extends Object {
/** /**
* Set a cookie variable * Set a cookie variable

View File

@ -1,4 +1,11 @@
<?php <?php
/**
* This file contains several methods that control the core behaviour of Sapphire.
*
* @package sapphire
* @subpackage core
*/
/** /**
* Returns the temporary folder that sapphire/silverstripe should use for its cache files * Returns the temporary folder that sapphire/silverstripe should use for its cache files
* This is loaded into the TEMP_FOLDER define on start up * This is loaded into the TEMP_FOLDER define on start up

View File

@ -1,6 +1,9 @@
<?php <?php
/** /**
* Class of static methods to support debugging. * Class of static methods to support debugging.
*
* @package sapphire
* @subpackage core
*/ */
class Debug { class Debug {

View File

@ -1,8 +1,16 @@
<?php <?php
define('X_MAILER', 'SilverStripe Mailer - version 2006.06.21 (Sent from "'.$_SERVER['SERVER_NAME'].'")'); /**
* @package sapphire
* @subpackage email
*/
/**
* X-Mailer header value on emails sent
*/
define('X_MAILER', 'SilverStripe Mailer - version 2006.06.21 (Sent from "'.$_SERVER['SERVER_NAME'].'")');
// Note: The constant 'BOUNCE_EMAIL' should be defined as a valid email address for where bounces should be returned to. // Note: The constant 'BOUNCE_EMAIL' should be defined as a valid email address for where bounces should be returned to.
/** /**
* Class to support sending emails. * Class to support sending emails.
*/ */

View File

@ -3,6 +3,9 @@
/** /**
* Add extension that can be added to an object with Object::add_extension(). * Add extension that can be added to an object with Object::add_extension().
* For DataObject extensions, use DataObjectDecorator * For DataObject extensions, use DataObjectDecorator
*
* @package sapphire
* @subpackage core
*/ */
abstract class Extension extends Object { abstract class Extension extends Object {

View File

@ -3,6 +3,9 @@
/** /**
* A class with HTTP-related helpers. * A class with HTTP-related helpers.
* Like Debug, this is more a bundle of methods than a class ;-) * Like Debug, this is more a bundle of methods than a class ;-)
*
* @package sapphire
* @subpackage misc
*/ */
class HTTP { class HTTP {

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* ManifestBuilder * Name of the manifest file
*/
define("MANIFEST_FILE", TEMP_FOLDER . "/manifest" . str_replace(array("/",":", "\\"),"_", $_SERVER['SCRIPT_FILENAME']));
/**
* The ManifestBuilder class generates the manifest file and keeps it fresh.
* *
* The manifest file is a PHP include that contains global variables that * The manifest file is a PHP include that contains global variables that
* represent the collected contents of the application: * represent the collected contents of the application:
@ -12,21 +17,9 @@
* Traversing the filesystem to collect this information on everypage. * Traversing the filesystem to collect this information on everypage.
* This information is cached so that it need not be regenerated on every * This information is cached so that it need not be regenerated on every
* pageview. * pageview.
*/
/**
* Define a constant for the name of the manifest file
*/
define("MANIFEST_FILE", TEMP_FOLDER . "/manifest" . str_replace(array("/",":", "\\"),"_", $_SERVER['SCRIPT_FILENAME']));
/**
* ManifestBuilder
* *
* The ManifestBuilder class generates the manifest file and keeps it fresh. * @package sapphire
* @subpackage core
*/ */
class ManifestBuilder { class ManifestBuilder {

View File

@ -1,9 +1,14 @@
<?php <?php
/**
* @package sapphire
* @subpackage core
*/
/** /**
* Base object that all others should inherit from. * Base object that all others should inherit from.
* This object provides a number of helper methods that patch over PHP's deficiencies. * This object provides a number of helper methods that patch over PHP's deficiencies.
*/ */
class Object { class Object {
/** /**
* This DataObjects extensions, eg Versioned. * This DataObjects extensions, eg Versioned.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage view
*/
/** /**
* Requirements tracker, for javascript and css. * Requirements tracker, for javascript and css.
* @todo Document the requirements tracker, and discuss it with the others. * @todo Document the requirements tracker, and discuss it with the others.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage view
*/
/** /**
* The SSViewer executes a .ss template file. * The SSViewer executes a .ss template file.
* The SSViewer class handles rendering of .ss templates. In addition to a full template in * The SSViewer class handles rendering of .ss templates. In addition to a full template in

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage control
*/
/** /**
* Handles all manipulation of the session. * Handles all manipulation of the session.
* *
@ -12,14 +17,6 @@
* *
* The instance object is basically just a way of manipulating a set of nested maps, and isn't specific to session data. * The instance object is basically just a way of manipulating a set of nested maps, and isn't specific to session data.
* This class is currently really basic and could do with a more well-thought-out implementation * This class is currently really basic and could do with a more well-thought-out implementation
*
* $session->myVar = 'XYZ' would be fine, as would Session::data->myVar. What about the equivalent
* of Session::get('member.abc')? Are the explicit accessor methods acceptable? Do we need a
* broader spectrum of functions, such as Session::inc("cart.$productID", 2)? And what should
* Session::get("cart") then return? An array?
*
* @todo Decide whether this class is really necessary, and if so, overhaul it. Perhaps use
* __set() and __get() on an instance, rather than static functions?
*/ */
class Session { class Session {
public static function set($name, $val) { public static function set($name, $val) {

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage view
*/ */
/** /**

View File

@ -12,6 +12,9 @@
* *
* Subclasses of ContentController are generally instantiated by ModelAsController; this will create * Subclasses of ContentController are generally instantiated by ModelAsController; this will create
* a controller based on the URLSegment action variable, by looking in the SiteTree table. * a controller based on the URLSegment action variable, by looking in the SiteTree table.
*
* @package sapphire
* @subpackage control
*/ */
class ContentController extends Controller { class ContentController extends Controller {
protected $dataRecord; protected $dataRecord;

View File

@ -1,4 +1,8 @@
<?php <?php
/**
* @package sapphire
* @subpackage control
*/
/** /**
* The content negotiator performs text/html or application/xhtml+xml switching. * The content negotiator performs text/html or application/xhtml+xml switching.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage control
*/
/** /**
* Base controller class. * Base controller class.
* Controllers are the cornerstone of all site functionality in Sapphire. The {@link Director} * Controllers are the cornerstone of all site functionality in Sapphire. The {@link Director}

View File

@ -6,6 +6,9 @@
* one of a number of patterns, and determines the controller, action and any argument to be * one of a number of patterns, and determines the controller, action and any argument to be
* used. It then runs the controller, which will finally run the viewer and/or perform processing * used. It then runs the controller, which will finally run the viewer and/or perform processing
* steps. * steps.
*
* @package sapphire
* @subpackage control
*/ */
class Director { class Director {

View File

@ -21,6 +21,9 @@
* *
* TODO Force a specific execution order ($forceTop, $forceBottom) * TODO Force a specific execution order ($forceTop, $forceBottom)
* TODO Extension to return different formats, e.g. JSON or XML * TODO Extension to return different formats, e.g. JSON or XML
*
* @package sapphire
* @subpackage forms
*/ */
class FormResponse { class FormResponse {

View File

@ -2,6 +2,9 @@
/** /**
* Represenets an HTTPResponse returned by a controller. * Represenets an HTTPResponse returned by a controller.
*
* @package sapphire
* @subpackage control
*/ */
class HTTPResponse extends Object { class HTTPResponse extends Object {
protected static $status_codes = array( protected static $status_codes = array(

View File

@ -4,6 +4,9 @@
* ModelAsController will hand over all control to the appopriate model object * ModelAsController will hand over all control to the appopriate model object
* It uses URLSegment to determine the right object. Also, if (ModelClass)_Controller exists, * It uses URLSegment to determine the right object. Also, if (ModelClass)_Controller exists,
* that controller will be used instead. It should be a subclass of ContentController. * that controller will be used instead. It should be a subclass of ContentController.
*
* @package sapphire
* @subpackage control
*/ */
class ModelAsController extends Controller implements NestedController { class ModelAsController extends Controller implements NestedController {

View File

@ -1,5 +1,16 @@
<?php <?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
* example of this.
*/
interface NestedController { interface NestedController {
public function getNestedController(); public function getNestedController();

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* This controller handles what happens when you visit the root URL * This controller handles what happens when you visit the root URL.
*
* @package sapphire
* @subpackage control
*/ */
class RootURLController extends Controller { class RootURLController extends Controller {
protected static $is_at_root = false; protected static $is_at_root = false;

View File

@ -21,6 +21,8 @@
* Please see the {Translatable} DataObjectDecorator for managing translations of database-content. * Please see the {Translatable} DataObjectDecorator for managing translations of database-content.
* *
* @author Bernat Foj Capell <bernat@silverstripe.com> * @author Bernat Foj Capell <bernat@silverstripe.com>
* @package sapphire
* @subpackage misc
*/ */
class i18n extends Controller { class i18n extends Controller {

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* @package sapphire * @package cms
* @subpackage core
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */

View File

@ -1,4 +1,8 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* DataObjectInterface is an interface that other data systems in your application can implement in order to behave in a manner * DataObjectInterface is an interface that other data systems in your application can implement in order to behave in a manner

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -4,7 +4,7 @@
* Database Administration * Database Administration
* *
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* @package sapphire * @package cms
* @subpackage core
*/ */
/** /**

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* @package sapphire * @package cms
* @subpackage core
*/ */
/** /**

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* @package sapphire * @package cms
* @subpackage core
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage filesystem
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -2,7 +2,7 @@
/** /**
* @package sapphire * @package sapphire
* @subpackage core * @subpackage model
*/ */
/** /**

View File

@ -1,7 +1,6 @@
<?php <?php
/** /**
* @package sapphire * @package cms
* @subpackage core
*/ */
/** /**

View File

@ -1,5 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* A redirector page redirects when the page is visited. * A redirector page redirects when the page is visited.
*/ */

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* This is a class used to represent key->value pairs generated from database queries. * This is a class used to represent key->value pairs generated from database queries.
* The query isn't actually executed until you need it. * The query isn't actually executed until you need it.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* Object representing a SQL query. * Object representing a SQL query.
* The various parts of the SQL query can be manipulated individually. * The various parts of the SQL query can be manipulated individually.

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* @package sapphire * @package cms
* @subpackage core
*/ */
/** /**

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
* The {Translatable} decorator allows your DataObjects to have versions in different languages, * The {Translatable} decorator allows your DataObjects to have versions in different languages,
* defining which fields are can be translated. * defining which fields are can be translated.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* The Versioned decorator allows your DataObjects to have several versions, allowing * The Versioned decorator allows your DataObjects to have several versions, allowing
* you to rollback changes and view history. An example of this is the pages used in the CMS. * you to rollback changes and view history. An example of this is the pages used in the CMS.

View File

@ -1,5 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* Virtual Page creates an instance of a page, with the same fields that the original page had, but readonly. * Virtual Page creates an instance of a page, with the same fields that the original page had, but readonly.
* This allows you can have a page in mulitple places in the site structure, with different children without duplicating the content * This allows you can have a page in mulitple places in the site structure, with different children without duplicating the content

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* Represents a boolean field. * Represents a boolean field.
* *

View File

@ -1,6 +1,12 @@
<?php <?php
/** /**
* Currency value. * @package sapphire
* @subpackage model
*/
/**
* Represents a decimal field containing a currency amount.
* Currency the currency class only supports single currencies. * Currency the currency class only supports single currencies.
*/ */
class Currency extends Decimal { class Currency extends Decimal {

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* Single field in the database. * Single field in the database.
* Every field from the database is represented as a sub-class of DBField. In addition to supporting * Every field from the database is represented as a sub-class of DBField. In addition to supporting

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents a date field.
*/
class Date extends DBField { class Date extends DBField {
function setValue($value) { function setValue($value) {

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
if(!class_exists('Datetime')) { if(!class_exists('Datetime')) {
class Datetime extends Date { class Datetime extends Date {
function __construct($name) { function __construct($name) {

View File

@ -1,6 +1,12 @@
<?php <?php
/** /**
* Decimal value. * @package sapphire
* @subpackage model
*/
/**
* Represents a Decimal field.
*/ */
class Decimal extends DBField { class Decimal extends DBField {
protected $wholeSize, $decimalSize; protected $wholeSize, $decimalSize;

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents an enumeration field.
*/
class Enum extends DBField { class Enum extends DBField {
protected $enum, $default; protected $enum, $default;

View File

@ -1,6 +1,12 @@
<?php <?php
/** /**
* * @package sapphire
* @subpackage model
*/
/**
* Represents a floating point field.
*/ */
class Float extends DBField { class Float extends DBField {

View File

@ -1,5 +1,15 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents a large text field that contains HTML content.
*
* This behaves similarly to Text, but the template processor won't escape any HTML content within it.
*/
class HTMLText extends Text { class HTMLText extends Text {
/** /**

View File

@ -1,8 +1,14 @@
<?php <?php
/** /**
* This behaves exactly the same as Varchar but is intended to store HTML content in it. * @package sapphire
* The template processor won't escape any HTML content within it * @subpackage model
*/
/**
* Represents a short text field that is intended to contain HTML content.
*
* This behaves similarly to Varchar, but the template processor won't escape any HTML content within it.
*/ */
class HTMLVarchar extends Varchar { class HTMLVarchar extends Varchar {

View File

@ -1,5 +1,13 @@
<?php <?php
/** /**
* @package sapphire
* @subpackage model
*/
/**
* Represents an integer field.
*
* @param $defaultVal int * @param $defaultVal int
*/ */
class Int extends DBField { class Int extends DBField {

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents a decimal field from 0-1 containing a percentage value.
*/
class Percentage extends Decimal { class Percentage extends Decimal {
/** /**

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents a date-time field.
*/
class SSDatetime extends Date { class SSDatetime extends Date {
function setValue($value) { function setValue($value) {
if($value) $this->value = date('Y-m-d H:i:s', strtotime($value)); if($value) $this->value = date('Y-m-d H:i:s', strtotime($value));

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents a long text field.
*/
class Text extends DBField { class Text extends DBField {
static $casting = array( static $casting = array(
"AbsoluteLinks" => "HTMLText", "AbsoluteLinks" => "HTMLText",

View File

@ -1,8 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* Represents a column in the database with the type 'Time' * Represents a column in the database with the type 'Time'
*/ */
class Time extends DBField { class Time extends DBField {
function setVal($value) { function setVal($value) {

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/**
* Represents a short text field.
*/
class Varchar extends DBField { class Varchar extends DBField {
protected $size; protected $size;

View File

@ -1,5 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* The Notifications class allows you to create email notifications for various events. * The Notifications class allows you to create email notifications for various events.
* It lets your scripts generate a number of notifications, and delay sending of the emails until * It lets your scripts generate a number of notifications, and delay sending of the emails until

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage email
*/
/** /**
* Stores a queued email to be sent at the given time * Stores a queued email to be sent at the given time
*/ */

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage email
*/
/**
* Daily task to send queued email.
*/
class QueuedEmailDispatchTask extends DailyTask { class QueuedEmailDispatchTask extends DailyTask {
public function process() { public function process() {

View File

@ -1,6 +1,18 @@
<?php <?php
/**
* @package sapphire
* @subpackage filesystem
*/
/**
* Class for handling archives.
* To implement a specific archive system, create a subclass of this abstract class, and amend the implementation of Archive::open().
*/
abstract class Archive extends Object { abstract class Archive extends Object {
/**
* Return an Archive object for the given file.
*/
static function open($filename) { static function open($filename) {
if(substr($filename, strlen($filename) - strlen('.tar.gz')) == '.tar.gz' || if(substr($filename, strlen($filename) - strlen('.tar.gz')) == '.tar.gz' ||
substr($filename, strlen($filename) - strlen('.tar.bz2')) == '.tar.bz2' || substr($filename, strlen($filename) - strlen('.tar.bz2')) == '.tar.bz2' ||

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage filesystem
*/
/** /**
* This class handles the representation of a File within Sapphire * This class handles the representation of a File within Sapphire
* Note: The files are stored in the "/assets/" directory, but sapphire * Note: The files are stored in the "/assets/" directory, but sapphire

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage filesystem
*/
/**
* A collection of static methods for manipulating the filesystem.
*/
class Filesystem extends Object { class Filesystem extends Object {
public static $file_create_mask = 02775; public static $file_create_mask = 02775;

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage filesystem
*/
/**
* Represents a folder in the assets directory.
*/
class Folder extends File { class Folder extends File {
static $many_many = array( static $many_many = array(

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage filesystem
*/
/** /**
* A wrapper class for GD-based images, with lots of manipulation functions. * A wrapper class for GD-based images, with lots of manipulation functions.
*/ */

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Writes the POST array to a file as a last-ditch effort to preserve entered data. * Writes the POST array to a file as a last-ditch effort to preserve entered data.
*/ */

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage filesystem
*/
/**
* Implementation of .tar, .tar.gz, and .tar.bz2 archive handler.
*/
class TarballArchive extends Archive { class TarballArchive extends Archive {
private $filename = ''; private $filename = '';
private $compressionModifiers = ''; private $compressionModifiers = '';

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Provides a tabuar list in your form with view, edit and add links to edit records * Provides a tabuar list in your form with view, edit and add links to edit records
* with a "has-one"-relationship. Detail-views are shown in a greybox-iframe. * with a "has-one"-relationship. Detail-views are shown in a greybox-iframe.

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableButton * EditableButton
* Allows a user to modify the text on the button * Allows a user to modify the text on the button

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableCheckbox * EditableCheckbox
* A user modifiable checkbox on a UserDefinedForm * A user modifiable checkbox on a UserDefinedForm

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDropdown * EditableDropdown
* Represents a set of selectable radio buttons * Represents a set of selectable radio buttons

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDropdownOption * EditableDropdownOption
* Represents a single entry in an EditableRadioField * Represents a single entry in an EditableRadioField

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDateField * EditableDateField
* Allows a user to add a date field to the Field Editor * Allows a user to add a date field to the Field Editor

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDropdown * EditableDropdown
* Represents a modifiable dropdown box on a form * Represents a modifiable dropdown box on a form

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDropdownOption * EditableDropdownOption
* Represents a single entry in an EditableDropdown * Represents a single entry in an EditableDropdown

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableEmailField * EditableEmailField
* Allow users to define a validating editable email field for a UserDefinedForm * Allow users to define a validating editable email field for a UserDefinedForm

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableFileField * EditableFileField
* Allows a user to add a field that can be used to upload a file * Allows a user to add a field that can be used to upload a file

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Represents an editable form field * Represents an editable form field
*/ */

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Allows an editor to insert a generic heading into a field * Allows an editor to insert a generic heading into a field
*/ */

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Creates an editable field that displays members in a given group * Creates an editable field that displays members in a given group
*/ */

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDropdown * EditableDropdown
* Represents a set of selectable radio buttons * Represents a set of selectable radio buttons

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableDropdownOption * EditableDropdownOption
* Represents a single entry in an EditableRadioField * Represents a single entry in an EditableRadioField

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* EditableTextField * EditableTextField
* This control represents a user-defined field in a user defined form * This control represents a user-defined field in a user defined form

View File

@ -1,7 +1,8 @@
<?php <?php
/** /**
* Bulk of the form system * @package sapphire
* @subpackage forms
*/ */
/** /**

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Represents a field in a form. * Represents a field in a form.
* A FieldSet contains a number of FormField objects which make up the whole of a form. * A FieldSet contains a number of FormField objects which make up the whole of a form.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* This class represents "transformations" of a form - such as making it printable or making it readonly. * This class represents "transformations" of a form - such as making it printable or making it readonly.
* The idea is that sometimes you will want to make your own such transformations, and you shouldn't have * The idea is that sometimes you will want to make your own such transformations, and you shouldn't have

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
class HasManyComplexTableField extends ComplexTableField { class HasManyComplexTableField extends ComplexTableField {
public $joinField; public $joinField;

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
class HasOneComplexTableField extends HasManyComplexTableField { class HasOneComplexTableField extends HasManyComplexTableField {
protected $itemClass = 'HasOneComplexTableField_Item'; protected $itemClass = 'HasOneComplexTableField_Item';

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* A WYSIWYG editor field, powered by tinymce. * A WYSIWYG editor field, powered by tinymce.
* tinymce editor fields are created from <textarea> tags which are then converted with javascript. * tinymce editor fields are created from <textarea> tags which are then converted with javascript.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
class ManyManyComplexTableField extends HasManyComplexTableField { class ManyManyComplexTableField extends HasManyComplexTableField {
private $manyManyParentClass; private $manyManyParentClass;

View File

@ -1,5 +1,9 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Displays complex reports based on the list of tables and fields provided to * Displays complex reports based on the list of tables and fields provided to

View File

@ -1,4 +1,12 @@
<?php <?php
/**
* @package cms
*/
/**
* A file uploaded on a UserDefinedForm field
*/
class SubmittedFileField extends SubmittedFormField { class SubmittedFileField extends SubmittedFormField {
static $has_one = array( static $has_one = array(

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* SubmittedForm * SubmittedForm
* Contents of an UserDefinedForm submission * Contents of an UserDefinedForm submission

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* SubmittedFormField * SubmittedFormField
* Data received from a UserDefinedForm submission * Data received from a UserDefinedForm submission

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* SubmittedFormReportField * SubmittedFormReportField
* Displays a summary of instances of a form submitted to the website * Displays a summary of instances of a form submitted to the website

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* TableField behaves in the same manner as TableListField, however allows the addition of * TableField behaves in the same manner as TableListField, however allows the addition of
* fields and editing of attributes specified, and filtering results. * fields and editing of attributes specified, and filtering results.

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* Form field that embeds a list into a form, such as a member list or a file list. * Form field that embeds a list into a form, such as a member list or a file list.
* *

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage forms
*/
/** /**
* This validation class handles all form and custom form validation through * This validation class handles all form and custom form validation through
* the use of Required fields. * the use of Required fields.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
* Base class for XML parsers * Base class for XML parsers
*/ */

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
* Browscap.ini parsing class with caching and update capabilities * Browscap.ini parsing class with caching and update capabilities
* *
@ -19,7 +24,6 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
* @package Browscap
* @author Jonathan Stoppani <st.jonathan@gmail.com> * @author Jonathan Stoppani <st.jonathan@gmail.com>
* @copyright Copyright (c) 2006 Jonathan Stoppani * @copyright Copyright (c) 2006 Jonathan Stoppani
* @version 0.7 * @version 0.7
@ -656,7 +660,6 @@ class Browscap
/** /**
* Browscap.ini parsing class exception * Browscap.ini parsing class exception
* *
* @package Browscap
* @author Jonathan Stoppani <st.jonathan@gmail.com> * @author Jonathan Stoppani <st.jonathan@gmail.com>
* @copyright Copyright (c) 2006 Jonathan Stoppani * @copyright Copyright (c) 2006 Jonathan Stoppani
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License

View File

@ -1,10 +1,15 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
* Initial implementation of Sitemap support. * Initial implementation of Sitemap support.
* GoogleSitemap should handle requests to 'sitemap.xml' * GoogleSitemap should handle requests to 'sitemap.xml'
* the other two classes are used to render the sitemap * the other two classes are used to render the sitemap
*/ */
class GoogleSitemap extends Controller { class GoogleSitemap extends Controller {
protected $Pages; protected $Pages;

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
* Ioncube Performance Suite management * Ioncube Performance Suite management
*/ */

View File

@ -1,5 +1,9 @@
<?php <?php
/**
* @package cms
*/
/** /**
* Statistics class for gathering and formatting of statistical data for tables and charts in * Statistics class for gathering and formatting of statistical data for tables and charts in
* both public and administrative contexts. * both public and administrative contexts.

View File

@ -1,5 +1,9 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
require_once('HTML/HTMLBBCodeParser.php'); require_once('HTML/HTMLBBCodeParser.php');
/*Seting up the PEAR bbcode parser*/ /*Seting up the PEAR bbcode parser*/
@ -10,6 +14,10 @@ $options = $config['SSHTMLBBCodeParser'];
unset($options); unset($options);
/**
* BBCode parser object.
* Use on a text field in a template with $Content.Parse(BBCodeParser).
*/
class BBCodeParser extends TextParser { class BBCodeParser extends TextParser {
protected static $autolinkUrls = true; protected static $autolinkUrls = true;

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
require_once 'HTML/HTMLBBCodeParser.php'; require_once 'HTML/HTMLBBCodeParser.php';
/** /**

View File

@ -20,7 +20,8 @@
// //
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> * @author Stijn de Reede <sjr@gmx.co.uk>
*/ */

View File

@ -20,7 +20,8 @@
// //
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> * @author Stijn de Reede <sjr@gmx.co.uk>
*/ */

View File

@ -20,7 +20,8 @@
// //
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> * @author Stijn de Reede <sjr@gmx.co.uk>
*/ */

View File

@ -20,7 +20,8 @@
// //
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> * @author Stijn de Reede <sjr@gmx.co.uk>
*/ */
require_once 'HTML/BBCodeParser/Filter.php'; require_once 'HTML/BBCodeParser/Filter.php';

View File

@ -20,7 +20,8 @@
// //
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> * @author Stijn de Reede <sjr@gmx.co.uk>
*/ */
require_once 'HTML/BBCodeParser/Filter.php'; require_once 'HTML/BBCodeParser/Filter.php';

View File

@ -21,7 +21,8 @@
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> * @author Stijn de Reede <sjr@gmx.co.uk>
*/ */

View File

@ -21,7 +21,8 @@
// Modified by SilverStripe www.silverstripe.com // Modified by SilverStripe www.silverstripe.com
/** /**
* @package SSHTMLBBCodeParser * @package sapphire
* @subpackage misc
* @author Stijn de Reede <sjr@gmx.co.uk> , SilverStripe * @author Stijn de Reede <sjr@gmx.co.uk> , SilverStripe
* *
* *

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
* Parses text in a variety of ways. * Parses text in a variety of ways.
* *

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/********************************************************************************\ /********************************************************************************\
* Copyright (C) Carl Taylor (cjtaylor@adepteo.com) * * Copyright (C) Carl Taylor (cjtaylor@adepteo.com) *
* Copyright (C) Torben Nehmer (torben@nehmer.net) for Code Cleanup * * Copyright (C) Torben Nehmer (torben@nehmer.net) for Code Cleanup *
@ -6,6 +12,10 @@
\********************************************************************************/ \********************************************************************************/
/// Enable multiple timers to aid profiling of performance over sections of code /// Enable multiple timers to aid profiling of performance over sections of code
/**
* Execution time profiler.
*/
class Profiler { class Profiler {
var $description; var $description;
var $startTime; var $startTime;

View File

@ -1,6 +1,12 @@
<?php <?php
/** /**
* Standard basical search form * @package sapphire
* @subpackage search
*/
/**
* More advanced search form
*/ */
class AdvancedSearchForm extends SearchForm { class AdvancedSearchForm extends SearchForm {

View File

@ -1,8 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage search
*/
/** /**
* Standard basic search form * Standard basic search form
*/ */
class SearchForm extends Form { class SearchForm extends Form {
protected $showInSearchTurnOn; protected $showInSearchTurnOn;

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/** /**
* Abstract base class for an authentication method * Abstract base class for an authentication method
* *

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/** /**
* Provides an interface to HTTP basic authentication. * Provides an interface to HTTP basic authentication.
*/ */

View File

@ -1,10 +1,10 @@
<?php <?php
/** /**
* Change password form * @package sapphire
* @subpackage security
*/ */
/** /**
* Standard Change Password Form * Standard Change Password Form
*/ */

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/* Geoip.php /* Geoip.php
Known to work with the following versions of GeoIP: Known to work with the following versions of GeoIP:

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/**
* A security group.
*/
class Group extends DataObject { class Group extends DataObject {
// This breaks too many things for upgraded sites // This breaks too many things for upgraded sites
// static $default_sort = "Sort"; // static $default_sort = "Sort";

View File

@ -1,13 +1,11 @@
<?php <?php
/** /**
* LoginForm base class
*
* @author Markus Lanthaler <markus@silverstripe.com> * @author Markus Lanthaler <markus@silverstripe.com>
* @package sapphire
* @subpackage security
*/ */
/** /**
* Abstract base class for a login form * Abstract base class for a login form
* *

View File

@ -2,10 +2,10 @@
/** /**
* Member classes * Member classes
* @package sapphire
* @subpackage security
*/ */
/** /**
* The member class which represents the users of the system * The member class which represents the users of the system
*/ */

View File

@ -1,13 +1,11 @@
<?php <?php
/** /**
* Member authenticator * @package sapphire
* * @subpackage security
* @author Markus Lanthaler <markus@silverstripe.com> * @author Markus Lanthaler <markus@silverstripe.com>
*/ */
/** /**
* Authenticator for the default "member" method * Authenticator for the default "member" method
* *

View File

@ -1,11 +1,10 @@
<?php <?php
/** /**
* Log-in form for the "member" authentication method * @package sapphire
* @subpackage security
*/ */
/** /**
* Log-in form for the "member" authentication method * Log-in form for the "member" authentication method
*/ */

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/**
* Represents a permission assigned to a group.
*/
class Permission extends DataObject { class Permission extends DataObject {
// the (1) after Type specifies the DB default value which is needed for // the (1) after Type specifies the DB default value which is needed for

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/** /**
* Special kind of dropdown field that has all permission codes as its dropdown source. * Special kind of dropdown field that has all permission codes as its dropdown source.
* Note: This would ordinarily be overkill; the main reason we have it is that TableField doesn't let you specify a dropdown source; * Note: This would ordinarily be overkill; the main reason we have it is that TableField doesn't let you specify a dropdown source;

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/** /**
* Used to let classes provide new permission codes. * Used to let classes provide new permission codes.
* Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of permission codes. * Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of permission codes.

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage security
*/
/** /**
* Implements a basic security model * Implements a basic security model
*/ */

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage synchronisation
*/
/**
* Synchroniser controller - used to let two servers communicate
*/
class Synchronise extends Controller { class Synchronise extends Controller {
public function update() { public function update() {

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage synchronisation
*/
/** /**
* Functions to provide synchronisation between two Silverstripe implementations. This allows the same entry to have two different * Functions to provide synchronisation between two Silverstripe implementations. This allows the same entry to have two different
* IDs on each installation * IDs on each installation

View File

@ -1,4 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage testing
*/
/* /*
$dir = dirname(dirname((__FILE__))); $dir = dirname(dirname((__FILE__)));
$_SERVER['SCRIPT_FILENAME'] = "$dir/main.php"; $_SERVER['SCRIPT_FILENAME'] = "$dir/main.php";

View File

@ -1,5 +1,12 @@
<?php <?php
/**
* @package tests
*/
/**
* Tests for SiteTree
*/
class SiteTreeTest extends SapphireTest { class SiteTreeTest extends SapphireTest {
static $fixture_file = 'sapphire/tests/SiteTreeTest.yml'; static $fixture_file = 'sapphire/tests/SiteTreeTest.yml';

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage testing
*/
// Check that PHPUnit is installed // Check that PHPUnit is installed
$hasPhpUnit = false; $hasPhpUnit = false;
$paths = explode(PATH_SEPARATOR, ini_get('include_path')); $paths = explode(PATH_SEPARATOR, ini_get('include_path'));

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package sapphire
* @subpackage misc
*/
/** /**
** Contains heaps of tools that you can use when importing database information ** Contains heaps of tools that you can use when importing database information
**/ **/

View File

@ -1,5 +1,14 @@
<?php <?php
/**
* @package sapphire
* @subpackage widgets
*/
/**
* Base class for widgets.
* Widgets let CMS authors drag and drop small pieces of functionality into defined areas of their websites.
*/
class Widget extends DataObject { class Widget extends DataObject {
static $db = array( static $db = array(
"ParentID" => "Int", "ParentID" => "Int",

View File

@ -1,5 +1,13 @@
<?php <?php
/**
* @package sapphire
* @subpackage synchronisation
*/
/**
* Represents a set of widgets shown on a page.
*/
class WidgetArea extends DataObject { class WidgetArea extends DataObject {
static $db = array(); static $db = array();