Commit a89e8742 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[FEATURE] Add sorting for membership

parent dbef6fab
......@@ -51,6 +51,13 @@ class Tx_T3oMembership_Domain_Model_Membership extends Tx_Extbase_DomainObject_A
*/
protected $noFilter;
/**
* sorting
*
* @var int
*/
protected $sorting;
/**
* @return boolean
*/
......@@ -149,5 +156,14 @@ class Tx_T3oMembership_Domain_Model_Membership extends Tx_Extbase_DomainObject_A
return $this->personalMembership;
}
/**
* @param int $sorting
*/
public function setSorting($sorting)
{
$this->sorting = $sorting;
}
}
......@@ -23,7 +23,7 @@ class Tx_T3oMembership_Domain_Repository_MemberRepository extends Tx_Extbase_Per
* @var array
*/
protected $defaultOrderings = array(
'membership' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING,
'membership.sorting' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING,
'name' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING
);
......
......@@ -22,7 +22,7 @@ $TCA['tx_t3omembership_domain_model_member'] = array(
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => true,
'sortby' => 'sorting',
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
......
......@@ -61,6 +61,7 @@ CREATE TABLE tx_t3omembership_domain_model_membership (
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
t3_origuid int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment