Webylon 3.2 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • 1c
    • exchange
      • catalog
  • auth
  • Booking
  • building
    • company
  • cart
    • shipping
    • steppedcheckout
  • Catalog
    • monument
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • Epitaph
  • FlowerGarden
  • Polishing
  • SocleSection
 1 <?php
 2 /**
 3  * Типы полировок памятников
 4  *
 5  *
 6  * @package catalog_monument
 7  * @author menedem
 8  *
 9  */
10 
11 class Polishing extends DataObject {
12     static $db = array(
13         'Title' => 'Varchar(100)',
14         'Sort' => 'Int', // порядок
15     );
16     
17     static $has_one = array(
18         'Photo' => 'Image'
19     );
20     
21     static $belongs_many_many = array(  
22         'Monuments' => 'Monument', // круговая      
23     );
24     
25     static $casting = array(    
26         'Price' => 'CatalogPrice'
27     );
28 
29     static $default_sort = "Sort";
30 
31     
32     static function get_polishings() {
33         return DataObject::get('Polishing');
34     }
35     
36     function FieldTitle() {
37         return sprintf(_t('Polishing.FieldTitle'), $this->Title);
38     }
39     
40     function getCMSFields() {
41         $fields = parent::getCMSFields();
42         $fields->removeByName('Monuments');
43         return $fields;
44     }
45 }
[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. -
Webylon 3.2 API Docs API documentation generated by ApiGen 2.8.0