Changeset 5934
- Timestamp:
- 01/13/12 16:39:05 (4 months ago)
- Location:
- trunk/core
- Files:
-
- 1 deleted
- 39 edited
-
autoload/autoloader.core.php (modified) (1 diff)
-
viewhelper/form/elements/Kopie von url.php (deleted)
-
viewhelper/form/elements/button.php (modified) (2 diffs)
-
viewhelper/form/elements/buttonbar.php (modified) (1 diff)
-
viewhelper/form/elements/cancelbutton.php (modified) (1 diff)
-
viewhelper/form/elements/captcha.php (modified) (3 diffs)
-
viewhelper/form/elements/checkbox.php (modified) (1 diff)
-
viewhelper/form/elements/checkboxlist.php (modified) (1 diff)
-
viewhelper/form/elements/confirmsubmitbutton.php (modified) (2 diffs)
-
viewhelper/form/elements/email.php (modified) (1 diff)
-
viewhelper/form/elements/errors.php (modified) (2 diffs)
-
viewhelper/form/elements/file.php (modified) (7 diffs)
-
viewhelper/form/elements/hidden.php (modified) (1 diff)
-
viewhelper/form/elements/image.php (modified) (1 diff)
-
viewhelper/form/elements/imagebutton.php (modified) (1 diff)
-
viewhelper/form/elements/input.php (modified) (1 diff)
-
viewhelper/form/elements/jqconfirmsubmitbutton.php (modified) (2 diffs)
-
viewhelper/form/elements/multiselect.php (modified) (1 diff)
-
viewhelper/form/elements/number.php (modified) (5 diffs)
-
viewhelper/form/elements/password.php (modified) (1 diff)
-
viewhelper/form/elements/radio.php (modified) (1 diff)
-
viewhelper/form/elements/radiolist.php (modified) (3 diffs)
-
viewhelper/form/elements/range.php (modified) (4 diffs)
-
viewhelper/form/elements/selectcountry.php (modified) (1 diff)
-
viewhelper/form/elements/selectlocale.php (modified) (5 diffs)
-
viewhelper/form/elements/selectyesno.php (modified) (1 diff)
-
viewhelper/form/elements/submitbutton.php (modified) (1 diff)
-
viewhelper/form/elements/text.php (modified) (1 diff)
-
viewhelper/form/elements/textarea.php (modified) (4 diffs)
-
viewhelper/form/elements/timetoken.php (modified) (2 diffs)
-
viewhelper/form/elements/uploadajax.php (modified) (1 diff)
-
viewhelper/form/elements/uploadapc.php (modified) (3 diffs)
-
viewhelper/form/elements/uploadify.php (modified) (1 diff)
-
viewhelper/form/elements/url.php (modified) (1 diff)
-
viewhelper/form/elements/wysiwygckeditor.php (modified) (3 diffs)
-
viewhelper/form/elements/wysiwygmarkitup.php (modified) (3 diffs)
-
viewhelper/form/elements/wysiwygnicedit.php (modified) (3 diffs)
-
viewhelper/form/elements/wysiwygtinymce.php (modified) (3 diffs)
-
viewhelper/form/form.php (modified) (2 diffs)
-
viewhelper/form/formelement.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/autoload/autoloader.core.php
r5928 r5934 252 252 'Clansuite_Formelement_Input' => 'viewhelper/form/elements/input.php', 253 253 'Clansuite_Formelement_Imagebutton' => 'viewhelper/form/elements/imagebutton.php', 254 'Clansuite_Formelement_Checkbox' => 'viewhelper/form/elements/checkbox.form.php', 254 'Clansuite_Formelement_Checkbox' => 'viewhelper/form/elements/checkbox.php', 255 'Clansuite_Formelement_Select' => 'viewhelper/form/elements/select.php', 255 256 'Clansuite_Array_Formgenerator' => 'viewhelper/form/generators/array.php', 256 257 'Clansuite_Doctrine_Formgenerator' => 'viewhelper/form/generators/doctrine.php', -
trunk/core/viewhelper/form/elements/button.php
r5932 r5934 37 37 } 38 38 39 /**40 * Clansuite_Formelement41 * |42 * \- Clansuite_Formelement_Input43 * |44 * \- Clansuite_Formelement_Button45 */46 39 class Clansuite_Formelement_Button extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 47 40 { … … 49 42 { 50 43 $this->type = 'button'; 51 } 44 } 52 45 } 53 46 ?> -
trunk/core/viewhelper/form/elements/buttonbar.php
r5932 r5934 37 37 } 38 38 39 /**40 * Clansuite_Formelement41 * |42 * \- Clansuite_Formelement_ButtonBar43 */44 39 class Clansuite_Formelement_Buttonbar extends Clansuite_Formelement implements Clansuite_Formelement_Interface 45 40 { -
trunk/core/viewhelper/form/elements/cancelbutton.php
r5932 r5934 37 37 } 38 38 39 /**40 * Clansuite_Formelement41 * |42 * \- Clansuite_Formelement_Input43 * |44 * \- Clansuite_Formelement_Cancelbutton45 */46 39 class Clansuite_Formelement_Cancelbutton extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 47 40 { -
trunk/core/viewhelper/form/elements/captcha.php
r5932 r5934 37 37 } 38 38 39 /**40 * Clansuite_Formelement41 * |42 * \- Clansuite_Formelement_Captcha43 */44 39 class Clansuite_Formelement_Captcha extends Clansuite_Formelement implements Clansuite_Formelement_Interface 45 40 { … … 84 79 85 80 /** 86 * @return string Name of the Captcha (without the captcha part) (like re, simple)81 * @return string Name of the Captcha 87 82 */ 88 83 public function getCaptcha() … … 133 128 if (class_exists($classname, false) === false) 134 129 { 135 include ROOT_CORE .'viewhelper/form/formelements/'. $name .'captcha. form.php';130 include ROOT_CORE .'viewhelper/form/formelements/'. $name .'captcha.php'; 136 131 } 137 132 -
trunk/core/viewhelper/form/elements/checkbox.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Checkbox51 */52 39 class Clansuite_Formelement_Checkbox extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/checkboxlist.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Checkbox',false))41 {42 include __DIR__ . '/checkbox.form.php';43 }44 45 /**46 * Clansuite_Formelement_Input47 * |48 * \ - Clansuite_Formelement_Checkbox49 * |50 * \- Clansuite_Formelement_Checkboxlist51 */52 39 class Clansuite_Formelement_Checkboxlist extends Clansuite_Formelement_Checkbox implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/confirmsubmitbutton.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_ConfirmSubmitButton51 */52 39 class Clansuite_Formelement_ConfirmSubmitButton extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { … … 60 47 $this->class = 'ButtonGreen'; 61 48 62 # Add the Form Submit Confirmation Javascript. This is a pure Javacript Return Confirm. 63 # to add the value of specific form.elements to the message use "+ form.elements['email'].value +" 49 /** 50 * Add the Form Submit Confirmation Javascript. 51 * This is a pure Javacript Return Confirm. 52 * To add the value of specific "form.elements" to the message 53 * use: "+ form.elements['email'].value +" 54 */ 64 55 $this->setAdditionalAttributeAsText("onclick=\"if (confirm('Are you sure you want to submit this form?\\n\\nClick OK to submit or Cancel to abort.')) { submit(); } else { return false; } \" value=\"Submit\""); 65 56 } -
trunk/core/viewhelper/form/elements/email.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Email51 */52 39 class Clansuite_Formelement_Email extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/errors.php
r5932 r5934 27 27 * @copyright Jens-André Koch (2005-onwards) 28 28 * @link http://www.clansuite.com 29 * 29 * 30 30 * @version SVN: $Id$ 31 31 */ … … 37 37 } 38 38 39 /**40 *41 * Clansuite_Form42 * |43 * \- Clansuite_Formelement_Errors44 */45 39 class Clansuite_Formelement_Errors extends Clansuite_Formelement implements Clansuite_Formelement_Interface 46 40 { -
trunk/core/viewhelper/form/elements/file.php
r5932 r5934 43 43 } 44 44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_File51 */52 45 class Clansuite_Formelement_File extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 46 { … … 57 50 * There are several different formelements available to upload files: 58 51 * 59 * 1) Ajaxupload -> uploadajax. form.php60 * 2) APC -> uploadapc. form.php61 * 3) Uploadify -> uploadify. form.php52 * 1) Ajaxupload -> uploadajax.php 53 * 2) APC -> uploadapc.php 54 * 3) Uploadify -> uploadify.php 62 55 * 4) Default HTML -> this class 63 56 * … … 92 85 public function render() 93 86 { 94 /**95 * Switch for uploadType96 */97 87 switch($this->uploadType) 98 88 { … … 101 91 if(false === class_exists('Clansuite_Formelement_Uploadajax', false)) 102 92 { 103 include 'uploadajax.form.php';93 include __DIR__ . '/uploadajax.php'; 104 94 } 105 95 return new Clansuite_Formelement_Uploadajax(); … … 108 98 if(false === class_exists('Clansuite_Formelement_Uploadapc', false)) 109 99 { 110 include 'uploadapc.form.php';100 include __DIR__ . '/uploadapc.php'; 111 101 } 112 102 return new Clansuite_Formelement_Uploadapc(); … … 115 105 if(false === class_exists('Clansuite_Formelement_Uploadify', false)) 116 106 { 117 include 'uploadify.form.php';107 include __DIR__ . '/uploadify.php'; 118 108 } 119 109 return new Clansuite_Formelement_Uploadify(); … … 129 119 } 130 120 } 131 121 132 122 /** 133 123 * Magic-Method for rendering the subclass formelements. 134 * 124 * 135 125 * The render method needs a bit magic to render formelement objects directly. 136 126 * See the short returns calls like the following above: 137 * 127 * 138 128 * return new Clansuite_Formelement_Uploadajax(); 139 * 140 * The long form is: 141 * 129 * 130 * The long form is: 131 * 142 132 * $formelement = new Clansuite_Formelement_Uploadajax(); 143 133 * $formelement->render(); -
trunk/core/viewhelper/form/elements/hidden.php
r5932 r5934 37 37 } 38 38 39 40 39 class Clansuite_Formelement_Hidden extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 41 40 { -
trunk/core/viewhelper/form/elements/image.php
r5932 r5934 37 37 } 38 38 39 /**40 *41 * Clansuite_Formelement42 * |43 * \- Clansuite_Formelement_Image44 */45 39 class Clansuite_Formelement_Image extends Clansuite_Formelement implements Clansuite_Formelement_Interface 46 40 { 47 41 48 42 public static function render() 49 43 { 50 return '<input ' . $this->renderAttributes() . '>'; 44 return '<input ' . $this->renderAttributes() . '>'; 51 45 } 52 46 } -
trunk/core/viewhelper/form/elements/imagebutton.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Imagebutton51 */52 39 class Clansuite_Formelement_Imagebutton extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/input.php
r5932 r5934 38 38 39 39 /** 40 * Clansuite_Formelement 41 * | 42 * \- Clansuite_Formelement_Input 40 * Clansuite_Formelement_Input 43 41 * 44 42 * @link http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html -
trunk/core/viewhelper/form/elements/jqconfirmsubmitbutton.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_JQConfirmSubmitButton51 */52 39 class Clansuite_Formelement_JQConfirmSubmitButton extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { … … 68 55 * Add the Form Submit Confirmation Javascript. 69 56 * This is a jQuery UI Modal Confirm Dialog. 70 * 57 * 71 58 * a) To add the value of specific form.elements to the message use "+ form.elements['email'].value +" 72 59 * b) Take care, that the div dialog is present in the DOM, BEFORE you assign function to it via $('#dialog') -
trunk/core/viewhelper/form/elements/multiselect.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Select',false))41 {42 include __DIR__ . '/select.form.php';43 }44 45 /**46 *47 * Clansuite_Form48 * |49 \- Clansuite_Formelement_Select50 * |51 * \- Clansuite_Formelement_Multiselect52 */53 39 class Clansuite_Formelement_Multiselect extends Clansuite_Formelement_Select implements Clansuite_Formelement_Interface 54 40 { -
trunk/core/viewhelper/form/elements/number.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Number51 */52 39 class Clansuite_Formelement_Number extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { … … 58 45 return $this; 59 46 } 60 47 61 48 /** 62 49 * Specifies the minimum value allowed … … 65 52 { 66 53 $this->min = $min; 67 54 68 55 return $this; 69 56 } 70 57 71 58 /** 72 59 * Specifies the maximum value allowed … … 75 62 { 76 63 $this->max = $max; 77 64 78 65 return $this; 79 66 } 80 67 81 68 /** 82 69 * Specifies legal number intervals (if step="2", legal numbers could be -2,0,2,4, etc) … … 85 72 { 86 73 $this->step = $step; 87 74 88 75 return $this; 89 76 } -
trunk/core/viewhelper/form/elements/password.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Text',false))41 {42 include __DIR__ . '/text.form.php';43 }44 45 /**46 *47 * Clansuite_Formelement48 * |49 * \- Clansuite_Formelement_Text50 * |51 * \- Clansuite_Formelement_Password52 */53 39 class Clansuite_Formelement_Password extends Clansuite_Formelement_Text implements Clansuite_Formelement_Interface 54 40 { -
trunk/core/viewhelper/form/elements/radio.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Radio51 */52 39 class Clansuite_Formelement_Radio extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/radiolist.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Radio',false))41 {42 include __DIR__ . '/radio.form.php';43 }44 /**45 * Clansuite_Form46 * |47 * \- Clansuite_Formelement_Radio48 * |49 * \- Clansuite_Formelement_Radiolist50 */51 39 class Clansuite_Formelement_Radiolist extends Clansuite_Formelement_Radio implements Clansuite_Formelement_Interface 52 40 { … … 84 72 ->setDescription($value) 85 73 ->setLabel($value); 86 74 87 75 # check the element, if value is "active" 88 76 if( $this->value == $key) … … 93 81 # assign it as output 94 82 $html .= $radio; 95 83 96 84 #Clansuite_Debug::printR($html); 97 85 -
trunk/core/viewhelper/form/elements/range.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Range51 */52 39 class Clansuite_Formelement_Range extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { 54 41 public function __construct() 55 42 { 56 $this->type = 'range'; # displays a slider 43 $this->type = 'range'; # displays a slider 57 44 58 45 return $this; 59 46 } 60 47 61 48 /** 62 49 * Specifies the minimum value allowed … … 65 52 { 66 53 $this->min = $min; 67 54 68 55 return $this; 69 56 } 70 57 71 58 /** 72 59 * Specifies the maximum value allowed … … 75 62 { 76 63 $this->max = $max; 77 64 78 65 return $this; 79 66 } 80 67 81 68 /** 82 69 * Specifies legal number intervals (if step="2", legal numbers could be -2,0,2,4, etc) … … 85 72 { 86 73 $this->step = $step; 87 74 88 75 return $this; 89 76 } -
trunk/core/viewhelper/form/elements/selectcountry.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Select',false))41 {42 include __DIR__ . '/select.form.php';43 }44 45 /**46 *47 * Clansuite_Form48 * |49 * \- Clansuite_Formelement_Select50 * |51 * \- Clansuite_Formelement_Selectcountry52 */53 39 class Clansuite_Formelement_Selectcountry extends Clansuite_Formelement_Select implements Clansuite_Formelement_Interface 54 40 { -
trunk/core/viewhelper/form/elements/selectlocale.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Select',false))41 {42 include __DIR__ . '/select.form.php';43 }44 45 /**46 * Clansuite_Form47 * |48 * \- Clansuite_Formelement_Select49 * |50 * \- Clansuite_Formelement_Selectlocale51 */52 39 class Clansuite_Formelement_Selectlocale extends Clansuite_Formelement_Select implements Clansuite_Formelement_Interface 53 40 { … … 61 48 # include locale arrays 62 49 include ROOT_CORE . 'gettext/locales.gettext.php'; 63 50 64 51 /** 65 52 * prepare array structure for dropdown ( key => value ) … … 72 59 * Key is the locale name. 73 60 * 74 * a locale name has the form ll_CC. 61 * a locale name has the form ll_CC. 75 62 * Where ll is an ISO 639 two-letter language code, and CC is an ISO 3166 two-letter country code. 76 63 * Both codes are separated by a underscore. … … 80 67 */ 81 68 $key = $locale; 82 69 83 70 /** 84 71 * Value consists of a long form of the language name and the locale code with hyphen. … … 89 76 */ 90 77 $value = $locale_array['lang-native'] . ' (' . $locale_array['lang-www'] . ')'; 91 78 92 79 $options[$key] = $value; 93 80 } 94 81 95 82 $this->setOptions($options); 96 83 97 84 $this->setLabel( _('Select Locale') ); 98 85 99 86 # You will find the value of the drop down in $_POST['locale']! 100 87 $this->setName('locale'); -
trunk/core/viewhelper/form/elements/selectyesno.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Select',false))41 {42 include __DIR__ . '/select.form.php';43 }44 45 /**46 *47 * Clansuite_Form48 * |49 * \- Clansuite_Formelement_Select50 * |51 * \- Clansuite_Formelement_Selectyesno52 */53 39 class Clansuite_Formelement_Selectyesno extends Clansuite_Formelement_Select implements Clansuite_Formelement_Interface 54 40 { -
trunk/core/viewhelper/form/elements/submitbutton.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Submitbutton51 */52 39 class Clansuite_Formelement_Submitbutton extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/text.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Text51 */52 39 class Clansuite_Formelement_Text extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/textarea.php
r5932 r5934 52 52 * There are several different wysiwyg editor formelements available: 53 53 * 54 * 1) Nicedit -> wysiwygnicedit. form.php55 * 2) TinyMCE -> wysiwygtinymce. form.php56 * 3) CKEditor -> wysiwygckeditor. form.php57 * 4) markItUp -> wysiwygmarkItUp. form.phg54 * 1) Nicedit -> wysiwygnicedit.php 55 * 2) TinyMCE -> wysiwygtinymce.php 56 * 3) CKEditor -> wysiwygckeditor.php 57 * 4) markItUp -> wysiwygmarkItUp.phg 58 58 * 59 59 * @var string … … 89 89 * the expected config setting is [editor] type. 90 90 * if the configuration value is not given, use "ckeditor" as fallback. 91 */ 91 */ 92 92 if($editor == null) 93 { 93 { 94 94 $config = Clansuite_CMS::getInjector()->instantiate('Clansuite_Config'); 95 95 $editor = isset($config['editor']['type']) ? $config['editor']['type'] : 'ckeditor'; … … 183 183 private function editorFactory() 184 184 { 185 $name = $this->getEditor(); 186 185 $name = $this->getEditor(); 186 187 187 188 188 # construct classname … … 192 192 if(class_exists($classname, false) === false) 193 193 { 194 include ROOT_CORE . 'viewhelper/form/ formelements/wysiwyg' . $name . '.form.php';194 include ROOT_CORE . 'viewhelper/form/elements/wysiwyg' . $name . '.php'; 195 195 } 196 196 -
trunk/core/viewhelper/form/elements/timetoken.php
r5932 r5934 38 38 39 39 /** 40 * 41 * Clansuite_Formelement 42 * | 43 * \- Clansuite_Formelement_Timetoken 40 * Clansuite_Formelement_Timetoken 44 41 */ 45 42 class Clansuite_Formelement_Timetoken extends Clansuite_Formelement implements Clansuite_Formelement_Interface … … 47 44 public function generateToken() 48 45 { 49 # @todo consider using PHP Spam Kit Class 46 # @todo consider using PHP Spam Kit Class 50 47 } 51 48 52 49 /** 53 50 * Inserts a hidden input field for a token. Reducing the risk of an CSRF exploit. -
trunk/core/viewhelper/form/elements/uploadajax.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_File',false))41 {42 include __DIR__ . '/file.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_File49 * |50 * \- Clansuite_Formelement_Uploadajax51 */52 39 class Clansuite_Formelement_Uploadajax extends Clansuite_Formelement_File implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/uploadapc.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_File',false))41 {42 include __DIR__ . '/file.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_File49 * |50 * \- Clansuite_Formelement_Uploadapc51 */52 39 class Clansuite_Formelement_Uploadapc extends Clansuite_Formelement_File implements Clansuite_Formelement_Interface 53 40 { … … 156 143 * c) placed before the input file element. 157 144 */ 158 if (false == class_exists('Clansuite_Formelement_Hidden',false))145 if (false === class_exists('Clansuite_Formelement_Hidden',false)) 159 146 { 160 147 include __DIR__ . '/hidden.form.php'; … … 169 156 170 157 # add a submit button 171 if (false == class_exists('Clansuite_Formelement_Submitbutton',false))158 if (false === class_exists('Clansuite_Formelement_Submitbutton',false)) 172 159 { 173 include __DIR__ . '/submitbutton. form.php';160 include __DIR__ . '/submitbutton.php'; 174 161 } 175 162 $submit = new Clansuite_Formelement_Submitbutton(); -
trunk/core/viewhelper/form/elements/uploadify.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_File',false))41 {42 include __DIR__ . '/file.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_File49 * |50 * \- Clansuite_Formelement_Uploadify51 */52 39 class Clansuite_Formelement_Uploadify extends Clansuite_Formelement_File implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/url.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Input',false))41 {42 include __DIR__ . '/input.form.php';43 }44 45 /**46 * Clansuite_Formelement47 * |48 * \- Clansuite_Formelement_Input49 * |50 * \- Clansuite_Formelement_Url51 */52 39 class Clansuite_Formelement_Url extends Clansuite_Formelement_Input implements Clansuite_Formelement_Interface 53 40 { -
trunk/core/viewhelper/form/elements/wysiwygckeditor.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Textarea',false))41 {42 include __DIR__ . '/textarea.form.php';43 }44 45 39 /** 46 40 * Clansuite_Formelement_WysiwygCkeditor 47 * 41 * 48 42 * @see http://ckeditor.com/ Official Website of CKeditor 49 43 * @see http://docs.cksource.com/ CKEditor Documentations … … 56 50 self::checkDependencies(); 57 51 } 58 52 59 53 /** 60 54 * Ensure, that the library is available, before the client requests a non-existant file. … … 67 61 } 68 62 } 69 63 70 64 /** 71 65 * This renders a textarea with the WYSWIWYG editor ckeditor attached. -
trunk/core/viewhelper/form/elements/wysiwygmarkitup.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Textarea', false))41 {42 include __DIR__ . '/textarea.form.php';43 }44 45 39 /** 46 40 * Clansuite_Formelement_Wysiwygmarkitup … … 54 48 self::checkDependencies(); 55 49 } 56 50 57 51 /** 58 52 * Ensure, that the library is available, before the client requests a non-existant file. 59 53 */ 60 54 public static function checkDependencies() 61 { 55 { 62 56 if (!is_file(ROOT_THEMES_CORE . 'javascript/markitup/jquery.markitup.js')) 63 57 { … … 65 59 } 66 60 } 67 61 68 62 /** 69 63 * This renders a textarea with the WYSWIWYG editor markItUp! attached. -
trunk/core/viewhelper/form/elements/wysiwygnicedit.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Textarea',false))41 {42 include __DIR__ . '/textarea.form.php';43 }44 45 39 /** 46 40 * Clansuite_Formelement_Wysiwygnicedit … … 55 49 self::checkDependencies(); 56 50 } 57 51 58 52 /** 59 53 * Ensure, that the library is available, before the client requests a non-existant file. … … 66 60 } 67 61 } 68 62 69 63 /** 70 64 * This renders a textarea with the WYSWIWYG editor NicEdit attached. -
trunk/core/viewhelper/form/elements/wysiwygtinymce.php
r5932 r5934 37 37 } 38 38 39 # conditional include of the parent class40 if (false == class_exists('Clansuite_Formelement_Textarea',false))41 {42 include __DIR__ . '/textarea.form.php';43 }44 45 39 /** 46 40 * Clansuite_Formelement_Wysiwygtinymce … … 56 50 self::checkDependencies(); 57 51 } 58 52 59 53 /** 60 54 * Ensure, that the library is available, before the client requests a non-existant file. 61 55 */ 62 56 public static function checkDependencies() 63 { 57 { 64 58 if (!is_file(ROOT_THEMES_CORE . 'javascript/tiny_mce/tiny_mce.js')) 65 59 { … … 67 61 } 68 62 } 69 63 70 64 /** 71 65 * This renders a textarea with the WYSWIWYG editor TinyMCE attached. -
trunk/core/viewhelper/form/form.php
r5925 r5934 1100 1100 if (false == class_exists($formelement_classname, false)) 1101 1101 { 1102 $file = ROOT_CORE . 'viewhelper/form/elements/'.$formelement.'. form.php';1102 $file = ROOT_CORE . 'viewhelper/form/elements/'.$formelement.'.php'; 1103 1103 1104 1104 if(is_file($file) === true) … … 1406 1406 if(false == class_exists('Clansuite_Form_Decorator_' . $decorator, false)) 1407 1407 { 1408 $file = ROOT_CORE . 'viewhelper/form/decorators/form/' . $decorator . '. form.php';1408 $file = ROOT_CORE . 'viewhelper/form/decorators/form/' . $decorator . '.php'; 1409 1409 1410 1410 if(is_file($file) === true) -
trunk/core/viewhelper/form/formelement.php
r5925 r5934 846 846 if(false == class_exists($class, false)) 847 847 { 848 $file = ROOT_CORE . 'viewhelper/form/decorators/formelement/' . $decorator . '. form.php';848 $file = ROOT_CORE . 'viewhelper/form/decorators/formelement/' . $decorator . '.php'; 849 849 850 850 if(is_file($file) === true)
Note: See TracChangeset
for help on using the changeset viewer.
