Source of file TestTag.php
Size: 0,474 Bytes - Last Modified: 2021-12-23T10:31:28+00:00
/var/www/docs.ssmods.com/process/src/code/tagfield/TestTag.php
123456789101112131415161718192021222324 | <?php // class TestTag extends DataObject { // private static $db = array( // 'Title' => 'Text' // ); // private static $belongs_many_many = array( // 'Pages' => 'TestTagFieldPage' // ); // function requireDefaultRecords(){ // $class = $this->class; // if(!DataObject::get_one($class)) { // foreach(array('one', 'two', 'three', 'four') as $title) { // $tag = new $class(); // $tag->Title = $title; // $tag->write(); // } // } // } // } |