| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | <?php/** * Define a address * @author  Valentin MORREEL * @category Core * @license copyright */class Contact extends Entity{	public $id,$entity,$entity_id,$label,$type,$value,$state;	//Phone constants	const PHONE = 'phone';	const MOBILE= 'mobile';	//Mail constants	const PERSONAL_MAIL = 'personal_mail';	const PROFESSIONAL_MAIL = 'professional_mail';	public $fields = array(		'id' => 'key',		'entity' => 'string',		'entity_id' => 'int',		'label' => 'string',		'type' => 'string',		'value' => 'string',		'state' => 'string'	);	public static function types($key=null){		$types = array(			self::PHONE => array(				'label' => "Tél. Fixe",				'icon' => "",				'color' => "",			),			self::MOBILE => array(				'label' => "Tél. Mobile",				'icon' => "",				'color' => "",			),			self::PERSONAL_MAIL => array(				'label' => "Mail perso.",				'icon' => "",				'color' => "",			),			self::PROFESSIONAL_MAIL => array(				'label' => "Mail pro.",				'icon' => "",				'color' => "",			),		);		Plugin::callHook('contact_types', array(&$types));				return isset($key) && isset($types[$key]) ? $types[$key] : $types;	}}?>
 |