set the email address of the author of the item who created the item

@param   string  $author  author of rss feed item
@return  \stubbles\xml\rss\RssFeedItem
2750
public function byAuthor(string $author): self
    {
        if (!strstr($author, '@')) {
            $this->author = 'nospam@example.com (' . $author . ')';
        } else {
            $this->author = $author;
        }

        return $this;
    }
284153
def set_author(self, author, email=''):
        """"""
        self.author = author
        self.email = email
648390
public function setFromXML(SimpleXMLElement $item){
        
        $dt = new jDateTime();
        
        $resultat = explode(" ", (string)$item->author);
        foreach ($resultat as $mot){
            if (jFilter::isEmail($mot))
                    $this->authorEmail = $mot;
            else
                    $this->authorName .= ' '.$mot;
        }
        
        $categorie = $item->category;
        foreach ($categorie as $cat) {
            $this->categories[] = (string)$cat;
        }

        $this->content = (string)$item->description;
        $this->id = (string)$item->guid;
        $this->link = (string)$item->link;
        
        if ((string)$item->pubDate != '') {
            $dt->setFromString((string)$item->pubDate, jDateTime::RFC2822_FORMAT);
            $this->published = $dt->toString(jDateTime::DB_DTFORMAT);
        }

        $this->title = (string)$item->title;
        
        $this->idIsPermalink = (isset($item->guid['isPermaLink']) && $item->guid['isPermaLink'] == 'true') ? true : false;
        $this->sourceTitle = (string)$item->source;
        $this->sourceUrl = isset($item->source['url']) ? (string)$item->source['url'] : '';

        $this->comments = (string)$item->comments;
    
        if(isset($item->enclosure['url'])){
            $this->enclosure = array();
            $attrs = array('url', 'length', 'type');
            
            foreach($attrs as $a){
                $this->enclosure[$a] = isset($item->enclosure[$a]) ? (string)$item->enclosure[$a] : '';
            }
        }

    }
529554
public function addCopyLeftAuthors($authors)
    {
        foreach ($authors as $author => $pattern) {
            $this->addCopyLeft($author, $pattern);
        }

        return $this;
    }
975315
public function addAuthor($name=null, $user=null, $email=null)
    {
        $this->_authors[] = array(
            'name' =>$name,
            'user' =>$user,
            'email'=>$email
        );
        $author = $this->_packageXml->authors->addChild('author');
        $author->addChild('name', $name);
        $author->addChild('user', $user);
        $author->addChild('email', $email);
        return $this;
    }
1123238
public static function generate(array $authors)
    {
        $newAuthors = [];

        foreach ($authors as $author) {
            $newAuthors[] = (object)$author;
        }

        return $newAuthors;
    }
24524
public function setAuthors( $authors )
    {
        if ( ! $authors instanceof Traversable )
        {
            $authors = new ArrayIterator( (array) $authors );
        }

        $this->authors = ArrayUtils::iteratorToArray(
            new CallbackMapIterator(
                new CallbackFilterIterator(
                    $authors,
                    function ( $author ) {
                        return ! empty( $author->name )   || ! empty( $author->email )
                            || ! empty( $author['name'] ) || ! empty( $author['email'] );
                    }
                ),
                function ( $author ) {
                    if ( ! $author instanceof ArrayAccess )
                    {
                        $author = (array) $author;
                    }

                    return array(
                        'name'      => isset( $author['name'] )     ? $author['name']     : null,
                        'email'     => isset( $author['email'] )    ? $author['email']    : null,
                        'homepage'  => isset( $author['homepage'] ) ? $author['homepage'] : null,
                    );
                }
            )
        );

        return $this;
    }
517120
public function set_author($author) {
        $filerecord = new stdClass;
        $filerecord->author = $author;
        $this->update($filerecord);
    }
771528
public function setEmail($email)
    {
        $email = (string) $email;

        if ($this->exists() && $this->email !== $email) {
            $this->updated['email'] = true;
        }

        $this->email = $email;

        return $this;
    }
837784
public function setAuthorEmail($authorEmail)
    {
        $this->authorEmail
            = preg_match('/^' . self::REGEX_AUTHOR_EMAIL . '$/u', $authorEmail)
            ? $authorEmail : '';

        $this->content = null;
        return $this;
    }
160617
public function setAuthor($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->author !== $v) {
            $this->author = $v;
            $this->modifiedColumns[ReferenceTableMap::COL_AUTHOR] = true;
        }

        return $this;
    }
1142124
public function address($email, $name = null)
    {
        $this->getMailer()->addAddress($email, (empty($name)) ? $email : $name);

        return $this;
    }
666247
public static function SetAuthors($authors)
    {
        self::CheckBackend();

        $authors = trim($authors);
        $authors = trim($authors, ",");

        self::$backend->Set("authors", $authors);
    }
85258
public static function getRssAuthor($author)
    {
        if (is_object($author)) {
            $author = $author->get_name();
            $author = esc_html(strip_tags($author));
        } else {
            $author = '';
        }

        return $author;
    }
232661
public function setCreator($creator)
    {
        ObjectHelper::isInstanceOf($creator, [Organization::class, PersonInterface::class]);
        
        $this->_creator = $creator;
        return $this;
    }
907443
@Override
    public void setAuthor(final String author) {
        // Get the DCModule so that we can check to see if "creator" is already set.
        final DCModule dcModule = getDCModule();
        final String currentValue = dcModule.getCreator();

        if (Strings.isEmpty(currentValue)) {
            getDCModule().setCreator(author);
        }
    }
221990
public function setAuthors($authors)
    {
        $this->_authors = $authors;
        foreach ($authors as $_author) {
            $this->addAuthor($_author['name'], $_author['user'], $_author['email']);
        }
        return $this;
    }