コード例 #1
0
 /**
  * @param \xecon\entity\Entity $entity
  * @return string
  */
 public function getPath($entity)
 {
     $path = str_replace(["<type>", "<name>"], [$entity->getAbsolutePrefix(), $entity->getName()], $this->path);
     @mkdir(dirname($path), 0777, true);
     return $path;
 }
コード例 #2
0
ファイル: Account.php プロジェクト: MCPEGamerJPatGitHub/xEcon
 public function getUniqueName()
 {
     return implode("/", [$this->entity->getAbsolutePrefix(), $this->entity->getName(), $this->getName()]);
 }