Sha256: e2cde8e8e4e23bf70d4cbce7ab4f1294d3aa927fcc1f2f00abc792fcf8923056

Contents?: true

Size: 1.99 KB

Versions: 3

Compression:

Stored size: 1.99 KB

Contents

##
# This class is used for getting the pages from the wordpress database
# 
# == Examples:
#   User.find(1).pages
# <em>The above will find the user with id of 1 and retrieve all of the pages they have ever made</em>
#   Page.find(1)
# <em>The above will find the pge with id of 1</em>
# 
# == Inherited methods
# [find <em>id</em>] Retrieves the page with the sepcified id
# [all] Retrieves all of the pages in the database
# [title] The title of the page
# [title= <em>title</em>] Set the title of the page
# [content] The content of the page
# [content=] Set the content of the page
# 
# == Database Keys
# [ID <em>alias: id</em>] The pages` id
# [post_author <em>alias: user.id</em>]
# 	The User id of who created the Page
# 	  Page.find(1).user
# 	<em>The above returns the User that the page belongs to</em>
# [post_date] The date the page was created
# [post_date_gmt] The date the page was created in gmt/utc time
# [post_content <em>alias: PagePost#content</em>] The content of the page
# [post_title <em>alias: PagePost#title</em>] The title of the page
# [post_excerpt] The excerpt of the page
# [post_status] The status of the page <em>e.g. +Published+</em>
# [comment_status] Whether or not comments are allowed e.g. open
# [ping_status] Whether or not pings are allowed e.g. open
# [post_password] The password (if any) required to view the page
# [post_name] The url version of the page e.g. example-page
# [to_ping] _Unknown_
# [pinged] _Unknown_
# [post_modified] The date the page last edited
# [post_modified_gmt] The date the page last edited in gmt/utc time
# [post_content_filtered] _Unknown_
# [post_parent] The pages parent id (if any)
# [guid] The full url to the page
# [menu_order] The order at which the page sits in the menu
# [post_type] The type of the post e.g. page or post (will always be page)
# [post_mime_type] The mime type of the post
# [comment_count] The amount of comments on the page
# [type] Used and created by wpb for activerecord inheritance

class Page < PagePost
	belongs_to :user
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wpb-0.0.6 lib/wpb/page.rb
wpb-0.0.6.pre lib/wpb/page.rb
wpb-0.0.5 lib/wpb/page.rb