Skip to content

Instantly share code, notes, and snippets.

@atsu666
atsu666 / Cookie.php
Created November 6, 2020 05:11
php/ACMS/POST/Cookie.php
<?php
namespace Acms\Plugins\AccessRanking\GET\Entry;
use Acms\Plugins\AccessRanking\POST\DeleteAccessLog;
use ACMS_Filter;
use ACMS_GET_Entry_Summary;
use SQL;
use DB;
use SQL_Select;
use Template;
@atsu666
atsu666 / Schedule.php
Created October 3, 2020 07:01
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; //日
@atsu666
atsu666 / Assist.php
Created May 20, 2020 03:49
php/ACMS/GET/Tag/Assist.php
<?php
class ACMS_GET_Tag_Assist extends ACMS_GET
{
function get()
{
$Tpl = new Template($this->tpl, new ACMS_Corrector());
$SQL = SQL::newSelect('tag');
$SQL->addSelect('tag_name');
@atsu666
atsu666 / ExList.php
Last active April 8, 2020 03:02
php/ACMS/GET/Feed/ExList.php
<?php
class ACMS_GET_Feed_ExList extends ACMS_GET
{
function get()
{
$this->source = config('feed_exlist_source');
$this->limit = intval(config('feed_exlist_limit'));
$this->offset = intval(config('feed_exlist_offset'));
$this->newtime = config('feed_exlist_newtime');
@atsu666
atsu666 / Filter.php
Created March 31, 2020 13:05
php/ACMS/Filter.php
<?php
/**
* ACMS_Filter
*
* SQLヘルパの各種処理をラップしたメソッド群です
* メソッドの外で,条件対象のテーブルが選択されている必要があります
* 例外で,_field, _keywordはメソッド内でテーブルを自動で選択します
*
* @package ACMS
@atsu666
atsu666 / Helper.php
Last active March 25, 2020 10:21
php/Services/Entry/Helper.php
<?php
namespace Acms\Services\Entry;
use Common;
use Entry;
use Storage;
use DB;
use SQL;
use ACMS_RAM;
@atsu666
atsu666 / Engine.php
Last active March 6, 2020 13:22
php/Services/Preview/Engine.php
<?php
namespace Acms\Services\Preview;
use Acms\Services\Preview\Contracts\Base;
use ACMS_Session;
use App;
use DB;
use SQL;
@atsu666
atsu666 / PreviewServiceProvider.php
Created March 6, 2020 12:54
php/Services/Preview/PreviewServiceProvider.php
<?php
namespace Acms\Services\Preview;
use Acms\Contracts\ServiceProvider;
use Acms\Services\Container;
class PreviewServiceProvider extends ServiceProvider
{
/**
@atsu666
atsu666 / Module.php
Last active February 7, 2020 08:22
2.10.20 用
<?php
class ACMS_POST_Module extends ACMS_POST
{
function fix(& $Module)
{
if ( $Module->get('eid') ) {
if ( $Module->get('eid') == strval(intval($Module->get('eid'))) ) {
if ( $bid = ACMS_RAM::entryBlog($Module->get('eid')) ) {
$Module->setField('bid', $bid);