classes/phing/tasks/ext/GrowlNotifyTask.php
public function setIcon($icon = '')
    {
        if (!is_string($icon)) {
            throw new BuildException(
                '"icon" attribute is invalid.' .
                ' Expect to be a string, actual is ' . gettype($icon)
            );
        }

        // relative location
        if (strpos($icon, '..') === 0) {
            $icon = realpath(__DIR__ . DIRECTORY_SEPARATOR . $icon);
        } elseif (strpos($icon, '.') === 0) {
            $icon = __DIR__ . substr($icon, 1);
        }

        $this->icon = $icon;
    }
public function setIcon($icon = '')
    {
        if (!is_string($icon)) {
            throw new BuildException(
                '"icon" attribute is invalid.' .
                ' Expect to be a string, actual is ' . gettype($icon)
            );
        }

        // relative location
        if (strpos($icon, '..') === 0) {
            $icon = realpath(__DIR__ . DIRECTORY_SEPARATOR . $icon);
        } elseif (strpos($icon, '.') === 0) {
            $icon = __DIR__ . substr($icon, 1);
        }

        $this->icon = $icon;
    }
public function setIcon ( $ icon = '' ) { if ( ! is_string ( $ icon ) ) { throw new BuildException ( '"icon" attribute is invalid.' . ' Expect to be a string, actual is ' . gettype ( $ icon ) ) ; } // relative location if ( strpos ( $ icon , '..' ) === 0 ) { $ icon = realpath ( __DIR__ . DIRECTORY_SEPARATOR . $ icon ) ; } elseif ( strpos ( $ icon , '.' ) === 0 ) { $ icon = __DIR__ . substr ( $ icon , 1 ) ; } $ this -> icon = $ icon ; }
The icon to show for the notification.

Must be a valid file type (png, jpg, gif, ico).
Can be any of the following:
- absolute url (http://domain/image.png)
- absolute file path (c:\temp\image.png)
- relative file path (.\folder\image.png) (relative file paths must start
with a dot and are relative to GrowlNotify's phing task location

@param string $icon Icon of the message

@return void
@throws BuildException
The icon to show for the notification .