Class: atkMetaExtendableShuttleRelation
Source Location: /meta/relations/class.atkmetaextendableshuttlerelation.inc
Class atkMetaExtendableShuttleRelation
Inherited from parent
|
Inherited From atkExtendableShuttleRelation
-
atkExtendableShuttleRelation::$m_availableFields
-
-
atkExtendableShuttleRelation::$m_controlsBySection
-
-
atkExtendableShuttleRelation::$m_descriptor_tooltip_template
-
-
atkExtendableShuttleRelation::$m_limit
-
-
atkExtendableShuttleRelation::$m_selectedFields
-
-
atkExtendableShuttleRelation::$unfilteredAvailableRecords
-
Inherited From atkManyToManyRelation
-
atkManyToManyRelation::$m_link
-
-
atkManyToManyRelation::$m_linkInstance
-
-
atkManyToManyRelation::$m_localFilter
-
-
atkManyToManyRelation::$m_localKey
-
-
atkManyToManyRelation::$m_ownerFields
-
-
atkManyToManyRelation::$m_remoteKey
-
-
atkManyToManyRelation::$m_selectableRecordCountCache
-
-
atkManyToManyRelation::$m_selectableRecordsCache
-
-
atkManyToManyRelation::$m_store_deletion_filter
-
Inherited From atkRelation
-
atkRelation::$m_descHandler
-
-
atkRelation::$m_descTemplate
-
-
atkRelation::$m_destination
-
-
atkRelation::$m_destinationFilter
-
-
atkRelation::$m_destInstance
-
Inherited From atkAttribute
-
atkAttribute::$m_column
-
-
atkAttribute::$m_cssclasses
-
-
atkAttribute::$m_dbfieldtype
-
-
atkAttribute::$m_dependencies
-
-
atkAttribute::$m_disabledModes
-
-
atkAttribute::$m_editCallback
-
-
atkAttribute::$m_flags
-
-
atkAttribute::$m_forceinsert
-
-
atkAttribute::$m_forcereload
-
-
atkAttribute::$m_forceupdate
-
-
atkAttribute::$m_htmlid
-
-
atkAttribute::$m_index
-
-
atkAttribute::$m_initialValue
-
-
atkAttribute::$m_initial_hidden
-
-
atkAttribute::$m_jsObservers
-
-
atkAttribute::$m_label
-
-
atkAttribute::$m_loadType
-
-
atkAttribute::$m_maxsize
-
-
atkAttribute::$m_module
-
-
atkAttribute::$m_name
-
-
atkAttribute::$m_onchangecode
-
-
atkAttribute::$m_onchangehandler_init
-
-
atkAttribute::$m_order
-
-
atkAttribute::$m_owner
-
-
atkAttribute::$m_ownerInstance
-
-
atkAttribute::$m_postfixlabel
-
-
atkAttribute::$m_searchmode
-
-
atkAttribute::$m_searchsize
-
-
atkAttribute::$m_sections
-
-
atkAttribute::$m_size
-
-
atkAttribute::$m_storageType
-
-
atkAttribute::$m_tabs
-
-
atkAttribute::$m_viewCallback
-
|
Inherited From atkExtendableShuttleRelation
-
atkExtendableShuttleRelation::__construct()
-
Constructor
-
atkExtendableShuttleRelation::addControl()
-
Add control
-
atkExtendableShuttleRelation::display()
-
Display the value of this relation
-
atkExtendableShuttleRelation::edit()
-
Returns a piece of html code that can be used in a form to edit this attribute's value.
-
atkExtendableShuttleRelation::fetchValue()
-
Fetch value for this relation based on the postvars
-
atkExtendableShuttleRelation::getAvailableFieldCount()
-
Returns the available field count.
-
atkExtendableShuttleRelation::getAvailableFields()
-
Get array with all available fields (which are not already selected)
-
atkExtendableShuttleRelation::getAvailableSelectName()
-
Get available name
-
atkExtendableShuttleRelation::getSelectedFieldCount()
-
Returns the selected field count.
-
atkExtendableShuttleRelation::getSelectedFields()
-
Get array with all selected fields
-
atkExtendableShuttleRelation::getSelectedFieldsFromRecord()
-
Get array with all selected fields from record
-
atkExtendableShuttleRelation::getSelectedSelectName()
-
Get selected name
-
atkExtendableShuttleRelation::load()
-
Load the records for this relation
-
atkExtendableShuttleRelation::partial_filter()
-
Re-renders the section contents based on the current filter values.
-
atkExtendableShuttleRelation::partial_selection()
-
A new selection has been made. Allows some controls to re-render themselves based on the new selection.
-
atkExtendableShuttleRelation::populateAvailableRecords()
-
Fetch records that are available for selection in the shuttle relation
-
atkExtendableShuttleRelation::populateSelectedRecords()
-
fetch selected fields from db.
-
atkExtendableShuttleRelation::renderSelectBoxes()
-
Render select boxes
-
atkExtendableShuttleRelation::setDescriptorTooltipTemplate()
-
Set the template for the descriptor tooltip
-
atkExtendableShuttleRelation::store()
-
Store the value of this relation
-
atkExtendableShuttleRelation::_renderSelect()
-
Render the multiselect list control
Inherited From atkManyToManyRelation
-
atkManyToManyRelation::atkManyToManyRelation()
-
Constructor
-
atkManyToManyRelation::addToQuery()
-
Dummy function (we don't add ourselves to the query)
-
atkManyToManyRelation::checkKeyDimension()
-
Checks if a key is not an array
-
atkManyToManyRelation::clearSelectableCache()
-
Clears the selectable record count and records cache.
-
atkManyToManyRelation::createLink()
-
Create instance of the intermediairy link node.
-
atkManyToManyRelation::delete()
-
delete relational records..
-
atkManyToManyRelation::determineKeyName()
-
Determine the name of the foreign key based on the name of the relation.
-
atkManyToManyRelation::display()
-
Returns a displayable string for this value.
-
atkManyToManyRelation::edit()
-
Dummy function
-
atkManyToManyRelation::fetchValue()
-
Fetch value. If nothing selected, return empty array instead of nothing.
-
atkManyToManyRelation::getLink()
-
Returns the link instance.
-
atkManyToManyRelation::getLocalKey()
-
Get the name of the attribute of the intermediairy node that points to the master node.
-
atkManyToManyRelation::getOwnerFields()
-
Returns the owner fields. The owners fields are the attribute(s) of the owner instance which map to the local key of the link node.
-
atkManyToManyRelation::getRemoteKey()
-
Get the name of the attribute of the intermediairy node that points to the node on the other side of the relation.
-
atkManyToManyRelation::getSelectableRecordCount()
-
Returns the selectable record count. The count is cached unless the $force parameter is set to true
-
atkManyToManyRelation::getSelectableRecords()
-
Returns the selectable records for this relation. The records are cached unless the $force parameter is set to true.
-
atkManyToManyRelation::getSelectedRecords()
-
Returns the primary keys of the currently selected records retrieved from the given record.
-
atkManyToManyRelation::hide()
-
Returns a piece of html code for hiding this attribute in an HTML form, while still posting its value. (<input type="hidden">)
-
atkManyToManyRelation::isEmpty()
-
Check if the attribute is empty
-
atkManyToManyRelation::load()
-
load function
-
atkManyToManyRelation::parseDestinationFilter()
-
Parse destination filter and return the result.
-
atkManyToManyRelation::search()
-
Returns a piece of html code that can be used in a form to search
-
atkManyToManyRelation::searchCondition()
-
Creates an search condition for a given search value
-
atkManyToManyRelation::setLocalFilter()
-
Local filter is used to only show values that are once selected that comply with the local filter. A local filter is also automatically set as store deletion filter.
-
atkManyToManyRelation::setLocalKey()
-
Change the name of the attribute of the intermediairy node that points to the master node.
-
atkManyToManyRelation::setOwnerFields()
-
Sets the owner fields in the owner instance. The owner fields are the attribute(s) of the owner instance which map to the local key of the link node.
-
atkManyToManyRelation::setRemoteKey()
-
Change the name of the attribute of the intermediairy node that points to the node on the other side of the relation.
-
atkManyToManyRelation::setStoreDeletionFilter()
-
Function adds a custom filter that is used when deleting items during the store() function.
-
atkManyToManyRelation::store()
-
Stores the values in the database
-
atkManyToManyRelation::_addRecord()
-
Add new link record to the database.
-
atkManyToManyRelation::_createRecord()
-
Create new link record.
-
atkManyToManyRelation::_deleteRecord()
-
Delete existing link record.
-
atkManyToManyRelation::_extractSelectedRecordsByKey()
-
Extracts the selected records from the owner instance record for this relation and index them by their primary key selector string.
-
atkManyToManyRelation::_getExistingRecordsByKey()
-
Returns an array with the existing records indexed by their primary key selector string.
-
atkManyToManyRelation::_getLoadWhereClause()
-
Get where clause for loading the record
-
atkManyToManyRelation::_getSelectableRecordCount()
-
Returns the selectable record count.
-
atkManyToManyRelation::_getSelectableRecords()
-
Returns the selectable records. Checks for an override in the owner instance with name <attribname>_selection.
-
atkManyToManyRelation::_updateRecord()
-
Update existing link record.
Inherited From atkRelation
-
atkRelation::atkRelation()
-
Constructor
-
atkRelation::addDestinationFilter()
-
Adds a filter value to the destination filter.
-
atkRelation::createDestination()
-
Create the instance of the destination.
-
atkRelation::dbFieldType()
-
Since most relations do not store anything in a field, the default fieldtype for relations is "". Exceptions (like the many2oone relation, which stores a foreign key) can implement their own dbFieldType().
-
atkRelation::descriptor()
-
Descriptor handler. Forwards description handler calls to the real description handler.
-
atkRelation::display()
-
Return a displayable string for a record.
-
atkRelation::getAddLabel()
-
Attempts to get a translated label which can be used when composing an "add" link
-
atkRelation::getChildSearchMode()
-
Get the searchmode for nested/child attributes.
-
atkRelation::getDescriptorHandler()
-
Get descriptor handler.
-
atkRelation::getDescriptorTemplate()
-
Returns the descriptor template for the destination node.
-
atkRelation::getDestination()
-
Returns an instance of the node that the relation points to.
-
atkRelation::getDestinationFilter()
-
Returns the destination filter.
-
atkRelation::getJoinCondition()
-
Returns the condition (SQL) that should be used when we want to join a relation's owner node with the parent node.
-
atkRelation::getSearchModes()
-
Retrieve the searchmodes supported by the relation.
-
atkRelation::isEmpty()
-
Check if the relation is empty
-
atkRelation::parseFilter()
-
Parses the destination filter
-
atkRelation::setDescriptorHandler()
-
Set descriptor handler.
-
atkRelation::setDescriptorTemplate()
-
Sets the descriptor template for the destination node.
-
atkRelation::setDestinationFilter()
-
Sets the destination filter.
-
atkRelation::validate()
-
Validation method. Empty implementation. Derived classes may override this function.
-
atkRelation::_cleanupDestinationFilter()
-
Remove redundant (more than 1 subsequently) spaces from the filter string.
Inherited From atkAttribute
-
atkAttribute::atkAttribute()
-
Constructor
-
atkAttribute::addCSSClass()
-
Add a CSS class for this attribute on an HTML form.
-
atkAttribute::addDependee()
-
Add a depended attribute for this attribute, which means the depended attribute will be refreshed (using Ajax) if the value for this attribute changes.
-
atkAttribute::addDependency()
-
Special case of an on-change handler which gets executed server-side and can manipulate the DOM using PHP wrapper methods available in the atkFormModifier class or by outputting JavaScript code directly.
-
atkAttribute::addDisabledMode()
-
Adds a disabled mode flag to the attribute (use DISABLED_VIEW and DISABLED_EDIT flags).
-
atkAttribute::addFlag()
-
Adds a flag to the attribute.
-
atkAttribute::addOnChangeHandler()
-
Add a javascript onchange event handler.
-
atkAttribute::addToEditArray()
-
Adds the attribute's edit / hide HTML code to the edit array.
-
atkAttribute::addToListArrayHeader()
-
Adds the attribute / field to the list header. This includes the column name and search field.
-
atkAttribute::addToListArrayRow()
-
Adds the attribute / field to the list row. And if the row is totalisable also to the total.
-
atkAttribute::addToQuery()
-
Adds this attribute to database queries.
-
atkAttribute::addToSearchformFields()
-
Adds the needed searchbox(es) for this attribute to the fields array. This method should only be called by the atkSearchHandler.
-
atkAttribute::addToViewArray()
-
Adds the attribute's view / hide HTML code to the view array.
-
atkAttribute::db2value()
-
Converts a database value to an internal value.
-
atkAttribute::dbFieldSize()
-
Return the size of the field in the database.
-
atkAttribute::dbFieldType()
-
Return the database field type of the attribute.
-
atkAttribute::delete()
-
The delete method is called by the framework to inform the attribute that a record is deleted.
-
atkAttribute::deleteAllowed()
-
Check if delete of the record is allowed.
-
atkAttribute::display()
-
Returns a displayable string for this value, to be used in HTML pages.
-
atkAttribute::edit()
-
Returns a piece of html code that can be used in a form to edit this attribute's value.
-
atkAttribute::equal()
-
This function is called to compare if two records are considered equal by this attribute.
-
atkAttribute::escapeSQL()
-
Escape string for use in a query.
-
atkAttribute::extendedSort()
-
Retrieves the sort options and sort order.
-
atkAttribute::fetchMeta()
-
Fetch the metadata about this attrib from the table metadata, and process it.
-
atkAttribute::fetchValue()
-
Convert values from an HTML form posting to an internal value for this attribute.
-
atkAttribute::fieldName()
-
Returns the name of the attribute.
-
atkAttribute::formName()
-
Retrieve the name of the attribute in HTML forms.
-
atkAttribute::getAdditionalTabs()
-
Get list of additional tabs.
-
atkAttribute::getAttributeHtmlId()
-
Returns the html identifier of the attribute without setting it Created because getHtmlId would always SET the htmlid while getting it.
-
atkAttribute::getColumn()
-
Get column.
-
atkAttribute::getCSSClassAttribute()
-
Retrieve the attribute for the HTML-tag for this atkAttribute.
-
atkAttribute::getCSSClasses()
-
Retrieve the CSS classes that were registered for this attribute
-
atkAttribute::getDb()
-
Get database instance for this attribute. Will return the owner instance database instance unless the owner instance is not set in which case the default instance will be returned.
-
atkAttribute::getDependencies()
-
Retrieve the dependees for this attribute.
-
atkAttribute::getEdit()
-
Retrieve the HTML code for placing this attribute in an edit page.
-
atkAttribute::getEditCallback()
-
Returns the edit callback (if set).
-
atkAttribute::getError()
-
Check if this attribute has errors in the specified error list.
-
atkAttribute::getFlags()
-
Returns the full set of flags of the attribute.
-
atkAttribute::getForceInsert()
-
Getter for wether or not an attribute is forced to insert
-
atkAttribute::getForceUpdate()
-
Getter for wether or not an attribute is forced to update
-
atkAttribute::getHtmlId()
-
Return the html identifier (id="") of the attribute. (unique within a
-
atkAttribute::getLabel()
-
Get the HTML label of the attribute.
-
atkAttribute::getModule()
-
Get the module that this attribute originated from.
-
atkAttribute::getOrderByStatement()
-
Retrieves the ORDER BY statement for this attribute's node.
-
atkAttribute::getOwnerInstance()
-
Returns the owner instance.
-
atkAttribute::getSearchCondition()
-
Creates a searchcondition for the field, was once part of searchCondition, however, searchcondition() also immediately adds the search condition.
-
atkAttribute::getSearchFieldName()
-
Retrieve the fieldname of the attribute in an atksearch form.
-
atkAttribute::getSearchMode()
-
Retrieve the current set or default searchmode of this attribute
-
atkAttribute::getSearchModeFieldname()
-
Retrieve the searchmode name of the attribute in an atksearch form.
-
atkAttribute::getSearchModes()
-
Retrieve the list of searchmodes supported by the attribute.
-
atkAttribute::getSections()
-
retrieve the tabs and/or sections for this attribute.
-
atkAttribute::getTabs()
-
retrieve the tabs for this attribute.
-
atkAttribute::getToolTip()
-
Retrieve the html/javascript code for showing the tooltip for this attribute.
-
atkAttribute::getView()
-
Retrieve the html code for placing this attribute in a view page.
-
atkAttribute::getViewCallback()
-
Returns the view callback (if set).
-
atkAttribute::hasDisabledMode()
-
Check if the attribute is disabled in some mode (use DISABLED_VIEW and DISABLED_EDIT flags).
-
atkAttribute::hasFlag()
-
Check if the attribute has a certain flag.
-
atkAttribute::hasStore()
-
This function is used to check whether a attribute has a store function or not.
-
atkAttribute::hide()
-
Returns a piece of html code for hiding this attribute in an HTML form, while still posting its value. (<input type="hidden">)
-
atkAttribute::init()
-
This function is called right after the attribute is added to the node.
-
atkAttribute::initDependencies()
-
Initialize and calls the dependencies.
-
atkAttribute::initialValue()
-
Initial value. Returns the initial value for this attribute which will be used in the add form etc.
-
atkAttribute::isEmpty()
-
Check if a record has an empty value for this attribute.
-
atkAttribute::isInitialHidden()
-
check whether initially hidden or not
-
atkAttribute::isNotNullInDb()
-
Checks if this attribute is really not null in the database.
-
atkAttribute::isPosted()
-
Is there a value posted for this attribute?
-
atkAttribute::label()
-
Return the label of the attribute.
-
atkAttribute::listHeaderSortOrder()
-
Retrieve the sortorder for the listheader based on the atkColumnConfig
-
atkAttribute::loadType()
-
Determine the load type of this attribute.
-
atkAttribute::maxInputSize()
-
Determine the maximum length an input field may be.
-
atkAttribute::needsInsert()
-
This function is called by the framework to determine if the attribute needs to be saved to the database in an addDb call.
-
atkAttribute::needsReload()
-
This function is called by the framework to determine if the attribute needs to be updated from the db regardless of the attribute being present in the postvars/session
-
atkAttribute::needsUpdate()
-
This function is called by the framework to determine if the attribute needs to be saved to the database in an updateDb call.
-
atkAttribute::observeJS()
-
Observe the given JavaScript event and execute the given JavaScript statements when the event occurs.
-
atkAttribute::parseStringValue()
-
Convert a String representation into an internal value.
-
atkAttribute::partial()
-
Handle a partial request for this attribute, different attributes support different partials.
-
atkAttribute::partial_dependencies()
-
Call dependencies for this attribute and output JavaScript.
-
atkAttribute::partial_refresh()
-
Partial method to refresh the add/edit field for this attribute.
-
atkAttribute::postInit()
-
This function is called at the end of the node's init method.
-
atkAttribute::preAddToEditArray()
-
Prepare for edit. Is called before all attributes are added to the edit array and allows for last minute manipulations based on the record but also manipulations on the record itself.
-
atkAttribute::preAddToViewArray()
-
Prepare for view. Is called before all attributes are added to the view array and allows for last minute manipulations based on the record but also manipulations on the record itself.
-
atkAttribute::registerJavaScriptObservers()
-
Register JavaScript event handlers.
-
atkAttribute::registerKeyListener()
-
Register keyboard navigation for this attribute.
-
atkAttribute::removeDisabledMode()
-
Removes a disabled mode from the attribute.
-
atkAttribute::removeFlag()
-
Removes a flag from the attribute.
-
atkAttribute::search()
-
Returns a piece of html code that can be used to get search terms input from the user.
-
atkAttribute::searchCondition()
-
Creates a search condition for a given search value, and adds it to the query that will be used for performing the actual search.
-
atkAttribute::searchMode()
-
Returns piece of html which is used for setting/selecting the search mode for this attribute.
-
atkAttribute::setAttribSize()
-
Set the size(s) of the attribute
-
atkAttribute::setAttributeSearchmode()
-
Sets the searchmode for an attribute This will cause attributes that respect this to use the attributes searchmode for that particulair attribute instead of the general searchmode.
-
atkAttribute::setColumn()
-
Set column.
-
atkAttribute::setDisabledModes()
-
Sets the disabled mode flag of the attribute
-
atkAttribute::setEditCallback()
-
Sets the edit callback.
-
atkAttribute::setFlags()
-
Sets the flags of the attribute
-
atkAttribute::setForceInsert()
-
Used to force an attribute to update with every addDb() call
-
atkAttribute::setForceReload()
-
Used to force an attribute to update from the db regardless of the
-
atkAttribute::setForceUpdate()
-
Used to force an attribute to update with every updateDb() call
-
atkAttribute::setInitialHidden()
-
Set whether initially hidden or not. A field is "hidden" by adding the class atkAttrRowHidden.
-
atkAttribute::setInitialValue()
-
Set initial value for this attribute.
-
atkAttribute::setLabel()
-
Set the label of the attribute
-
atkAttribute::setLoadType()
-
Sets the load type.
-
atkAttribute::setOwnerInstance()
-
Sets the owner instance.
-
atkAttribute::setPostFixLabel()
-
Set the label of the attribute
-
atkAttribute::setSections()
-
Put the attribute on one or more tabs and/or sections.
-
atkAttribute::setStorageType()
-
Sets the storage type.
-
atkAttribute::setTabs()
-
Put the attribute on one or more tabs.
-
atkAttribute::setViewCallback()
-
Sets the view callback.
-
atkAttribute::showOnTab()
-
Check if the attribute wants to be shown on a certain tab.
-
atkAttribute::smartSearchCondition()
-
Creates a smart search condition for a given search value, and adds it to the query that will be used for performing the actual search.
-
atkAttribute::sortOptions()
-
Retrieves the sort options for this attribute which is used in recordlists and search actions.
-
atkAttribute::sortOrder()
-
Sets the sortorder options for this attribute which is used in recordlists and search actions.
-
atkAttribute::storageType()
-
Determine the storage type of this attribute.
-
atkAttribute::sum()
-
Calculate the sum of 2 records.
-
atkAttribute::text()
-
Translate using the owner instance's module and type.
-
atkAttribute::validate()
-
Checks if a value is valid.
-
atkAttribute::value2db()
-
Converts the internal attribute value to one that is understood by the database.
-
atkAttribute::_callDependencies()
-
Calls the dependency callbacks for this attribute.
-
atkAttribute::_renderChangeHandler()
-
Renders the onchange code on the page.
-
atkAttribute::__toString()
-
String representation for this attribute (PHP5 only).
|
Method Summary
| atkMetaExtendableShuttleRelation |
__construct() |
Default constructor. |
| boolean |
createLink() |
Create the instance of the intermedinary link node. |
Methods
atkMetaExtendableShuttleRelation __construct(
String
$name, String
$destination, String
$through, string
$template, array
$options, [int
$flags = 0]
)
|
|
Default constructor.
Parameters:
|
String |
$name: |
The name of the relation |
|
String |
$destination: |
The full name of the node that is the other end of the relation. |
|
String |
$through: |
The full name of the node that is used as intermediairy node. The intermediairy node is assumed to have 2 attributes that are named after the nodes at both ends of the relation. For example, if node 'project' has a M2M relation with 'activity', then the intermediairy node 'project_activity' is assumed to have an attribute named 'project' and one that is named 'activity'. You can set your own keys by calling setLocalKey() and setRemoteKey() |
|
string |
$template: |
The descriptor template |
|
array |
$options: |
Array with options |
|
int |
$flags: |
Flags for the relation. |
API Tags:
Redefinition of:
- atkExtendableShuttleRelation::__construct()
- Constructor
Create the instance of the intermedinary link node.
If succesful, the instance is stored in the m_linkInstance member variable.
API Tags:
| Return: | true if succesful, false if something went wrong. |
| Access: | public |
Redefinition of:
- atkManyToManyRelation::createLink()
- Create instance of the intermediairy link node.