Stores/Local.php

Last updated: 07/05/2017

Rylai\Stores

Rylai\Stores\Local
Local exporter to html folder

Properties
Methods
  • public __construct(array $options)
  • public store(Rylai\Repository $repo)
    • @param \Repository repo
    • @param \AnalyzerInterface[] analyzers
    • @return void

    Storing repo into folder

    Create repo's name folder inside target directory. Do cleanup before storing as well. Create hierachical folder tree to store file based on its name

  • protected _store($path,Rylai\Reflection\File $file,array $reports = [])
    • @param string path Root path to store html
    • @param \File file
    • @return bool

    Write file to disk

    We store all files as flat map Items_Courier,Item_Test,Skill,Skill_Test v.v.. . This will make assets linking easier in views. Link to other file also easier , with few custom page - all in same level so we dont have to do any paths finding in frontend views

  • protected _render(Rylai\Reflection\File $file,array $reports)
    • @param \File file
    • @param array reports Reports by analyzers namespaced by analyzer name eg : ["docblock" => [...]]
    • @return string

    Render file