PHP Config::getTitleの例

プログラミング言語: PHP
クラス/型: Config
メソッド/関数: getTitle
hotexamples.comのコード掲載数: 18
php Config.getTitleは、指定したページのタイトルを取得するための関数です。この関数は、PHPのソースコード内で使用され、指定したページのタイトルを取得することができます。タイトルは、HTMLの要素内のタグ内に書かれているテキストです。この関数を使用することで、動的なウェブページ内のタイトルを取得し、必要な処理を行うことが可能です。</div> <strong>PHP Config::getTitle - 18件のコード例が見つかりました</strong>。すべてオープンソースプロジェクトから抽出されたPHPの<strong>Config::getTitle</strong> パッケージから hugeの実例で、最も評価が高いものを厳選しています。コード例の評価を行っていただくことで、より質の高いコード例が表示されるようになります。 </div> <div class="hidden-xs"> <div id="ezoic-pub-ad-placeholder-130"> </div> </div> </div> <div id="ezoic-pub-ad-placeholder-105"> <div style="text-align: center; margin-top: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-description --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="5330879504" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="visible-xs visible-sm visible-md"> <div class="bs-example thin" style="margin-top: 15px"> <div class="bs-example-title">よく使われるメソッド</div> <div class="fields-controls visible-sm visible-xs visible-md"> <a class="btn btn-default fields-show-btn" data-toggle="collapse" href="#fields-panel-mobile" aria-expanded="false" aria-controls="fields-panel">表示</a> <a class="btn btn-default fields-hide-btn" data-toggle="collapse" href="#fields-panel-mobile" aria-expanded="false" aria-controls="fields-panel">非表示</a> </div> </div> <figure class="highlight panel fields-panel collapse" id="fields-panel-mobile"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getInstance/php-config-getinstance-method-examples.html">getInstance(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/unnest/php-config-unnest-method-examples.html">unnest(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/Set/php-config-set-method-examples.html">Set(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/set/php-config-set-method-examples.html">set(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getSiteRoot/php-config-getsiteroot-method-examples.html">getSiteRoot(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get_config/php-config-get_config-method-examples.html">get_config(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get_instance/php-config-get_instance-method-examples.html">get_instance(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get/php-config-get-method-examples.html">get(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getSafe/php-config-getsafe-method-examples.html">getSafe(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getRootPath/php-config-getrootpath-method-examples.html">getRootPath(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/current/php-config-current-method-examples.html">current(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/Get/php-config-get-method-examples.html">Get(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/update/php-config-update-method-examples.html">update(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/init/php-config-init-method-examples.html">init(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConfig/php-config-getconfig-method-examples.html">getConfig(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/save/php-config-save-method-examples.html">save(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/dbSurvey/php-config-dbsurvey-method-examples.html">dbSurvey(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/inst/php-config-inst-method-examples.html">inst(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/load/php-config-load-method-examples.html">load(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/instance/php-config-instance-method-examples.html">instance(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/GetInstance/php-config-getinstance-method-examples.html">GetInstance(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/factory/php-config-factory-method-examples.html">factory(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/GetSetting/php-config-getsetting-method-examples.html">GetSetting(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/item/php-config-item-method-examples.html">item(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/speak/php-config-speak-method-examples.html">speak(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/read/php-config-read-method-examples.html">read(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getIveeClassName/php-config-getiveeclassname-method-examples.html">getIveeClassName(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/model/php-config-model-method-examples.html">model(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/has/php-config-has-method-examples.html">has(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getAll/php-config-getall-method-examples.html">getAll(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/parseConfig/php-config-parseconfig-method-examples.html">parseConfig(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/config/php-config-config-method-examples.html">config(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getVar/php-config-getvar-method-examples.html">getVar(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/write/php-config-write-method-examples.html">write(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getValue/php-config-getvalue-method-examples.html">getValue(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/need/php-config-need-method-examples.html">need(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/nest/php-config-nest-method-examples.html">nest(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/output_dir/php-config-output_dir-method-examples.html">output_dir(29)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/shouldReceive/php-config-shouldreceive-method-examples.html">shouldReceive(29)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getInfo/php-config-getinfo-method-examples.html">getInfo(28)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/create/php-config-create-method-examples.html">create(27)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConfigParams/php-config-getconfigparams-method-examples.html">getConfigParams(27)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/db/php-config-db-method-examples.html">db(26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getFolderView/php-config-getfolderview-method-examples.html">getFolderView(26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/__construct/php-config-__construct-method-examples.html">__construct(25)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/meta/php-config-meta-method-examples.html">meta(24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConnection/php-config-getconnection-method-examples.html">getConnection(24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/options/php-config-options-method-examples.html">options(24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/singleton/php-config-singleton-method-examples.html">singleton(24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/dbSurveyData/php-config-dbsurveydata-method-examples.html">dbSurveyData(22)</a> </div> </figure> </div> </div> <div class="page-content-container"> <div class="sidebar hidden-xs hidden-sm hidden-md" style="width:300px"> <div id="ezoic-pub-ad-placeholder-101"> <div style="text-align: center; margin-top: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- left-sidebar-1 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="7161345231" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel " id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getInstance/php-config-getinstance-method-examples.html">getInstance (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/unnest/php-config-unnest-method-examples.html">unnest (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/Set/php-config-set-method-examples.html">Set (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/set/php-config-set-method-examples.html">set (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getSiteRoot/php-config-getsiteroot-method-examples.html">getSiteRoot (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get_config/php-config-get_config-method-examples.html">get_config (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get_instance/php-config-get_instance-method-examples.html">get_instance (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get/php-config-get-method-examples.html">get (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getSafe/php-config-getsafe-method-examples.html">getSafe (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getRootPath/php-config-getrootpath-method-examples.html">getRootPath (30)</a> </div> </figure> <div id="ezoic-pub-ad-placeholder-102"> <div style="text-align: center; margin-bottom: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- left-sidebar-2 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="7075206013" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel " id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/current/php-config-current-method-examples.html">current (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/Get/php-config-get-method-examples.html">Get (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/update/php-config-update-method-examples.html">update (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/init/php-config-init-method-examples.html">init (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConfig/php-config-getconfig-method-examples.html">getConfig (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/save/php-config-save-method-examples.html">save (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/dbSurvey/php-config-dbsurvey-method-examples.html">dbSurvey (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/inst/php-config-inst-method-examples.html">inst (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/load/php-config-load-method-examples.html">load (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/instance/php-config-instance-method-examples.html">instance (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/GetInstance/php-config-getinstance-method-examples.html">GetInstance (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/factory/php-config-factory-method-examples.html">factory (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/GetSetting/php-config-getsetting-method-examples.html">GetSetting (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/item/php-config-item-method-examples.html">item (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/speak/php-config-speak-method-examples.html">speak (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/read/php-config-read-method-examples.html">read (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getIveeClassName/php-config-getiveeclassname-method-examples.html">getIveeClassName (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/model/php-config-model-method-examples.html">model (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/has/php-config-has-method-examples.html">has (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getAll/php-config-getall-method-examples.html">getAll (30)</a> </div> </figure> <div id="ezoic-pub-ad-placeholder-117"> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel " id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/GetInstance/php-config-getinstance-method-examples.html">GetInstance (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/factory/php-config-factory-method-examples.html">factory (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/GetSetting/php-config-getsetting-method-examples.html">GetSetting (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/item/php-config-item-method-examples.html">item (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/speak/php-config-speak-method-examples.html">speak (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/read/php-config-read-method-examples.html">read (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getIveeClassName/php-config-getiveeclassname-method-examples.html">getIveeClassName (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/model/php-config-model-method-examples.html">model (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/has/php-config-has-method-examples.html">has (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getAll/php-config-getall-method-examples.html">getAll (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/parseConfig/php-config-parseconfig-method-examples.html">parseConfig (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/config/php-config-config-method-examples.html">config (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getVar/php-config-getvar-method-examples.html">getVar (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/write/php-config-write-method-examples.html">write (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getValue/php-config-getvalue-method-examples.html">getValue (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/need/php-config-need-method-examples.html">need (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/nest/php-config-nest-method-examples.html">nest (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/output_dir/php-config-output_dir-method-examples.html">output_dir (29)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/shouldReceive/php-config-shouldreceive-method-examples.html">shouldReceive (29)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getInfo/php-config-getinfo-method-examples.html">getInfo (28)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/create/php-config-create-method-examples.html">create (27)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConfigParams/php-config-getconfigparams-method-examples.html">getConfigParams (27)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/db/php-config-db-method-examples.html">db (26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getFolderView/php-config-getfolderview-method-examples.html">getFolderView (26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/__construct/php-config-__construct-method-examples.html">__construct (25)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/meta/php-config-meta-method-examples.html">meta (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConnection/php-config-getconnection-method-examples.html">getConnection (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/options/php-config-options-method-examples.html">options (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/singleton/php-config-singleton-method-examples.html">singleton (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/dbSurveyData/php-config-dbsurveydata-method-examples.html">dbSurveyData (22)</a> </div> </figure> <div id="ezoic-pub-ad-placeholder-116"> </div> <div class="hidden-xs hidden-sm"> <div class="bs-example thin"> <div class="bs-example-title">Related in langs</div> </div> <figure class="highlight panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://csharp.hotexamples.com/jp/examples/wServer/NReader/-/php-nreader-class-examples.html">NReader (C#)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://csharp.hotexamples.com/jp/examples/-/PostDownloadStatusType/-/php-postdownloadstatustype-class-examples.html">PostDownloadStatusType (C#)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://cpp.hotexamples.com/jp/examples/-/-/security_file_receive/cpp-security_file_receive-function-examples.html">security_file_receive (C++)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://cpp.hotexamples.com/jp/examples/-/-/gtk_cell_layout_pack_start/cpp-gtk_cell_layout_pack_start-function-examples.html">gtk_cell_layout_pack_start (C++)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://golang.hotexamples.com/jp/examples/c/-/seccomp_reset/golang-seccomp_reset-function-examples.html">seccomp_reset (Go)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://golang.hotexamples.com/jp/examples/github.com.jawr.dns.whois.parser/-/New/golang-new-function-examples.html">New (Go)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://java.hotexamples.com/jp/examples/de.telekom.pde.codelibrary.ui.elements.common/PDEDrawableShapedShadow/-/java-pdedrawableshapedshadow-class-examples.html">PDEDrawableShapedShadow (Java)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://java.hotexamples.com/jp/examples/java.text/CFDbTestXMsgAtomMessageFormatter/-/java-cfdbtestxmsgatommessageformatter-class-examples.html">CFDbTestXMsgAtomMessageFormatter (Java)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://python.hotexamples.com/jp/examples/pcp.pmapi/-/timeval/python-timeval-function-examples.html">timeval (Python)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://python.hotexamples.com/jp/examples/evennia.utils.text2html/-/parse_html/python-parse_html-function-examples.html">parse_html (Python)</a> </div> </figure> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel fields-panel-last" id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/parseConfig/php-config-parseconfig-method-examples.html">parseConfig (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/config/php-config-config-method-examples.html">config (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getVar/php-config-getvar-method-examples.html">getVar (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/write/php-config-write-method-examples.html">write (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getValue/php-config-getvalue-method-examples.html">getValue (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/need/php-config-need-method-examples.html">need (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/nest/php-config-nest-method-examples.html">nest (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/output_dir/php-config-output_dir-method-examples.html">output_dir (29)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/shouldReceive/php-config-shouldreceive-method-examples.html">shouldReceive (29)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getInfo/php-config-getinfo-method-examples.html">getInfo (28)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/create/php-config-create-method-examples.html">create (27)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConfigParams/php-config-getconfigparams-method-examples.html">getConfigParams (27)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/db/php-config-db-method-examples.html">db (26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getFolderView/php-config-getfolderview-method-examples.html">getFolderView (26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/__construct/php-config-__construct-method-examples.html">__construct (25)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/meta/php-config-meta-method-examples.html">meta (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getConnection/php-config-getconnection-method-examples.html">getConnection (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/options/php-config-options-method-examples.html">options (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/singleton/php-config-singleton-method-examples.html">singleton (24)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/dbSurveyData/php-config-dbsurveydata-method-examples.html">dbSurveyData (22)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/database/php-config-database-method-examples.html">database (21)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getSetting/php-config-getsetting-method-examples.html">getSetting (20)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/Inst/php-config-inst-method-examples.html">Inst (20)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/add/php-config-add-method-examples.html">add (19)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/app/php-config-app-method-examples.html">app (19)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/Instance/php-config-instance-method-examples.html">Instance (19)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/exists/php-config-exists-method-examples.html">exists (18)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/destroyInstance/php-config-destroyinstance-method-examples.html">destroyInstance (18)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">getTitle (18)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/settings/php-config-settings-method-examples.html">settings (17)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/setValue/php-config-setvalue-method-examples.html">setValue (17)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/query/php-config-query-method-examples.html">query (17)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/get_string/php-config-get_string-method-examples.html">get_string (16)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getData/php-config-getdata-method-examples.html">getData (16)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/cache/php-config-cache-method-examples.html">cache (16)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/main/php-config-main-method-examples.html">main (16)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/clear/php-config-clear-method-examples.html">clear (16)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/getDebug/php-config-getdebug-method-examples.html">getDebug (15)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/exist/php-config-exist-method-examples.html">exist (15)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Config/writeConfig/php-config-writeconfig-method-examples.html">writeConfig (15)</a> </div> </figure> <div class="hidden-xs hidden-sm"> <div class="bs-example thin"> <div class="bs-example-title">関連情報</div> </div> <figure class="highlight panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/tablePagination/php-tablepagination-function-examples.html">tablePagination</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/URLImmutable/-/php-urlimmutable-class-examples.html">URLImmutable</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/modules.registration.entities/RegistrationHistory/-/php-registrationhistory-class-examples.html">RegistrationHistory</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Domstor_Filter_Form/-/php-domstor_filter_form-class-examples.html">Domstor_Filter_Form</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/WPLA_Core/-/php-wpla_core-class-examples.html">WPLA_Core</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/roots_loop_before/php-roots_loop_before-function-examples.html">roots_loop_before</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/time_remaining/php-time_remaining-function-examples.html">time_remaining</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/StringReader/-/php-stringreader-class-examples.html">StringReader</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/_ltrim/php-_ltrim-function-examples.html">_ltrim</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/bakalarka.ikarosbundle.entity/ConnectorSoc/-/php-connectorsoc-class-examples.html">ConnectorSoc</a> </div> </figure> </div> </div> <div class="main-content"> <div class="addthis_inline_share_toolbox_o6yp"></div> <div style="margin-top: 10px"> <div class="row" style="margin-bottom: 15px"> <div class="col-md-12"> <a class="btn btn-default" href="https://doc.hotexamples.com/jp/class/-/Config"> Config Class Documentation </a> </div> </div> </div> <div id="ezoic-pub-ad-placeholder-106"> </div> <div class="example-item" id="0xe7b01a6f405e8ee294d74da22462a8e4d56b945ea7f2bf63b83048a5a14715ab-57,,66,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #1</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_1" data-hash="0xe7b01a6f405e8ee294d74da22462a8e4d56b945ea7f2bf63b83048a5a14715ab" data-area="57,,66,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '1')" class="rating-up btn btn-success" data-id="rating_1"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'1')" class="rating-down btn btn-danger" data-id="rating_1"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xe7b01a6f405e8ee294d74da22462a8e4d56b945ea7f2bf63b83048a5a14715ab-57,,66,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xe7b01a6f405e8ee294d74da22462a8e4d56b945ea7f2bf63b83048a5a14715ab&fullName=Ip%2FInternal%2FGrid%2FDb.php&project=Umz%2FImpressPages')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FUmz%2FImpressPages%2Fblob%2Fmaster%2FIp%2FInternal%2FGrid%2FDb.php">Db.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FUmz%2FImpressPages">Umz/ImpressPages</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="1"> <pre class="line-numbers language-php" data-end="66" data-start="58" data-highlight="17,61"> public function breadcrumbTitle($depth) { if ($depth == 0) { return $this->config->getTitle(); } $subgridConfig = $this->config->subgridConfig($this->statusVariables, $depth); $id = $this->statusVariables['gridParentId' . $depth]; $title = ipDb()->fetchValue("SELECT " . $subgridConfig->tableName() . ".`" . $subgridConfig->getBreadcrumbField() . "` FROM " . $subgridConfig->tableName() . " " . $this->joinQuery() . " WHERE " . $subgridConfig->tableName() . '.`' . $subgridConfig->idField() . '` = ' . ipDb()->getConnection()->quote($id) . " "); return $title; }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-107"> <div style="text-align: center;margin-bottom: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-example-1 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="4981531786" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="example-item" id="0xc7422019b4e4576397dcc43fe228878f7ae1822a396fbb617be3666978773d74-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #2</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_2" data-hash="0xc7422019b4e4576397dcc43fe228878f7ae1822a396fbb617be3666978773d74" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '2')" class="rating-up btn btn-success" data-id="rating_2"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'2')" class="rating-down btn btn-danger" data-id="rating_2"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xc7422019b4e4576397dcc43fe228878f7ae1822a396fbb617be3666978773d74-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xc7422019b4e4576397dcc43fe228878f7ae1822a396fbb617be3666978773d74&fullName=deleteContact.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FdeleteContact.php">deleteContact.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="2"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . ' - Delete Contact'); $act = Tools::Param('act'); if ("Delete Contact" === $act) { $contactModel = new ContactModel(); $contactModel->populateFromForm(); if (!$contactModel->validateForDelete()) { $contactView = new ContactFormView('Delete Contact', $contactModel); $body = "<h2>Invalid data</h2>\n" . $contactView->getForm(); } else { $contactController = new ContactController(); $contactController->delete($contactModel); $body = "Deleted contact # " . $contactModel->getId() . "<br />\n"; } } else { $contactController = new ContactController(); $contactModel = $contactController->get(Tools::param('id'));</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-108"> <div style="text-align: center;"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-example-2 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="7155150962" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="example-item" id="0xd82b6fdd9fd929a6da1123ecea39f53eb61e67c3b4d79ab61a746435436976be-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #3</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_3" data-hash="0xd82b6fdd9fd929a6da1123ecea39f53eb61e67c3b4d79ab61a746435436976be" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '3')" class="rating-up btn btn-success" data-id="rating_3"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'3')" class="rating-down btn btn-danger" data-id="rating_3"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xd82b6fdd9fd929a6da1123ecea39f53eb61e67c3b4d79ab61a746435436976be-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xd82b6fdd9fd929a6da1123ecea39f53eb61e67c3b4d79ab61a746435436976be&fullName=deleteNote.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FdeleteNote.php">deleteNote.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="3"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . ' - Delete Note'); $act = Tools::Param('act'); if ("Delete Note" === $act) { $noteModel = new NoteModel(); $noteModel->populateFromForm(); if (!$noteModel->validateForDelete()) { $noteView = new NoteFormView('Delete Note', $noteModel); $body = "<h2>Invalid data</h2>\n" . $noteView->getForm(); } else { $noteController = new NoteController(); $noteController->delete($noteModel); $body = "Deleted note # " . $noteModel->getId() . "<br />\n"; } } else { $noteController = new NoteController(); $noteModel = $noteController->get(Tools::param('id'));</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-109"> <div style="text-align: center;"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-example-3 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="8699811701" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="example-item" id="0xb4e82ed8af91ffebda878e3f5c5e59f0f8bad09957768cfc46f920bd5dc0d25d-1,,31,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #4</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_4" data-hash="0xb4e82ed8af91ffebda878e3f5c5e59f0f8bad09957768cfc46f920bd5dc0d25d" data-area="1,,31,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '4')" class="rating-up btn btn-success" data-id="rating_4"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'4')" class="rating-down btn btn-danger" data-id="rating_4"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xb4e82ed8af91ffebda878e3f5c5e59f0f8bad09957768cfc46f920bd5dc0d25d-1,,31,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xb4e82ed8af91ffebda878e3f5c5e59f0f8bad09957768cfc46f920bd5dc0d25d&fullName=applicationStatuses.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FapplicationStatuses.php">applicationStatuses.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="4"> <pre class="line-numbers language-php" data-end="31" data-start="2" data-highlight="25"> /** * phpjobseeker * * Copyright (C) 2009, 2015 Kevin Benton - kbenton at bentonfam dot org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $page = new PJSWebPage($config->getTitle() . ' - Application Statuses'); $body = "<h2>Application Statuses</h2>"; $asc = new ApplicationStatusController('read'); $asmList = $asc->getAll(); $asv = new ApplicationStatusListView('html', $asmList); $body .= $asv->getView(); $page->setBody($body); $page->displayPage();</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-110"> </div> <div class="example-item" id="0xb7245884b13d926aa3437286191732e2f202c89bc0f0c4308e0f166c715d2f9f-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #5</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_5" data-hash="0xb7245884b13d926aa3437286191732e2f202c89bc0f0c4308e0f166c715d2f9f" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '5')" class="rating-up btn btn-success" data-id="rating_5"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'5')" class="rating-down btn btn-danger" data-id="rating_5"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xb7245884b13d926aa3437286191732e2f202c89bc0f0c4308e0f166c715d2f9f-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xb7245884b13d926aa3437286191732e2f202c89bc0f0c4308e0f166c715d2f9f&fullName=addNote.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FaddNote.php">addNote.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="5"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . "Notes - Add Note"); $body = ''; $act = Tools::Param('act'); if ("Add Note" === $act) { $model = new NoteModel(); $model->populateFromForm(); if (!$model->validateForAdd()) { $view = new NoteFormView('Add Note', $model); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $noteController = new NoteController(); $newId = $noteController->add($model); if ($newId > 0) { $body = "Added note # " . $newId . "<br />\n"; } }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-111"> </div> <div class="example-item" id="0x2ae69c7aee521e98fecfb33e9a89bfc49be2cc346aa711fa5cf3846ffb1396e7-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #6</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_6" data-hash="0x2ae69c7aee521e98fecfb33e9a89bfc49be2cc346aa711fa5cf3846ffb1396e7" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '6')" class="rating-up btn btn-success" data-id="rating_6"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'6')" class="rating-down btn btn-danger" data-id="rating_6"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x2ae69c7aee521e98fecfb33e9a89bfc49be2cc346aa711fa5cf3846ffb1396e7-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x2ae69c7aee521e98fecfb33e9a89bfc49be2cc346aa711fa5cf3846ffb1396e7&fullName=editSearch.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FeditSearch.php">editSearch.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="6"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . ' - Edit Search'); $act = Tools::Param('act'); if ("Edit Search" === $act) { $searchModel = new SearchModel(); $searchModel->populateFromForm(); if (!$searchModel->validateForUpdate()) { $view = new SearchFormView('Edit Search', $searchModel); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $searchController = new SearchController(); $newId = $searchController->update($searchModel); if ($newId > 0) { $body = "Edited search: " . $searchModel->getSearchName() . " as # " . $newId . "<br />\n"; } } } else {</pre> </div> </figure> </div> <div class="example-item" id="0x9d6f28a5fb477c50811d3fab9ce372cbfbc7d68be64b0c65a65fb1e596e67eee-0,,27,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #7</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_7" data-hash="0x9d6f28a5fb477c50811d3fab9ce372cbfbc7d68be64b0c65a65fb1e596e67eee" data-area="0,,27,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '7')" class="rating-up btn btn-success" data-id="rating_7"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'7')" class="rating-down btn btn-danger" data-id="rating_7"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x9d6f28a5fb477c50811d3fab9ce372cbfbc7d68be64b0c65a65fb1e596e67eee-0,,27,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x9d6f28a5fb477c50811d3fab9ce372cbfbc7d68be64b0c65a65fb1e596e67eee&fullName=keywords.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2Fkeywords.php">keywords.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="7"> <pre class="line-numbers language-php" data-end="27" data-start="1" data-highlight="25"><?php /** * phpjobseeker * * Copyright (C) 2009, 2015 Kevin Benton - kbenton at bentonfam dot org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once 'Libs/autoload.php'; $config = new Config(); $page = new PJSWebPage($config->getTitle() . " - Keywords"); $body = "<h2>Keywords</h2>\n<div>Not yet written.<div>"; $page->setBody($body); $page->displayPage();</pre> </div> </figure> </div> <div class="example-item" id="0x85b687e438ea2fb1679f6f244e40aa640ad3b5e9bee84ee66e472f419a14142e-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #8</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_8" data-hash="0x85b687e438ea2fb1679f6f244e40aa640ad3b5e9bee84ee66e472f419a14142e" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '8')" class="rating-up btn btn-success" data-id="rating_8"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'8')" class="rating-down btn btn-danger" data-id="rating_8"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x85b687e438ea2fb1679f6f244e40aa640ad3b5e9bee84ee66e472f419a14142e-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x85b687e438ea2fb1679f6f244e40aa640ad3b5e9bee84ee66e472f419a14142e&fullName=editContact.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FeditContact.php">editContact.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="8"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . ' - Edit Contact'); $act = Tools::Param('act'); if ("Edit Contact" === $act) { $contactModel = new ContactModel(); $contactModel->populateFromForm(); if (!$contactModel->validateForUpdate()) { $view = new ContactFormView('Edit Contact', $contactModel); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $contactController = new ContactController(); $newId = $contactController->update($contactModel); if ($newId > 0) { $body = "Edited contact # " . $newId . "<br />\n"; } } } else {</pre> </div> </figure> </div> <div class="example-item" id="0x911676628b9f06a52a7a2ed99fe557a9acb2fc7b96954440eb91a713e4f1deac-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #9</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_9" data-hash="0x911676628b9f06a52a7a2ed99fe557a9acb2fc7b96954440eb91a713e4f1deac" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '9')" class="rating-up btn btn-success" data-id="rating_9"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'9')" class="rating-down btn btn-danger" data-id="rating_9"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x911676628b9f06a52a7a2ed99fe557a9acb2fc7b96954440eb91a713e4f1deac-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x911676628b9f06a52a7a2ed99fe557a9acb2fc7b96954440eb91a713e4f1deac&fullName=addSearch.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FaddSearch.php">addSearch.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="9"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . "Searches - Add Search"); $body = ''; $act = Tools::Param('act'); if ("Add Search" === $act) { $model = new SearchModel(); $model->populateFromForm(); if (!$model->validateForAdd()) { $view = new SearchFormView('Add Search', $model); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $searchController = new SearchController(); $newId = $searchController->add($model); if ($newId > 0) { $body = "Added search # " . $newId . "<br />\n"; } }</pre> </div> </figure> </div> <div class="example-item" id="0x60458372feafe9cba65150c91d8f184bdb9f28db28f329fb17dc4c5304e2411a-1,,31,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #10</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_10" data-hash="0x60458372feafe9cba65150c91d8f184bdb9f28db28f329fb17dc4c5304e2411a" data-area="1,,31,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '10')" class="rating-up btn btn-success" data-id="rating_10"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'10')" class="rating-down btn btn-danger" data-id="rating_10"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x60458372feafe9cba65150c91d8f184bdb9f28db28f329fb17dc4c5304e2411a-1,,31,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x60458372feafe9cba65150c91d8f184bdb9f28db28f329fb17dc4c5304e2411a&fullName=searches.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2Fsearches.php">searches.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="10"> <pre class="line-numbers language-php" data-end="31" data-start="2" data-highlight="25"> /** * phpjobseeker * * Copyright (C) 2009, 2015 Kevin Benton - kbenton at bentonfam dot org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once 'Libs/autoload.php'; $config = new Config(); $page = new PJSWebPage($config->getTitle() . " - Searches"); $body = "<h2>Searches</h2>\n"; $searchController = new SearchController('read'); $searchModelList = $searchController->getAll(); $searchListView = new SearchListView('html', $searchModelList); $body .= $searchListView->getView(); $page->setBody($body); $page->displayPage();</pre> </div> </figure> </div> <div class="example-item" id="0x697d31bf1e2beb05d597a63a3c984c8d0ade9cee5f22b7b776139a5cb6b9cdec-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #11</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_11" data-hash="0x697d31bf1e2beb05d597a63a3c984c8d0ade9cee5f22b7b776139a5cb6b9cdec" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '11')" class="rating-up btn btn-success" data-id="rating_11"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'11')" class="rating-down btn btn-danger" data-id="rating_11"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x697d31bf1e2beb05d597a63a3c984c8d0ade9cee5f22b7b776139a5cb6b9cdec-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x697d31bf1e2beb05d597a63a3c984c8d0ade9cee5f22b7b776139a5cb6b9cdec&fullName=editNote.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FeditNote.php">editNote.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="11"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . ' - Edit Note'); $act = Tools::Param('act'); if ("Edit Note" === $act) { $noteModel = new NoteModel(); $noteModel->populateFromForm(); if (!$noteModel->validateForUpdate()) { $view = new NoteFormView('Edit Note', $noteModel); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $noteController = new NoteController(); $newId = $noteController->update($noteModel); if ($newId > 0) { $body = "Edited note # " . $newId . "<br />\n"; } } } else {</pre> </div> </figure> </div> <div class="example-item" id="0x567d23f216518ebfc43c9f72bf1eb24672e5427266b10a19136d71b10b356e23-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #12</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_12" data-hash="0x567d23f216518ebfc43c9f72bf1eb24672e5427266b10a19136d71b10b356e23" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '12')" class="rating-up btn btn-success" data-id="rating_12"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'12')" class="rating-down btn btn-danger" data-id="rating_12"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x567d23f216518ebfc43c9f72bf1eb24672e5427266b10a19136d71b10b356e23-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x567d23f216518ebfc43c9f72bf1eb24672e5427266b10a19136d71b10b356e23&fullName=addContact.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FaddContact.php">addContact.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="12"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . "Contacts - Add Contact"); $body = ''; $act = Tools::Param('act'); if ("Add Contact" === $act) { $model = new ContactModel(); $model->populateFromForm(); if (!$model->validateForAdd()) { $view = new ContactFormView('Add Contact', $model); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $contactController = new ContactController(); $newId = $contactController->add($model); if ($newId > 0) { $body = "Added contact # " . $newId . "<br />\n"; } }</pre> </div> </figure> </div> <div class="example-item" id="0x453b2974203cac40a8b69bf2ff97dd09add319ada6a990f2c56fd6b11f90620e-1,,31,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #13</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_13" data-hash="0x453b2974203cac40a8b69bf2ff97dd09add319ada6a990f2c56fd6b11f90620e" data-area="1,,31,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '13')" class="rating-up btn btn-success" data-id="rating_13"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'13')" class="rating-down btn btn-danger" data-id="rating_13"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x453b2974203cac40a8b69bf2ff97dd09add319ada6a990f2c56fd6b11f90620e-1,,31,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x453b2974203cac40a8b69bf2ff97dd09add319ada6a990f2c56fd6b11f90620e&fullName=companies.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2Fcompanies.php">companies.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="13"> <pre class="line-numbers language-php" data-end="31" data-start="2" data-highlight="25"> /** * phpjobseeker * * Copyright (C) 2009, 2015 Kevin Benton - kbenton at bentonfam dot org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once 'Libs/autoload.php'; $config = new Config(); $page = new PJSWebPage($config->getTitle() . " - Companies"); $body = "<h2>Companies</h2>\n"; $companyController = new CompanyController('read'); $companyModelList = $companyController->getAll(); $companyListView = new CompanyListView('html', $companyModelList); $body .= $companyListView->getView(); $page->setBody($body); $page->displayPage();</pre> </div> </figure> </div> <div class="example-item" id="0x2c5670d926855ca755642acb779cd28db4c648143067fa280974472c482e494d-3,,33,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #14</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_14" data-hash="0x2c5670d926855ca755642acb779cd28db4c648143067fa280974472c482e494d" data-area="3,,33,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '14')" class="rating-up btn btn-success" data-id="rating_14"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'14')" class="rating-down btn btn-danger" data-id="rating_14"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x2c5670d926855ca755642acb779cd28db4c648143067fa280974472c482e494d-3,,33,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x2c5670d926855ca755642acb779cd28db4c648143067fa280974472c482e494d&fullName=index.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2Findex.php">index.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="14"> <pre class="line-numbers language-php" data-end="33" data-start="4" data-highlight="33"> * phpjobseeker * * Copyright (C) 2009, 2015 Kevin Benton - kbenton at bentonfam dot org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once 'Libs/autoload.php'; // @todo Show application statuses in index page $config = new Config(); try { $dbc = new DBConnection(); } catch (DaoException $ex) { echo "Has this system been set up yet? Have you used resetDb.php?\n"; exit; } $config = new Config(); $page = new PJSWebPage($config->getTitle()); $page->displayPage();</pre> </div> </figure> </div> <div class="example-item" id="0xf616ca5a16bca4249acd5d7bed4ece4c0db727abce27b142ec42a2e4bd25d777-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #15</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_15" data-hash="0xf616ca5a16bca4249acd5d7bed4ece4c0db727abce27b142ec42a2e4bd25d777" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '15')" class="rating-up btn btn-success" data-id="rating_15"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'15')" class="rating-down btn btn-danger" data-id="rating_15"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xf616ca5a16bca4249acd5d7bed4ece4c0db727abce27b142ec42a2e4bd25d777-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xf616ca5a16bca4249acd5d7bed4ece4c0db727abce27b142ec42a2e4bd25d777&fullName=deleteSearch.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FdeleteSearch.php">deleteSearch.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="15"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . ' - Delete Search'); $act = Tools::Param('act'); if ("Delete Search" === $act) { $searchModel = new SearchModel(); $searchModel->populateFromForm(); if (!$searchModel->validateForDelete()) { $searchView = new SearchFormView('Delete Search', $searchModel); $body = "<h2>Invalid data</h2>\n" . $searchView->getForm(); } else { $searchController = new SearchController(); $searchController->delete($searchModel); $body = "Deleted search # " . $searchModel->getId() . "<br />\n"; } } else { $searchController = new SearchController(); $searchModel = $searchController->get(Tools::param('id'));</pre> </div> </figure> </div> <div class="example-item" id="0x95a9e1d522f3e19d57b5e90806d8f5f00f793187a5cf8738c3f9aca3544687ae-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #16</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_16" data-hash="0x95a9e1d522f3e19d57b5e90806d8f5f00f793187a5cf8738c3f9aca3544687ae" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '16')" class="rating-up btn btn-success" data-id="rating_16"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'16')" class="rating-down btn btn-danger" data-id="rating_16"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x95a9e1d522f3e19d57b5e90806d8f5f00f793187a5cf8738c3f9aca3544687ae-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x95a9e1d522f3e19d57b5e90806d8f5f00f793187a5cf8738c3f9aca3544687ae&fullName=addJob.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FaddJob.php">addJob.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="16"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="25"> * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once "Libs/autoload.php"; $config = new Config(); $webPage = new PJSWebPage($config->getTitle() . "Jobs - Add Job"); $body = ''; $act = Tools::Param('act'); if ("Add Job" === $act) { $model = new JobModel(); $model->populateFromForm(); if (!$model->validateForAdd()) { $view = new JobFormView('Add Job', $model); $body = "<h2>Invalid data</h2>\n" . $view->getForm(); } else { $jobController = new JobController(); $newId = $jobController->add($model); if ($newId > 0) { $body = "Added job # " . $newId . "<br />\n"; } }</pre> </div> </figure> </div> <div class="example-item" id="0xfd12004243fee760ca2f9ea270cd0c80347e738d8a50835a63c2e2485b6df035-14,,44,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #17</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_17" data-hash="0xfd12004243fee760ca2f9ea270cd0c80347e738d8a50835a63c2e2485b6df035" data-area="14,,44,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '17')" class="rating-up btn btn-success" data-id="rating_17"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'17')" class="rating-down btn btn-danger" data-id="rating_17"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0xfd12004243fee760ca2f9ea270cd0c80347e738d8a50835a63c2e2485b6df035-14,,44,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xfd12004243fee760ca2f9ea270cd0c80347e738d8a50835a63c2e2485b6df035&fullName=resetDb.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2FresetDb.php">resetDb.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="17"> <pre class="line-numbers language-php" data-end="44" data-start="15" data-highlight="30"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once 'Libs/autoload.php'; // Be sure to specify these in apply order. The reset script will automatically // reverse the order for safe removal. $controllerNames = array('VersionController', 'AuthTicketController', 'ApplicationStatusController', 'ApplicationStatusSummaryController', 'CompanyController', 'ContactController', 'JobController', 'KeywordController', 'NoteController', 'SearchController', 'JobKeywordMapController'); $controllers = array(); try { $config = new Config(); $page = new PJSWebPage($config->getTitle() . " - Reset DB", true); $body = "<ul>\n"; $dbc = new DBConnection("admin", null, null, null, null, null, 'mysqli', true); if (!$dbc->getCreatedDb()) { // Database exists. Don't allow reset if the user is not logged in. $auth = new Auth(); if (!$auth->isAuthorized()) { throw new Exception("User must be logged in to reset the database!"); } if ("1" !== $config->getResetOk()) { throw new Exception("Reset capability is turned off! See config.xml"); } } $dbh = $dbc->getConnection(); foreach (array_reverse($controllerNames) as $controllerName) { $controller = new $controllerName('write');</pre> </div> </figure> </div> <div class="example-item" id="0x20c53853706973a5cf09460ab2bec5e1fbee5e3130a77d8dff21a08de2870f56-1,,31,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #18</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_18" data-hash="0x20c53853706973a5cf09460ab2bec5e1fbee5e3130a77d8dff21a08de2870f56" data-area="1,,31,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '18')" class="rating-up btn btn-success" data-id="rating_18"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'18')" class="rating-down btn btn-danger" data-id="rating_18"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html#0x20c53853706973a5cf09460ab2bec5e1fbee5e3130a77d8dff21a08de2870f56-1,,31,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x20c53853706973a5cf09460ab2bec5e1fbee5e3130a77d8dff21a08de2870f56&fullName=jobs.php&project=kbcmdba%2Fpjs2')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2%2Fblob%2Fmaster%2Fjobs.php">jobs.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fkbcmdba%2Fpjs2">kbcmdba/pjs2</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="18"> <pre class="line-numbers language-php" data-end="31" data-start="2" data-highlight="25"> /** * phpjobseeker * * Copyright (C) 2009, 2015 Kevin Benton - kbenton at bentonfam dot org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ require_once 'Libs/autoload.php'; $config = new Config(); $page = new PJSWebPage($config->getTitle() . " - Jobs"); $body = "<h2>Jobs</h2>\n"; $controller = new JobController('read'); $modelList = $controller->getAll(); $modelListView = new JobListView('html', $modelList); $body .= $modelListView->getView(); $page->setBody($body); $page->displayPage();</pre> </div> </figure> </div> <div id="all-examples"></div> </div> </div> </div> <div class="page-side-banner hidden-xs hidden-sm hidden-md" style="width:300px"> <div id="ezoic-pub-ad-placeholder-131"> <div class="fx" style="width:300px"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- right-sidebar-fx --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="8968655429" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> </div> </div> <footer class="footer"> <div class="container"> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/jp/site/trends?type=php%7Cf">上位の関数</a> | <a href="https://hotexamples.com/jp/site/trends?type=php%7Cc"> 上位のクラス </a> | <a href="https://doc.hotexamples.com/jp/doc/map">ドキュメント</a> | <a href="/site/privacy">個人情報保護方針</a> | <a href="https://cpp.hotexamples.com/direct-sales.html">Advertise with us</a> </div> </div> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/jp/">PHP</a> | <a href="https://csharp.hotexamples.com/jp/">C# (CSharp)</a> | <a href="https://java.hotexamples.com/jp/">Java</a> | <a href="https://golang.hotexamples.com/jp/">Golang</a> | <a href="https://cpp.hotexamples.com/jp/">C++ (Cpp)</a> | <a href="https://python.hotexamples.com/jp/">Python</a> | <a href="https://javascript.hotexamples.com/jp/">JavaScript</a> | <a href="https://typescript.hotexamples.com/jp/">TypeScript</a> </div> </div> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">EN</a> | <a href="https://hotexamples.com/ru/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">RU</a> | <a href="https://hotexamples.com/de/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">DE</a> | <a href="https://hotexamples.com/fr/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">FR</a> | <a href="https://hotexamples.com/es/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">ES</a> | <a href="https://hotexamples.com/pt/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">PT</a> | <a href="https://hotexamples.com/it/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">IT</a> | <a href="https://hotexamples.com/jp/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">JP</a> | <a href="https://hotexamples.com/zh/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">ZH</a> | <a href="https://hotexamples.com/ko/examples/-/Config/getTitle/php-config-gettitle-method-examples.html">KO</a> </div> </div> <div class="row"> <div class="col-md-10 col-md-offset-1"> </div> <div class="col-md-1"> <!--LiveInternet counter--> <script type="text/javascript"><!-- document.write("<a href='//www.liveinternet.ru/click' " + "target=_blank><img src='//counter.yadro.ru/hit?t44.6;r" + escape(document.referrer) + ((typeof (screen) == "undefined") ? "" : ";s" + screen.width + "*" + screen.height + "*" + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)) + ";u" + escape(document.URL) + ";" + Math.random() + "' alt='' title='LiveInternet' " + "border='0' width='31' height='31'><\/a>"); //--></script><!--/LiveInternet--> </div> </div> </div> </footer> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="/assets/30dd86a6f06b64184847037c52c63e07aa3c9a26.js"></script> <script>jQuery(function ($) { jQuery('#search-form').yiiActiveForm([{"id":"searchform-lang","name":"lang","container":".field-searchform-lang","input":"#searchform-lang","enableAjaxValidation":true},{"id":"searchform-search","name":"search","container":".field-searchform-search","input":"#searchform-search","enableAjaxValidation":true,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Search cannot be blank."});}}], []); });</script></body> </html>