class Pile extends ConcreteObject (View source)

Class Pile.

Essentially a user's scrapbook, a pile is an object used for clumping bits of content together around a user account. Piles currently only contain blocks but they could also contain collections. Any bit of content inside a user's pile can be reordered, etc... although no public interface makes use of much of this functionality.

\@package Concrete\Core\Page\Stack\Pile

Properties

$error from  ConcreteObject
int $pID
int $uID
bool $isDefault
string $name
string $state
string $timestamp

Methods

loadError($error)

No description

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

static 
camelcase($file)

No description

static 
uncamelcase($string)

No description

bool
isDefault()

No description

string
getPileName()

No description

string
getPileState()

No description

create($name)

No description

get(int $pID)

No description

getOrCreate(string $name)

No description

bool
inPile(Collection|Block $obj)

No description

int
getPileID()

No description

getDefault()

No description

createDefaultPile()

No description

array
getMyPiles()

No description

bool
isMyPile()

No description

int
getUserID()

No description

bool
delete()

Delete a pile.

int
getPileLength()

No description

array
getPileContentObjects(string $display = 'display_order')

No description

mixed
add(Page|Block|PileContent $obj, int $quantity = 1)

No description

mixed
getPileContentID(Page $obj)

No description

remove(Page|Block|PileContent $obj, int $quantity = 1)

No description

bool
rescanDisplayOrder()

No description

Details

loadError($error)

No description

Parameters

$error

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

Parameters

$arr

static camelcase($file)

No description

Parameters

$file

static uncamelcase($string)

No description

Parameters

$string

bool isDefault()

No description

Return Value

bool

string getPileName()

No description

Return Value

string

string getPileState()

No description

Return Value

string

Pile create($name)

No description

Parameters

$name

Return Value

Pile

Pile get(int $pID)

No description

Parameters

int $pID

Return Value

Pile

Pile getOrCreate(string $name)

No description

Parameters

string $name

Return Value

Pile

bool inPile(Collection|Block $obj)

No description

Parameters

Collection|Block $obj

Return Value

bool

int getPileID()

No description

Return Value

int

Pile getDefault()

No description

Return Value

Pile

Pile createDefaultPile()

No description

Return Value

Pile

array getMyPiles()

No description

Return Value

array

bool isMyPile()

No description

Return Value

bool

int getUserID()

No description

Return Value

int

bool delete()

Delete a pile.

Return Value

bool

int getPileLength()

No description

Return Value

int

array getPileContentObjects(string $display = 'display_order')

No description

Parameters

string $display

Return Value

array

mixed add(Page|Block|PileContent $obj, int $quantity = 1)

No description

Parameters

Page|Block|PileContent $obj
int $quantity

Return Value

mixed

mixed getPileContentID(Page $obj)

No description

Parameters

Page $obj

Return Value

mixed

remove(Page|Block|PileContent $obj, int $quantity = 1)

No description

Parameters

Page|Block|PileContent $obj
int $quantity

bool rescanDisplayOrder()

No description

Return Value

bool