diff --git a/code/CMSSubTreeAdmin.php b/code/CMSSubTreeAdmin.php deleted file mode 100644 index 68e4fcf..0000000 --- a/code/CMSSubTreeAdmin.php +++ /dev/null @@ -1,33 +0,0 @@ -write(); - } - - // ftRoot->ID is your root node - $siteTree = $this->getSiteTreeFor("SiteTree", $ftRoot->ID); - - // This code is copied from getSiteTreeFor(), because getSiteTreeFor has it hard-coded to only generate if rootID = 0 - $rootLink = $this->Link() . '0'; - if($this->hasMethod('getCMSTreeTitle')) $treeTitle = $this->getCMSTreeTitle(); - else $treeTitle = _t('LeftAndMain.SITECONTENTLEFT',"Site Content",PR_HIGH,'Root node on left'); - $siteTree = ""; - - return $siteTree; - } -} - -?> \ No newline at end of file diff --git a/code/Client.php b/code/Client.php deleted file mode 100644 index 4848192..0000000 --- a/code/Client.php +++ /dev/null @@ -1,16 +0,0 @@ - "Varchar", - "Notes" => "HTMLText", - ); - static $many_many = array( - "Contacts" => "Contact", - ); - static $belongs_many_many = array( - "Projects" => "Project", - ); -} - -?> \ No newline at end of file diff --git a/code/Contact.php b/code/Contact.php deleted file mode 100644 index a9a01d5..0000000 --- a/code/Contact.php +++ /dev/null @@ -1,14 +0,0 @@ - "Varchar", - "Surname" => "Varchar", - "Email" => "Varchar", - ); - static $belongs_many_many = array( - "Clients" => "Client", - ); -} - -?> \ No newline at end of file diff --git a/code/Developer.php b/code/Developer.php deleted file mode 100644 index 905242e..0000000 --- a/code/Developer.php +++ /dev/null @@ -1,15 +0,0 @@ - "Varchar", - "Surname" => "Varchar", - "Email" => "Varchar", - "Username" => "Varchar", - ); - static $belongs_many_many = array( - "Projects" => "Project", - ); -} - -?> \ No newline at end of file diff --git a/code/FTPage.php b/code/FTPage.php deleted file mode 100644 index 4e55749..0000000 --- a/code/FTPage.php +++ /dev/null @@ -1,5 +0,0 @@ - "Varchar", - ); - static $many_many = array( - "Clients" => "Client", - "Developers" => "Developer", - ); -} - -?> \ No newline at end of file diff --git a/code/RelationFieldsTestPage.php b/code/RelationFieldsTestPage.php index 71885a7..c0c791e 100644 --- a/code/RelationFieldsTestPage.php +++ b/code/RelationFieldsTestPage.php @@ -25,18 +25,13 @@ class RelationFieldsTestPage extends TestPage { // TODO Fix legacy relation CTFs in 3.0 // $fields->addFieldToTab("Root.HasOneCTF", - // new HasOneComplexTableField($this, "FavouriteItem", "TestCTFItem", array( - // "Title" => "Item Title", - // "Author" => "Item Author"))); + // new HasOneComplexTableField($this, "HasOneCompany"); // $fields->addFieldToTab("Root.HasManyCTF", - // new HasManyComplexTableField($this, "Items", "TestCTFItem", array( - // "Title" => "Item Title", - // "Author" => "Item Author"))); + // new HasManyComplexTableField($this, "HasManyCompanies"); // $fields->addFieldToTab("Root.ManyManyCTF", - // new ManyManyComplexTableField($this, "CheckboxSet", "TestCategory", array( - // "Title" => "Item Title"))); + // new ManyManyComplexTableField($this, "ManyManyCompanies"); // $fields->addFieldToTab("Root.Tests.ComplexTableField", @@ -49,6 +44,4 @@ class RelationFieldsTestPage extends TestPage { class RelationFieldsTestPage_Controller extends TestPage_Controller { -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/code/TestModelAdmin.php b/code/TestModelAdmin.php index 74b070d..3099f89 100644 --- a/code/TestModelAdmin.php +++ b/code/TestModelAdmin.php @@ -2,13 +2,11 @@ class TestModelAdmin extends ModelAdmin { static $url_segment = 'test'; - static $menu_title = 'Test MdAdm'; + static $menu_title = 'Test ModelAdmin'; public static $managed_models = array( - "Client", - "Contact", - "Project", - "Developer", + "Company", + "Employee", ); }