diff --git a/libraries/Partition.class.php b/libraries/Partition.class.php index 2807633c89..ca967a7622 100644 --- a/libraries/Partition.class.php +++ b/libraries/Partition.class.php @@ -115,6 +115,26 @@ class PMA_SubPartition return $this->ordinal; } + /** + * Returns the partition method + * + * @return string partition method + */ + public function getMethod() + { + return $this->method; + } + + /** + * Returns the partition expression + * + * @return string partition expression + */ + public function getExpression() + { + return $this->expression; + } + /** * Returns the number of data rows * @@ -182,6 +202,16 @@ class PMA_Partition extends PMA_SubPartition } } + /** + * Returns the partiotion description + * + * @return string partition description + */ + public function getDescription() + { + return $this->description; + } + /** * Add a sub parition * @@ -263,7 +293,7 @@ class PMA_Partition extends PMA_SubPartition * * @return PMA_SubPartition[] */ - public function getSubParitions() + public function getSubPartitions() { return $this->subPartitions; } diff --git a/templates/table/structure/display_partitions.phtml b/templates/table/structure/display_partitions.phtml index 3ab017405c..1b1574c244 100644 --- a/templates/table/structure/display_partitions.phtml +++ b/templates/table/structure/display_partitions.phtml @@ -3,11 +3,35 @@ + hasSubPartitions(); + $hasDescription = ! empty($firstPartition->getDescription()); + ?> +

+ + getMethod() + . '(' . $firstPartition->getExpression() . ' )'; ?> +

+ + getSubPartitions(); + $fristSubParition = $subParitions[0]; + ?> +

+ + getMethod() + . '(' . $fristSubParition->getExpression() . ' )'; ?> +

+ + + + @@ -28,7 +52,6 @@ ); ?> - hasSubPartitions(); ?> @@ -37,6 +60,12 @@ + + + + + +
#
getOrdinal(); ?>getOrdinal(); ?> getName()); ?> + getExpression() + . ' < ' . $partition->getDescription()); ?> + getRows(); ?> - getSubParitions() as $subParition): ?> + getSubPartitions() as $subParition): ?>
getOrdinal(); ?> getName()); ?> getRows(); ?>