Sunnysideup\ModuleChecks\Model\Module
Class \Sunnysideup\ModuleChecks\Model\Module
Synopsis
class Module
extends DataObject
{
- // members
- protected $gitWrapper = NULL;
- private static string $table_name = 'Module';
- private static array $db = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static array $belongs_many_many = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static array $indexes = ;
- private static array $casting = ;
- private static $primary_model_admin_class = ModuleCheckModelAdmin::class;
- // methods
- public static void get_or_create_github_module()
- public static void update_composer_data()
- public void getDirectory()
- public void getTitle()
- public string Directory()
- public void getURL()
- public void URL()
- public void LongModuleName()
- public void MediumModuleName()
- public string ShortModuleName()
- public void ShortUCFirstName()
- public void ModuleNameFirstLetterCapital()
- public void FullGitURL()
- public void getBranch()
- public void removeClone()
- public string getRawFileFromGithub()
- public bool pull()
- public bool commit()
- public bool add()
- public bool push()
- public void getLatestCommitTime()
- public void getLatestTag()
- public string getChangeTypeSinceLastTag()
- public void createTag()
- public void findNextTag()
- public GitWorkingCopy checkOrSetGitCommsWrapper()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Uses
- Sunnysideup\Flush\FlushNow
- Sunnysideup\CMSNiceties\Traits\CMSNicetiesTraitForCMSLinks
Tasks
Line | Task |
---|---|
202+ | : check that silverstripe- is at the start of string. |
Members
private
- $belongs_many_many
- $casting
- $db
- $has_many
- $indexes
- $many_many
- $primary_model_admin_class
- $searchable_fields
- $summary_fields
- $table_name
protected
- $gitWrapper
Methods
public
- Directory() — absolute path
- FullGitURL()
- LongModuleName()
- MediumModuleName()
- ModuleNameFirstLetterCapital()
- ShortModuleName()
- ShortUCFirstName()
- URL()
- add() — adds all files to a git repo
- checkOrSetGitCommsWrapper()
- commit() — commits a git repo
- createTag()
- findNextTag()
- getBranch()
- getChangeTypeSinceLastTag() — git command used: //git log 0.0.1..HEAD --oneline returns string (major | minor | patch)
- getDirectory()
- getLatestCommitTime()
- getLatestTag()
- getRawFileFromGithub() — retrieves a raw file from Github
- getTitle()
- getURL()
- get_or_create_github_module()
- pull() — pulls a git repo
- push() — adds all files to a git repo
- removeClone() — removes a cloned repo
- update_composer_data()