public function getIdByName($project, $name)
    {
        $arr = $this->listing($project);
        if (!isset($arr[$name])) {
            return false;
        }

        return $arr[(string) $name];
    }
public function getIdByName($project, $name)
    {
        $arr = $this->listing($project);
        if (!isset($arr[$name])) {
            return false;
        }

        return $arr[(string) $name];
    }
public function getIdByName ( $ project , $ name ) { $ arr = $ this -> listing ( $ project ) ; if ( ! isset ( $ arr [ $ name ] ) ) { return false ; } return $ arr [ ( string ) $ name ] ; }
Get a category id given its name and related project.

@param string|int $project project id or literal identifier
@param string     $name

@return int|false
Get a category id given its name and related project .