Changeset 424 for wiki-toolkit/trunk/lib/Wiki/Toolkit/Store/Database.pm
- Timestamp:
- 05/10/08 17:34:11 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Store/Database.pm
r423 r424 24 24 $CAN_USE_ENCODE = $@ ? 0 : 1; 25 25 } 26 27 26 28 27 =head1 NAME … … 143 142 } 144 143 } 145 146 144 147 145 =item B<retrieve_node> … … 680 678 Uses the internal_links table to identify the nodes that link to this 681 679 one, and re-writes any wiki links in these to point to the new name. 682 =cut 680 681 =cut 682 683 683 sub rename_node { 684 684 my ($self, %args) = @_; … … 827 827 highest moderated version, then update the node's contents to hold 828 828 this version. 829 829 830 =cut 830 831 … … 928 929 929 930 Sets if new node versions will require moderation or not 931 930 932 =cut 931 933 … … 1700 1702 metadata_type => "latitude" 1701 1703 ); 1702 =cut 1704 1705 =cut 1706 1703 1707 sub list_nodes_by_missing_metadata { 1704 1708 my ($self, %args) = @_; … … 1746 1750 1747 1751 =item B<_get_list_by_metadata_sql> 1752 1748 1753 Return the SQL to do a match by metadata. Should expect the metadata type 1749 1754 as the first SQL parameter, and the metadata value as the second. 1750 1755 1751 1756 If possible, should take account of $args{ignore_case} 1752 =cut 1757 1758 =cut 1759 1753 1760 sub _get_list_by_metadata_sql { 1754 1761 # SQL 99 version … … 1775 1782 1776 1783 =item B<_get_list_by_missing_metadata_sql> 1784 1777 1785 Return the SQL to do a match by missing metadata. Should expect the metadata 1778 1786 type as the first SQL parameter. 1779 1787 1780 1788 If possible, should take account of $args{ignore_case} 1781 =cut 1789 1790 =cut 1791 1782 1792 sub _get_list_by_missing_metadata_sql { 1783 1793 # SQL 99 version … … 1889 1899 1890 1900 =item B<list_last_version_before> 1891 List the last version of every node before a given date. 1892 If no version existed before that date, will return undef for version. 1893 Returns a hash of id, name, version and date 1894 1895 my @nv = $wiki->list_last_version_before('2007-01-02 10:34:11') 1896 foreach my $data (@nv) { 1897 1898 } 1899 =cut 1901 1902 List the last version of every node before a given date. 1903 If no version existed before that date, will return undef for version. 1904 Returns a hash of id, name, version and date 1905 1906 my @nv = $wiki->list_last_version_before('2007-01-02 10:34:11') 1907 foreach my $data (@nv) { 1908 1909 } 1910 1911 =cut 1912 1900 1913 sub list_last_version_before { 1901 1914 my ($self, $date) = @_; … … 1931 1944 1932 1945 =item B<list_metadata_by_type> 1933 List all the currently defined values of the given type of metadata. 1934 1935 Will only work with the latest moderated version 1936 1937 # List all of the different metadata values with the type 'category' 1938 my @categories = $wiki->list_metadata_by_type('category'); 1939 =cut 1946 1947 List all the currently defined values of the given type of metadata. 1948 1949 Will only work with the latest moderated version 1950 1951 # List all of the different metadata values with the type 'category' 1952 my @categories = $wiki->list_metadata_by_type('category'); 1953 1954 =cut 1955 1940 1956 sub list_metadata_by_type { 1941 1957 my ($self, $type) = @_;
