This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_CollectionVersion

An object that maps to versions of collections. Each page in concrete is a collection of blocks, each of which has different versions (for version control.)

Concrete5_Library_Object
Extended by Object
Extended by Concrete5_Model_CollectionVersion

Direct known subclasses

CollectionVersion

Package: Pages
Category: Concrete
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/models/collection_version.php

Methods summary

public
public
public
# get( & $c, $cvID )
public
# getAttribute( $ak, $c, $displayMode = false )
public
public
public
# isNew( )
public
public
public
public
public
public
public
public
public
public string
# getVersionDateCreated( string $type = 'system' )

Gets the date the collection version was created if user is specified, returns in the current user's timezone

public
# canWrite( )
public
# setComment( $comment )
public
# createNew( $versionComments )
public
# approve( $doReindexImmediately = true )
public
# discard( )
public
public
public
# deny( )
public
# delete( )

Properties summary

public $cvIsApproved
#
public $cID
#
protected array $attributes
# array()
public array $layoutStyles
# array()

Properties inherited from Concrete5_Library_Object

$error