コード例 #1
0
 /**
  * Read in values from the {@link $method} array.
  * @access private
  */
 protected function _load_from_request()
 {
     parent::_load_from_request();
     $this->object_list->load_from_request();
     $this->set_value('entry_ids', $this->object_list->entry_ids());
     $this->set_value('folder_ids', $this->object_list->folder_ids());
 }
コード例 #2
0
You should have received a copy of the GNU General Public License
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();