SproutCMS

This is the code documentation for the SproutCMS project

class Tags

No description yet.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-05-03
**/
class NewClassName extends Tags {
    
    /**
    * Returns all tags which begin with a given string
    **/
    public function beginsWith (string $prefix) {
        // Method code goes here
    }
    
    /**
    * Returns common tags. Typically tags are returned from the provided table, but not necessarily.
    **/
    public function suggestTags (string $table, string $prefix, int $number) {
        // Method code goes here
    }
    
    /**
    * Updates tags for a given record
    **/
    public function update (string $table, int $record_id, array $new_tags, bool $remove) {
        // Method code goes here
    }
    
    /**
    * Converts a comma-separated string into a list of tags
    **/
    public function splitupTags (string $string) {
        // Method code goes here
    }
    
    /**
    * Get HTML for a tag list (i.e. for tag display on the front-end)
    **/
    public function getList (array $tags) {
        // Method code goes here
    }
    
    /**
    * 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
    **/
    public function recordCountsPerSubsite (string $table, int $limit, int $subsite_id) {
        // Method code goes here
    }
    
    /**
    * Returns all of the tags for a given table
    **/
    public function byTable (string $table) {
        // Method code goes here
    }
    
    /**
    * Returns all of the records for a given table/tag
    **/
    public function findRecords (string $table, string $tag) {
        // Method code goes here
    }
    
    /**
    * Return the tags for a table, along with the number of records for each tag
    **/
    public function recordCounts (string $table, int $limit) {
        // Method code goes here
    }
    
    /**
    * Returns all of the tags for a given record
    **/
    public function byRecord (string $table, int $record_id) {
        // Method code goes here
    }
    
}
?>