new pisilinux web sites

This commit is contained in:
Erkan IŞIK
2026-07-01 16:44:17 +03:00
commit b58488b586
21740 changed files with 2066209 additions and 0 deletions
@@ -0,0 +1,49 @@
<?php namespace ZN\Controller;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
use ZN\Singleton;
use ZN\Autoloader;
#[\AllowDynamicProperties]
class Base
{
/**
* Magic get
*
* @param string $class
*
* @return mixed
*/
public function __get($class)
{
if( ! isset($this->$class) )
{
$this->$class = Singleton::class($class);
}
return $this->$class;
}
/**
* Reload ClassMap
*
* @param void
*
* @return $this
*/
public function reload()
{
Autoloader::restart();
return $this;
}
}
@@ -0,0 +1,35 @@
<?php namespace ZN\Controller;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
use ZN\ErrorHandling\Errors;
use ZN\Datatype;
use ZN\Exception;
class Call extends Base
{
/**
* Magic call
*
* @param string $method
* @param array $param
*
* @return void
*/
public function __call($method, $param)
{
throw new Exception
(
'Error',
'undefinedFunction',
Datatype::divide(str_ireplace(INTERNAL_ACCESS, '', get_called_class()), '\\', -1)."::$method()"
);
}
}
@@ -0,0 +1,17 @@
<?php namespace ZN\Controller;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
use ZN\Ability\Factory as FactoryAbility;
class Factory extends Base
{
use FactoryAbility;
}