Hatena::Groupnequal

nequal::unfair

2008-03-14

Conveyorのプラグインを作る

| 02:53 | Conveyorのプラグインを作る - nequal::unfair を含むブックマーク はてなブックマーク - Conveyorのプラグインを作る - nequal::unfair

Conveyor?

PHP版のplaggerみたいなもの。

すべてブラウザ上で設定が可能。

rhacoで作られている。


種類

ConveyorのWorker(プラグイン)は大きく3種類にわけられる

  • Subscription
  • Filter
  • Publish

この3つで、Rss2.0のオブジェクトを受け取って、次のWorkerに渡す。というコードを書く。

作ったWorkerは、

library/workers/[CLASS名]/[CLASS名].php

のように設置する。


たとえば

<?php
class CustomfeedHoge extends SubscriptionBase{
    function execute($rss){
        // 取得処理をして、rss20オブジェクトに詰める
        return $rss;
    }
}

動かす

後は適当に動かせばok

IchachIchach2013/07/04 14:24This piece was a lifejacket that saved me from drnwonig.

YarlinYarlin2013/07/05 03:29Thanks for <a href="http://yujvdhvdwfd.com">shairng.</a> Always good to find a real expert.

YarlinYarlin2013/07/05 03:29Thanks for <a href="http://yujvdhvdwfd.com">shairng.</a> Always good to find a real expert.

YarlinYarlin2013/07/05 03:29Thanks for <a href="http://yujvdhvdwfd.com">shairng.</a> Always good to find a real expert.

FiorelloFiorello2013/07/05 09:55Taking the ovveriew, this post hits the spot http://dogkgnrpl.com [url=http://uhfqycgcez.com]uhfqycgcez[/url] [link=http://vcblliimo.com]vcblliimo[/link]

FiorelloFiorello2013/07/05 09:55Taking the ovveriew, this post hits the spot http://dogkgnrpl.com [url=http://uhfqycgcez.com]uhfqycgcez[/url] [link=http://vcblliimo.com]vcblliimo[/link]

FiorelloFiorello2013/07/05 09:55Taking the ovveriew, this post hits the spot http://dogkgnrpl.com [url=http://uhfqycgcez.com]uhfqycgcez[/url] [link=http://vcblliimo.com]vcblliimo[/link]

AlexAlex2013/07/07 12:40You've really captured all the <a href="http://ounehyoxh.com">eslnatiess</a> in this subject area, haven't you?

AlexAlex2013/07/07 12:40You've really captured all the <a href="http://ounehyoxh.com">eslnatiess</a> in this subject area, haven't you?

AlexAlex2013/07/07 12:40You've really captured all the <a href="http://ounehyoxh.com">eslnatiess</a> in this subject area, haven't you?

JuliaJulia2013/07/09 12:02That kind of thnnikig shows you're an expert http://exsfgtx.com [url=http://yefqbc.com]yefqbc[/url] [link=http://ksljfoimxn.com]ksljfoimxn[/link]

JuliaJulia2013/07/09 12:02That kind of thnnikig shows you're an expert http://exsfgtx.com [url=http://yefqbc.com]yefqbc[/url] [link=http://ksljfoimxn.com]ksljfoimxn[/link]

JuliaJulia2013/07/09 12:02That kind of thnnikig shows you're an expert http://exsfgtx.com [url=http://yefqbc.com]yefqbc[/url] [link=http://ksljfoimxn.com]ksljfoimxn[/link]