mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge branch '1.4' into 1
This commit is contained in:
commit
522adc1c80
@ -5,7 +5,6 @@ sudo: false
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.3
|
|
||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
@ -18,7 +17,7 @@ matrix:
|
|||||||
- php: 7.1
|
- php: 7.1
|
||||||
env: DB=MYSQL CORE_RELEASE=3 COVERAGE="--coverage-clover=coverage.xml"
|
env: DB=MYSQL CORE_RELEASE=3 COVERAGE="--coverage-clover=coverage.xml"
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: DB=MYSQL CORE_RELEASE=3.1
|
env: DB=MYSQL CORE_RELEASE=3.6
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: DB=MYSQL CORE_RELEASE=3.3
|
env: DB=MYSQL CORE_RELEASE=3.3
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
|
@ -26,6 +26,8 @@ class DMSDocumentAddController extends LeftAndMain
|
|||||||
* Add an array of additional allowed extensions
|
* Add an array of additional allowed extensions
|
||||||
* @static
|
* @static
|
||||||
* @param $array
|
* @param $array
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of YAML configuration
|
||||||
*/
|
*/
|
||||||
public static function add_allowed_extensions($array = null)
|
public static function add_allowed_extensions($array = null)
|
||||||
{
|
{
|
||||||
|
@ -18,6 +18,8 @@ class DMSSiteTreeExtension extends DataExtension
|
|||||||
* Do not show the documents tab on the array of pages set here
|
* Do not show the documents tab on the array of pages set here
|
||||||
* @static
|
* @static
|
||||||
* @param $mixed Array of page types to not show the Documents tab on
|
* @param $mixed Array of page types to not show the Documents tab on
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in favour of YAML configuration
|
||||||
*/
|
*/
|
||||||
public static function no_documents_tab($array = array())
|
public static function no_documents_tab($array = array())
|
||||||
{
|
{
|
||||||
@ -37,6 +39,8 @@ class DMSSiteTreeExtension extends DataExtension
|
|||||||
* Document tabs.
|
* Document tabs.
|
||||||
* @static
|
* @static
|
||||||
* @param $array Array of page types to show the Documents tab on
|
* @param $array Array of page types to show the Documents tab on
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in favour of YAML configuration
|
||||||
*/
|
*/
|
||||||
public static function show_documents_tab($array = array())
|
public static function show_documents_tab($array = array())
|
||||||
{
|
{
|
||||||
@ -141,6 +145,8 @@ class DMSSiteTreeExtension extends DataExtension
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Enforce sorting for frontend
|
* Enforce sorting for frontend
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future
|
||||||
*/
|
*/
|
||||||
public function PageDocuments()
|
public function PageDocuments()
|
||||||
{
|
{
|
||||||
|
@ -22,6 +22,8 @@ interface DMSDocumentInterface
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @param $pageObject Page object to associate this DMSDocument with
|
* @param $pageObject Page object to associate this DMSDocument with
|
||||||
* @return null
|
* @return null
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function addPage($pageObject);
|
public function addPage($pageObject);
|
||||||
|
|
||||||
@ -32,6 +34,8 @@ interface DMSDocumentInterface
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @param $pageIDs array of page ids used for the page objects associate this DMSDocument with
|
* @param $pageIDs array of page ids used for the page objects associate this DMSDocument with
|
||||||
* @return null
|
* @return null
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function addPages($pageIDs);
|
public function addPages($pageIDs);
|
||||||
|
|
||||||
@ -48,6 +52,8 @@ interface DMSDocumentInterface
|
|||||||
* Returns a list of the Page objects associated with this DMSDocument
|
* Returns a list of the Page objects associated with this DMSDocument
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return DataList
|
* @return DataList
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function getPages();
|
public function getPages();
|
||||||
|
|
||||||
@ -55,6 +61,8 @@ interface DMSDocumentInterface
|
|||||||
* Removes all associated Pages from the DMSDocument
|
* Removes all associated Pages from the DMSDocument
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return null
|
* @return null
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function removeAllPages();
|
public function removeAllPages();
|
||||||
|
|
||||||
@ -72,6 +80,8 @@ interface DMSDocumentInterface
|
|||||||
* @param $value String of a metadata value to add (required)
|
* @param $value String of a metadata value to add (required)
|
||||||
* @param bool $multiValue Boolean that determines if the category is multi-value or single-value (optional)
|
* @param bool $multiValue Boolean that determines if the category is multi-value or single-value (optional)
|
||||||
* @return null
|
* @return null
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function addTag($category, $value, $multiValue = true);
|
public function addTag($category, $value, $multiValue = true);
|
||||||
|
|
||||||
@ -82,6 +92,8 @@ interface DMSDocumentInterface
|
|||||||
* @param $category String of the metadata category to get
|
* @param $category String of the metadata category to get
|
||||||
* @param null $value String of the value of the tag to get
|
* @param null $value String of the value of the tag to get
|
||||||
* @return array of Strings of all the tags or null if there is no match found
|
* @return array of Strings of all the tags or null if there is no match found
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function getTagsList($category, $value = null);
|
public function getTagsList($category, $value = null);
|
||||||
|
|
||||||
@ -93,6 +105,8 @@ interface DMSDocumentInterface
|
|||||||
* @param $category Category to remove (required)
|
* @param $category Category to remove (required)
|
||||||
* @param null $value Value to remove (optional)
|
* @param null $value Value to remove (optional)
|
||||||
* @return null
|
* @return null
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function removeTag($category, $value = null);
|
public function removeTag($category, $value = null);
|
||||||
|
|
||||||
@ -100,6 +114,8 @@ interface DMSDocumentInterface
|
|||||||
* Deletes all tags associated with this DMSDocument.
|
* Deletes all tags associated with this DMSDocument.
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return null
|
* @return null
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function removeAllTags();
|
public function removeAllTags();
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ interface DMSInterface
|
|||||||
* getByTag(null, "banana");
|
* getByTag(null, "banana");
|
||||||
* getByTag("fruits", "banana");
|
* getByTag("fruits", "banana");
|
||||||
* </code>
|
* </code>
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
* @abstract
|
* @abstract
|
||||||
* @param null $category The metadata category to search for
|
* @param null $category The metadata category to search for
|
||||||
* @param null $value The metadata value to search for
|
* @param null $value The metadata value to search for
|
||||||
|
@ -164,6 +164,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @param SiteTree $pageObject Page object to associate this Document with
|
* @param SiteTree $pageObject Page object to associate this Document with
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function addPage($pageObject)
|
public function addPage($pageObject)
|
||||||
{
|
{
|
||||||
@ -185,6 +187,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @param array $pageIDs
|
* @param array $pageIDs
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function addPages($pageIDs)
|
public function addPages($pageIDs)
|
||||||
{
|
{
|
||||||
@ -206,6 +210,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @param SiteTree $pageObject Page object to remove the association to
|
* @param SiteTree $pageObject Page object to remove the association to
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function removePage($pageObject)
|
public function removePage($pageObject)
|
||||||
{
|
{
|
||||||
@ -218,6 +224,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @see getPages()
|
* @see getPages()
|
||||||
*
|
*
|
||||||
* @return DataList
|
* @return DataList
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function Pages()
|
public function Pages()
|
||||||
{
|
{
|
||||||
@ -231,6 +239,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* Returns a list of the Page objects associated with this Document.
|
* Returns a list of the Page objects associated with this Document.
|
||||||
*
|
*
|
||||||
* @return DataList
|
* @return DataList
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function getPages()
|
public function getPages()
|
||||||
{
|
{
|
||||||
@ -241,6 +251,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* Removes all associated Pages from the DMSDocument
|
* Removes all associated Pages from the DMSDocument
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of document sets
|
||||||
*/
|
*/
|
||||||
public function removeAllPages()
|
public function removeAllPages()
|
||||||
{
|
{
|
||||||
@ -289,6 +301,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* multi-value or single-value (optional)
|
* multi-value or single-value (optional)
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function addTag($category, $value, $multiValue = true)
|
public function addTag($category, $value, $multiValue = true)
|
||||||
{
|
{
|
||||||
@ -341,6 +355,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @param string $value
|
* @param string $value
|
||||||
*
|
*
|
||||||
* @return DataList
|
* @return DataList
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
protected function getTagsObjects($category, $value = null)
|
protected function getTagsObjects($category, $value = null)
|
||||||
{
|
{
|
||||||
@ -362,6 +378,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @param string $value value of the tag to get
|
* @param string $value value of the tag to get
|
||||||
*
|
*
|
||||||
* @return array Strings of all the tags or null if there is no match found
|
* @return array Strings of all the tags or null if there is no match found
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function getTagsList($category, $value = null)
|
public function getTagsList($category, $value = null)
|
||||||
{
|
{
|
||||||
@ -393,6 +411,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* @param string $value Value to remove
|
* @param string $value Value to remove
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function removeTag($category, $value = null)
|
public function removeTag($category, $value = null)
|
||||||
{
|
{
|
||||||
@ -419,6 +439,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
* Deletes all tags associated with this Document.
|
* Deletes all tags associated with this Document.
|
||||||
*
|
*
|
||||||
* @return DMSDocument
|
* @return DMSDocument
|
||||||
|
*
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
public function removeAllTags()
|
public function removeAllTags()
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* Hold a set of metadata category/value tags associated with a DMSDocument
|
* Hold a set of metadata category/value tags associated with a DMSDocument
|
||||||
*
|
*
|
||||||
* @package dms
|
* @package dms
|
||||||
|
* @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy
|
||||||
*/
|
*/
|
||||||
class DMSTag extends DataObject
|
class DMSTag extends DataObject
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"silverstripe/framework": "~3.1",
|
"silverstripe/framework": "~3.1",
|
||||||
"silverstripe/cms": "~3.1",
|
"silverstripe/cms": "~3.1",
|
||||||
"silverstripe-australia/gridfieldextensions": "^1.1.0"
|
"symbiote/silverstripe-gridfieldextensions": "^2.0"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
Loading…
Reference in New Issue
Block a user