This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PluginSomeForm extends BaseSomeForm | |
{ | |
public function configure() | |
{ | |
unset($this['id']); | |
$this->useFields(array('title', 'body')); | |
//usual configure here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of the OpenPNE package. | |
* (c) OpenPNE Project (http://www.openpne.jp/) | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file and the NOTICE file that were distributed with this source code. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of the OpenPNE package. | |
* (c) OpenPNE Project (http://www.openpne.jp/) | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file and the NOTICE file that were distributed with this source code. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$moreInfo = array(); | |
if ($member->getId() === $id) | |
{ | |
$moreInfo[] = link_to(__('Edit Photo'), '@member_config_image'); | |
$moreInfo[] = link_to(__('Show Profile'), '@member_profile_mine'); | |
} | |
elseif ($member->getImageFileName()) | |
{ | |
$moreInfo[] = link_to(__('Show more Photos'), '@friend_show_image?id='.$member->getId()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function url2cmd(url) | |
{ | |
var gist = url.match(/^https:\/\/gist.github.com\/([0-9]+)/); | |
if(gist) | |
{ | |
var gistId = RegExp.$1; | |
var jsUrl = 'https://gist.github.com/' + gistId + '.js'; | |
document.write('<style type="text/css">.gist .line { text-align: left; }</style>'); | |
document.write('<script type="text/javascript" src="' + jsUrl + '"></script>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* sfValidatorIntegerRange | |
* @package symfony | |
* @subpackage validator | |
* @auther Hiromi Hishida<info@77-web.com> | |
*/ | |
class sfValidatorIntegerRange extends sfValidatorBase | |
{ | |
protected function configure($options = array(), $messages = array()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @auther Hiromi Hishida<info@77-web.com> | |
*/ | |
class tableDefineTask extends sfDoctrineBaseTask | |
{ | |
protected function configure() | |
{ | |
$this->namespace = 'table'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class jsLoginAction extends sfAction | |
{ | |
public function execute($request) | |
{ | |
if(!$this->getUser()->hasCredential('SNSMember')) | |
{ | |
$this->forms = $this->getUser()->getAuthForms(); | |
foreach($this->forms as $form) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(dirname(__FILE__).'/TwitterOAuth.class.php'); | |
class opAuthWithTwitterPluginTweet | |
{ | |
protected static $consumer_secret; | |
protected static $consumer_key; | |
protected static $oauth_token; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opAlbumPlugin: | |
install: false | |
opAshiatoPlugin: | |
install: false | |
opBlogPlugin: | |
install: false | |
opCalendarPlugin: |
OlderNewer