API docs     >     Files     >     Views

Views->add

Description

add ( $parentViewId, $folder = 0, $hidden = 0 )
Adds a new View to the specified parent View

Parameters

$parentViewId
int
View Id
$folder
int
"0" for a View or "1" if a folder should be created
$hidden
int
"0" for a normal View or "1" for a hidden view

Returns

int|bool
New View Id or FALSE when an error has occured