-
Notifications
You must be signed in to change notification settings - Fork 12
/
Form.php
76 lines (70 loc) · 2.64 KB
/
Form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* OSS Framework
*
* This file is part of the "OSS Framework" - a library of tools, utilities and
* extensions to the Zend Framework V1.x used for PHP application development.
*
* Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
* All rights reserved.
*
* Open Source Solutions Limited is a company registered in Dublin,
* Ireland with the Companies Registration Office (#438231). We
* trade as Open Solutions with registered business name (#329120).
*
* Contact: Barry O'Donovan - info (at) opensolutions (dot) ie
* http://www.opensolutions.ie/
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
*
* It is also available through the world-wide-web at this URL:
* http://www.opensolutions.ie/licenses/new-bsd
*
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category OSS
* @package OSS_Form
* @copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
* @license http://www.opensolutions.ie/licenses/new-bsd New BSD License
* @link http://www.opensolutions.ie/ Open Source Solutions Limited
* @author Barry O'Donovan <[email protected]>
* @author The Skilled Team of PHP Developers at Open Solutions <[email protected]>
*/
/**
* @category OSS
* @package OSS_Form
* @copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
* @license http://www.opensolutions.ie/licenses/new-bsd New BSD License
*/
class OSS_Form extends Zend_Form
{
// possible traits
//
use OSS_Form_Trait; // *** REQUIRED if using traits
// use OSS_Form_Trait_CancelLocation;
use OSS_Form_Trait_GenericElements;
// use OSS_Form_Trait_InsertElementFns;
// use OSS_Form_Trait_IsEdit;
// use OSS_Form_Trait_Doctrine1Mapping;
// use OSS_Form_Trait_Doctrine2Mapping;
/**
* Constructor
*
* @param null|array $options An array of options
* @param bool $isEdit True if the form is for editing as opposed to adding
* @return void
*/
public function __construct( $options = null )
{
$this->addElementPrefixPath( 'OSS_Filter', 'OSS/Filter/', 'filter' );
$this->addElementPrefixPath( 'OSS_Validate', 'OSS/Validate/', 'validate' );
parent::__construct( $options );
if( method_exists( $this, 'initialiseTraits' ) )
$this->initialiseTraits( $options );
}
}