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  *
 7  * @package catalog_monument
 8  * @author menedem
 9  *
10  */
11 
12 class FlowerGarden extends DataObject {
13     static $db = array(
14         'Title' => 'Varchar(100)',
15         'HasTile' => 'Boolean', // есть плитка
16         'StellaHeightPercent' => 'Int', // % от высоты стелы
17         'Sort' => 'Int', // порядок
18     );
19     
20     static $has_one = array(
21         'Photo' => 'Image'
22     );
23     
24     static $has_many = array(
25         'Sizes' => 'FlowerGarden_Size'
26     );
27     
28     static $defaults = array(       
29         'StellaHeightPercent' => 100
30     );
31     
32     static $default_sort = "Sort";
33     
34     static $summary_fields = array('Title', 'HasTile', 'StellaHeightPercent');
35     static $searchable_fields = array('Title');
36 }
37 
38 
39 class FlowerGarden_Size extends DataObject {
40     static $db = array(
41         'Width' => 'Int', // ширина в см
42         'Length' => 'Int', // длина в см
43         'Weight' => 'Decimal(8,2)',
44         'Price' => 'CatalogPrice',
45     );
46 
47     static $has_one = array(
48         'FlowerGarden' => 'FlowerGarden'
49     );
50     
51     static $summary_fields = array('Width', 'Length', 'Weight', 'Price');
52     
53     function Title() {
54         return $this->FlowerGarden()->Title;
55     }
56 }
57 
58 
[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