Source of file TestimonialsPage.php
Size: 1,529 Bytes - Last Modified: 2021-12-23T10:51:35+00:00
/var/www/docs.ssmods.com/process/src/code/Pages/TestimonialsPage.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | <?php class TestimonialsPage extends Page { /** * Static vars * ----------------------------------*/ /** * Object vars * ----------------------------------*/ /** * Static methods * ----------------------------------*/ /** * Data model * ----------------------------------*/ private static $db = array( ); private static $has_one = array( ); private static $has_many = array( "Testimonials" => "Testimonial" ); /** * Common methods * ----------------------------------*/ public function getCMSFields() { $fields = parent::getCMSFIelds(); $fields->addFieldToTab("Root.Testimonials", GridField::create('Testimonials', 'Testimonials', $this->Testimonials(), GridFieldConfig_RelationEditor::create()) ); return $fields; } /** * Accessor methods * ----------------------------------*/ /** * Controller actions * ----------------------------------*/ /** * Template accessors * ----------------------------------*/ /** * Object methods * ----------------------------------*/ } class TestimonialsPage_Controller extends Page_Controller { private static $allowed_actions = array( ); public function init() { parent::init(); } } |