trait Metadata

Adds support for HTML meta properties to object.

Note that the client object must also use \Tfish\Traits\ValidateString.

Methods

string
metaTitle()

Return meta title.

setMetaTitle(string $metaTitle)

Set meta title.

string
metaDescription()

Return meta description.

setMetaDescription(string $metaDescription)

Set meta description.

string
metaSeo()

Return SEO-friendly string.

setMetaSeo(string $metaSeo)

Set SEO-friendly string

Details

at line 45
string metaTitle()

Return meta title.

Used to set the meta tag.</p> </div> <div class="tags"> <h4>Return Value</h4> <table class="table table-condensed"> <tr> <td>string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-item"> <h3 id="method_setMetaTitle"> <div class="location">at line 55</div> <code> <strong>setMetaTitle</strong>(string $metaTitle) </code> </h3> <div class="details"> <div class="method-description"> <p>Set meta title.</p> </div> <div class="tags"> <h4>Parameters</h4> <table class="table table-condensed"> <tr> <td>string</td> <td>$metaTitle</td> <td>Populates the <title> tag.</td> </tr> </table> </div> </div> </div> <div class="method-item"> <h3 id="method_metaDescription"> <div class="location">at line 67</div> <code> string <strong>metaDescription</strong>() </code> </h3> <div class="details"> <div class="method-description"> <p>Return meta description.</p> <p>Used to set the <meta name="description"> tag.</p> </div> <div class="tags"> <h4>Return Value</h4> <table class="table table-condensed"> <tr> <td>string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-item"> <h3 id="method_setMetaDescription"> <div class="location">at line 77</div> <code> <strong>setMetaDescription</strong>(string $metaDescription) </code> </h3> <div class="details"> <div class="method-description"> <p>Set meta description.</p> </div> <div class="tags"> <h4>Parameters</h4> <table class="table table-condensed"> <tr> <td>string</td> <td>$metaDescription</td> <td>HTML description of this content.</td> </tr> </table> </div> </div> </div> <div class="method-item"> <h3 id="method_metaSeo"> <div class="location">at line 90</div> <code> string <strong>metaSeo</strong>() </code> </h3> <div class="details"> <div class="method-description"> <p>Return SEO-friendly string.</p> <p>This is an SEO-friendly text fragment that can be appended to URLs. It does not affct URL function in any way, since Tuskfish never uses it as a parameter.</p> </div> <div class="tags"> <h4>Return Value</h4> <table class="table table-condensed"> <tr> <td>string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-item"> <h3 id="method_setMetaSeo"> <div class="location">at line 100</div> <code> <strong>setMetaSeo</strong>(string $metaSeo) </code> </h3> <div class="details"> <div class="method-description"> <p>Set SEO-friendly string</p> </div> <div class="tags"> <h4>Parameters</h4> <table class="table table-condensed"> <tr> <td>string</td> <td>$metaSeo</td> <td>SEO text to append to URL.</td> </tr> </table> </div> </div> </div> </div> </div> <div id="footer"> Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>. </div> </div> </div> </body> </html>