Return the tags for a table, along with the number of records for each tag Results are filtered by subsite, including records with subsite_id of NULL which is all sites
This is the code documentation for the SproutCMS project
Search documentation |
function recordCountsPerSubsite()Return the tags for a table, along with the number of records for each tag Results are filtered by subsite, including records with subsite_id of NULL which is all sites
Usagearray Tags::recordCountsPerSubsite ( string $table , int $limit [, int $subsite_id ] ); Example$tags = Tags::recordCountsPerSubsite('blog_posts', 50, SubsiteSelector::$subsite_id); foreach ($tags as $tag => $count) { echo Enc::html($tag), ' (', $count, ')'; } Arguments
Return value
|
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |