PagesRaw::raw method
Get native pages table column value for given page ID
This can only be used for native 'pages' table columns, i.e. id, name, templates_id, status, parent_id, etc.
Available since version 3.0.190.
Usage
// basic usage
$int = $pages->raw->col($pageId, $col);
// usage with all arguments
$int = $pages->raw->col($pageId, $col, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$pageId | int array | Page ID or array of page IDs |
$col | string array | Column name you want to get |
$options (optional) | array |
|
Return value
int string array nullReturns column value or array of column values if $pageId was an array. When array is returned, it is indexed by page ID.
Exceptions
Method can throw exceptions on error:
WireException
$pages->raw methods and properties
API reference based on ProcessWire core version 3.0.253