Skip to content

Instantly share code, notes, and snippets.

@atsu666
atsu666 / Download.php
Created June 17, 2021 02:38
php/ACMS/POST/Download.php
<?php
class ACMS_POST_Download extends ACMS_POST
{
var $isCacheDelete = false;
protected $isCSRF = false;
function post()
{
@atsu666
atsu666 / Helper.php
Created June 16, 2021 04:58
php/Services/Common/Helper.php
<?php
namespace Acms\Services\Common;
use DB;
use SQL;
use Tpl;
use Storage;
use Image;
use Field;
@atsu666
atsu666 / Mail.php
Created June 7, 2021 09:50
php/ACMS/POST/Entry/Mail.php
<?php
class ACMS_POST_Entry_Mail extends ACMS_POST_Entry
{
var $isCacheDelete = false;
function post()
{
@set_time_limit(0);
<?php
class ACMS_POST_Import_Model_Entry extends ACMS_POST_Import_Model
{
protected $entry;
protected $units;
protected $fields;
protected $importCid;
protected $importBid = BID;
protected $subCategories = array();
@atsu666
atsu666 / List.php
Created March 23, 2021 06:11
glueを調整: php/ACMS/GET/Category/List.php
<?php
class ACMS_GET_Category_List extends ACMS_GET
{
var $_axis = array(
'cid' => 'descendant-or-self',
'bid' => 'descendant-or-self',
);
function getAncestorsMap($Map, $root, & $i=0)
<?php
class ACMS_GET_Admin_Category_Index extends ACMS_GET_Admin
{
function get()
{
if (roleAvailableUser()) {
if (!roleAuthorization('category_edit', BID)) {
return false;
}
<?php
use Acms\Services\Facades\RichEditor;
class ACMS_GET_Admin_Config extends ACMS_GET_Admin
{
function & getConfig($rid, $mid, $setid = null)
{
$post_config =& $this->Post->getChild('config');
@atsu666
atsu666 / SourceResolver.php
Created February 26, 2021 02:17
php/Services/StaticExport/Compiler/SourceResolver.php
<?php
namespace Acms\Services\StaticExport\Compiler;
use Acms\Services\StaticExport\Contracts\Resolver;
use ACMS_RAM;
class SourceResolver extends Resolver
{
/**
<?php
class ACMS_POST_Form_Submit extends ACMS_POST_Form
{
/**
* バックグラウンド送信
*
* @var bool
*/
protected $background = false;
@atsu666
atsu666 / Schedue.php
Created December 2, 2020 07:50
php/ACMS/GET/Plugin/Schedule.php
<?php
class ACMS_GET_Plugin_Schedule extends ACMS_GET
{
//現在値 or URLコンテキスト から取得&生成する
var $year; //年
var $month; //月
var $week; //週
var $day; //日