Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:model:tagmodel

This is an old revision of the document!


TagModel

Layer: Model · Source: lib/model/TagModel.php:20 (lines 20–115)


class TagModel extends BaseModel

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Model class |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |
| ''@version'' | 1.0 |

Inheritance

^ Relation ^ Type ^ Meaning ^
| extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface |

Constants (0)

None.

Properties (0)

None declared.

Methods (2)

^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''getLinkTag()'' | getLinkTag() | 39 |
| public | ''getPostsPublishedByTag()'' | getPostsPublishedByTag | 73 |

getLinkTag()

public function getLinkTag($postId, $sanitize)

lines 39–63 (25)

getLinkTag()

^ Parameter ^ Type ^ Default ^ Description ^
| ''$postId'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

getPostsPublishedByTag()

public function getPostsPublishedByTag($tag, $sanitize, Paginator $perPage)

lines 73–114 (42)

getPostsPublishedByTag

^ Parameter ^ Type ^ Default ^ Description ^
| ''$tag'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
| ''$perPage'' | [[scriptlog:lib:core:paginator|''Paginator'']] | //required// | //none// |

Returns: (none declared) — mixed

Imports

^ Alias ^ Fully-qualified name ^
| ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] |
| ''Paginator'' | [[scriptlog:lib:core:paginator|''Scriptlog\Core\Paginator'']] |

This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/model/tagmodel.1790413761.txt.gz · Last modified: by admin