What's the opposite of hide, please?

Author Message

Rainer Krauss

Wednesday 29 July 2009 7:58:14 am

Dear all,

I'm using the following command to hide individual nodes:

$operationResult = eZOperationHandler::execute( 'content',
'hide',
array( 'node_id' => $NodeID ),
null, true );

Now it could happen that I want to make them visible again. What's the command for that, please?

Best wishes,
Rainer

André R.

Wednesday 29 July 2009 8:23:44 am

It's a toggle function, just call it to unhide as well.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 30 2025 22:27:29
Script start
Timing: Jan 30 2025 22:27:29
Module start 'layout'
Timing: Jan 30 2025 22:27:29
Module start 'content'
Timing: Jan 30 2025 22:27:29
Module end 'content'
Timing: Jan 30 2025 22:27:29
Script end

Main resources:

Total runtime0.0251 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.1406151.2109
Module start 'layout' 0.00720.0040 739.3516220.7031
Module start 'content' 0.01120.0124 960.0547997.8047
Module end 'content' 0.02350.0015 1,957.859429.9922
Script end 0.0251  1,987.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.5462140.0002
Check MTime0.00124.7050140.0001
Mysql Total
Database connection0.00124.892010.0012
Mysqli_queries0.002911.482630.0010
Looping result0.00000.072110.0000
Template Total0.00114.210.0011
Template load0.00083.335610.0008
Template processing0.00020.823710.0002
Override
Cache load0.00062.347810.0006
General
dbfile0.00176.645780.0002
String conversion0.00000.039940.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