/** * Apply the action to all selected folders and entries. * @param object $obj This parameter is ignored. * @access private */ public function commit($obj) { if ($this->object_list->has_folders()) { $this->_folders_run(); } if ($this->object_list->has_entries()) { $this->_entries_run(); } }
along with earthli WebCore; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For more information about the earthli WebCore, visit: http://www.earthli.com/software/webcore ****************************************************************************/ $folder_query = $App->login->folder_query(); $folder = $folder_query->object_at_id(read_var('id')); if (isset($folder) && $App->login->is_allowed(Privilege_set_folder, Privilege_view, $folder) && $App->login->is_allowed(Privilege_set_entry, Privilege_view, $folder)) { include_once 'webcore/obj/object_list_builder.php'; $object_list = new OBJECT_LIST_BUILDER($folder); $object_list->load_from_request(); $Page->title->add_object($folder); if ($object_list->has_entries()) { $Page->set_printable(); $Page->start_display(); if (sizeof($object_list->entries) == 1) { $Page->title->add_object($object_list->entries[0]); $Page->title->subject = 'Print'; ?> <h1><?php echo $App->title; ?> </h1> <?php } else { $Page->title->subject = $object_list->description(); ?> <h1><?php