class AllAction extends ProfileAction
{
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
'favorites/favorites');
$fullname = "$this->api_action/$this->api_method";
-
- // If the site is "private", all API methods except laconica/config
+
+ // If the site is "private", all API methods except laconica/config
// need authentication
if (common_config('site', 'private')) {
return $fullname != 'laconica/config' || false;
}
}
- function isReadOnly()
+ function isReadOnly($args)($args)
{
- # NOTE: before handle(), can't use $this->arg
- $apiaction = $_REQUEST['apiaction'];
- $method = $_REQUEST['method'];
+ $apiaction = $args['apiaction'];
+ $method = $args['method'];
+
list($cmdtext, $fmt) = explode('.', $method);
static $write_methods = array(
return false;
}
-
}
common_redirect($url, 302);
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return ucfirst($this->title);
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
{
var $page = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
class FoafAction extends Action
{
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
{
var $page = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
var $page = null;
var $profile = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
var $subbed = null;
var $sent = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return false;
}
* @return boolean false
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return false;
}
*
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return false;
}
print $user->nickname . ': ' . $notice->content;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return null;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
}
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
$this->endXML();
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
var $page = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
// nop
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
class PublictagcloudAction extends Action
{
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
*
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
$this->elementEnd('div');
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return ($avatar) ? $avatar->url : null;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
*
* @return boolean false
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return false;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return '';
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
class ShowstreamAction extends ProfileAction
{
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
$bf->show();
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return $updates;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
$this->page, 'tag', array('tag' => $this->tag));
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return $c;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
*
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
var $page = null;
var $profile = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
parent::initRss($limit);
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
*
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
// XXX: find somewhere for this little block to live
- if (common_config('db', 'mirror') && $action_obj->isReadOnly()) {
+ if (common_config('db', 'mirror') && $action_obj->isReadOnly($args)) {
if (is_array(common_config('db', 'mirror'))) {
// "load balancing", ha ha
$arr = common_config('db', 'mirror');
*
* MAY override
*
+ * @param array $args other arguments
+ *
* @return boolean is read only action?
*/
- function isReadOnly()
+
+ function isReadOnly($args)($args)
{
return false;
}
return $this->message;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return true;
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
var $user = null;
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
*
* @return boolean true
*/
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}