mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
a2f6487fa3
commit
2948bc1c64
@ -121,7 +121,7 @@ abstract class DataFormatter extends Object {
|
|||||||
/**
|
/**
|
||||||
* Get a DataFormatter object suitable for handling the given mimetype.
|
* Get a DataFormatter object suitable for handling the given mimetype.
|
||||||
*
|
*
|
||||||
* @string $mimeType
|
* @param string $mimeType
|
||||||
* @return DataFormatter
|
* @return DataFormatter
|
||||||
*/
|
*/
|
||||||
static function for_mimetype($mimeType) {
|
static function for_mimetype($mimeType) {
|
||||||
|
@ -847,6 +847,10 @@ class SSViewer_PartialParser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage view
|
||||||
|
*/
|
||||||
class SSViewer_Cached_PartialParser extends SSViewer_PartialParser {
|
class SSViewer_Cached_PartialParser extends SSViewer_PartialParser {
|
||||||
|
|
||||||
function __construct($template, $content, $offset, $keyparts, $conditional, $condition) {
|
function __construct($template, $content, $offset, $keyparts, $conditional, $condition) {
|
||||||
|
@ -1026,6 +1026,9 @@ function column_sort_callback_basic($a, $b) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An Iterator for a DataObjectSet
|
* An Iterator for a DataObjectSet
|
||||||
|
*
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage model
|
||||||
*/
|
*/
|
||||||
class DataObjectSet_Iterator implements Iterator {
|
class DataObjectSet_Iterator implements Iterator {
|
||||||
function __construct($items) {
|
function __construct($items) {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* @author Tom Rix
|
* @author Tom Rix
|
||||||
* @package cms
|
* @package cms
|
||||||
*/
|
*/
|
||||||
class SiteConfig extends DataObject {
|
class SiteConfig extends DataObject implements PermissionProvider {
|
||||||
static $db = array(
|
static $db = array(
|
||||||
"Title" => "Varchar(255)",
|
"Title" => "Varchar(255)",
|
||||||
"Tagline" => "Varchar(255)",
|
"Tagline" => "Varchar(255)",
|
||||||
|
@ -232,7 +232,7 @@ class SapphireTestReporter implements PHPUnit_Framework_TestListener {
|
|||||||
/**
|
/**
|
||||||
* Upon completion of a test suite adds the suite to the suties performed
|
* 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
|
* @param obj PHPUnit_Framework_TestSuite, current suite that is being run
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Represents a test usage session of a web-app
|
* Represents a test usage session of a web-app
|
||||||
* It will maintain session-state from request to request
|
* It will maintain session-state from request to request
|
||||||
|
*
|
||||||
* @package sapphire
|
* @package sapphire
|
||||||
* @subpackage testing
|
* @subpackage testing
|
||||||
*/
|
*/
|
||||||
@ -156,6 +157,9 @@ class TestSession {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper around SS_HTTPResponse to make it look like a SimpleHTTPResposne
|
* Wrapper around SS_HTTPResponse to make it look like a SimpleHTTPResposne
|
||||||
|
*
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage testing
|
||||||
*/
|
*/
|
||||||
class TestSession_STResponseWrapper {
|
class TestSession_STResponseWrapper {
|
||||||
private $response;
|
private $response;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once 'Zend/Log.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extensions to Zend_Log to make it work nicer
|
* Extensions to Zend_Log to make it work nicer
|
||||||
* with {@link SS_Log}.
|
* with {@link SS_Log}.
|
||||||
@ -9,9 +11,6 @@
|
|||||||
* @package sapphire
|
* @package sapphire
|
||||||
* @subpackage dev
|
* @subpackage dev
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'Zend/Log.php';
|
|
||||||
|
|
||||||
class SS_ZendLog extends Zend_Log {
|
class SS_ZendLog extends Zend_Log {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -523,6 +523,10 @@ HTML;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage filesystem
|
||||||
|
*/
|
||||||
class Folder_UnusedAssetsField extends CompositeField {
|
class Folder_UnusedAssetsField extends CompositeField {
|
||||||
protected $folder;
|
protected $folder;
|
||||||
|
|
||||||
|
@ -309,6 +309,11 @@ class Upload extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage filesystem
|
||||||
|
*/
|
||||||
class Upload_Validator {
|
class Upload_Validator {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -338,8 +343,6 @@ class Upload_Validator {
|
|||||||
* <code>
|
* <code>
|
||||||
* array("jpg","GIF")
|
* array("jpg","GIF")
|
||||||
* </code>
|
* </code>
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
*/
|
||||||
public $allowedExtensions = array();
|
public $allowedExtensions = array();
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Execution time profiler.
|
* Execution time profiler.
|
||||||
|
*
|
||||||
* @package sapphire
|
* @package sapphire
|
||||||
* @subpackage misc
|
* @subpackage misc
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extension to provide a search interface when applied to ContentController
|
* Extension to provide a search interface when applied to ContentController
|
||||||
|
*
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage search
|
||||||
*/
|
*/
|
||||||
class ContentControllerSearchExtension extends Extension {
|
class ContentControllerSearchExtension extends Extension {
|
||||||
static $allowed_actions = array(
|
static $allowed_actions = array(
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a simple search engine for your site based on the MySQL FULLTEXT index
|
* Provides a simple search engine for your site based on the MySQL FULLTEXT index
|
||||||
|
*
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage search
|
||||||
*/
|
*/
|
||||||
class FulltextSearchable extends DataObjectDecorator {
|
class FulltextSearchable extends DataObjectDecorator {
|
||||||
protected $searchFields;
|
protected $searchFields;
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
* SQL syntax used: Column IN ('val1','val2')
|
* SQL syntax used: Column IN ('val1','val2')
|
||||||
*
|
*
|
||||||
* @todo Add negation (NOT IN)6
|
* @todo Add negation (NOT IN)6
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage search
|
||||||
*/
|
*/
|
||||||
class StartsWithMultiFilter extends SearchFilter {
|
class StartsWithMultiFilter extends SearchFilter {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user