Missed attributes in Matrix. is it a bug?

Author Message

Sergey D

Thursday 03 June 2004 2:57:17 am

It seems in ezmatrix.php rowCount and columnCount are hidden or missed...

    function hasAttribute( $name )
    {
        if ( $name == "name" ||  $name == "rows" ||  $name == "columns" ||  $name == "matrix"  )
            return true;
        else
            return false;
    }
    function &attribute( $name )
    {
        switch ( $name )
        {
            case "name" :
            {
                return $this->Name;
            }break;
            case "matrix" :
            {
                return $this->Matrix;
            }break;
            case "rows" :
            {
                return $this->Matrix['rows'];
            }break;
            case "columns" :
            {
                return $this->Matrix['columns'];
            }break;
            case "rowCount" :
            {
                return count( $this->Matrix['rows']['sequential'] );
            }break;
            case "columnCount" :
            {
                return count( $this->Matrix['columns']['sequential'] );
            }break;

        }
    }

Is it a bug ?

sergey d.

Jan Borsodi

Thursday 03 June 2004 4:30:31 am

Yes, this looks like a bug.

Could you file a bug report on this one.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Sergey D

Thursday 03 June 2004 6:29:20 pm

done..

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 08:11:10
Script start
Timing: Jan 31 2025 08:11:10
Module start 'layout'
Timing: Jan 31 2025 08:11:10
Module start 'content'
Timing: Jan 31 2025 08:11:10
Module end 'content'
Timing: Jan 31 2025 08:11:10
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.2656151.2266
Module start 'layout' 0.00680.0036 739.492236.6797
Module start 'content' 0.01050.0050 776.171990.2188
Module end 'content' 0.01550.0016 866.390633.9922
Script end 0.0171  900.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.0013140.0002
Check MTime0.00116.6822140.0001
Mysql Total
Database connection0.00095.114910.0009
Mysqli_queries0.004526.125430.0015
Looping result0.00000.076510.0000
Template Total0.00127.110.0012
Template load0.00095.505710.0009
Template processing0.00031.550610.0003
Override
Cache load0.00063.604710.0006
General
dbfile0.00031.545180.0000
String conversion0.00000.064040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs