You are here

function hackedProject::isDevVersion in Hacked! 7.2

Determines if the project is a development version or has an explicit release.

Return value

boolean TRUE if the project is a dev release; FALSE otherwise.

1 call to hackedProject::isDevVersion()
hackedProject::identify_project in includes/hackedProject.inc
Identify the project from the name we've been created with.

File

includes/hackedProject.inc, line 125

Class

hackedProject
Encapsulates a Hacked! project.

Code

function isDevVersion() {

  // Grab the version string.
  $version = $this->project_info['existing_version'];

  // Assume we have a dev version if the string ends with "-dev".
  return substr_compare($version, '-dev', -4, 4) === 0 ? TRUE : FALSE;
}