mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
5ffeb1a4be
commit
d27937f448
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage integration
|
||||
*/
|
||||
|
||||
/**
|
||||
* RSSFeed class
|
||||
*
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?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.
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage integration
|
||||
*/
|
||||
|
||||
/**
|
||||
* Soap server class
|
||||
*/
|
||||
class SapphireSoapServer extends Controller {
|
||||
static $methods = array();
|
||||
static $xsd_types = array(
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage integration
|
||||
*/
|
||||
|
||||
/****************************************************
|
||||
SIMPLEPIE
|
||||
A PHP-Based RSS and Atom Feed Framework
|
||||
|
19
api/Spyc.php
19
api/Spyc.php
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/**
|
||||
/**
|
||||
* Spyc -- A Simple PHP YAML Class
|
||||
* @version 0.2.(5) -- 2006-12-31
|
||||
* @author Chris Wanstrath <chris@ozmm.org>
|
||||
@ -7,14 +7,14 @@
|
||||
* @link http://spyc.sourceforge.net/
|
||||
* @copyright Copyright 2005-2006 Chris Wanstrath
|
||||
* @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.
|
||||
* @package Spyc
|
||||
*/
|
||||
class YAMLNode {
|
||||
class YAMLNode {
|
||||
/**#@+
|
||||
* @access public
|
||||
* @var string
|
||||
@ -46,9 +46,9 @@
|
||||
public function YAMLNode($nodeId) {
|
||||
$this->id = $nodeId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* The Simple PHP YAML Class.
|
||||
*
|
||||
* This class can be used to read a YAML file and convert its contents
|
||||
@ -60,9 +60,8 @@
|
||||
* $parser = new Spyc;
|
||||
* $array = $parser->load($file);
|
||||
* </code>
|
||||
* @package Spyc
|
||||
*/
|
||||
class Spyc {
|
||||
class Spyc {
|
||||
|
||||
/**
|
||||
* Load YAML into a PHP array statically
|
||||
@ -863,5 +862,5 @@
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage cron
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base class invoked from CLI rather than the webserver (Cron jobs, handling email bounces)
|
||||
*/
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage cron
|
||||
*/
|
||||
|
||||
/**
|
||||
* Classes that must be run daily extend this class
|
||||
*/
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Executed a task monthly
|
||||
* @package sapphire
|
||||
* @subpackage cron
|
||||
*/
|
||||
|
||||
/**
|
||||
* Classes that must be run monthly extend this class
|
||||
*/
|
||||
class MonthlyTask extends ScheduledTask {
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage cron
|
||||
*/
|
||||
|
||||
/**
|
||||
* Abstract task representing scheudled tasks
|
||||
*/
|
||||
abstract class ScheduledTask extends CliController {
|
||||
// this class exists as a logical extension
|
||||
}
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage cron
|
||||
*/
|
||||
|
||||
/**
|
||||
* Classes that must be run weekly extend this class
|
||||
*/
|
||||
class WeeklyTask extends ScheduledTask {
|
||||
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage view
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Library of static methods for manipulating arrays.
|
||||
*/
|
||||
class ArrayLib extends Object {
|
||||
static function invert($arr) {
|
||||
if (! $arr) return false;
|
||||
|
@ -3,6 +3,9 @@
|
||||
* Provides introspection information about the class tree.
|
||||
* 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.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
*/
|
||||
class ClassInfo {
|
||||
/**
|
||||
|
@ -14,6 +14,9 @@
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
class Convert extends Object {
|
||||
// Convert raw to other formats
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* A set of static methods for manipulating cookies.
|
||||
*/
|
||||
class Cookie extends Object {
|
||||
/**
|
||||
* Set a cookie variable
|
||||
|
@ -1,4 +1,11 @@
|
||||
<?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
|
||||
* This is loaded into the TEMP_FOLDER define on start up
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* Class of static methods to support debugging.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
*/
|
||||
class Debug {
|
||||
|
||||
|
@ -1,8 +1,16 @@
|
||||
<?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.
|
||||
|
||||
/**
|
||||
* Class to support sending emails.
|
||||
*/
|
||||
|
@ -3,6 +3,9 @@
|
||||
/**
|
||||
* Add extension that can be added to an object with Object::add_extension().
|
||||
* For DataObject extensions, use DataObjectDecorator
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
*/
|
||||
|
||||
abstract class Extension extends Object {
|
||||
|
@ -3,6 +3,9 @@
|
||||
/**
|
||||
* A class with HTTP-related helpers.
|
||||
* Like Debug, this is more a bundle of methods than a class ;-)
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
class HTTP {
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
<?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
|
||||
* represent the collected contents of the application:
|
||||
@ -12,21 +17,9 @@
|
||||
* Traversing the filesystem to collect this information on everypage.
|
||||
* This information is cached so that it need not be regenerated on every
|
||||
* 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 {
|
||||
|
||||
|
@ -1,9 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base object that all others should inherit from.
|
||||
* This object provides a number of helper methods that patch over PHP's deficiencies.
|
||||
*/
|
||||
|
||||
class Object {
|
||||
/**
|
||||
* This DataObjects extensions, eg Versioned.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage view
|
||||
*/
|
||||
|
||||
/**
|
||||
* Requirements tracker, for javascript and css.
|
||||
* @todo Document the requirements tracker, and discuss it with the others.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?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
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* 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 {
|
||||
public static function set($name, $val) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage view
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -12,6 +12,9 @@
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
class ContentController extends Controller {
|
||||
protected $dataRecord;
|
||||
|
@ -1,4 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content negotiator performs text/html or application/xhtml+xml switching.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base controller class.
|
||||
* Controllers are the cornerstone of all site functionality in Sapphire. The {@link Director}
|
||||
|
@ -6,6 +6,9 @@
|
||||
* 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
|
||||
* steps.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
class Director {
|
||||
|
||||
|
@ -21,6 +21,9 @@
|
||||
*
|
||||
* TODO Force a specific execution order ($forceTop, $forceBottom)
|
||||
* TODO Extension to return different formats, e.g. JSON or XML
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
class FormResponse {
|
||||
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
/**
|
||||
* Represenets an HTTPResponse returned by a controller.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
class HTTPResponse extends Object {
|
||||
protected static $status_codes = array(
|
||||
|
@ -4,6 +4,9 @@
|
||||
* ModelAsController will hand over all control to the appopriate model object
|
||||
* 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.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage control
|
||||
*/
|
||||
class ModelAsController extends Controller implements NestedController {
|
||||
|
||||
|
@ -1,5 +1,16 @@
|
||||
<?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 {
|
||||
public function getNestedController();
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
<?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 {
|
||||
protected static $is_at_root = false;
|
||||
|
@ -21,6 +21,8 @@
|
||||
* Please see the {Translatable} DataObjectDecorator for managing translations of database-content.
|
||||
*
|
||||
* @author Bernat Foj Capell <bernat@silverstripe.com>
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
class i18n extends Controller {
|
||||
|
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
<?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
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Database Administration
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage filesystem
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* A redirector page redirects when the page is visited.
|
||||
*/
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* This is a class used to represent key->value pairs generated from database queries.
|
||||
* The query isn't actually executed until you need it.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Object representing a SQL query.
|
||||
* The various parts of the SQL query can be manipulated individually.
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage core
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* The {Translatable} decorator allows your DataObjects to have versions in different languages,
|
||||
* defining which fields are can be translated.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a boolean field.
|
||||
*
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Currency value.
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a decimal field containing a currency amount.
|
||||
* Currency the currency class only supports single currencies.
|
||||
*/
|
||||
class Currency extends Decimal {
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Single field in the database.
|
||||
* Every field from the database is represented as a sub-class of DBField. In addition to supporting
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a date field.
|
||||
*/
|
||||
class Date extends DBField {
|
||||
|
||||
function setValue($value) {
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
if(!class_exists('Datetime')) {
|
||||
class Datetime extends Date {
|
||||
function __construct($name) {
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Decimal value.
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a Decimal field.
|
||||
*/
|
||||
class Decimal extends DBField {
|
||||
protected $wholeSize, $decimalSize;
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents an enumeration field.
|
||||
*/
|
||||
class Enum extends DBField {
|
||||
|
||||
protected $enum, $default;
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a floating point field.
|
||||
*/
|
||||
class Float extends DBField {
|
||||
|
||||
|
@ -1,5 +1,15 @@
|
||||
<?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 {
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This behaves exactly the same as Varchar but is intended to store HTML content in it.
|
||||
* The template processor won't escape any HTML content within it
|
||||
* @package sapphire
|
||||
* @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 {
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents an integer field.
|
||||
*
|
||||
* @param $defaultVal int
|
||||
*/
|
||||
class Int extends DBField {
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a decimal field from 0-1 containing a percentage value.
|
||||
*/
|
||||
class Percentage extends Decimal {
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a date-time field.
|
||||
*/
|
||||
class SSDatetime extends Date {
|
||||
function setValue($value) {
|
||||
if($value) $this->value = date('Y-m-d H:i:s', strtotime($value));
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a long text field.
|
||||
*/
|
||||
class Text extends DBField {
|
||||
static $casting = array(
|
||||
"AbsoluteLinks" => "HTMLText",
|
||||
|
@ -1,8 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a column in the database with the type 'Time'
|
||||
*/
|
||||
|
||||
class Time extends DBField {
|
||||
|
||||
function setVal($value) {
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a short text field.
|
||||
*/
|
||||
class Varchar extends DBField {
|
||||
protected $size;
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage email
|
||||
*/
|
||||
|
||||
/**
|
||||
* Stores a queued email to be sent at the given time
|
||||
*/
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage email
|
||||
*/
|
||||
|
||||
/**
|
||||
* Daily task to send queued email.
|
||||
*/
|
||||
class QueuedEmailDispatchTask extends DailyTask {
|
||||
|
||||
public function process() {
|
||||
|
@ -1,6 +1,18 @@
|
||||
<?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 {
|
||||
/**
|
||||
* Return an Archive object for the given file.
|
||||
*/
|
||||
static function open($filename) {
|
||||
if(substr($filename, strlen($filename) - strlen('.tar.gz')) == '.tar.gz' ||
|
||||
substr($filename, strlen($filename) - strlen('.tar.bz2')) == '.tar.bz2' ||
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage filesystem
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class handles the representation of a File within Sapphire
|
||||
* Note: The files are stored in the "/assets/" directory, but sapphire
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage filesystem
|
||||
*/
|
||||
|
||||
/**
|
||||
* A collection of static methods for manipulating the filesystem.
|
||||
*/
|
||||
class Filesystem extends Object {
|
||||
|
||||
public static $file_create_mask = 02775;
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage filesystem
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a folder in the assets directory.
|
||||
*/
|
||||
class Folder extends File {
|
||||
|
||||
static $many_many = array(
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage filesystem
|
||||
*/
|
||||
|
||||
/**
|
||||
* A wrapper class for GD-based images, with lots of manipulation functions.
|
||||
*/
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Writes the POST array to a file as a last-ditch effort to preserve entered data.
|
||||
*/
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage filesystem
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implementation of .tar, .tar.gz, and .tar.bz2 archive handler.
|
||||
*/
|
||||
class TarballArchive extends Archive {
|
||||
private $filename = '';
|
||||
private $compressionModifiers = '';
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableButton
|
||||
* Allows a user to modify the text on the button
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableCheckbox
|
||||
* A user modifiable checkbox on a UserDefinedForm
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDropdown
|
||||
* Represents a set of selectable radio buttons
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDropdownOption
|
||||
* Represents a single entry in an EditableRadioField
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDateField
|
||||
* Allows a user to add a date field to the Field Editor
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDropdown
|
||||
* Represents a modifiable dropdown box on a form
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDropdownOption
|
||||
* Represents a single entry in an EditableDropdown
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableEmailField
|
||||
* Allow users to define a validating editable email field for a UserDefinedForm
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableFileField
|
||||
* Allows a user to add a field that can be used to upload a file
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents an editable form field
|
||||
*/
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Allows an editor to insert a generic heading into a field
|
||||
*/
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creates an editable field that displays members in a given group
|
||||
*/
|
||||
|
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDropdown
|
||||
* Represents a set of selectable radio buttons
|
||||
*/
|
||||
|
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableDropdownOption
|
||||
* Represents a single entry in an EditableRadioField
|
||||
*/
|
||||
|
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* EditableTextField
|
||||
* This control represents a user-defined field in a user defined form
|
||||
*/
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Bulk of the form system
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a field in a form.
|
||||
* A FieldSet contains a number of FormField objects which make up the whole of a form.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
class HasManyComplexTableField extends ComplexTableField {
|
||||
|
||||
public $joinField;
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
class HasOneComplexTableField extends HasManyComplexTableField {
|
||||
|
||||
protected $itemClass = 'HasOneComplexTableField_Item';
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* A WYSIWYG editor field, powered by tinymce.
|
||||
* tinymce editor fields are created from <textarea> tags which are then converted with javascript.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
class ManyManyComplexTableField extends HasManyComplexTableField {
|
||||
|
||||
private $manyManyParentClass;
|
||||
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Displays complex reports based on the list of tables and fields provided to
|
||||
|
@ -1,4 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* A file uploaded on a UserDefinedForm field
|
||||
*/
|
||||
class SubmittedFileField extends SubmittedFormField {
|
||||
|
||||
static $has_one = array(
|
||||
|
@ -1,4 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* SubmittedForm
|
||||
* Contents of an UserDefinedForm submission
|
||||
|
@ -1,10 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* SubmittedFormField
|
||||
* Data received from a UserDefinedForm submission
|
||||
*/
|
||||
|
||||
class SubmittedFormField extends DataObject {
|
||||
class SubmittedFormField extends DataObject {
|
||||
|
||||
static $db = array(
|
||||
"Name" => "Varchar",
|
||||
@ -15,5 +20,5 @@
|
||||
static $has_one = array(
|
||||
"Parent" => "SubmittedForm"
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* SubmittedFormReportField
|
||||
* Displays a summary of instances of a form submitted to the website
|
||||
*/
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* TableField behaves in the same manner as TableListField, however allows the addition of
|
||||
* fields and editing of attributes specified, and filtering results.
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Form field that embeds a list into a form, such as a member list or a file list.
|
||||
*
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage forms
|
||||
*/
|
||||
|
||||
/**
|
||||
* This validation class handles all form and custom form validation through
|
||||
* the use of Required fields.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base class for XML parsers
|
||||
*/
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* @package Browscap
|
||||
* @author Jonathan Stoppani <st.jonathan@gmail.com>
|
||||
* @copyright Copyright (c) 2006 Jonathan Stoppani
|
||||
* @version 0.7
|
||||
@ -656,7 +660,6 @@ class Browscap
|
||||
/**
|
||||
* Browscap.ini parsing class exception
|
||||
*
|
||||
* @package Browscap
|
||||
* @author Jonathan Stoppani <st.jonathan@gmail.com>
|
||||
* @copyright Copyright (c) 2006 Jonathan Stoppani
|
||||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
|
||||
|
@ -1,10 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initial implementation of Sitemap support.
|
||||
* GoogleSitemap should handle requests to 'sitemap.xml'
|
||||
* the other two classes are used to render the sitemap
|
||||
*/
|
||||
|
||||
class GoogleSitemap extends Controller {
|
||||
protected $Pages;
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Ioncube Performance Suite management
|
||||
*/
|
||||
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
*/
|
||||
|
||||
/**
|
||||
* Statistics class for gathering and formatting of statistical data for tables and charts in
|
||||
* both public and administrative contexts.
|
||||
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
require_once('HTML/HTMLBBCodeParser.php');
|
||||
/*Seting up the PEAR bbcode parser*/
|
||||
@ -10,6 +14,10 @@ $options = $config['SSHTMLBBCodeParser'];
|
||||
unset($options);
|
||||
|
||||
|
||||
/**
|
||||
* BBCode parser object.
|
||||
* Use on a text field in a template with $Content.Parse(BBCodeParser).
|
||||
*/
|
||||
class BBCodeParser extends TextParser {
|
||||
|
||||
protected static $autolinkUrls = true;
|
||||
|
@ -1,4 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
require_once 'HTML/HTMLBBCodeParser.php';
|
||||
|
||||
/**
|
||||
|
@ -20,9 +20,10 @@
|
||||
//
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
|
||||
|
||||
require_once 'HTML/BBCodeParser/Filter.php';
|
||||
|
@ -20,9 +20,10 @@
|
||||
//
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
|
||||
|
||||
require_once 'HTML/BBCodeParser/Filter.php';
|
||||
|
@ -20,9 +20,10 @@
|
||||
//
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
|
||||
|
||||
require_once 'HTML/BBCodeParser/Filter.php';
|
||||
|
@ -20,9 +20,10 @@
|
||||
//
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
require_once 'HTML/BBCodeParser/Filter.php';
|
||||
|
||||
class SSHTMLBBCodeParser_Filter_Images extends SSHTMLBBCodeParser_Filter
|
||||
|
@ -20,9 +20,10 @@
|
||||
//
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
require_once 'HTML/BBCodeParser/Filter.php';
|
||||
|
||||
/**
|
||||
|
@ -21,9 +21,10 @@
|
||||
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk>
|
||||
*/
|
||||
|
||||
require_once 'HTML/BBCodeParser/Filter.php';
|
||||
|
||||
|
@ -21,7 +21,8 @@
|
||||
// Modified by SilverStripe www.silverstripe.com
|
||||
|
||||
/**
|
||||
* @package SSHTMLBBCodeParser
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
* @author Stijn de Reede <sjr@gmx.co.uk> , SilverStripe
|
||||
*
|
||||
*
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Parses text in a variety of ways.
|
||||
*
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/********************************************************************************\
|
||||
* Copyright (C) Carl Taylor (cjtaylor@adepteo.com) *
|
||||
* 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
|
||||
|
||||
/**
|
||||
* Execution time profiler.
|
||||
*/
|
||||
class Profiler {
|
||||
var $description;
|
||||
var $startTime;
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Standard basical search form
|
||||
* @package sapphire
|
||||
* @subpackage search
|
||||
*/
|
||||
|
||||
/**
|
||||
* More advanced search form
|
||||
*/
|
||||
class AdvancedSearchForm extends SearchForm {
|
||||
|
||||
|
@ -1,8 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage search
|
||||
*/
|
||||
|
||||
/**
|
||||
* Standard basic search form
|
||||
*/
|
||||
|
||||
class SearchForm extends Form {
|
||||
|
||||
protected $showInSearchTurnOn;
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* Abstract base class for an authentication method
|
||||
*
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides an interface to HTTP basic authentication.
|
||||
*/
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Change password form
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Standard Change Password Form
|
||||
*/
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/* Geoip.php
|
||||
|
||||
Known to work with the following versions of GeoIP:
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* A security group.
|
||||
*/
|
||||
class Group extends DataObject {
|
||||
// This breaks too many things for upgraded sites
|
||||
// static $default_sort = "Sort";
|
||||
|
@ -1,13 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* LoginForm base class
|
||||
*
|
||||
* @author Markus Lanthaler <markus@silverstripe.com>
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Abstract base class for a login form
|
||||
*
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
/**
|
||||
* Member classes
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The member class which represents the users of the system
|
||||
*/
|
||||
|
@ -1,13 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Member authenticator
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
* @author Markus Lanthaler <markus@silverstripe.com>
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Authenticator for the default "member" method
|
||||
*
|
||||
|
@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Log-in form for the "member" authentication method
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Log-in form for the "member" authentication method
|
||||
*/
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a permission assigned to a group.
|
||||
*/
|
||||
class Permission extends DataObject {
|
||||
|
||||
// the (1) after Type specifies the DB default value which is needed for
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage security
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements a basic security model
|
||||
*/
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage synchronisation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Synchroniser controller - used to let two servers communicate
|
||||
*/
|
||||
class Synchronise extends Controller {
|
||||
|
||||
public function update() {
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage synchronisation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Functions to provide synchronisation between two Silverstripe implementations. This allows the same entry to have two different
|
||||
* IDs on each installation
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage testing
|
||||
*/
|
||||
|
||||
/*
|
||||
$dir = dirname(dirname((__FILE__)));
|
||||
$_SERVER['SCRIPT_FILENAME'] = "$dir/main.php";
|
||||
|
@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package tests
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tests for SiteTree
|
||||
*/
|
||||
class SiteTreeTest extends SapphireTest {
|
||||
static $fixture_file = 'sapphire/tests/SiteTreeTest.yml';
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage testing
|
||||
*/
|
||||
|
||||
// Check that PHPUnit is installed
|
||||
$hasPhpUnit = false;
|
||||
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage misc
|
||||
*/
|
||||
|
||||
/**
|
||||
** Contains heaps of tools that you can use when importing database information
|
||||
**/
|
||||
|
@ -1,5 +1,14 @@
|
||||
<?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 {
|
||||
static $db = array(
|
||||
"ParentID" => "Int",
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage synchronisation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a set of widgets shown on a page.
|
||||
*/
|
||||
class WidgetArea extends DataObject {
|
||||
static $db = array();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user