mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Added package tags and docblock info for API documentation
Fixed whitespace git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47726 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b1f5068010
commit
bfc448fa7f
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* AssetAdmin is the 'file store' section of the CMS.
|
||||
* It provides an interface for maniupating the File and Folder objects in the system.
|
||||
|
@ -1,4 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* A special kind of complex table field for manipulating assets.
|
||||
*/
|
||||
class AssetTableField extends ComplexTableField {
|
||||
|
||||
protected $folder;
|
||||
|
@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* An abstract base for bulk loaders of content into the SilverStripe database.
|
||||
* Bulk loaders give SilverStripe authors the ability to do large-scale CSV uploads into their Sapphire databases.
|
||||
*/
|
||||
abstract class BulkLoader extends ViewableData {
|
||||
/**
|
||||
* Override this on subclasses to give the specific functions names
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class to provide batch-update facilities to CMS users.
|
||||
* The BulkLoaderAdmin class provides an interface for accessing all of the subclasses of BulkLoader,
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* A special kind of form used to make the action dialogs that appear just underneath the top-right
|
||||
* buttons in the CMS
|
||||
|
@ -1,4 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* The main "content" area of the CMS.
|
||||
* This class creates a 2-frame layout - left-tree and right-form - to sit beneath the main
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Comment administration system within the CMS
|
||||
*/
|
||||
class CommentAdmin extends LeftAndMain {
|
||||
|
||||
public function init() {
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Special kind of ComplexTableField for managing comments.
|
||||
*/
|
||||
class CommentTableField extends ComplexTableField {
|
||||
protected $template = "CommentTableField";
|
||||
protected $mode;
|
||||
|
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
* A PHP diff engine
|
||||
*/
|
||||
|
||||
// difflib.php
|
||||
//
|
||||
// A PHP diff engine for phpwiki.
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* A FormField showing a list of files
|
||||
*/
|
||||
class FileList extends TableListField {
|
||||
// bdc: added sort by Title as default behaviour
|
||||
protected $folder;
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides a common interface for searching, viewing and editing DataObjects.
|
||||
* Extend the class to adjust functionality to your specific DataObjects.
|
||||
|
@ -1,9 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This Controller handles all operation needed for ImageEditor to work(expect for GD operations).
|
||||
*
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* This Controller handles all operation needed for ImageEditor to work(expect for GD operations).
|
||||
*/
|
||||
class ImageEditor extends Controller {
|
||||
|
||||
public $fileToEdit = "";
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Module to provide imprint statistics integration.
|
||||
*/
|
||||
class ImprintStats extends ViewableData {
|
||||
protected static $imprintID;
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* LeftAndMain is the parent class of all the two-pane views in the CMS.
|
||||
* If you are wanting to add more areas to the CMS, you can do it by subclassing LeftAndMain.
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Form field showing a list of members.
|
||||
*/
|
||||
class MemberList extends FormField {
|
||||
protected $members;
|
||||
protected $hidePassword;
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enhances {ComplexTableField} with the ability to list groups and given members.
|
||||
* It is based around groups, so it deletes Members from a Group rather than from the entire system.
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a process in session which is incremented to calls from the client
|
||||
*/
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Form field showing a list of bounced addresses
|
||||
*/
|
||||
class BouncedList extends FormField {
|
||||
|
||||
protected $nlType;
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Single newsletter instance. Each Newsletter belongs to a NewsletterType.
|
||||
*/
|
||||
class Newsletter extends DataObject {
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Batch process for sending newsletters.
|
||||
*/
|
||||
class NewsletterEmailProcess extends BatchProcess {
|
||||
|
||||
protected $subject;
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Simple form field shown when the NewsletterAdmin first loads.
|
||||
*/
|
||||
class NewsletterList extends FormField {
|
||||
function __construct($name, $mailtype, $status = "Draft") {
|
||||
if(is_object($mailtype)) $this->mailType = $mailtype;
|
||||
|
@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a type of newsletter, for example the weekly products update.
|
||||
* The NewsletterType is associated with a recipient list and a bunch of Newsletter objects, which are each either Sent or Draft.
|
||||
*/
|
||||
class NewsletterType extends DataObject {
|
||||
|
||||
static $db = array(
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Displays a file upload field.
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Displays a field for importing recipients.
|
||||
*/
|
||||
class RecipientImportField extends FormField {
|
||||
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Page type for creating a page that contains a form that visitors can use to subscript to a newsletter.
|
||||
*/
|
||||
class SubscribeForm extends UserDefinedForm {
|
||||
static $add_action = "a newsletter subscription form";
|
||||
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This should extend DropdownField
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Subclass of DropdownField for showing a list of the newsletter templates available.
|
||||
*/
|
||||
class TemplateList extends DropdownField {
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a form that a user can use to unsubscribe from a mailing list
|
||||
*/
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Displays a list of all members that have unsubscribed from the list
|
||||
*/
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage newsletter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Newsletter administration section
|
||||
*/
|
||||
class NewsletterAdmin extends LeftAndMain {
|
||||
static $subitem_class = "Member";
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage pagetypes
|
||||
*/
|
||||
|
||||
/**
|
||||
* Page type that lets users build a contact form.
|
||||
*/
|
||||
class UserDefinedForm extends Page {
|
||||
static $add_action = "a contact form";
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reports section of the CMS
|
||||
*/
|
||||
class ReportAdmin extends LeftAndMain {
|
||||
static $subitem_class = "GrantObject";
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Security section of the CMS
|
||||
*/
|
||||
class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
||||
static $tree_class = "Group";
|
||||
static $subitem_class = "Member";
|
||||
|
@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base class for the small reports that appear in the left hand site of the Site Content section of the CMS.
|
||||
* Create subclasses of this class to build new reports.
|
||||
*/
|
||||
abstract class SideReport extends Object {
|
||||
abstract function records();
|
||||
abstract function fieldsToShow();
|
||||
@ -34,6 +43,9 @@ abstract class SideReport extends Object {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Content side-report listing empty pages
|
||||
*/
|
||||
class SideReport_EmptyPages extends SideReport {
|
||||
function title() {
|
||||
return _t('SideReport.EMPTYPAGES',"Empty pages");
|
||||
@ -48,6 +60,9 @@ class SideReport_EmptyPages extends SideReport {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Content side-report listing recently editing pages.
|
||||
*/
|
||||
class SideReport_RecentlyEdited extends SideReport {
|
||||
function title() {
|
||||
return _t('SideReport.LAST2WEEKS',"Pages edited in the last 2 weeks");
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class lets you export a static copy of your site.
|
||||
* It creates a huge number of folders each containing an index.html file.
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Statistics section of the CMS
|
||||
*/
|
||||
class StatisticsAdmin extends LeftAndMain {
|
||||
static $tree_class = "SiteTree";
|
||||
static $subitem_class = "Member";
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides a strip of thumbnails showing all of the images in the system.
|
||||
* It will be tied to a 'parent field' that will provide it with a filter by which to reduce the number
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Special field type for selecting and configuring widgets on a page.
|
||||
*/
|
||||
class WidgetAreaEditor extends FormField {
|
||||
function FieldHolder() {
|
||||
return $this->renderWith("WidgetAreaEditor");
|
||||
|
@ -15,7 +15,8 @@
|
||||
*
|
||||
* See the Akismet class documentation page linked to below for usage information.
|
||||
*
|
||||
* @package Akismet
|
||||
* @package cms
|
||||
* @subpackage
|
||||
* @author Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net}
|
||||
* @version 0.1
|
||||
* @copyright Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net}
|
||||
@ -43,8 +44,6 @@
|
||||
* // store the comment normally
|
||||
* </code>
|
||||
*
|
||||
* @package akismet
|
||||
* @name Akismet
|
||||
* @version 0.2
|
||||
* @author Alex Potsides
|
||||
* @link http://www.achingbrain.net/
|
||||
@ -298,7 +297,6 @@ class Akismet
|
||||
*
|
||||
* N.B. It is not necessary to call this class directly to use the Akismet class. This is included here mainly out of a sense of completeness.
|
||||
*
|
||||
* @package akismet
|
||||
* @name SocketWriteRead
|
||||
* @version 0.1
|
||||
* @author Alex Potsides
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tools for adding an optional protection question to a form.
|
||||
* Remember to add MathSpamProtection::enabled(true); to _config.php for this question to be added to the comments form.
|
||||
|
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a single comment on a page
|
||||
*/
|
||||
class PageComment extends DataObject {
|
||||
static $db = array(
|
||||
"Name" => "Varchar",
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents an interface for viewing and adding page comments
|
||||
* Create one, passing the page discussed to the constructor. It can then be
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package cms
|
||||
* @subpackage
|
||||
*/
|
||||
|
||||
class SSAkismet extends Akismet {
|
||||
private static $apiKey;
|
||||
private static $saveSpam = true;
|
||||
|
Loading…
Reference in New Issue
Block a user