| 1 | package Crop::Prop; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Crop::Prop - Property utilities for the Crop framework | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | use Crop::Prop; | ||
| 12 | # ...usage... | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | Crop::Prop provides property-related utilities for the Crop framework. | ||
| 17 | |||
| 18 | =head1 AUTHORS | ||
| 19 | |||
| 20 | Euvgenio (Core Developer) | ||
| 21 | |||
| 22 | Alex (Contributor) | ||
| 23 | |||
| 24 | =head1 COPYRIGHT AND LICENSE | ||
| 25 | |||
| 26 | Apache 2.0 | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | =begin nd | ||
| 31 | Class: Crop::Prop | ||
| 32 | Property. | ||
| 33 | |||
| 34 | It's used for all the classes that use properties of any form. | ||
| 35 | |||
| 36 | You could subclass Property by project-specific class if the EXT funcionality is required. | ||
| 37 | =cut | ||
| 38 | |||
| 39 | use v5.14; | ||
| 40 | use warnings; | ||
| 41 | |||
| 42 | use Crop::Error; | ||
| 43 | |||
| 44 | use Crop::Debug; | ||
| 45 | |||
| 46 | =begin nd | ||
| 47 | Variable: our %Attributes | ||
| 48 | Class attributes: | ||
| 49 | |||
| 50 | code - unique code of prop | ||
| 51 | description - description | ||
| 52 | id - from <Crop::Object::Simple> | ||
| 53 | id_proptype - type of prop; exemplar of <Crop::Prop::Type> | ||
| 54 | name - name | ||
| 55 | proptype - extra object <Crop::Prop::Type> for attribute 'id_proptype' | ||
| 56 | =cut | ||
| 57 | our %Attributes = ( | ||
| 58 | code => {mode => 'read'}, | ||
| 59 | description => undef, | ||
| 60 | id_proptype => {mode => 'read', key => 'extern'}, | ||
| 61 | name => undef, | ||
| 62 | ); | ||
| 63 | |||
| 64 | =begin nd | ||
| 65 | Method: Table ( ) | ||
| 66 | Table in the Warehouse. | ||
| 67 | |||
| 68 | Returns: | ||
| 69 | 'prop' string | ||
| 70 | =cut | ||
| 71 | sub Table { 'prop' } | ||
| 72 | |||
| 73 | 1; |