Vulcan\UserDocs\Models\CodeTab
Class CodeTab
Synopsis
class CodeTab
extends DataObject
{
- // members
- private static string $table_name = 'CodeTab';
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- // methods
- public void validate()
- public void getCMSFields()
- public void onBeforeWrite()
- private string generateSlug()
- private bool isSlugValid()
- public static ArrayData getHttpRequestMethods()
- public string getLanguagesAsString()
- public static ArrayData getResponseLanguageMap()
- public string|null getReadableResponseLanguage()
- public mixed|string forTemplate()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $has_many
- $has_one
- $summary_fields
- $table_name
Methods
private
- generateSlug() — Generate a slug for this CodeTab
- isSlugValid() — Checks to see if the slug is valid by making sure another record, on the same page does not have the same slug
public
- forTemplate()
- getCMSFields()
- getHttpRequestMethods() — Return a map of the available HTTP request methods
- getLanguagesAsString() — Return example languages as a comma (, ) separated list
- getReadableResponseLanguage() — Get the readable variant of the response language alias. ie cpp => C++
- getResponseLanguageMap() — Return a map of the available response languages
- onBeforeWrite()
- validate()