Naming for DMSDocument

This commit is contained in:
Ingo Schommer 2012-08-28 00:16:12 +02:00
parent aa9e0f8bba
commit 900f1d144a
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
'LastChanged'=>'LastChanged'
);
static $singular_name = 'Document';
static $plural_name = 'Documents';
/**
* Associates this document with a Page. This method does nothing if the association already exists.
* This could be a simple wrapper around $myDoc->Pages()->add($myPage) to add a many_many relation