concrete/src/Antispam/Service.php
public function report($content, $author, $email, $ip, $ua, $additionalArgs = array())
    {
        $args['content'] = $content;
        $args['author'] = $author;
        $args['author_email'] = $email;
        $args['ip_address'] = $ip;
        $args['user_agent'] = $ua;

        foreach ($additionalArgs as $key => $value) {
            $args[$key] = $value;
        }
        if (method_exists($this->controller, 'report')) {
            $this->controller->report($args);
        }

        $u = new User();
        \Log::info(t('Content %s (author %s, %s) flagged as spam by user %s',
            $content,
            $author,
            $email,
            $u->getUserName()
        ));
    }
public function report($content, $author, $email, $ip, $ua, $additionalArgs = array())
    {
        $args['content'] = $content;
        $args['author'] = $author;
        $args['author_email'] = $email;
        $args['ip_address'] = $ip;
        $args['user_agent'] = $ua;

        foreach ($additionalArgs as $key => $value) {
            $args[$key] = $value;
        }
        if (method_exists($this->controller, 'report')) {
            $this->controller->report($args);
        }

        $u = new User();
        \Log::info(t('Content %s (author %s, %s) flagged as spam by user %s',
            $content,
            $author,
            $email,
            $u->getUserName()
        ));
    }
public function report ( $ content , $ author , $ email , $ ip , $ ua , $ additionalArgs = array ( ) ) { $ args [ 'content' ] = $ content ; $ args [ 'author' ] = $ author ; $ args [ 'author_email' ] = $ email ; $ args [ 'ip_address' ] = $ ip ; $ args [ 'user_agent' ] = $ ua ; foreach ( $ additionalArgs as $ key => $ value ) { $ args [ $ key ] = $ value ; } if ( method_exists ( $ this -> controller , 'report' ) ) { $ this -> controller -> report ( $ args ) ; } $ u = new User ( ) ; \ Log :: info ( t ( 'Content %s (author %s, %s) flagged as spam by user %s' , $ content , $ author , $ email , $ u -> getUserName ( ) ) ) ; }
Report some content with the poster's information to the AntiSpam service.

@param string $content
@param UserInfo $ui
@param string $ip
@param string $ua
@param array $additionalArgs
Report some content with the poster s information to the AntiSpam service .