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

  • CheckboxField
  • CheckboxField_Disabled
  • CheckboxField_Readonly
  • CheckboxSetField
  • DropdownField
  • GroupedDropdownField
  • ListboxField
  • LookupField
  • Monument_PolishingTextField
  • NullableField
  • OptionsetField
  • ReadonlyField
  • RoomServiceDropdownField
  • SimpleHTMLEditorField
  • SimpleTinyMCEField
  • SimpleWysiwygField
  • SocleSize_SocleSectionTextField
  • StateDropdownField
  • StateProvinceDropdownField
  • TextareaField
  • TextField
 1 <?php
 2 /**
 3  * Размер сечения цоколя
 4  *
 5  *
 6  *
 7  */
 8 class SocleSize extends Product {
 9     
10     static $many_many = array(
11         'SocleSections' => 'SocleSection', // круговая
12     );
13 
14     static $many_many_extraFields = array(
15         'SocleSections' => array(
16             'Price' => 'CatalogPrice',
17         ),
18     );
19     
20     function getCMSFields() {
21         $fields = parent::getCMSFields();
22         $tab = $fields->findOrMakeTab('Root.Content.Params', 'Параметры цоколя');
23 
24         if ($sections = $this->getAllSocleSections()) {
25             foreach($sections as $section) {
26                 $tab->push(new SocleSize_SocleSectionTextField('SocleSections', $section));
27             }
28         }
29         return $fields;
30     }
31     
32     function FullTitle() {
33         return $this->renderWith('SocleSizeFullTitle');
34     }
35 
36     function getAllSocleSections() {
37         if ($sections = SocleSection::get_sections()) {
38             foreach ($this->SocleSections() as $s) {
39                 if ($rec = $sections->find('ID',$s->ID)) {
40                     $sections->replace($rec, $s);
41                 }
42             }
43             return $sections;
44         }
45     }
46 }
47 
48 class SocleSize_Controller extends Product_Controller {
49     
50 }
51 
52 class SocleSize_SocleSectionTextField extends Monument_PolishingTextField {
53 }
54 
[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