| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/web_app/src/command/lmbActionCommand.class.php'); 10 11 /** 12 * class lmbCmsPublishObjectCommand. 13 * 14 * @package cms 15 * @version $Id: lmbCmsPublishObjectCommand.class.php 5945 2007-06-06 08:31:43Z pachanga $ 16 */ 17 class lmbCmsPublishObjectCommand extends lmbActionCommand 18 { 19 protected $class_name; 20 21 function __construct($class_name) 22 { 23 $this->class_name = $class_name; 24 parent :: __construct(); 25 } 26 27 function perform() 28 { 29 $ids = $this->request->get('ids'); 30 31 if(!is_array($ids) || !count($ids)) 32 $this->closePopup(); 33 34 foreach($ids as $id) 35 { 36 $item = new $this->class_name((int)$id); 37 $item->setIsPublished(true); 38 $item->save(); 39 } 40 41 $this->closePopup(); 42 } 43 } 44 45 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Aug 29 04:49:26 2008 | Cross-referenced by PHPXref 0.7 |