これは thinreports-php の v0.8.0 で実装される複数レイアウト機能の API の仕様案。 以下の仕様を踏まえて「ver-A.php」「ver-B.php」のどちらの案が良いか検討。
Thinreports\Reportのコンストラクタで指定されたレイアウトは、デフォルトレイアウトとなる
| item/ | |
| style/ | |
| base.rb | |
| basic.rb | |
| graphic.rb | |
| text.rb | |
| text_formatter/ (text_block/formatter/*) | |
| basic.rb | |
| datetime.rb | |
| number.rb |
| require 'prawn' | |
| fonts = [ | |
| ['Helvetica', 'Agj'], | |
| ['Courier', 'Agj'], | |
| ['Times-Roman', 'Agj'], | |
| ['fonts/ipag.ttf', 'Agjぽ'], | |
| ['fonts/ipagp.ttf', 'Agjぽ'] | |
| ] |
| $ docker system df | |
| $ docker system prune (only <none>) | |
| $ docker system prune -a | |
| $ docker volume prune (-a) |
| $ sudo chsh -s /bin/bash <username> |
| require 'thinreports' | |
| report = Thinreports::Report.new | |
| user = User.find(params[:id]) | |
| report.layout 'estimate_cover.tlf' | |
| report.start_new_page do |page| | |
| page.item(:subtitle).value = "#{@user.name} 様" |
| { | |
| "require": { | |
| "thinreports-php/thinreports-php": "@alpha" | |
| } | |
| } |
$ rake db:schema:dump
$ rake db:test:prepare
$ brew install libmcrypt
$ brew install php56
$ brew tap josegonzalez/homebrew-php
$ brew install phpenv
$ git://github.com/CHH/php-build.git ~/.phpenv/plugins/php-build
$ vi ~/.bash_profile
# phpenv
export PATH=$HOME/.phpenv/bin:$PATH
Shape::Interface/Internal な実装(分ける必要なし)Shape::List の実装が全体的にダメReport::Base.generate の引数が混沌としすぎ generator: {}, report: {}