<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="ApiGen 2.7.0" /> <meta name="robots" content="noindex" /> <title>File domain/ComonDomainBase.php | Picon Framework</title> <script type="text/javascript" src="resources/combined.js?1069802229"></script> <script type="text/javascript" src="elementlist.js?3232593492"></script> <link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1567499433" /> </head> <body> <div id="left"> <div id="menu"> <a href="index.html" title="Overview"><span>Overview</span></a> <div id="groups"> <h3>Namespaces</h3> <ul> <li><a href="namespace-None.html">None</a> </li> <li><a href="namespace-PHP.html">PHP</a> </li> <li class="active"><a href="namespace-picon.html">picon</a> </li> </ul> </div> <hr /> <div id="elements"> <h3>Classes</h3> <ul> <li><a href="class-picon.AbstractAjaxBehaviour.html">AbstractAjaxBehaviour</a></li> <li><a href="class-picon.AbstractAssociatedMarkupSource.html">AbstractAssociatedMarkupSource</a></li> <li><a href="class-picon.AbstractBehaviour.html">AbstractBehaviour</a></li> <li><a href="class-picon.AbstractCallableOption.html">AbstractCallableOption</a></li> <li><a href="class-picon.AbstractChoice.html">AbstractChoice</a></li> <li><a href="class-picon.AbstractColumn.html">AbstractColumn</a></li> <li><a href="class-picon.AbstractContextLoader.html">AbstractContextLoader</a></li> <li><a href="class-picon.AbstractDatabaseDriver.html">AbstractDatabaseDriver</a></li> <li><a href="class-picon.AbstractInjectedDataProvider.html">AbstractInjectedDataProvider</a></li> <li><a href="class-picon.AbstractJQueryBehaviour.html">AbstractJQueryBehaviour</a></li> <li><a href="class-picon.AbstractJQueryUIBehaviour.html">AbstractJQueryUIBehaviour</a></li> <li><a href="class-picon.AbstractLink.html">AbstractLink</a></li> <li><a href="class-picon.AbstractMarkupSource.html">AbstractMarkupSource</a></li> <li><a href="class-picon.AbstractMultipleChoice.html">AbstractMultipleChoice</a></li> <li><a href="class-picon.AbstractOption.html">AbstractOption</a></li> <li><a href="class-picon.AbstractPageClassAuthorisationStrategy.html">AbstractPageClassAuthorisationStrategy</a></li> <li><a href="class-picon.AbstractRepeater.html">AbstractRepeater</a></li> <li><a href="class-picon.AbstractSingleChoice.html">AbstractSingleChoice</a></li> <li><a href="class-picon.AbstractTextComponent.html">AbstractTextComponent</a></li> <li><a href="class-picon.AbstractToolbar.html">AbstractToolbar</a></li> <li><a href="class-picon.AbstractValidator.html">AbstractValidator</a></li> <li><a href="class-picon.AjaxButton.html">AjaxButton</a></li> <li><a href="class-picon.AjaxEventBehaviour.html">AjaxEventBehaviour</a></li> <li><a href="class-picon.AjaxFormComponentUpdateBehavior.html">AjaxFormComponentUpdateBehavior</a></li> <li><a href="class-picon.AjaxFormSubmitBehavior.html">AjaxFormSubmitBehavior</a></li> <li><a href="class-picon.AjaxLink.html">AjaxLink</a></li> <li><a href="class-picon.AjaxRequestTarget.html">AjaxRequestTarget</a></li> <li><a href="class-picon.AllowAllAuthorisationStrategy.html">AllowAllAuthorisationStrategy</a></li> <li><a href="class-picon.AnnotationRule.html">AnnotationRule</a></li> <li><a href="class-picon.ApplicationConfigLoadListener.html">ApplicationConfigLoadListener</a></li> <li><a href="class-picon.ApplicationContext.html">ApplicationContext</a></li> <li><a href="class-picon.ApplicationContextLoadListener.html">ApplicationContextLoadListener</a></li> <li><a href="class-picon.ApplicationInitializer.html">ApplicationInitializer</a></li> <li><a href="class-picon.ApplicationInitializerConfigLoadListenerCollection.html">ApplicationInitializerConfigLoadListenerCollection</a></li> <li><a href="class-picon.ApplicationInitializerContextLoadListenerCollection.html">ApplicationInitializerContextLoadListenerCollection</a></li> <li><a href="class-picon.ApplicationProfile.html">ApplicationProfile</a></li> <li><a href="class-picon.Args.html">Args</a></li> <li><a href="class-picon.ArrayModel.html">ArrayModel</a></li> <li><a href="class-picon.ArrayOption.html">ArrayOption</a></li> <li><a href="class-picon.AttributeAppender.html">AttributeAppender</a></li> <li><a href="class-picon.AttributeModifier.html">AttributeModifier</a></li> <li><a href="class-picon.AutoContextLoader.html">AutoContextLoader</a></li> <li><a href="class-picon.AutoLoader.html">AutoLoader</a></li> <li><a href="class-picon.BasicModel.html">BasicModel</a></li> <li><a href="class-picon.BooleanModel.html">BooleanModel</a></li> <li><a href="class-picon.BooleanOption.html">BooleanOption</a></li> <li><a href="class-picon.Border.html">Border</a></li> <li><a href="class-picon.BorderMarkupSourcingStratagy.html">BorderMarkupSourcingStratagy</a></li> <li><a href="class-picon.BorderResolver.html">BorderResolver</a></li> <li><a href="class-picon.Button.html">Button</a></li> <li><a href="class-picon.CacheManager.html">CacheManager</a></li> <li><a href="class-picon.CallbackAjaxCallDecorator.html">CallbackAjaxCallDecorator</a></li> <li><a href="class-picon.CallbackColumn.html">CallbackColumn</a></li> <li><a href="class-picon.CallbackFunctionOption.html">CallbackFunctionOption</a></li> <li><a href="class-picon.CallbackOption.html">CallbackOption</a></li> <li><a href="class-picon.CallbackRowMapper.html">CallbackRowMapper</a></li> <li><a href="class-picon.Check.html">Check</a></li> <li><a href="class-picon.CheckBox.html">CheckBox</a></li> <li><a href="class-picon.CheckBoxGroup.html">CheckBoxGroup</a></li> <li><a href="class-picon.CheckChoice.html">CheckChoice</a></li> <li><a href="class-picon.ChoiceRenderer.html">ChoiceRenderer</a></li> <li><a href="class-picon.ClassNameRule.html">ClassNameRule</a></li> <li><a href="class-picon.ClassNamespaceRule.html">ClassNamespaceRule</a></li> <li><a href="class-picon.ClassScanner.html">ClassScanner</a></li> <li><a href="class-picon.Comment.html">Comment</a></li> <li class="active"><a href="class-picon.ComonDomainBase.html">ComonDomainBase</a></li> <li><a href="class-picon.Component.html">Component</a></li> <li><a href="class-picon.ComponentAfterRenderListenerCollection.html">ComponentAfterRenderListenerCollection</a></li> <li><a href="class-picon.ComponentAuthorisationListener.html">ComponentAuthorisationListener</a></li> <li><a href="class-picon.ComponentBeforeRenderListenerCollection.html">ComponentBeforeRenderListenerCollection</a></li> <li><a href="class-picon.ComponentInitializationListenerCollection.html">ComponentInitializationListenerCollection</a></li> <li><a href="class-picon.ComponentInjector.html">ComponentInjector</a></li> <li><a href="class-picon.ComponentInstantiationListenerCollection.html">ComponentInstantiationListenerCollection</a></li> <li><a href="class-picon.ComponentRenderHeadListenerCollection.html">ComponentRenderHeadListenerCollection</a></li> <li><a href="class-picon.ComponentResolverHelper.html">ComponentResolverHelper</a></li> <li><a href="class-picon.ComponentTag.html">ComponentTag</a></li> <li><a href="class-picon.CompoundPropertyModel.html">CompoundPropertyModel</a></li> <li><a href="class-picon.Config.html">Config</a></li> <li><a href="class-picon.ConfigLoader.html">ConfigLoader</a></li> <li><a href="class-picon.ContextLoaderFactory.html">ContextLoaderFactory</a></li> <li><a href="class-picon.DaoSupport.html">DaoSupport</a></li> <li><a href="class-picon.DataBaseTemplate.html">DataBaseTemplate</a></li> <li><a href="class-picon.DataGridView.html">DataGridView</a></li> <li><a href="class-picon.DataSource.html">DataSource</a></li> <li><a href="class-picon.DataSourceConfig.html">DataSourceConfig</a></li> <li><a href="class-picon.DataSourceFactory.html">DataSourceFactory</a></li> <li><a href="class-picon.DataSourceType.html">DataSourceType</a></li> <li><a href="class-picon.DataTable.html">DataTable</a></li> <li><a href="class-picon.DateField.html">DateField</a></li> <li><a href="class-picon.DatePickerBehaviour.html">DatePickerBehaviour</a></li> <li><a href="class-picon.DefaultDataTable.html">DefaultDataTable</a></li> <li><a href="class-picon.DefaultJQueryUIBehaviour.html">DefaultJQueryUIBehaviour</a></li> <li><a href="class-picon.DefaultMarkupSource.html">DefaultMarkupSource</a></li> <li><a href="class-picon.DefaultNotAuthorisedListener.html">DefaultNotAuthorisedListener</a></li> <li><a href="class-picon.DialogBehavior.html">DialogBehavior</a></li> <li><a href="class-picon.DirectToPageComponentNotAuthorisedListener.html">DirectToPageComponentNotAuthorisedListener</a></li> <li><a href="class-picon.DraggableBehaviour.html">DraggableBehaviour</a></li> <li><a href="class-picon.DropDown.html">DropDown</a></li> <li><a href="class-picon.EmailAddressValidator.html">EmailAddressValidator</a></li> <li><a href="class-picon.EmptyPanel.html">EmptyPanel</a></li> <li><a href="class-picon.Enum.html">Enum</a></li> <li><a href="class-picon.ExceptionPageRequestTarget.html">ExceptionPageRequestTarget</a></li> <li><a href="class-picon.ExtendResolver.html">ExtendResolver</a></li> <li><a href="class-picon.FeedbackMessage.html">FeedbackMessage</a></li> <li><a href="class-picon.FeedbackModel.html">FeedbackModel</a></li> <li><a href="class-picon.FeedbackPanel.html">FeedbackPanel</a></li> <li><a href="class-picon.FileModel.html">FileModel</a></li> <li><a href="class-picon.FileUploadField.html">FileUploadField</a></li> <li><a href="class-picon.Form.html">Form</a></li> <li><a href="class-picon.FormComponent.html">FormComponent</a></li> <li><a href="class-picon.FormComponentLabel.html">FormComponentLabel</a></li> <li><a href="class-picon.FormComponentPanel.html">FormComponentPanel</a></li> <li><a href="class-picon.FunctionOption.html">FunctionOption</a></li> <li><a href="class-picon.GridItem.html">GridItem</a></li> <li><a href="class-picon.GridView.html">GridView</a></li> <li><a href="class-picon.HeaderContainer.html">HeaderContainer</a></li> <li><a href="class-picon.HeaderPartContainer.html">HeaderPartContainer</a></li> <li><a href="class-picon.HeaderResolver.html">HeaderResolver</a></li> <li><a href="class-picon.HeaderResponse.html">HeaderResponse</a></li> <li><a href="class-picon.HeaderToolbar.html">HeaderToolbar</a></li> <li><a href="class-picon.IdenticalValueValidator.html">IdenticalValueValidator</a></li> <li><a href="class-picon.Identifier.html">Identifier</a></li> <li><a href="class-picon.Injector.html">Injector</a></li> <li><a href="class-picon.JQueryRenderHeadListener.html">JQueryRenderHeadListener</a></li> <li><a href="class-picon.JQueryUIRenderHeadListener.html">JQueryUIRenderHeadListener</a></li> <li><a href="class-picon.Label.html">Label</a></li> <li><a href="class-picon.LabeledMarkupContainer.html">LabeledMarkupContainer</a></li> <li><a href="class-picon.Link.html">Link</a></li> <li><a href="class-picon.ListenerCollection.html">ListenerCollection</a></li> <li><a href="class-picon.ListenerRequestResolver.html">ListenerRequestResolver</a></li> <li><a href="class-picon.ListenerRequestTarget.html">ListenerRequestTarget</a></li> <li><a href="class-picon.ListItem.html">ListItem</a></li> <li><a href="class-picon.ListMultiple.html">ListMultiple</a></li> <li><a href="class-picon.ListView.html">ListView</a></li> <li><a href="class-picon.Localizer.html">Localizer</a></li> <li><a href="class-picon.ManualContextLoader.html">ManualContextLoader</a></li> <li><a href="class-picon.MarkupContainer.html">MarkupContainer</a></li> <li><a href="class-picon.MarkupElement.html">MarkupElement</a></li> <li><a href="class-picon.MarkupLoader.html">MarkupLoader</a></li> <li><a href="class-picon.MarkupParser.html">MarkupParser</a></li> <li><a href="class-picon.MarkupUtils.html">MarkupUtils</a></li> <li><a href="class-picon.MaximumLengthValidator.html">MaximumLengthValidator</a></li> <li><a href="class-picon.MaximumValidator.html">MaximumValidator</a></li> <li><a href="class-picon.MinimumLengthValidator.html">MinimumLengthValidator</a></li> <li><a href="class-picon.MinimumValidator.html">MinimumValidator</a></li> <li><a href="class-picon.ModalWindow.html">ModalWindow</a></li> <li><a href="class-picon.MySqlDriver.html">MySqlDriver</a></li> <li><a href="class-picon.MySqliDriver.html">MySqliDriver</a></li> <li><a href="class-picon.NavigationLink.html">NavigationLink</a></li> <li><a href="class-picon.NavigationToolbar.html">NavigationToolbar</a></li> <li><a href="class-picon.Navigator.html">Navigator</a></li> <li><a href="class-picon.NumbericOption.html">NumbericOption</a></li> <li><a href="class-picon.NumericValidator.html">NumericValidator</a></li> <li><a href="class-picon.Objects.html">Objects</a></li> <li><a href="class-picon.Options.html">Options</a></li> <li><a href="class-picon.PageInstanceRequestResolver.html">PageInstanceRequestResolver</a></li> <li><a href="class-picon.PageInstanceRequestTarget.html">PageInstanceRequestTarget</a></li> <li><a href="class-picon.PageMap.html">PageMap</a></li> <li><a href="class-picon.PageMapInitializationListenerCollection.html">PageMapInitializationListenerCollection</a></li> <li><a href="class-picon.PageNotFoundPage.html">PageNotFoundPage</a></li> <li><a href="class-picon.PageNotFoundRequestTarget.html">PageNotFoundRequestTarget</a></li> <li><a href="class-picon.PageRequestResolver.html">PageRequestResolver</a></li> <li><a href="class-picon.PageRequestTarget.html">PageRequestTarget</a></li> <li><a href="class-picon.PageRequestWithListenerTarget.html">PageRequestWithListenerTarget</a></li> <li><a href="class-picon.PaginatingGridView.html">PaginatingGridView</a></li> <li><a href="class-picon.Panel.html">Panel</a></li> <li><a href="class-picon.PanelMarkupSource.html">PanelMarkupSource</a></li> <li><a href="class-picon.PanelResolver.html">PanelResolver</a></li> <li><a href="class-picon.PasswordField.html">PasswordField</a></li> <li><a href="class-picon.PatternValidator.html">PatternValidator</a></li> <li><a href="class-picon.PiconApplication.html">PiconApplication</a></li> <li><a href="class-picon.PiconErrorHandler.html">PiconErrorHandler</a></li> <li><a href="class-picon.PiconSerializer.html">PiconSerializer</a></li> <li><a href="class-picon.PiconTag.html">PiconTag</a></li> <li><a href="class-picon.PopupSettings.html">PopupSettings</a></li> <li><a href="class-picon.PropertyColumn.html">PropertyColumn</a></li> <li><a href="class-picon.PropertyModel.html">PropertyModel</a></li> <li><a href="class-picon.PropertyOption.html">PropertyOption</a></li> <li><a href="class-picon.PropertyResolver.html">PropertyResolver</a></li> <li><a href="class-picon.Radio.html">Radio</a></li> <li><a href="class-picon.RadioChoice.html">RadioChoice</a></li> <li><a href="class-picon.RadioGroup.html">RadioGroup</a></li> <li><a href="class-picon.RangeLengthValidator.html">RangeLengthValidator</a></li> <li><a href="class-picon.RangeValidator.html">RangeValidator</a></li> <li><a href="class-picon.RedirectRequestTarget.html">RedirectRequestTarget</a></li> <li><a href="class-picon.RepeatingView.html">RepeatingView</a></li> <li><a href="class-picon.RequestCycle.html">RequestCycle</a></li> <li><a href="class-picon.RequestResolverCollection.html">RequestResolverCollection</a></li> <li><a href="class-picon.RequiredTextField.html">RequiredTextField</a></li> <li><a href="class-picon.ResourceReference.html">ResourceReference</a></li> <li><a href="class-picon.ResourceRequestResolver.html">ResourceRequestResolver</a></li> <li><a href="class-picon.ResourceRequestTarget.html">ResourceRequestTarget</a></li> <li><a href="class-picon.SerializableClosure.html">SerializableClosure</a></li> <li><a href="class-picon.SortableBehavior.html">SortableBehavior</a></li> <li><a href="class-picon.StaticTabPanel.html">StaticTabPanel</a></li> <li><a href="class-picon.StringValidator.html">StringValidator</a></li> <li><a href="class-picon.SubClassRule.html">SubClassRule</a></li> <li><a href="class-picon.Tab.html">Tab</a></li> <li><a href="class-picon.TabCollection.html">TabCollection</a></li> <li><a href="class-picon.TabPanel.html">TabPanel</a></li> <li><a href="class-picon.TextArea.html">TextArea</a></li> <li><a href="class-picon.TextElement.html">TextElement</a></li> <li><a href="class-picon.TextField.html">TextField</a></li> <li><a href="class-picon.TransparentMarkupContainer.html">TransparentMarkupContainer</a></li> <li><a href="class-picon.ValidatableFormComponentWrapper.html">ValidatableFormComponentWrapper</a></li> <li><a href="class-picon.ValidationResponse.html">ValidationResponse</a></li> <li><a href="class-picon.WebApplicationSecuritySettings.html">WebApplicationSecuritySettings</a></li> <li><a href="class-picon.WebComponent.html">WebComponent</a></li> <li><a href="class-picon.WebPage.html">WebPage</a></li> <li><a href="class-picon.WebRequest.html">WebRequest</a></li> <li><a href="class-picon.WebResponse.html">WebResponse</a></li> <li><a href="class-picon.WrappedCompoundModel.html">WrappedCompoundModel</a></li> <li><a href="class-picon.XMLDocument.html">XMLDocument</a></li> <li><a href="class-picon.XMLParser.html">XMLParser</a></li> <li><a href="class-picon.XMLTag.html">XMLTag</a></li> <li><a href="class-picon.XmlTagType.html">XmlTagType</a></li> </ul> <h3>Interfaces</h3> <ul> <li><a href="class-picon.AjaxCallDecorator.html">AjaxCallDecorator</a></li> <li><a href="class-picon.ApplicationInitializerConfigLoadListener.html">ApplicationInitializerConfigLoadListener</a></li> <li><a href="class-picon.ApplicationInitializerContextLoadListener.html">ApplicationInitializerContextLoadListener</a></li> <li><a href="class-picon.AuthorisationStrategy.html">AuthorisationStrategy</a></li> <li><a href="class-picon.Behaviour.html">Behaviour</a></li> <li><a href="class-picon.BehaviourListener.html">BehaviourListener</a></li> <li><a href="class-picon.CallDecoratorWrapper.html">CallDecoratorWrapper</a></li> <li><a href="class-picon.ChoiceGroup.html">ChoiceGroup</a></li> <li><a href="class-picon.ClassScannerRule.html">ClassScannerRule</a></li> <li><a href="class-picon.Column.html">Column</a></li> <li><a href="class-picon.ComponentAfterRenderListener.html">ComponentAfterRenderListener</a></li> <li><a href="class-picon.ComponentAwareModel.html">ComponentAwareModel</a></li> <li><a href="class-picon.ComponentBeforeRenderListener.html">ComponentBeforeRenderListener</a></li> <li><a href="class-picon.ComponentInheritedModel.html">ComponentInheritedModel</a></li> <li><a href="class-picon.ComponentInitializationListener.html">ComponentInitializationListener</a></li> <li><a href="class-picon.ComponentInstantiationListener.html">ComponentInstantiationListener</a></li> <li><a href="class-picon.ComponentNotAuthorisedListener.html">ComponentNotAuthorisedListener</a></li> <li><a href="class-picon.ComponentRenderHeadListener.html">ComponentRenderHeadListener</a></li> <li><a href="class-picon.ComponentResolver.html">ComponentResolver</a></li> <li><a href="class-picon.CompoundModel.html">CompoundModel</a></li> <li><a href="class-picon.DatabaseDriver.html">DatabaseDriver</a></li> <li><a href="class-picon.DataBaseOperations.html">DataBaseOperations</a></li> <li><a href="class-picon.DataProvider.html">DataProvider</a></li> <li><a href="class-picon.Detachable.html">Detachable</a></li> <li><a href="class-picon.Equalable.html">Equalable</a></li> <li><a href="class-picon.FormSubmitListener.html">FormSubmitListener</a></li> <li><a href="class-picon.FormSubmitter.html">FormSubmitter</a></li> <li><a href="class-picon.Identifiable.html">Identifiable</a></li> <li><a href="class-picon.InitializingBean.html">InitializingBean</a></li> <li><a href="class-picon.InjectOnWakeup.html">InjectOnWakeup</a></li> <li><a href="class-picon.LinkListener.html">LinkListener</a></li> <li><a href="class-picon.Listener.html">Listener</a></li> <li><a href="class-picon.MarkupSource.html">MarkupSource</a></li> <li><a href="class-picon.Model.html">Model</a></li> <li><a href="class-picon.Pageable.html">Pageable</a></li> <li><a href="class-picon.PageMapInitializationListener.html">PageMapInitializationListener</a></li> <li><a href="class-picon.Request.html">Request</a></li> <li><a href="class-picon.RequestablePage.html">RequestablePage</a></li> <li><a href="class-picon.RequestResolver.html">RequestResolver</a></li> <li><a href="class-picon.RequestTarget.html">RequestTarget</a></li> <li><a href="class-picon.Response.html">Response</a></li> <li><a href="class-picon.RowMapper.html">RowMapper</a></li> <li><a href="class-picon.Validatable.html">Validatable</a></li> <li><a href="class-picon.Validator.html">Validator</a></li> <li><a href="class-picon.XmlElement.html">XmlElement</a></li> </ul> <h3>Exceptions</h3> <ul> <li><a href="class-picon.ConfigException.html">ConfigException</a></li> <li><a href="class-picon.ConversionException.html">ConversionException</a></li> <li><a href="class-picon.RestartRequestOnPageException.html">RestartRequestOnPageException</a></li> <li><a href="class-picon.SQLException.html">SQLException</a></li> <li><a href="class-picon.UnAuthorisdeException.html">UnAuthorisdeException</a></li> </ul> </div> </div> </div> <div id="splitter"></div> <div id="right"> <div id="rightInner"> <form id="search"> <input type="hidden" name="cx" value="" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="text" name="q" class="text" /> <input type="submit" value="Search" /> </form> <div id="navigation"> <ul> <li> <a href="index.html" title="Overview"><span>Overview</span></a> </li> <li> <a href="namespace-picon.html" title="Summary of picon"><span>Namespace</span></a> </li> <li> <a href="class-picon.ComonDomainBase.html" title="Summary of picon\ComonDomainBase"><span>Class</span></a> </li> </ul> <ul> <li> <a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a> </li> <li> <a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a> </li> <li> <a href="todo.html" title="Todo list"><span>Todo</span></a> </li> </ul> <ul> </ul> </div> <pre><code><a href="#1" id="1" class="l"> 1: </a><span class="xlang"><?php</span> <a href="#2" id="2" class="l"> 2: </a> <a href="#3" id="3" class="l"> 3: </a><span class="php-comment">/** </span><a href="#4" id="4" class="l"> 4: </a><span class="php-comment"> * Picon Framework </span><a href="#5" id="5" class="l"> 5: </a><span class="php-comment"> * http://code.google.com/p/picon-framework/ </span><a href="#6" id="6" class="l"> 6: </a><span class="php-comment"> * </span><a href="#7" id="7" class="l"> 7: </a><span class="php-comment"> * Copyright (C) 2011-2012 Martin Cassidy <martin.cassidy@webquub.com> </span><a href="#8" id="8" class="l"> 8: </a><span class="php-comment"> </span><a href="#9" id="9" class="l"> 9: </a><span class="php-comment"> * Picon Framework is free software: you can redistribute it and/or modify </span><a href="#10" id="10" class="l"> 10: </a><span class="php-comment"> * it under the terms of the GNU General Public License as published by </span><a href="#11" id="11" class="l"> 11: </a><span class="php-comment"> * the Free Software Foundation, either version 3 of the License, or </span><a href="#12" id="12" class="l"> 12: </a><span class="php-comment"> * (at your option) any later version. </span><a href="#13" id="13" class="l"> 13: </a><span class="php-comment"> </span><a href="#14" id="14" class="l"> 14: </a><span class="php-comment"> * Picon Framework is distributed in the hope that it will be useful, </span><a href="#15" id="15" class="l"> 15: </a><span class="php-comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of </span><a href="#16" id="16" class="l"> 16: </a><span class="php-comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the </span><a href="#17" id="17" class="l"> 17: </a><span class="php-comment"> * General Public License for more details. </span><a href="#18" id="18" class="l"> 18: </a><span class="php-comment"> </span><a href="#19" id="19" class="l"> 19: </a><span class="php-comment"> * You should have received a copy of the GNU General Public License </span><a href="#20" id="20" class="l"> 20: </a><span class="php-comment"> * along with Picon Framework. If not, see <http://www.gnu.org/licenses/>. </span><a href="#21" id="21" class="l"> 21: </a><span class="php-comment"> * */</span> <a href="#22" id="22" class="l"> 22: </a> <a href="#23" id="23" class="l"> 23: </a><span class="php-keyword1">namespace</span> picon; <a href="#24" id="24" class="l"> 24: </a><span class="php-comment">/** </span><a href="#25" id="25" class="l"> 25: </a><span class="php-comment"> * Super class for any and all domains </span><a href="#26" id="26" class="l"> 26: </a><span class="php-comment"> * </span><a href="#27" id="27" class="l"> 27: </a><span class="php-comment"> * @author Martin Cassidy </span><a href="#28" id="28" class="l"> 28: </a><span class="php-comment"> * @package domain </span><a href="#29" id="29" class="l"> 29: </a><span class="php-comment"> */</span> <a href="#30" id="30" class="l"> 30: </a><span class="php-keyword1">class</span> ComonDomainBase <a href="#31" id="31" class="l"> 31: </a>{ <a href="#32" id="32" class="l"> 32: </a> <span class="php-comment">/** </span><a href="#33" id="33" class="l"> 33: </a><span class="php-comment"> * Get the requested value </span><a href="#34" id="34" class="l"> 34: </a><span class="php-comment"> * @param String $name The name of the property to get </span><a href="#35" id="35" class="l"> 35: </a><span class="php-comment"> * @return Object The value of the property </span><a href="#36" id="36" class="l"> 36: </a><span class="php-comment"> */</span> <a href="#37" id="37" class="l"> 37: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> __get(<span class="php-var">$name</span>) <a href="#38" id="38" class="l"> 38: </a> { <a href="#39" id="39" class="l"> 39: </a> <span class="php-var">$obj</span> = <span class="php-keyword1">new</span> \ReflectionClass(<span class="php-var">$this</span>); <a href="#40" id="40" class="l"> 40: </a> <span class="php-var">$property</span> = <span class="php-var">$this</span>->resolveProperty(<span class="php-var">$obj</span>, <span class="php-var">$name</span>); <a href="#41" id="41" class="l"> 41: </a> <span class="php-keyword1">if</span>(<span class="php-var">$property</span>==<span class="php-keyword1">null</span>) <a href="#42" id="42" class="l"> 42: </a> { <a href="#43" id="43" class="l"> 43: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> \InvalidArgumentException (<span class="php-quote">"Unknown property "</span>.<span class="php-var">$name</span>); <a href="#44" id="44" class="l"> 44: </a> } <a href="#45" id="45" class="l"> 45: </a> <span class="php-keyword1">if</span>(!<span class="php-var">$property</span>->isPublic()) <a href="#46" id="46" class="l"> 46: </a> { <a href="#47" id="47" class="l"> 47: </a> <span class="php-var">$property</span>->setAccessible(<span class="php-keyword1">true</span>); <a href="#48" id="48" class="l"> 48: </a> } <a href="#49" id="49" class="l"> 49: </a> <span class="php-keyword1">return</span> <span class="php-var">$property</span>->getValue(<span class="php-var">$this</span>); <a href="#50" id="50" class="l"> 50: </a> } <a href="#51" id="51" class="l"> 51: </a> <a href="#52" id="52" class="l"> 52: </a> <span class="php-comment">/** </span><a href="#53" id="53" class="l"> 53: </a><span class="php-comment"> * Sets the value of a property </span><a href="#54" id="54" class="l"> 54: </a><span class="php-comment"> * @param String $name The name of the property to set </span><a href="#55" id="55" class="l"> 55: </a><span class="php-comment"> * @param Object $value The new value </span><a href="#56" id="56" class="l"> 56: </a><span class="php-comment"> */</span> <a href="#57" id="57" class="l"> 57: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> __set(<span class="php-var">$name</span>, <span class="php-var">$value</span>) <a href="#58" id="58" class="l"> 58: </a> { <a href="#59" id="59" class="l"> 59: </a> <span class="php-var">$obj</span> = <span class="php-keyword1">new</span> \ReflectionClass(<span class="php-var">$this</span>); <a href="#60" id="60" class="l"> 60: </a> <span class="php-var">$property</span> = <span class="php-var">$this</span>->resolveProperty(<span class="php-var">$obj</span>, <span class="php-var">$name</span>); <a href="#61" id="61" class="l"> 61: </a> <span class="php-keyword1">if</span>(<span class="php-var">$property</span>==<span class="php-keyword1">null</span>) <a href="#62" id="62" class="l"> 62: </a> { <a href="#63" id="63" class="l"> 63: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> \InvalidArgumentException (<span class="php-quote">"Unknown property "</span>.<span class="php-var">$name</span>); <a href="#64" id="64" class="l"> 64: </a> } <a href="#65" id="65" class="l"> 65: </a> <span class="php-keyword1">if</span>(!<span class="php-var">$property</span>->isPublic()) <a href="#66" id="66" class="l"> 66: </a> { <a href="#67" id="67" class="l"> 67: </a> <span class="php-var">$property</span>->setAccessible(<span class="php-keyword1">true</span>); <a href="#68" id="68" class="l"> 68: </a> } <a href="#69" id="69" class="l"> 69: </a> <span class="php-var">$property</span>->setValue(<span class="php-var">$this</span>, <span class="php-var">$value</span>); <a href="#70" id="70" class="l"> 70: </a> } <a href="#71" id="71" class="l"> 71: </a> <a href="#72" id="72" class="l"> 72: </a> <span class="php-comment">/** </span><a href="#73" id="73" class="l"> 73: </a><span class="php-comment"> * A generic to string </span><a href="#74" id="74" class="l"> 74: </a><span class="php-comment"> * @todo Add support for arrays </span><a href="#75" id="75" class="l"> 75: </a><span class="php-comment"> * @return string A string representation of the object </span><a href="#76" id="76" class="l"> 76: </a><span class="php-comment"> */</span> <a href="#77" id="77" class="l"> 77: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> __toString() <a href="#78" id="78" class="l"> 78: </a> { <a href="#79" id="79" class="l"> 79: </a> <span class="php-var">$reflection</span> = <span class="php-keyword1">new</span> \ReflectionClass(<span class="php-var">$this</span>); <a href="#80" id="80" class="l"> 80: </a> <span class="php-var">$properties</span> = <span class="php-var">$reflection</span>->getProperties(); <a href="#81" id="81" class="l"> 81: </a> <span class="php-var">$out</span> = <span class="php-quote">""</span>; <a href="#82" id="82" class="l"> 82: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$properties</span> <span class="php-keyword1">as</span> <span class="php-var">$property</span>) <a href="#83" id="83" class="l"> 83: </a> { <a href="#84" id="84" class="l"> 84: </a> <span class="php-keyword1">if</span>(!<span class="php-var">$property</span>->isPublic()) <a href="#85" id="85" class="l"> 85: </a> { <a href="#86" id="86" class="l"> 86: </a> <span class="php-var">$property</span>->setAccessible(<span class="php-keyword1">true</span>); <a href="#87" id="87" class="l"> 87: </a> } <a href="#88" id="88" class="l"> 88: </a> <span class="php-var">$out</span> .= <span class="php-var">$property</span>->getName().<span class="php-quote">": "</span>.<span class="php-var">$property</span>->getValue(<span class="php-var">$this</span>). <span class="php-quote">"\n"</span>; <a href="#89" id="89" class="l"> 89: </a> } <a href="#90" id="90" class="l"> 90: </a> <span class="php-keyword1">return</span> <span class="php-var">$out</span>; <a href="#91" id="91" class="l"> 91: </a> <a href="#92" id="92" class="l"> 92: </a> } <a href="#93" id="93" class="l"> 93: </a> <a href="#94" id="94" class="l"> 94: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> resolveProperty(\ReflectionClass <span class="php-var">$obj</span>, <span class="php-var">$name</span>) <a href="#95" id="95" class="l"> 95: </a> { <a href="#96" id="96" class="l"> 96: </a> <span class="php-keyword1">if</span>(<span class="php-var">$obj</span>->hasProperty(<span class="php-var">$name</span>)) <a href="#97" id="97" class="l"> 97: </a> { <a href="#98" id="98" class="l"> 98: </a> <span class="php-keyword1">return</span> <span class="php-var">$obj</span>->getProperty(<span class="php-var">$name</span>); <a href="#99" id="99" class="l"> 99: </a> } <a href="#100" id="100" class="l">100: </a> <span class="php-keyword1">else</span> <span class="php-keyword1">if</span>(<span class="php-var">$obj</span>->getParentClass()!=<span class="php-keyword1">null</span>) <a href="#101" id="101" class="l">101: </a> { <a href="#102" id="102" class="l">102: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->resolveProperty(<span class="php-var">$obj</span>->getParentClass(), <span class="php-var">$name</span>); <a href="#103" id="103" class="l">103: </a> } <a href="#104" id="104" class="l">104: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>; <a href="#105" id="105" class="l">105: </a> } <a href="#106" id="106" class="l">106: </a>} <a href="#107" id="107" class="l">107: </a> <a href="#108" id="108" class="l">108: </a><span class="xlang">?></span> <a href="#109" id="109" class="l">109: </a></code></pre> <div id="footer"> Picon Framework API documentation generated by <a href="http://apigen.org">ApiGen 2.7.0</a> </div> </div> </div> </body> </html>