Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:blogschema

This is an old revision of the document!


BlogSchema

Layer: Core · Source: lib/core/BlogSchema.php:19 (lines 19–112)


class BlogSchema

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Core |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (0)

None declared.

Methods (3)

^ Visibility ^ Method ^ Summary ^ Line ^
| public static | ''generateBlogPostSchema()'' | Generate schema.org structured data for a blog post. | 27 |
| protected static | ''determineCreativeWorkType()'' | (undocumented) | 96 |
| private static | ''baseURL()'' | (undocumented) | 108 |

generateBlogPostSchema()

public static function generateBlogPostSchema(int $post)

lines 27–94 (68)

Generate schema.org structured data for a blog post.

^ Parameter ^ Type ^ Default ^ Description ^
| ''$post'' | ''int'' | //required// | //none// |

Returns: (none declared) — string JSON-LD structured data.

determineCreativeWorkType()

protected static function determineCreativeWorkType(string $postType): string

lines 96–106 (11)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$postType'' | ''string'' | //required// | //none// |

Returns: string

baseURL()

private static function baseURL(): string

lines 108–111 (4)

Takes no parameters.

Returns: string

Imports

^ Alias ^ Fully-qualified name ^
| ''Schema'' | ''Melbahja\Seo\Schema'' |
| ''Thing'' | ''Melbahja\Seo\Schema\Thing'' |

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

scriptlog/lib/core/blogschema.1790413761.txt.gz · Last modified: by admin