MINOR: Misc merges from branches/2.4

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112142 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-13 03:53:12 +00:00
parent a2f6487fa3
commit 2948bc1c64
13 changed files with 34 additions and 10 deletions

View File

@ -121,7 +121,7 @@ abstract class DataFormatter extends Object {
/**
* Get a DataFormatter object suitable for handling the given mimetype.
*
* @string $mimeType
* @param string $mimeType
* @return DataFormatter
*/
static function for_mimetype($mimeType) {

View File

@ -847,6 +847,10 @@ class SSViewer_PartialParser {
}
}
/**
* @package sapphire
* @subpackage view
*/
class SSViewer_Cached_PartialParser extends SSViewer_PartialParser {
function __construct($template, $content, $offset, $keyparts, $conditional, $condition) {

View File

@ -1026,6 +1026,9 @@ function column_sort_callback_basic($a, $b) {
/**
* An Iterator for a DataObjectSet
*
* @package sapphire
* @subpackage model
*/
class DataObjectSet_Iterator implements Iterator {
function __construct($items) {

View File

@ -13,7 +13,7 @@
* @author Tom Rix
* @package cms
*/
class SiteConfig extends DataObject {
class SiteConfig extends DataObject implements PermissionProvider {
static $db = array(
"Title" => "Varchar(255)",
"Tagline" => "Varchar(255)",

View File

@ -232,7 +232,7 @@ class SapphireTestReporter implements PHPUnit_Framework_TestListener {
/**
* Upon completion of a test suite adds the suite to the suties performed
*
* @acces public
* @access public
* @param obj PHPUnit_Framework_TestSuite, current suite that is being run
* @return void
*/

View File

@ -2,6 +2,7 @@
/**
* Represents a test usage session of a web-app
* It will maintain session-state from request to request
*
* @package sapphire
* @subpackage testing
*/
@ -156,6 +157,9 @@ class TestSession {
/**
* Wrapper around SS_HTTPResponse to make it look like a SimpleHTTPResposne
*
* @package sapphire
* @subpackage testing
*/
class TestSession_STResponseWrapper {
private $response;

View File

@ -1,4 +1,6 @@
<?php
require_once 'Zend/Log.php';
/**
* Extensions to Zend_Log to make it work nicer
* with {@link SS_Log}.
@ -9,9 +11,6 @@
* @package sapphire
* @subpackage dev
*/
require_once 'Zend/Log.php';
class SS_ZendLog extends Zend_Log {
/**

View File

@ -523,6 +523,10 @@ HTML;
}
}
/**
* @package sapphire
* @subpackage filesystem
*/
class Folder_UnusedAssetsField extends CompositeField {
protected $folder;

View File

@ -309,6 +309,11 @@ class Upload extends Controller {
}
}
/**
* @package sapphire
* @subpackage filesystem
*/
class Upload_Validator {
/**
@ -338,8 +343,6 @@ class Upload_Validator {
* <code>
* array("jpg","GIF")
* </code>
*
* @var array
*/
public $allowedExtensions = array();

View File

@ -9,6 +9,7 @@
/**
* Execution time profiler.
*
* @package sapphire
* @subpackage misc
*/

View File

@ -1,7 +1,9 @@
<?php
/**
* Extension to provide a search interface when applied to ContentController
*
* @package sapphire
* @subpackage search
*/
class ContentControllerSearchExtension extends Extension {
static $allowed_actions = array(

View File

@ -1,7 +1,9 @@
<?php
/**
* Provides a simple search engine for your site based on the MySQL FULLTEXT index
*
* @package sapphire
* @subpackage search
*/
class FulltextSearchable extends DataObjectDecorator {
protected $searchFields;

View File

@ -9,6 +9,8 @@
* SQL syntax used: Column IN ('val1','val2')
*
* @todo Add negation (NOT IN)6
* @package sapphire
* @subpackage search
*/
class StartsWithMultiFilter extends SearchFilter {