[2] | 1 | <?php |
---|
| 2 | /***************************************************************************\ |
---|
| 3 | * eGroupWare - Contacts Center * |
---|
| 4 | * http://www.egroupware.org * |
---|
| 5 | * * |
---|
| 6 | * Storage Object Classes * |
---|
| 7 | * Written by: * |
---|
| 8 | * - Raphael Derosso Pereira <raphaelpereira@users.sourceforge.net> * |
---|
| 9 | * sponsored by Thyamad - http://www.thyamad.com * |
---|
| 10 | * ------------------------------------------------------------------------- * |
---|
| 11 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 12 | * under the terms of the GNU General Public License as published by the * |
---|
| 13 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 14 | * option) any later version. * |
---|
| 15 | \***************************************************************************/ |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | include_once( "class.so_type.inc.php" ); |
---|
| 19 | |
---|
| 20 | class so_relation_type extends so_type |
---|
| 21 | { |
---|
| 22 | var $is_subordinated; |
---|
| 23 | |
---|
| 24 | /*! |
---|
| 25 | |
---|
| 26 | @function is_subordinated |
---|
| 27 | @abstract Returns true if this relation type is |
---|
| 28 | subordinated |
---|
| 29 | @author Raphael Derosso Pereira |
---|
| 30 | |
---|
| 31 | */ |
---|
| 32 | function is_subordinated ( ) |
---|
| 33 | { |
---|
| 34 | return $this->is_subordinated['value']; |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | /*! |
---|
| 38 | |
---|
| 39 | @function set_subordinated |
---|
| 40 | @abstract Sets the trueness of the subordinated property |
---|
| 41 | @author Raphael Derosso Pereira |
---|
| 42 | |
---|
| 43 | @param boolean $subordinated |
---|
| 44 | |
---|
| 45 | */ |
---|
| 46 | function set_subordinated ( $subordinated ) |
---|
| 47 | { |
---|
| 48 | $this->is_subordinated['value'] = $subordinated; |
---|
| 49 | $this->manage_fields($this->subordinated, 'changed'); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | } |
---|
| 53 | ?> |
---|