mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-09-19 16:06:16 +02:00
24 lines
474 B
PHP
24 lines
474 B
PHP
<?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();
|
|
// }
|
|
|
|
// }
|
|
// }
|
|
// }
|