Version: current

     1 <?php
     2
     3 class FillTechTitleTask extends ScheduledTask {
     4     function process() {
     5         $cat = DataObject::get_by_id('Catalog', 197608);
     6         $csv = '';
     7         foreach($cat->Params() as $param) {
     8             $csv .= '"'.$param->Title.'";"'.$param->TechTitle.'";"'.$param->Type.'";"'.$param->Important.'";"'.$param->FilterView.'";"'.$param->Sort.'";"'.$param->GroupTitle.'"' . "\n";
     9         }
    10
    11         file_put_contents(ASSETS_PATH . '/' . 'test_cat.csv', $csv);
    12     }
    13 }

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -