[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-commits
Subject:    [6159] Added version_id parameter to story, media, and template
From:       theory () bricolage ! cc
Date:       2005-01-28 2:50:31
Message-ID: 20050128025031.3562.qmail () x1 ! develooper ! com
[Download RAW message or body]

Revision: 6159
Author:   theory
Date:     2005-01-27 18:50:29 -0800 (Thu, 27 Jan 2005)
ViewCVS:  http://viewsvn.bricolage.cc/?rev=6159&view=rev

Log Message:
-----------
Added version_id parameter to story, media, and template list() methods.

Modified Files:
--------------
    bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Media.pm
    bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Story.pm
    bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Formatting.pm



["r6159-theory.diff" (r6159-theory.diff)]

Modified: bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Media.pm
===================================================================
--- bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Media.pm	2005-01-28 01:37:50 UTC (rev 6158)
+++ bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Media.pm	2005-01-28 02:50:29 UTC (rev 6159)
@@ -203,6 +203,7 @@
       _null_workflow_id     => 'mt.workflow__id IS NULL',
       element__id           => 'mt.element__id = ?',
       element_id            => 'mt.element__id = ?',
+      version_id            => 'i.id = ?',
       element_key_name      => 'mt.element__id = e.id AND LOWER(e.key_name) LIKE LOWER(?)',
       source__id            => 'mt.source__id = ?',
       source_id             => 'mt.source__id = ?',
@@ -507,6 +508,11 @@
 
 The media document version number. May use C<ANY> for a list of possible values.
 
+=item version_id
+
+The ID of a version of a media document. May use C<ANY> for a list of possible
+values.
+
 =item file_name
 
 The media document file name. May use C<ANY> for a list of possible values.

Modified: bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Story.pm
===================================================================
--- bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Story.pm	2005-01-28 01:37:50 UTC (rev 6158)
+++ bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Business/Story.pm	2005-01-28 02:50:29 UTC (rev 6159)
@@ -309,6 +309,7 @@
       alias_id               => 's.alias_id = ?',
       site_id                => 's.site__id = ?',
       no_site_id             => 's.site__id <> ?',
+      version_id             => 'i.id = ?',
       workflow__id           => 's.workflow__id = ?',
       workflow_id            => 's.workflow__id = ?',
       _null_workflow_id      => 's.workflow__id IS NULL',
@@ -636,6 +637,10 @@
 
 The story version number. May use C<ANY> for a list of possible values.
 
+=item version_id
+
+The ID of a version of a story. May use C<ANY> for a list of possible values.
+
 =item slug
 
 The story slug. May use C<ANY> for a list of possible values.

Modified: bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Formatting.pm
===================================================================
--- bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Formatting.pm	2005-01-28 01:37:50 UTC (rev 6158)
+++ bricolage/branches/rev_1_8/lib/Bric/Biz/Asset/Formatting.pm	2005-01-28 02:50:29 UTC (rev 6159)
@@ -253,6 +253,7 @@
     no_site_id            => 'f.output_channel__id = oc.id AND oc.site__id <> ?',
     workflow__id          => 'f.workflow__id = ?',
     workflow_id           => 'f.workflow__id = ?',
+    version_id            => 'i.id = ?',
     _null_workflow_id     => 'f.workflow__id IS NULL',
     element__id           => 'f.element__id = ?',
     element_key_name      => 'f.element__id = e.id AND LOWER(e.key_name) LIKE LOWER(?)',
@@ -685,6 +686,11 @@
 
 The template version number. May use C<ANY> for a list of possible values.
 
+=item version_id
+
+The ID of a version of a template. May use C<ANY> for a list of possible
+values.
+
 =item active
 
 Defaults to true


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic