1 オーソドックス
xoops_trust_path/modules/xcore
├── actions
├── admin
├── blocks
├── class <-- ここに現在の html/core を入れ込む
├── forms
├── images
1 オーソドックス
xoops_trust_path/modules/xcore
├── actions
├── admin
├── blocks
├── class <-- ここに現在の html/core を入れ込む
├── forms
├── images
<?php | |
/** | |
* ポリシーエンティティのモック | |
*/ | |
class Policy | |
{ | |
/** | |
* @return DateTime | |
*/ |
{
"require": {
"friendsofsymfony/facebook-bundle": "*"
},
"minimum-stability": "stable"
}
class Test { | |
public static void main(String[] args) { | |
UserRepository userRepository = new UserRepository(); | |
userRepository.persist(new Object()); | |
userRepository.persist(new User()); | |
} | |
} | |
class Repository | |
{ |
<?php | |
namespace XCore\Entity; | |
class User | |
{ | |
// 元XoopsUserクラス | |
} | |
class Module |
<?php | |
$date1 = new DateTime('@999994149'); | |
$date2 = (new DateTime)->setTimestamp(999994149); | |
var_dump($date1->getTimestamp()); | |
var_dump($date2->getTimestamp()); | |
$diff = $date1->diff($date2); |
fields: | |
name: | |
type: string | |
label: "契約者名" | |
uname: | |
type: string | |
lablel: "ユーザ名" | |
email: | |
type: string | |
label: "メールアドレス" |
<?php | |
class Assertion | |
{ | |
private $assertion; | |
private $valiator; | |
public function __construct($assertion, callable $validator) | |
{ |
<?php | |
class Foo | |
{ | |
public function __construct() | |
{ | |
$this->value = __CLASS__; | |
} | |
} |
<?php | |
class Foo | |
{ | |
private $foo = 'bar'; | |
public function generate() | |
{ | |
return function() { | |
return $this->foo; |